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…

2c3d536
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Aug 10, 2026 in 35s

Quality Gate failed

Failed conditions
B Security Rating on New Code (required ≥ A)
D Reliability 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 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=AZ_r4I_g2dMl_8X6gvJt&open=AZ_r4I_g2dMl_8X6gvJt&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=AZ_r4JCl2dMl_8X6gvJu&open=AZ_r4JCl2dMl_8X6gvJu&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=AZ_r4JCu2dMl_8X6gvJ6&open=AZ_r4JCu2dMl_8X6gvJ6&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=AZ_r4JCl2dMl_8X6gvJ0&open=AZ_r4JCl2dMl_8X6gvJ0&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=AZ_r4I_g2dMl_8X6gvJp&open=AZ_r4I_g2dMl_8X6gvJp&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=AZ_r4I_g2dMl_8X6gvJs&open=AZ_r4I_g2dMl_8X6gvJs&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=AZ_r4JCl2dMl_8X6gvJv&open=AZ_r4JCl2dMl_8X6gvJv&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=AZ_r4JCl2dMl_8X6gvJ1&open=AZ_r4JCl2dMl_8X6gvJ1&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=AZ_r4JCl2dMl_8X6gvJ3&open=AZ_r4JCl2dMl_8X6gvJ3&pullRequest=5321

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=AZ_r4I_g2dMl_8X6gvJq&open=AZ_r4I_g2dMl_8X6gvJq&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=AZ_r4JCl2dMl_8X6gvJy&open=AZ_r4JCl2dMl_8X6gvJy&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=AZ_r4JCl2dMl_8X6gvJ4&open=AZ_r4JCl2dMl_8X6gvJ4&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=AZ_r4I_g2dMl_8X6gvJr&open=AZ_r4I_g2dMl_8X6gvJr&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=AZ_r4JCl2dMl_8X6gvJw&open=AZ_r4JCl2dMl_8X6gvJw&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=AZ_r4JCl2dMl_8X6gvJ2&open=AZ_r4JCl2dMl_8X6gvJ2&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=AZ_r4JCu2dMl_8X6gvJ5&open=AZ_r4JCu2dMl_8X6gvJ5&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=AZ_r4JCl2dMl_8X6gvJz&open=AZ_r4JCl2dMl_8X6gvJz&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=AZ_r4I_g2dMl_8X6gvJo&open=AZ_r4I_g2dMl_8X6gvJo&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=AZ_r4JCl2dMl_8X6gvJx&open=AZ_r4JCl2dMl_8X6gvJx&pullRequest=5321