@elurjs/kit 2.4.5 → 2.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +9 -3
- package/dist/lib/cli.cjs.map +1 -1
- package/dist/lib/cli.js.map +1 -1
- package/dist/lib/index.cjs +1 -1
- package/dist/lib/node-http-DRAUhO0c.js.map +1 -1
- package/dist/lib/node-http-DhxguYyz.cjs.map +1 -1
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,30 @@ All notable changes to Nix.js Kit are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.4.6]
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **`isSSR()` always returned `false`** — the kit's `ssr-flag.ts` used
|
|
13
|
+
`Symbol.for("@elurjs/core/reactivity-state")` while `@elurjs/core` < 3.5.1
|
|
14
|
+
used `Symbol.for("elur/reactivity-state")`. The mismatched symbols meant
|
|
15
|
+
the kit's `setSSR(true)` during `renderToString` never wrote to the core's
|
|
16
|
+
reactivity state, so `isSSR()` read `undefined` and defaulted to `false`.
|
|
17
|
+
Fixed in `@elurjs/core@3.5.1` which now namespaces its internal symbols
|
|
18
|
+
under `@elurjs/core/*`. Peer dependency bumped to `^3.5.1`.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- **`happy-dom` re-added as a test-only `devDependency`** — it was fully
|
|
23
|
+
removed in v2.4, but 5 client-side test suites (`island.test.ts`,
|
|
24
|
+
`island-reactive-array.test.ts`, `island-client-only.test.ts`,
|
|
25
|
+
`client-router.test.ts`, `client-router-a11y.test.ts`) still imported it
|
|
26
|
+
and failed with `ERR_MODULE_NOT_FOUND`. It is now back **only** in
|
|
27
|
+
`devDependencies` to provide a DOM environment for those tests. It is
|
|
28
|
+
never imported by `src/`, never referenced by either vite build config,
|
|
29
|
+
and never shipped in the published bundle (`files` contains only
|
|
30
|
+
`dist/lib`). `test/happy-dom-optional.test.ts` guards this invariant.
|
|
31
|
+
|
|
8
32
|
## [2.4.4]
|
|
9
33
|
|
|
10
34
|
### Fixed
|
package/README.md
CHANGED
|
@@ -191,11 +191,17 @@ Options:
|
|
|
191
191
|
manifest, no variants, no `<picture>`). The registry state is now in a
|
|
192
192
|
dedicated shared chunk (`image/registry.js`) that both the CLI and the
|
|
193
193
|
library import, ensuring a single module instance.
|
|
194
|
-
- **`happy-dom`
|
|
195
|
-
happy-dom
|
|
194
|
+
- **`happy-dom` removed from the runtime** — the kit no longer depends on
|
|
195
|
+
happy-dom at runtime. SSR uses the core's DOM-free
|
|
196
196
|
`renderToString` (`@elurjs/core/server`) directly. The legacy DOM
|
|
197
197
|
fallback (`renderWithDom`) was deleted along with all `external`/
|
|
198
|
-
`globals` references in the vite build configs.
|
|
198
|
+
`globals` references in the vite build configs. `happy-dom` is kept
|
|
199
|
+
**only** as a `devDependency` to provide a DOM environment for the
|
|
200
|
+
client-side test suites (`island.test.ts`, `client-router.test.ts`,
|
|
201
|
+
...); it is never imported by `src/`, never referenced by either vite
|
|
202
|
+
build config, and never shipped in the published bundle (`files`
|
|
203
|
+
contains only `dist/lib`). See
|
|
204
|
+
`test/happy-dom-optional.test.ts` for the guard that enforces this.
|
|
199
205
|
- **`raw()` now supports server rendering** — added
|
|
200
206
|
`ELUR_RENDER_PROTOCOL.renderServer` to `raw()` so it works with the
|
|
201
207
|
core's DOM-free SSR (previously relied on the happy-dom fallback).
|