@elurjs/kit 2.6.0-beta.0 → 2.6.1
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 +28 -11
- package/README.md +22 -5
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,21 +5,38 @@ All notable changes to Elur 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.6.1]
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- `peerDependencies`: `@elurjs/core` now requires `^4.0.5` — drops the Elur 3
|
|
13
|
+
range so the package always resolves the v4 engine, which includes
|
|
14
|
+
duplicate-instance detection. `@elurjs/vite-plugin-elur` peer raised to
|
|
15
|
+
`^2.2.1` (the release that injects `resolve.dedupe: ["@elurjs/core"]`).
|
|
16
|
+
Projects still on Elur 3 should stay on `2.5.x`.
|
|
17
|
+
|
|
18
|
+
## [2.6.0]
|
|
19
|
+
|
|
20
|
+
Stable promotion of the `2.6.0-beta.x` channel. Compatible with
|
|
21
|
+
`@elurjs/core@^4.0.0` (next-2 engine by default) in addition to the
|
|
22
|
+
3.x line; full 575/575 suite verified against the published stable
|
|
23
|
+
stack.
|
|
24
|
+
|
|
8
25
|
## [2.6.0-beta.0]
|
|
9
26
|
|
|
10
|
-
|
|
11
|
-
(
|
|
12
|
-
(emit gating + writers
|
|
13
|
-
|
|
27
|
+
Beta channel prerelease aligned with `@elurjs/core@3.7.0-beta.0`
|
|
28
|
+
(`next-2` engine by default) and `@elurjs/vite-plugin-elur@2.2.0-beta.0`
|
|
29
|
+
(emit gating + specialized writers). No functional changes in Kit:
|
|
30
|
+
all next-gen router and zero-JS features already shipped in 2.5.x.
|
|
14
31
|
|
|
15
32
|
### Changed
|
|
16
33
|
|
|
17
|
-
- **Peer ranges
|
|
18
|
-
`^3.6.2 || ^3.7.0-beta.0`
|
|
19
|
-
`^2.1.0 || ^2.2.0-beta.0`,
|
|
20
|
-
|
|
21
|
-
- **Lockfile
|
|
22
|
-
repo (
|
|
34
|
+
- **Peer ranges widened** — `@elurjs/core` now accepts
|
|
35
|
+
`^3.6.2 || ^3.7.0-beta.0` and `@elurjs/vite-plugin-elur` accepts
|
|
36
|
+
`^2.1.0 || ^2.2.0-beta.0`, allowing the full beta stack to install
|
|
37
|
+
without peer dependency warnings.
|
|
38
|
+
- **Lockfile migrated to `bun.lock`** — `package-lock.json` removed
|
|
39
|
+
from the repo (the workspace uses bun).
|
|
23
40
|
|
|
24
41
|
## [2.5.1]
|
|
25
42
|
|
|
@@ -721,7 +738,7 @@ unchanged without touching their config.
|
|
|
721
738
|
- **RequestContext tests** — `test/request-context.test.ts` (17 tests) verifies per-request state: `params`, `locals` isolation, `cookies` (read/write), `signal`, `requestId` uniqueness, `platform`, `response` state, and `applyToResponse()` merging.
|
|
722
739
|
- **`bun audit`** — zero vulnerabilities after lockfile cleanup (A-24).
|
|
723
740
|
- **`publint`** — `All good!` after splitting `types` conditions into `import`/`require` and adding `.d.cts` declaration copies.
|
|
724
|
-
- **
|
|
741
|
+
- **Documented pending items** — `docs/nix-js-kit/pendientes-infraestructura.md` lists the items requiring external infrastructure (Playwright E2E, CI matrix, Provenance/SBOM, `arethetypeswrong`, examples, Lighthouse).
|
|
725
742
|
|
|
726
743
|
### Changed — Phase 13
|
|
727
744
|
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@elurjs/kit)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
> Full-stack framework for Elur — file-based routing, SSG, SSR, ISR, streaming, islands, actions, content collections, cache adapters, and SPA-like navigation. Zero extra runtime dependencies on the client: Elur stays at ~
|
|
6
|
+
> Full-stack framework for Elur — file-based routing, SSG, SSR, ISR, streaming, islands, actions, content collections, cache adapters, and SPA-like navigation. Zero extra runtime dependencies on the client: Elur stays at ~21 KB. Optional build-time compiler lowers ``html` `` templates to imperative DOM code for ~25–44% faster renders.
|
|
7
7
|
|
|
8
8
|
## What is Elur Kit?
|
|
9
9
|
|
|
@@ -266,9 +266,11 @@ routes you want cached.
|
|
|
266
266
|
- Behind a reverse proxy, make sure buffering and gzip buffering are disabled
|
|
267
267
|
for streamed routes (the `X-Accel-Buffering: no` header covers nginx).
|
|
268
268
|
|
|
269
|
-
## What's new in v2.5
|
|
269
|
+
## What's new in v2.5 / v2.6
|
|
270
270
|
|
|
271
|
-
**
|
|
271
|
+
**v2.6:** stable release line on top of the v2.5 feature set — `@elurjs/core` peer widened to `^3.6.2 || ^3.7.0-beta.0 || ^4.0.0` (full Elur 4 support).
|
|
272
|
+
|
|
273
|
+
**v2.5: 0% JavaScript by default + next-generation router.**
|
|
272
274
|
|
|
273
275
|
- **Per-page JS gating** — the document shell scans the rendered body
|
|
274
276
|
for `data-elur-island` markers: pages without islands ship **0 KB of
|
|
@@ -561,6 +563,7 @@ receive the full transform pipeline.
|
|
|
561
563
|
| v2.4.3 | Client-only islands (`directive: "only"`, `options: { ssr: false, fallback }`), `isSSR()` export, SSR error wrapping ✅ |
|
|
562
564
|
| v2.4.4 | Fix: `"only"` directive now hydrates immediately like `"load"`. Fix: islands without SSR DOM use fresh `_render` mount instead of `hydrateTemplate` ✅ |
|
|
563
565
|
| v2.5 | 0% JS por defecto (gating por página + split entry/router + `js:"legacy"`), router de nueva generación (eventos de ciclo de vida, `data-elur-persist`, LRU+network-aware prefetch, morph opcional, speculation rules, loading indicator), fix head/payload del render endpoint en prod, `load` real ✅ |
|
|
566
|
+
| v2.6 | Línea estable sobre el set de v2.5: peer de `@elurjs/core` ampliado a `^3.6.2 \|\| ^3.7.0-beta.0 \|\| ^4.0.0` (soporte completo de Elur 4) ✅ |
|
|
564
567
|
|
|
565
568
|
## API
|
|
566
569
|
|
|
@@ -983,8 +986,22 @@ elur-kit build # build the client bundle and any static files
|
|
|
983
986
|
elur-kit start # SSR server on http://127.0.0.1:3000
|
|
984
987
|
```
|
|
985
988
|
|
|
986
|
-
You can also
|
|
987
|
-
|
|
989
|
+
You can also embed SSR in a custom Node app. The unified Web handler is the
|
|
990
|
+
current entry point — `createSsrServer` remains for compatibility but is
|
|
991
|
+
deprecated (v2.5):
|
|
992
|
+
|
|
993
|
+
```ts
|
|
994
|
+
import { createWebHandler } from "@elurjs/kit";
|
|
995
|
+
|
|
996
|
+
const handler = createWebHandler(routes, actions, {
|
|
997
|
+
staticRoot: "./dist",
|
|
998
|
+
cacheDir: "./.cache",
|
|
999
|
+
clientEntry: "/_elur/entry-client.js",
|
|
1000
|
+
});
|
|
1001
|
+
const response = await handler(new Request("https://example.com/blog"));
|
|
1002
|
+
```
|
|
1003
|
+
|
|
1004
|
+
Legacy API:
|
|
988
1005
|
|
|
989
1006
|
```ts
|
|
990
1007
|
import { createSsrServer } from "@elurjs/kit";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elurjs/kit",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Full-stack framework for Elur — file-based routing, SSG and islands.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Deiver Vasquez",
|
|
@@ -274,8 +274,8 @@
|
|
|
274
274
|
"tsx": "^4.23.12"
|
|
275
275
|
},
|
|
276
276
|
"peerDependencies": {
|
|
277
|
-
"@elurjs/core": "^
|
|
278
|
-
"@elurjs/vite-plugin-elur": "^2.
|
|
277
|
+
"@elurjs/core": "^4.0.5",
|
|
278
|
+
"@elurjs/vite-plugin-elur": "^2.2.1",
|
|
279
279
|
"marked": "^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
280
280
|
"sharp": "^0.33.0 || ^0.34.0 || ^0.35.0",
|
|
281
281
|
"vite": "^7.0.0 || ^8.0.0",
|
|
@@ -297,8 +297,8 @@
|
|
|
297
297
|
},
|
|
298
298
|
"devDependencies": {
|
|
299
299
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
300
|
-
"@elurjs/core": "^
|
|
301
|
-
"@elurjs/vite-plugin-elur": "^2.2.
|
|
300
|
+
"@elurjs/core": "^4.0.5",
|
|
301
|
+
"@elurjs/vite-plugin-elur": "^2.2.1",
|
|
302
302
|
"@playwright/test": "^1.62.1",
|
|
303
303
|
"@types/node": "^26.5.0",
|
|
304
304
|
"happy-dom": "^20.11.6",
|
|
@@ -307,4 +307,4 @@
|
|
|
307
307
|
"typescript": "~7.0.2",
|
|
308
308
|
"vite": "^8.2.1"
|
|
309
309
|
}
|
|
310
|
-
}
|
|
310
|
+
}
|