Skip to content

[DRAFT] [DO NOT MERGE] Wasm second iteration - #5321

Draft
v1rtl wants to merge 12 commits into
ethersphere:masterfrom
v1rtl:wasm-second-iteration
Draft

[DRAFT] [DO NOT MERGE] Wasm second iteration#5321
v1rtl wants to merge 12 commits into
ethersphere:masterfrom
v1rtl:wasm-second-iteration

feat(demo): subdomain gateway, readiness probe, IndexedDB cache, inte…

1de9ef1
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 2, 2026 in 30s

Quality Gate failed

Failed conditions
D Reliability Rating on New Code (required ≥ A)
B Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 102 in wasm-demo/sw.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#replaceAll()` over `String#replace()`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_zGtTNLEMT6-RLn&open=AZ6Hq_zGtTNLEMT6-RLn&pullRequest=5321

Check warning on line 151 in wasm-demo/wasm_exec.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Number.isNaN` over `isNaN`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2DtTNLEMT6-RLv&open=AZ6Hq_2DtTNLEMT6-RLv&pullRequest=5321

Check warning on line 19 in wasm-demo/sw.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `self`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_zGtTNLEMT6-RLk&open=AZ6Hq_zGtTNLEMT6-RLk&pullRequest=5321

Check warning on line 103 in wasm-demo/sw.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#replaceAll()` over `String#replace()`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_zGtTNLEMT6-RLo&open=AZ6Hq_zGtTNLEMT6-RLo&pullRequest=5321

Check warning on line 486 in wasm-demo/wasm_exec.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Number.NaN` over `NaN`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2EtTNLEMT6-RL0&open=AZ6Hq_2EtTNLEMT6-RL0&pullRequest=5321

Check warning on line 418 in wasm-demo/wasm_exec.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Number.parseInt` over `parseInt`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2DtTNLEMT6-RLy&open=AZ6Hq_2DtTNLEMT6-RLy&pullRequest=5321

Check warning on line 462 in wasm-demo/sw.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `self`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_zGtTNLEMT6-RLr&open=AZ6Hq_zGtTNLEMT6-RLr&pullRequest=5321

Check warning on line 13 in wasm-demo/interstitial.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Number.parseInt` over `parseInt`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2NtTNLEMT6-RL3&open=AZ6Hq_2NtTNLEMT6-RL3&pullRequest=5321

Check warning on line 101 in wasm-demo/sw.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#replaceAll()` over `String#replace()`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_zGtTNLEMT6-RLm&open=AZ6Hq_zGtTNLEMT6-RLm&pullRequest=5321

Check warning on line 481 in wasm-demo/wasm_exec.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

`new Error()` is too unspecific for a type check. Use `new TypeError()` instead.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2EtTNLEMT6-RLz&open=AZ6Hq_2EtTNLEMT6-RLz&pullRequest=5321

Check failure on line 566 in wasm-demo/wasm_exec.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not assign `this` to `go`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2EtTNLEMT6-RL2&open=AZ6Hq_2EtTNLEMT6-RL2&pullRequest=5321

Check warning on line 124 in wasm-demo/wasm_exec.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of the unused 'setInt32' variable.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2DtTNLEMT6-RLs&open=AZ6Hq_2DtTNLEMT6-RLs&pullRequest=5321

Check warning on line 104 in wasm-demo/sw.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#replaceAll()` over `String#replace()`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_zGtTNLEMT6-RLp&open=AZ6Hq_zGtTNLEMT6-RLp&pullRequest=5321

Check warning on line 17 in wasm-demo/sw.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `self`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_zGtTNLEMT6-RLj&open=AZ6Hq_zGtTNLEMT6-RLj&pullRequest=5321

Check failure on line 292 in wasm-demo/sw.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_zGtTNLEMT6-RLq&open=AZ6Hq_zGtTNLEMT6-RLq&pullRequest=5321

Check warning on line 124 in wasm-demo/wasm_exec.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this useless assignment to variable "setInt32".

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2DtTNLEMT6-RLt&open=AZ6Hq_2DtTNLEMT6-RLt&pullRequest=5321

Check failure on line 528 in wasm-demo/wasm_exec.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Provide a compare function that depends on "String.localeCompare", to reliably sort elements alphabetically.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2EtTNLEMT6-RL1&open=AZ6Hq_2EtTNLEMT6-RL1&pullRequest=5321

Check warning on line 45 in wasm-demo/sw.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Review this redundant assignment: "endpoint" already holds the assigned value along all execution paths.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_zGtTNLEMT6-RLl&open=AZ6Hq_zGtTNLEMT6-RLl&pullRequest=5321

Check warning on line 139 in wasm-demo/wasm_exec.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Number.isNaN` over `isNaN`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2DtTNLEMT6-RLu&open=AZ6Hq_2DtTNLEMT6-RLu&pullRequest=5321

Check warning on line 18 in wasm-demo/interstitial.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this code to not log user-controlled data.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2NtTNLEMT6-RL4&open=AZ6Hq_2NtTNLEMT6-RL4&pullRequest=5321

Check warning on line 273 in wasm-demo/wasm_exec.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Date.now()` over `Date#getTime()`.

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2DtTNLEMT6-RLx&open=AZ6Hq_2DtTNLEMT6-RLx&pullRequest=5321

Check warning on line 260 in wasm-demo/wasm_exec.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this useless assignment to variable "sp".

See more on https://sonarcloud.io/project/issues?id=ethersphere_bee&issues=AZ6Hq_2DtTNLEMT6-RLw&open=AZ6Hq_2DtTNLEMT6-RLw&pullRequest=5321