release: WRNexusJS 0.5.0

This commit is contained in:
2026-07-29 12:51:10 +05:30
parent 76c768099d
commit 6afe32f63f
456 changed files with 40879 additions and 8850 deletions
+8
View File
@@ -8,3 +8,11 @@ test("HMR client syncs fresh HTML over the websocket", () => {
expect(HMR_CLIENT_JS).not.toContain("fetch(location.href");
expect(HMR_CLIENT_JS).not.toContain("location.reload()");
});
test("HMR replaces hydrated components when their server signature changes", () => {
expect(HMR_CLIENT_JS).toContain('from.getAttribute("data-wrn-hydration")');
expect(HMR_CLIENT_JS).toContain('from.getAttribute("data-wrn-behavior")');
expect(HMR_CLIENT_JS).toContain('from.getAttribute("data-scope")');
expect(HMR_CLIENT_JS).toContain("window.__wrnexusDisposeBehaviors(from)");
expect(HMR_CLIENT_JS).toContain("from.replaceWith(to.cloneNode(true))");
});