dinou 9.3.0 → 10.0.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 +196 -0
- package/README.md +157 -132
- package/dinou/adapters/bun.js +34 -5
- package/dinou/adapters/cloudflare.js +110 -17
- package/dinou/adapters/deno.js +46 -8
- package/dinou/adapters/netlify.js +86 -50
- package/dinou/adapters/node.js +8 -0
- package/dinou/assets.d.ts +32 -5
- package/dinou/bun/build.js +190 -106
- package/dinou/cli.js +992 -532
- package/dinou/cloudflare/build.js +187 -106
- package/dinou/compiled/autoprefixer/index.js +509 -517
- package/dinou/compiled/babel-core/index.js +738 -716
- package/dinou/compiled/babel-generator/index.js +341 -299
- package/dinou/compiled/babel-loader/index.js +766 -744
- package/dinou/compiled/babel-parser/index.js +2 -2
- package/dinou/compiled/babel-plugin-react-compiler/index.js +178 -178
- package/dinou/compiled/babel-plugin-syntax-import-meta/index.js +4 -4
- package/dinou/compiled/babel-preset-react/index.js +752 -730
- package/dinou/compiled/babel-preset-typescript/index.js +738 -716
- package/dinou/compiled/babel-traverse/index.js +463 -433
- package/dinou/compiled/babel-types/index.js +176 -176
- package/dinou/compiled/chokidar/index.js +4 -4
- package/dinou/compiled/commander/index.js +15 -15
- package/dinou/compiled/copy-webpack-plugin/index.js +433 -425
- package/dinou/compiled/css-loader/index.js +289 -289
- package/dinou/compiled/css-loader/runtime/api.js +85 -0
- package/dinou/compiled/css-loader/runtime/getUrl.js +26 -0
- package/dinou/compiled/css-loader/runtime/noSourceMaps.js +5 -0
- package/dinou/compiled/css-loader/runtime/package.json +3 -0
- package/dinou/compiled/css-loader/runtime/sourceMaps.js +16 -0
- package/dinou/compiled/fast-glob/index.js +5810 -0
- package/dinou/compiled/generic-names/index.js +16 -16
- package/dinou/compiled/mini-css-extract-plugin/{chunk-YYEJWYXE.js → chunk-R6DP5ZYM.js} +36 -36
- package/dinou/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js +253 -0
- package/dinou/compiled/mini-css-extract-plugin/hmr/normalize-url.js +39 -0
- package/dinou/compiled/mini-css-extract-plugin/hmr/package.json +3 -0
- package/dinou/compiled/mini-css-extract-plugin/index.js +1 -1
- package/dinou/compiled/mini-css-extract-plugin/loader.js +5 -5
- package/dinou/compiled/postcss/index.js +83 -83
- package/dinou/compiled/postcss-import/index.js +147 -117
- package/dinou/compiled/postcss-modules/index.js +216 -216
- package/dinou/compiled/resolve/index.js +1224 -0
- package/dinou/compiled/rollup-plugin-babel/index.js +753 -731
- package/dinou/compiled/rollup-plugin-commonjs/index.js +43 -38
- package/dinou/compiled/rollup-plugin-delete/index.js +615 -253
- package/dinou/compiled/rollup-plugin-json/index.js +22 -18
- package/dinou/compiled/rollup-plugin-node-resolve/index.js +130 -100
- package/dinou/compiled/rollup-plugin-postcss/index.js +3299 -3277
- package/dinou/compiled/rollup-plugin-replace/index.js +34 -29
- package/dinou/compiled/tailwindcss-postcss/index.js +214 -211
- package/dinou/compiled/vendors-manifest.json +59 -83
- package/dinou/core/asset-extensions.js +482 -33
- package/dinou/core/bailout-proxy.js +21 -2
- package/dinou/core/build-static-pages.js +523 -371
- package/dinou/core/builtin-asset-extensions.js +63 -0
- package/dinou/core/cache-revalidate.js +449 -256
- package/dinou/core/cache-slot.js +289 -79
- package/dinou/core/client-webpack.jsx +470 -39
- package/dinou/core/client.jsx +402 -39
- package/dinou/core/config.js +3 -0
- package/dinou/core/copy-static-dirs.js +98 -0
- package/dinou/core/createScopedName.js +22 -4
- package/dinou/core/dinou-paths.js +1 -1
- package/dinou/core/discover-layouts.js +200 -0
- package/dinou/core/edge-ssr.js +1 -1
- package/dinou/core/ensure-vendor-mode.js +78 -19
- package/dinou/core/env.js +544 -0
- package/dinou/core/export-static.js +41 -9
- package/dinou/core/generate-route-types.js +989 -95
- package/dinou/core/generate-static-rsc.js +5 -6
- package/dinou/core/generate-static.js +45 -6
- package/dinou/core/get-abs-path-with-ext.js +217 -75
- package/dinou/core/get-asset-from-manifest.js +19 -8
- package/dinou/core/get-error-jsx.js +4 -5
- package/dinou/core/get-file-path-and-dynamic-params.js +561 -338
- package/dinou/core/get-jsx.js +220 -53
- package/dinou/core/handler.js +1647 -466
- package/dinou/core/import-module.js +7 -0
- package/dinou/core/layout-functions.js +72 -13
- package/dinou/core/link.jsx +34 -6
- package/dinou/core/load-dinou-config.js +520 -89
- package/dinou/core/manifest-provider.js +4 -14
- package/dinou/core/navigation-utils.js +141 -3
- package/dinou/core/navigation.js +134 -50
- package/dinou/core/node-middleware-runner.js +165 -0
- package/dinou/core/postcss-pipeline.js +236 -0
- package/dinou/core/ppr-context.js +114 -22
- package/dinou/core/ppr-runtime.js +391 -127
- package/dinou/core/redirect.jsx +1 -1
- package/dinou/core/render-jsx-to-client-jsx.js +216 -48
- package/dinou/core/request-context.js +59 -3
- package/dinou/core/resolve-contextual-dinou.js +523 -0
- package/dinou/core/resolve-setup-files.js +85 -27
- package/dinou/core/revalidating.js +10 -2
- package/dinou/core/route-generator.js +6 -2
- package/dinou/core/rsc-renderer.js +4 -1
- package/dinou/core/run-ssg.js +6 -0
- package/dinou/core/runtime-env.js +265 -0
- package/dinou/core/server-css-modules-plugin.js +155 -0
- package/dinou/core/server-function-proxy-webpack.js +27 -2
- package/dinou/core/server-function-proxy.js +27 -2
- package/dinou/core/slot.js +47 -2
- package/dinou/core/static-assets.js +503 -0
- package/dinou/core/storage-adapter.js +452 -24
- package/dinou/core/transform-server-functions.js +272 -24
- package/dinou/core/tsconfig-aliases.js +964 -0
- package/dinou/core/uneject.js +640 -0
- package/dinou/core/url-resolver.js +1 -1
- package/dinou/core/vfs.js +11 -2
- package/dinou/css.d.ts +4 -1
- package/dinou/deno/build.js +205 -153
- package/dinou/deno/seed-kv.js +4 -0
- package/dinou/env.d.ts +22 -2
- package/dinou/esbuild/build.js +40 -50
- package/dinou/esbuild/dev.js +33 -7
- package/dinou/esbuild/helpers-esbuild/get-config-esbuild-prod.js +41 -16
- package/dinou/esbuild/helpers-esbuild/get-config-esbuild.js +51 -49
- package/dinou/esbuild/helpers-esbuild/get-esbuild-entries.js +73 -60
- package/dinou/esbuild/helpers-esbuild/swc-disk-cache.js +35 -16
- package/dinou/esbuild/helpers-esbuild/write.js +13 -3
- package/dinou/esbuild/plugins-esbuild/assets-plugin.js +100 -238
- package/dinou/esbuild/plugins-esbuild/babel-react-compiler-plugin.js +73 -29
- package/dinou/esbuild/plugins-esbuild/css-processor-plugin.js +283 -91
- package/dinou/esbuild/plugins-esbuild/manifest-generator-plugin.js +3 -5
- package/dinou/esbuild/plugins-esbuild/react-client-manifest-plugin.js +9 -3
- package/dinou/esbuild/plugins-esbuild/server-functions-plugin.js +4 -3
- package/dinou/esbuild/plugins-esbuild/stable-chunk-names-and-maps-plugin.js +10 -1
- package/dinou/esbuild/plugins-postcss/postcss-extract-plugin.js +84 -21
- package/dinou/esbuild/react-refresh/esm-hmr/client.js +31 -10
- package/dinou/esbuild/react-refresh/esm-hmr-plugin.js +48 -18
- package/dinou/esbuild/react-refresh/is-react-refresh-boundary.js +9 -1
- package/dinou/esbuild/react-refresh/react-refresh-runtime.js +13 -7
- package/dinou/index.d.ts +1028 -88
- package/dinou/node/build.js +138 -74
- package/dinou/node/bundle-dual-engine.js +393 -131
- package/dinou/node/dev.js +1005 -275
- package/dinou/package.json +11 -34
- package/dinou/rollup/postcss.config.js +3 -4
- package/dinou/rollup/react-refresh/esm-hmr/client.js +31 -10
- package/dinou/rollup/react-refresh/react-refresh-wrap-modules.js +16 -13
- package/dinou/rollup/react-refresh/rollup-plugin-esm-hmr.js +53 -7
- package/dinou/rollup/rollup-plugins/dinou-asset-plugin.js +58 -20
- package/dinou/rollup/rollup-plugins/manifest-generator-plugin.js +16 -7
- package/dinou/rollup/rollup-plugins/rollup-plugin-react-client-manifest.js +118 -42
- package/dinou/rollup/rollup-plugins/rollup-plugin-server-functions.js +48 -36
- package/dinou/rollup/rollup.config.js +174 -101
- package/dinou/scripts/build-vendors.js +123 -33
- package/dinou/server.d.ts +126 -15
- package/dinou/webpack/helpers/get-webpack-entries.js +87 -41
- package/dinou/webpack/helpers/patch-webpack-internals.js +93 -1
- package/dinou/webpack/loaders/server-functions-loader.js +1 -1
- package/dinou/webpack/plugins/manifest-generator-plugin.js +27 -7
- package/dinou/webpack/plugins/server-functions-plugin.js +39 -12
- package/dinou/webpack/plugins/webpack-memory-plugin.js +25 -12
- package/dinou/webpack/postcss.config.js +3 -4
- package/dinou/webpack/webpack.config.js +408 -132
- package/eject.js +6 -224
- package/package.json +7 -9
- package/dinou/compiled/cross-env/index.js +0 -661
- package/dinou/compiled/dotenv/index.js +0 -375
- package/dinou/compiled/esbuild-copy-static-files/index.js +0 -63
- package/dinou/compiled/esbuild-tsconfig-paths/index.js +0 -1314
- package/dinou/compiled/rollup-plugin-copy/index.js +0 -12066
- package/dinou/compiled/rollup-plugin-tsconfig-paths/index.js +0 -569
- package/dinou/compiled/tsconfig-paths-webpack-plugin/index.js +0 -3956
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,202 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
7
|
|
|
8
|
+
## [10.0.1] - 2026-11-21
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Static Export Client RSC Stream-Abort Race in Firefox (`dinou/core/client.jsx`, `dinou/core/client-webpack.jsx`)**: Buffered static-export `page.rsc` and `layout.rsc` responses into an in-memory `ArrayBuffer` (`bufferStaticExportResponse`) before handing them to React Flight's `createFromFetch`, preventing Firefox from throwing an unhandled `TypeError: Error in input stream` when a non-RSC static HTML fallback triggers `window.location.replace()` while a parallel `.rsc` response stream (such as `/layout.rsc`) is still in flight; also added `isStaticExportUnloading()` guards to `hydrateRoot`'s `onUncaughtError` and `onCaughtError` handlers alongside `onRecoverableError` (without affecting progressive streaming in server/edge modes).
|
|
12
|
+
|
|
13
|
+
## [10.0.0] - 2026-11-21
|
|
14
|
+
|
|
15
|
+
> **Upgrading from v9?** Read the complete [Migration Guide from v9 to v10](https://dinou.dev/docs/migration/v9-to-v10) for step-by-step before/after examples and a verification checklist.
|
|
16
|
+
|
|
17
|
+
### Breaking Changes
|
|
18
|
+
- **Underscore (`_folder`) Directories Are Now Completely Excluded**: Any `_`-prefixed directory subtree inside `src/` (e.g. `src/_components/`, `src/_lib/`, `src/_plugins/`) is now excluded from routing, bundlers, manifests, VFS, dev watchers, route types, and Server Functions (`403`). Importing from `src/_*` in active code now fails at compile time (`checkForbiddenUnderscoreImport`). Rename active helper folders to clean names without a leading underscore (any folder without `page.*` is already ignored by Dinou's router); `_`-prefixed *files* (e.g. `src/blog/_helper.ts`) remain valid.
|
|
19
|
+
- **Per-Segment `ppr` Resolution (No Parent-to-Child Inheritance)**: Exporting `export const ppr = true` in a parent `layout_functions.ts` no longer cascades to child layouts or pages. Enable `ppr: true` globally in `dinou.config.ts` or declare `export const ppr = true` explicitly on each child segment that needs PPR.
|
|
20
|
+
- **Deployment & Build Output Paths Changed**:
|
|
21
|
+
- **Cloudflare Workers (`wrangler.toml`)**: Update `[assets] directory` from `".dinou/dist3"` to `".dinou/cloudflare/assets"`.
|
|
22
|
+
- **Netlify Functions v2 (`netlify.toml`)**: Point `[functions] directory` to `".dinou/netlify/functions"` with `command = "npm run build:netlify"`, `publish = ".dinou/dist3"`, and `included_files = [".dinou/dist2/**"]` (or `".dinou/dist1/server"` if using the dist1 server entrypoint).
|
|
23
|
+
- **Internal Manifests**: `.dinou/react_client_manifest` and `.dinou/server_functions_manifest` have been removed and all internal manifests (including `manifest.json`) moved into `.dinou/dist1`.
|
|
24
|
+
- **Removed Legacy `favicons/` Directory**: Root `favicons/` copying and watching have been removed. Move any remaining favicon files into `public/` (which also now supports PWA `public/manifest.json` at the domain root).
|
|
25
|
+
- **`plugin.onRequest` Skipped During Build-Time SSG**: `plugin.onRequest` and `plugin.onRequestContext` no longer run during build-time static generation (`isSSG === true`), executing only on live runtime HTTP requests. Statically pre-rendered Server Components that previously relied on context properties set by `onRequest` should add a safe fallback (e.g. deriving state from `getContext().req?.path`).
|
|
26
|
+
- **Strict Client Isolation for Unprefixed `process.env.*`**: Unprefixed `process.env.*` accesses inside `"use client"` components now strictly evaluate to `undefined` during both SSR/SSG and browser execution. Prefix intentional build-time public client variables with `DINOU_PUBLIC_*` or pass runtime values from a Server Component via `getContext().env`.
|
|
27
|
+
- **Strict Type-Safe Routing & Removed Transitive Dependencies**:
|
|
28
|
+
- `<Link>` and `useRouter().push` / `replace` now validate routes against `.dinou/types/routes.d.ts` (type dynamic external/callback strings as `DinouLinkTarget`), and received `[[...slug]]` segment `params` are now strictly `string[]`.
|
|
29
|
+
- Removed 7 obsolete legacy dependencies (`dotenv`, `cross-env`, `@esbuild-plugins/tsconfig-paths`, `rollup-plugin-tsconfig-paths`, `tsconfig-paths-webpack-plugin`, `esbuild-copy-static-files`, `rollup-plugin-copy`). Install `cross-env` directly in `devDependencies` if custom project scripts invoke it.
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
- **Global Default `allowISG` Configuration in `dinou.config.*` (`index.d.ts`, `layout-functions.js`, `handler.js`)**: Added `allowISG?: boolean` (default: `true`) to `defineConfig(...)` in `dinou.config.*`. When set to `allowISG: false`, all dynamic route segments (`layout` and `page`) across the project default to `allowISG = false` (strict SSG-only mode, returning `404` for any dynamic parameter not pre-rendered at build time) unless a segment explicitly opts in with `allowISG = true` in its own `page_functions.ts` or `layout_functions.ts`.
|
|
33
|
+
- **End-to-End Hierarchical & Horizontal Type-Safe Routing (`index.d.ts`, `server.d.ts`, `cli.js`, `generate-route-types.js`, `link.jsx`, `navigation.js`, `navigation-utils.js`, `node/dev.js`)**:
|
|
34
|
+
- **Expanded Route Topology & `dinou typegen` CLI**: Added `npx dinou typegen` (plus automatic regeneration in `dev` watchers and production builds across all bundlers/runtimes) to generate `.dinou/types/routes.d.ts` with full parameter and slot maps (`DinouNavigableParamsMap`, `DinouRouteParamsMap`, `DinouLayoutParamsMap`, `DinouLayoutSlotsMap`, `DinouSlotParamsMap`, `DinouErrorParamsMap`) covering pages, intermediate layouts, parallel `@slots` (including slots inside `(group)` folders and nested sub-routes inside `@slot` trees), `error.tsx`, and `not_found.tsx` boundaries.
|
|
35
|
+
- **Typed Segment Contracts & `dinou/server` Declarations**: Added generic helper types `PageProps`, `LayoutProps` (with automatic sibling `@slot` `ReactNode` prop inference via `LayoutSlots`), `SlotProps`, `ErrorProps`, `NotFoundProps`, `PageFunctions`, `LayoutFunctions`, `RouteParams`, `LayoutParams`, `SlotParams`, and `ErrorParams` in `index.d.ts`, and expanded `server.d.ts` so `dinou/server` re-exports all core routing and segment types alongside `DinouCacheSlot`, `getContext`, `noDynamic`, revalidation helpers, and storage adapters.
|
|
36
|
+
- **Dynamic `params` Interpolation & Strict Relative `from` Navigation**: `<Link>` and `useRouter().push` / `replace` now accept dynamic route patterns (`[param]`, `[[optional]]`, `[...catchAll]`, `[[...optionalCatchAll]]`) with compile-time validated `params` objects and automatic URL-segment encoding (`interpolateRouteParams`), as well as strict relative targets (`"sub"`, `"./sub"`, `"../other"`) validated at compile time and resolved at runtime via `<Link from="..." to="..." />` and `router.push("...", { from: "..." })`.
|
|
37
|
+
- **Zero-Boilerplate Route-Contextual `"./dinou"` Virtual Modules (`generate-route-types.js`, `resolve-contextual-dinou.js`, `node/dev.js`, `esbuild/*`, `rollup/rollup.config.js`, `webpack/webpack.config.js`, `node/bundle-dual-engine.js`, `bun/build.js`, `deno/build.js`, `cloudflare/build.js`)**:
|
|
38
|
+
- `generateRouteTypes` now emits `.dinou/routes/<relDir>/dinou.{js,d.ts}` for every route and `@slot` directory in `src/`. Paired with TypeScript `rootDirs: ["src", ".dinou/routes"]` and built-in bundler resolver plugins (`esbuildContextualDinouPlugin`, `rollupContextualDinouPlugin`, `webpackContextualDinouPlugin`), route files can `import { Link, useRouter, ROUTE, type PageProps, type LayoutProps, type SlotProps, type ErrorProps, type NotFoundProps, type PageFunctions, type LayoutFunctions, type RouteParams } from "./dinou"` (or `"../dinou"` from a nested helper subfolder such as `components/`) with all types and relative navigation (`from={ROUTE}`) pre-bound to the enclosing route directory without manual route string literals (while deferring cleanly to any user-authored `dinou.*` file in `src/`).
|
|
39
|
+
- **`DinouConfig.reactCompiler` Option**: Added `reactCompiler?: boolean` (default `true`) to `defineConfig()` / `DinouConfig` (`dinou.config.ts`) to optionally toggle `babel-plugin-react-compiler` globally across Esbuild, Rollup, and Webpack production builds.
|
|
40
|
+
- **PWA `public/manifest.json` Support**: Moving Dinou's internal chunk manifest to `.dinou/dist1/manifest.json` frees `/manifest.json` at the domain root for standard Progressive Web App manifests (`public/manifest.json`) across all bundlers, runtimes, Cloudflare Workers `env.ASSETS`, and `dinou export-static`.
|
|
41
|
+
- **Standalone Static Export SPA Navigation (`dinou export-static`)**:
|
|
42
|
+
- Added `shouldExportDist2File` and `injectStaticExportFlag` so `dinou export-static` exports strictly `index.html` (with `window.__DINOU_STATIC_EXPORT__ = true` injected), `page.rsc`, and `layout.rsc` from `.dinou/dist2` into `out/`, excluding all internal ISR/PPR/Slot metadata JSONs (`metadata.json`, `layout.metadata.json`, `shell.*`, `rsc.rsc`, `slots/*`, `status-manifest.json`, `*._old.*`).
|
|
43
|
+
- Updated `dinou/core/client.jsx` and `dinou/core/client-webpack.jsx` so standalone static sites hydrate and perform full client-side `<Link>` SPA navigation & hover prefetching directly against `/<route>/page.rsc` and `/<layout>/layout.rsc` without requiring a Dinou server, falling back cleanly to native browser navigation if a target path has no `.rsc` payload.
|
|
44
|
+
- **Shared Static Asset Security, Caching & MIME Engine (`dinou/core/static-assets.js`)**:
|
|
45
|
+
- Added safe `decodeURIComponent` normalization (supporting filenames with spaces such as `/docs/brochure%202026.pdf`), strict `path.resolve` confinement against directory traversal (`%2e%2e`, backslashes), and hidden dotfile blocking (`/.env`, `/.git/*`, `/.DS_Store`) while explicitly allowing `/.well-known/*` (including extensionless `/.well-known/apple-app-site-association` served as `application/json; charset=utf-8`).
|
|
46
|
+
- Added smart `Cache-Control` differentiation: `public, max-age=31536000, immutable` for content-hashed bundler chunks and `/assets/*`, and `public, max-age=0, must-revalidate` for unhashed `public/*` assets (`favicon.ico`, `robots.txt`, `sitemap.xml`, `manifest.json`, `site.webmanifest`, `styles.css`, etc.).
|
|
47
|
+
- Expanded static MIME dictionary across Node.js, Bun, Deno, and Cloudflare Workers (`application/xml`, `application/manifest+json`, `application/pdf`, `image/avif`, `image/gif`, `font/ttf`, `font/otf`, `application/wasm`, `video/mp4`, `video/webm`, `audio/mpeg`, `audio/ogg`, `audio/wav`, etc.).
|
|
48
|
+
- **Universal CSS Modules in Server Components & SSR**: Added `dinou/core/server-css-modules-plugin.js`, enabling `import styles from "./card.module.css"` natively across React Server Components (RSC) and Client Component SSR in `dinou dev`, `dinou build` (`Node.js`, `Bun`, `Deno`, `Cloudflare Workers`), and `dinou export-static` with zero hydration mismatches.
|
|
49
|
+
- **Unified PostCSS & CSS `url(...)` Asset Pipeline**: Added `dinou/core/postcss-pipeline.js` (`createBasePostCssPlugins`, `createPostCssUrlAssetsPlugin`) across Esbuild, Rollup, and Webpack—automatically resolving relative, `node_modules`, and `tsconfig.json` aliased `url(...)` assets to `/assets/<hash><ext>` while preserving root-relative `public/` URLs (`url("/hero.svg")`), `data:`, external URLs, and SVG `#fragment` identifiers.
|
|
50
|
+
- **Font Asset Support**: Added `.woff`, `.woff2`, `.ttf`, `.otf`, and `.eot` extensions to `dinou/core/asset-extensions.js`, `dinou/assets.d.ts` (`dinou/env`), and Edge/Bun/Deno server loaders.
|
|
51
|
+
- **Zero-Reload CSS & RSC HMR in Webpack Dev Mode**: Added WebSocket `dinou-hmr` handling (`style-update` and `rsc-update`) to `dinou/core/client-webpack.jsx`.
|
|
52
|
+
- **Custom `assetExtensions` in `dinou.config.*` with Auto-Generated TypeScript Declarations**: Added `assetExtensions?: string[]` to `DinouConfig` (e.g. `defineConfig({ assetExtensions: ["glb", "gltf", "hdr", "wasm"] })`), enabling custom binary/3D/media asset imports across Esbuild, Rollup, Webpack, and all 5 runtimes without ejecting, while `dinou typegen` automatically emits ambient `declare module "*.<ext>"` declarations in `.dinou/types/routes.d.ts`.
|
|
53
|
+
- **RFC 9110 HTTP Byte-Range (`206 Partial Content`) Media Streaming**: Added `parseHttpByteRange` and `Accept-Ranges: bytes` / `206 Partial Content` / `416 Range Not Satisfiable` support across `dinou dev` and standalone Node.js, Bun, and Deno servers for native `<video>` and `<audio>` timeline scrubbing and Safari playback, alongside built-in MIME types for `.avi`, `.mkv`, `.mjpeg`, `.mjpg`, `.opus`, `.glb`, `.gltf`, and `.hdr`.
|
|
54
|
+
- **`DINOU_PUBLIC_*` Client Environment Variables & Standard `.env*` Hierarchy**:
|
|
55
|
+
- Added `dinou/core/env.js` and `dinou/core/runtime-env.js` supporting the full `.env.<NODE_ENV>.local` → `.env.local` (skipped in `test`) → `.env.<NODE_ENV>` → `.env` precedence hierarchy (never overriding real OS/CLI shell variables) across all bundlers (`esbuild`, `rollup`, `webpack`), CLI commands (`dev`, `build`, `start`, `export-static`, `typegen`), and standalone Node.js, Bun, and Deno servers.
|
|
56
|
+
- Added compile-time `DINOU_PUBLIC_*` inlining across Esbuild, Rollup, Webpack, and Dual-Engine SSR (`Pass B`), plus live `.env*` hot-reloading in `dinou dev` without restarting the dev server.
|
|
57
|
+
- Automatic TypeScript IntelliSense augmentation for `NodeJS.ProcessEnv` in `.dinou/types/routes.d.ts` (emitting `.env*` and `.env.example` variable names without ever writing secret values) and `DinouEnv` interface for typed `getContext().env` bindings.
|
|
58
|
+
- **Unified TypeScript-Spec `tsconfig.json` & `jsconfig.json` Path Aliases Engine (`dinou/core/tsconfig-aliases.js`)**: Full support for multiple granular aliases (`@components/*`, `@server/*`, `@lib/*`, `@styles/*`, `@assets/*`), longest-prefix specificity sorting, exact single-file mappings, prefix/suffix wildcards, multi-target fallback arrays, recursive `"extends"` chains (including monorepo parent configs with `baseUrl`, TypeScript 5.0+ array `extends`, `node_modules` presets, and `${configDir}`), TypeScript ESM `.js` → `.ts`/`.tsx` extension substitution, `dinou.config.ts` aliased imports, and live hot-reloading of `tsconfig.json` / `jsconfig.json` in `dinou dev` across Esbuild, Rollup, and Webpack.
|
|
59
|
+
- **Ahead-of-Time (AOT) `dinou.config.*` Bundling Across All Runtimes & Serverless Targets**: `dinou.config.{ts,mjs,js,cjs}` and configured plugins are now statically compiled into production Node.js, Cloudflare Workers (`workerd`), Bun, Deno, standalone compiled binaries (`dist/server`), and `.dinou/dist1/server/` (`handler.js`, `netlify.js`) via `prepareDist1ServerEntries`, removing any runtime dependency on `esbuild` or raw `.ts` configuration files.
|
|
60
|
+
- **Live Hot-Reload for `dinou.config.*` & `dinou.setup.*` in `dinou dev`**: Editing root configuration or setup files now automatically reloads plugins, re-applies `configureServer` middlewares and listeners without duplicating event handlers, refreshes `setupFiles`, regenerates route types, and broadcasts a live client reload.
|
|
61
|
+
- **Normalized SPA-Safe `context.req.path` (`rawPath` & `isRscRequest`)**: `context.req.path` now normalizes internal `/____rsc_page____/*`, `/____rsc_layout____/*`, `/____rsc_payload____/*`, `/____rsc_payload_error____/*`, and `/____rsc_slot____/*` wire paths to their clean logical route pathname (e.g. `"/dashboard"`), exposing `context.req.rawPath` and `context.req.isRscRequest` on `RequestContextStore`.
|
|
62
|
+
- **Full `tsconfig.json` / `jsconfig.json` Alias & Extensionless Support in `setupFiles`**: `resolveSetupFiles` now resolves path aliases (`"@/polyfills"`), extensionless specifiers (`"./src/polyfills"`), and npm package subpaths across `plugin.setupFiles` and `config.setupFiles`.
|
|
63
|
+
- Pre-compiled `#fast-glob` and `#resolve` into `dinou/compiled/` (alongside `css-loader/runtime` —with normalized `./runtime/getUrl.js` resolution for CSS `url(...)` imports— and `mini-css-extract-plugin/hmr` CommonJS assets) and added automatic obsolete-directory pruning to `dinou/scripts/build-vendors.js`.
|
|
64
|
+
- **Dedicated AOT Dual-Bundle Netlify Functions v2 Output & CLI Commands**: Production builds (`dinou build`, `dinou build:node`, and new `dinou build:netlify[:esbuild|:rollup|:webpack]` commands) now emit a single-file, self-contained Netlify Functions v2 bundle at `.dinou/netlify/functions/ssr.mjs` (`config = { path: "/*", preferStatic: true }`), reducing `netlify.toml` `included_files` to `[".dinou/dist2/**"]` without bundling `node_modules/**` or `src/**`.
|
|
65
|
+
- **Transactional `dinou uneject [version]` Command & `"uneject"` Script**: Ejected projects can now revert back to `node_modules/dinou` in a single command (`npm run uneject` or `node dinou/cli.js uneject [version]`), automatically restoring `package.json` scripts, reinstalling `dinou` via the detected package manager (`npm`, `pnpm`, `yarn`, or `bun`) with automatic rollback if installation fails, and removing `./dinou`.
|
|
66
|
+
|
|
67
|
+
### Changed
|
|
68
|
+
- **Underscore (`_folder`) Directories Now Escape Routing, Bundlers, VFS & Server Functions Completely (`generate-route-types.js`, `resolve-contextual-dinou.js`, `route-generator.js`, `vfs.js`, `handler.js`, `esbuild/helpers-esbuild/get-esbuild-entries.js`, `esbuild/helpers-esbuild/swc-disk-cache.js`, `rollup/rollup-plugins/rollup-plugin-react-client-manifest.js`, `webpack/webpack.config.js`, `webpack/helpers/get-webpack-entries.js`, `node/dev.js`, `node/bundle-dual-engine.js`, `bun/build.js`, `deno/build.js`, `cloudflare/build.js`)**:
|
|
69
|
+
- **Full Directory Exclusion ("Parking / Archiving")**: Previously, `_`-prefixed directories in `src/` only opted out of URL routing while still being scanned by bundlers, manifests, and the VFS. Now, any `_`-prefixed directory subtree inside `src/` (`_*/**` and `**/_*/**`) is completely excluded from file-system routing, server `routeModules`, client and server function manifests (including `ReactServerWebpackPlugin` client reference discovery and runtime manifest ingestion), CSS and static asset extraction, SWC dev disk cache (`.dinou/swc/`), VFS snapshots, live dev watchers (including live `folder` ↔ `_folder` directory rename pruning), and production builds across all bundlers and runtimes (`esbuild`, `rollup`, `webpack`, Node, Bun, Deno, and Cloudflare)—while keeping `_`-prefixed *files* inside active directories (e.g., `src/blog/_helper.ts`) valid and rejecting crafted `POST /____server_function____` calls targeting `_`-prefixed directories in `src/` with `403 { error: "Forbidden access" }`.
|
|
70
|
+
- **Fallback Contextual `"./dinou"` Shims & Route Type Exclusion**: `dinou typegen` excludes `_`-prefixed directory subtrees from `.dinou/types/routes.d.ts` (so active `<Link>` references to escaped routes fail `tsc` immediately) while emitting permissive fallback `.dinou/routes/_.../dinou.{js,d.ts}` shims (`ROUTE: string`, dynamic segment parameter inference, and local sibling `@slot` prop inference) whenever an escaped subtree contains route files, omitting shims for non-route `_` folders, and pruning stale shims automatically on rename.
|
|
71
|
+
- **Didactic Compile-Time Bundler Guard (`checkForbiddenUnderscoreImport`)**: Wired into `esbuildContextualDinouPlugin`, `rollupContextualDinouPlugin`, and `webpackContextualDinouPlugin` so any active module in `src/` that imports from a `_`-prefixed directory inside `src/` (via relative specifier, `@/` or `~/` path alias, or `src/...`) fails immediately at dev/build time with an actionable error explaining that `_`-prefixed folders are ignored by Dinou's router and bundlers (and that active helper folders such as `src/components` do not require a leading `_`).
|
|
72
|
+
- **Per-Segment `ppr` Resolution Without Parent-to-Child Inheritance (`ppr-context.js`, `render-jsx-to-client-jsx.js`, `layout-functions.js`, `get-jsx.js`, `build-static-pages.js`, `generate-static.js`, `handler.js`, `ppr-runtime.js`, `cache-revalidate.js`)**:
|
|
73
|
+
- **No Cascading Inheritance Across Segments**: Removed implicit parent-to-child `ppr` inheritance from parent layouts to child layouts and pages. Each segment (`layout`, nested `layout`, or `page`) now resolves its `ppr` flag strictly from its own `layout_functions.ts` / `page_functions.ts`, falling back directly to the project-wide default in `dinou.config.*` (`ppr: false` by default, or `true` when enabled globally).
|
|
74
|
+
- **Independent Per-Segment PPR Execution Scopes**: Each layout root element and page root element is now tagged with its own `effectivePpr` boolean (`markLayoutRootElement`, `markPageRootElement`) and evaluated inside its own segment-scoped `AsyncLocalStorage` context (`runInLayoutSegment`, `runInPageSegment`). On mixed-PPR routes (e.g., a `ppr = true` parent layout wrapping a `ppr = false` nested layout or page, or vice versa), `<Suspense>` boundaries inside `ppr = false` segments resolve statically at build time without registering false-positive `ppr-hole-*` placeholders, and reading dynamic request APIs (`req.cookies`, `req.headers`, `req.query`, `revalidate = 0`) inside a `ppr = false` segment (even inside `<Suspense>`) properly triggers a full-route dynamic bailout.
|
|
75
|
+
- **Isolated Page Segment Rendering (`getJSX` with `{ segment: "page" }`)**: When rendering a standalone page RSC payload (`/____rsc_page____`), `getJSX` now skips traversing and executing parent layouts and `@slots`, avoiding redundant server work and preventing layout `<Suspense>` boundaries from shifting page PPR hole indices.
|
|
76
|
+
- **Coherent Per-Segment `allowISG` and `validateParams` Evaluation (`handler.js`, `layout-functions.js`)**:
|
|
77
|
+
- **Segment-Scoped Parameter Checks (`isLayoutSegmentBlocked`)**: Layout `allowISG` and `validateParams` now evaluate along the active layout chain (`getActiveLayoutChain`, respecting `no_layout` and `reset_layout`) using only the dynamic parameters accumulated up to that layout segment (`entry.dParams`) and checking `.dinou/dist2/${cleanLayoutKey}/layout.rsc` in production.
|
|
78
|
+
- **Static Layouts Ignore `allowISG = false`**: A static parent layout with no dynamic parameters of its own (`Object.keys(dParams).length === 0`) no longer blocks dynamic child pages when `allowISG = false` is set on the layout.
|
|
79
|
+
- **Preserving Child Page `allowISG = true` Under Valid Dynamic Layouts**: When a dynamic parent layout (e.g. `/team/[team]` with `allowISG = false`) has a valid, pre-rendered parameter (`team = "alpha"`), it no longer overwrites `allowISGValue = false` for child dynamic pages (`/team/alpha/posts/[postId]` with `allowISG = true`), allowing new child parameters (`post-2`) to be generated and cached on-demand via ISG.
|
|
80
|
+
- **Full `404` Consistency Across All Endpoints**: When any active layout segment rejects its dynamic parameter via `validateParams` or `allowISG = false`, Dinou now returns `404 Not Found` consistently across full HTML (`GET /route`), layout RSC (`GET /____rsc_layout____/route`), and page RSC (`GET /____rsc_page____/route`).
|
|
81
|
+
- **Physical Static Webroot Isolation (`.dinou/dist1`, `.dinou/dist3` & `.dinou/cloudflare/assets`)**:
|
|
82
|
+
- Isolated `.dinou/dist3` exclusively for publicly servable static assets (`public/*`, imported `/assets/*`, hashed client JS chunks, and `styles.css`). Consolidated compiled server bundles (`.dinou/dist1/server/handler.js`, `netlify.js`, `package.json`) and **all** internal bundler/RSC manifests (`manifest.json`, `react-client-manifest.json`, `server-functions-manifest.json`, and Webpack `react-ssr-manifest.json`) directly into `.dinou/dist1` across Esbuild, Rollup, and Webpack (eliminating `.dinou/react_client_manifest` and `.dinou/server_functions_manifest`, and using `.dinou/node-dev` for optional disk manifests in dev mode). Note: Netlify deployments should point `[functions] directory = ".dinou/netlify/functions"` (via `dinou build:netlify`), or `".dinou/dist1/server"` if using the dist1 fallback entrypoint.
|
|
83
|
+
- Isolated Cloudflare Workers static assets inside `.dinou/cloudflare/assets` (`[assets] directory = ".dinou/cloudflare/assets"` in `wrangler.toml`), keeping `.dinou/dist3` 100% untouched: public static files sit at `.dinou/cloudflare/assets/*` while internal `.dinou/dist2` SSG/ISR/PPR/Slot cache artifacts are isolated inside `.dinou/cloudflare/assets/__dinou_dist2/*` (returning `404` on direct external HTTP requests while read internally via `fetchCloudflareDist2Asset`).
|
|
84
|
+
- **Unified `public/` Directory (Removed Legacy `favicons/`)**: Standardized on `public/` at the project root as the single directory for unhashed static files across dev and production builds, removing legacy `favicons/` directory copying and watching.
|
|
85
|
+
- **Production CSS Minification Parity**: Standardized production `/styles.css` minification across Esbuild, Rollup, and Webpack via `esbuild.transformSync(..., { loader: "css", minify: true })`.
|
|
86
|
+
- **`plugin.onRequest` Build-Time SSG vs. Runtime Contract**: `plugin.onRequest` and `plugin.onRequestContext` no longer execute during build-time SSG (`platformContext.isSSG === true`), preventing auth redirects and request loggers from blocking static page generation while continuing to execute on every runtime HTTP request ahead of both dynamic routes and pre-rendered/cached SSG, ISR, and PPR routes.
|
|
87
|
+
- **Shared Node `configureServer` Middleware Runner (`dinou/core/node-middleware-runner.js`)**: Unified `dinou dev` and `dinou start` middleware execution with native support for synchronous, `async` Promise, and callback-async Connect/Express `(req, res, next)` middlewares (e.g. `cors`, `helmet`), `next(err)` error propagation, Socket.IO external listener hijacking, and per-plugin `configureServer` fault isolation.
|
|
88
|
+
- Replaced `cross-env` and `npx` shell command wrappers in `dinou/cli.js` with structured `spawnSync` step execution and direct `rollup` / `webpack-cli` JS binary resolution, enabling 100% Node-free execution in `build:node:pure:*` and `build:bun:pure:*` across Esbuild, Rollup, and Webpack.
|
|
89
|
+
- Removed 7 obsolete legacy packages (`dotenv`, `cross-env`, `@esbuild-plugins/tsconfig-paths`, `rollup-plugin-tsconfig-paths`, `tsconfig-paths-webpack-plugin`, `esbuild-copy-static-files`, `rollup-plugin-copy`) from `dependencies`, `#imports`, and `dinou/compiled/`, consolidating the active vendor catalog to 31 packages.
|
|
90
|
+
- **Selective `package.json` Script Rewriting on `dinou eject`**: `dinou eject` now only rewrites Dinou scripts that already existed in the user's `package.json` (plus adding `"build:vendors"` and `"uneject"` and removing `"eject"`), preserving custom scripts and concise `package.json` files without injecting ~150 unused script entries.
|
|
91
|
+
- **Friendly Already-Ejected Guard on `dinou eject`**: Running `dinou eject` inside an already-ejected workspace now exits cleanly with an informational message instead of throwing `ERR_MODULE_NOT_FOUND` or overwriting custom edits inside `./dinou`.
|
|
92
|
+
- **Multi-Root `build:vendors` Resolution**: `dinou/scripts/build-vendors.js` now resolves toolchain packages across `[projectRoot, dinouRoot, node_modules/dinou]`, allowing ejected projects to override dependencies in their root `package.json` and recompile `./dinou/compiled/` cleanly under `pnpm`, `npm`, `yarn`, and `bun`.
|
|
93
|
+
|
|
94
|
+
### Fixed
|
|
95
|
+
- **Un-awaited `Promise` Props Passed from Server Components or `getProps` to Client Components (`render-jsx-to-client-jsx.js`)**: Previously, passing an un-awaited `Promise` (or array of `Promise`s) as a prop from a Server Component (`Strategy 9`) or `getProps` (`Strategy 12`) to a `"use client"` component inside `<Suspense>` caused `asyncRenderJSXToClientJSX` to recursively `await` and unwrap the `Promise` into a plain object on the server, blocking TTFB and throwing `TypeError: An unsupported type was passed to use(): [object Object]` in the browser. `asyncRenderJSXToClientJSX` now detects thenables via `isThenable()` (while guarding against `react-server-dom-webpack` Client Reference Proxies) and preserves raw `Promise` instances untouched so React Flight streams them directly to `use(promise)` on the client.
|
|
96
|
+
- **PPR Dynamic Holes (`export const ppr = true`) for `<Suspense>` Wrapping Client Components with `Promise` Props (`render-jsx-to-client-jsx.js`, `ppr-runtime.js`, `edge-ssr.js`)**: Previously, on Partial Prerendering routes, `<Suspense>` boundaries only registered a dynamic PPR hole (`ppr-hole-*`) when they contained an `async` Server Component, ignoring `<Suspense>` boundaries wrapping a Client Component with an un-awaited `Promise` prop (`holes: []`). Detecting a thenable prop inside `<Suspense>` during a PPR build now triggers `markDynamicAccess("async-suspense")` to register the `ppr-hole-*` in `shell.html` and `metadata.json`, and `handlePprResume` streams the resolved hole with React 19 `<Suspense>` hydration markers (`<!--$-->...<!--/$-->`) before executing the trailing client entry `<script>` so it hydrates with zero mismatch (`#418`).
|
|
97
|
+
- **Duplicate Server Execution and Hydration Mismatches (`#418`) on Initial Load via Inline RSC Streaming (`get-jsx.js`, `render-jsx-to-client-jsx.js`, `handler.js`, `ppr-runtime.js`, `client.jsx`, `client-webpack.jsx`)**: Previously, on dynamic routes, PPR runtime resumes, and first-time ISG renders/bailouts, `GET /route` discarded the Flight RSC payloads after generating SSR HTML, forcing the browser to issue separate `GET /____rsc_layout____` and `GET /____rsc_page____` requests during `hydrateRoot()`. Executing Server Components, `@slots`, `getProps`, and PPR dynamic holes a second time in separate HTTP requests caused React Hydration Error `#418` whenever non-deterministic values (`Date.now()`, random IDs, or uncached `DinouCacheSlot` data) differed between the SSR HTML and the hydration RSC payloads. `getJSX` and `handlePprResume` now evaluate the layout and page trees once per request, deduplicate deferred `<Suspense>` hole promises across streams, and stream the segmented Flight payloads (`window.__DINOU_RSC_L__` and `window.__DINOU_RSC_P__`) inline inside `<script>` tags in the initial HTML response (flushed at safe `</script>` boundaries) so `hydrateRoot()` consumes them directly without extra network round-trips or double execution.
|
|
98
|
+
- **Hydration Mismatch (`#418`) Between Static/ISG `index.html` and Cached `layout.rsc` / `layout.static.rsc` / `page.rsc` (`handler.js`, `cache-revalidate.js`)**: Previously, when generating a static/ISG `index.html` on-demand or after `revalidatePath`, `handler.js` rendered the HTML from a newly evaluated layout instance while `/____rsc_layout_static____` served an earlier cached `layout.rsc` (or spliced live PPR holes on a `ppr = false` child page inside a `ppr = true` layout), and `/____rsc_page_static____` bypassed the cached `page.rsc` if a concurrent background ISR revalidation flipped `dynamicState.value = true`. Non-PPR static/ISG pages now compose `index.html` directly from the leaf layout's cached `layout.rsc` (or `layout.static.rsc` when the parent layout has PPR holes) plus the precomputed `page.rsc`, preserve cached `page.rsc` delivery when a static build ID (`____build_id____`) is requested, and persist `shell.page.json` atomically alongside `shell.html`.
|
|
99
|
+
- **Isomorphic `useSearchParams()` PPR Dynamic Holes, `DinouCacheSlot` Isolation, and Zero-`#418` Selective Hydration (`navigation.js`, `ppr-runtime.js`, `handler.js`, `request-context.js`)**:
|
|
100
|
+
- **Server Components Inside `<Suspense>` on PPR Routes (`export const ppr = true`)**: Previously, `useSearchParams()` wrapped `ctx.req.query` in a bare `try / catch (e) {}` block that swallowed `Symbol.for("dinou.ppr.postpone")`, `Symbol.for("react.postpone")`, and `Symbol.for("dinou.ppr.skipStatic")`, causing `<Suspense>` boundaries calling `useSearchParams()` in a Server Component to silently freeze as empty static content (`""`) instead of registering a dynamic PPR hole (`ppr-hole-*`). `useSearchParams()` now rethrows PPR postpone and `DinouCacheSlot` skip signals (and falls back to `globalThis[Symbol.for("dinou.request.context.current")]`), registering a dynamic PPR hole when wrapped in `<Suspense>` and triggering a full-route dynamic bailout when called outside `<Suspense>`.
|
|
101
|
+
- **Client Components (`"use client"`) on Static & PPR Routes**: During `handlePprResume` (`Pass B` HTML generation), `useSearchParams()` now detects Client Component SSR execution (`ctx._isPprRuntimeResume && isClientSsrRender`) and returns an empty `URLSearchParams` so `Pass B` SSR matches both the build-time `shell.html` and the cached `shell.rsc` payload (even for Client Components nested inside a dynamic Server Component `<Suspense>` hole). Similarly, lazy HTML re-composition after layout revalidation in `handler.js` now sanitizes `recomposeSimReq` (`query: {}, cookies: {}`).
|
|
102
|
+
- **Selective `<Suspense>` Hydration Synchronization (`useSyncExternalStore`)**: Replaced the `document.body.dataset.hydrated` / `useEffect` check in `useSearchParams()` with `React.useSyncExternalStore(emptySubscribe, () => false, () => true)` gated on `window.__DINOU_USE_STATIC__ || window.__DINOU_PPR_RESUME__`. This prevents React 19 Hydration Error `#418` when `<Router />` commits before lazy-loaded `"use client"` chunks inside `<Suspense>` boundaries finish hydrating, while immediately synchronizing with the live URL query parameters after each boundary hydrates.
|
|
103
|
+
- **Production Hydration Mismatch (`#418`) in Parallel `@slot` Error Pages When Page Also Throws (`get-error-jsx.js`)**: Previously, when both a parallel `@slot` (with its own `@slot/error.tsx`) and the page threw an error in production, `getErrorJSX` sanitized the slot's `error.message` to a generic string in the SSR HTML while `/____rsc_layout____` (`getJSX`) passed `e.message || "Unknown Error"` to the slot's error page. `getErrorJSX` now preserves `e.message || "Unknown Error"` for isolated `@slot` error pages, matching `getJSX`.
|
|
104
|
+
- **Process-Wide `globalThis` Singletons, Cross-Bundle `DinouServerHooksDispatcher` Protection, and `ReactSharedInternals` Resolution (`ppr-context.js`, `render-jsx-to-client-jsx.js`, `revalidating.js`, `cache-slot.js`, `get-jsx.js`, `rollup.config.js`)**:
|
|
105
|
+
- **Process-Wide Context & Cache Singletons**: Anchored all `AsyncLocalStorage`, `WeakMap`, `WeakSet`, `Map`, and `Set` stores in `ppr-context.js`, `render-jsx-to-client-jsx.js`, and `revalidating.js` on `globalThis[Symbol.for(...)]` and enforced mutual exclusion between `runInPageSegment` and `runInLayoutSegment`, preventing split context stores across `esbuild` code-splitting chunks during incremental HMR rebuilds in `dev:*` and between unbundled `dinou/core/*` modules and `.dinou/node/rsc-engine.mjs` during `run-ssg.js`.
|
|
106
|
+
- **Cross-Bundle Dispatcher Immutability & `__SERVER_INTERNALS__` Scoping**: Marked `DinouServerHooksDispatcher` with `_dinouIsServerHooksDispatcher: true`, delegated `dinouPatchedUseId` / `dinouPatchedUse` through `globalThis[Symbol.for("dinou.server.hooks.impl")]`, and restricted `patchInternalsDispatcherSetter` strictly to `__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE` (never installing the setter on `__CLIENT_INTERNALS_...` used by `react-dom/server`), preventing cross-bundle `useId()` corruption (`_page_dS_*` leaking into layouts/slots) and preserving native `_R_...` SSR hydration IDs for `"use client"` components in development mode.
|
|
107
|
+
- **Bundler-Clean CJS `react` & `@roggc/react-server-dom-esm` Resolution**: Updated `getReactInternalsList()` to resolve `node_modules/react/index.js` and `node_modules/react/react.react-server.js` via `req.resolve("react/package.json")` (bypassing `"exports"` subpath encapsulation without triggering Webpack `Critical dependency` warnings), updated `@roggc/react-server-dom-esm/server.node` subpath imports, and silenced Rollup `MODULE_LEVEL_DIRECTIVE` warnings on `"use client"` / `"use server"` directives.
|
|
108
|
+
- **Deterministic Multi-Branch Backtracking, Specificity Precedence, and Boundary/Layout Resolution in the File-System Router (`get-file-path-and-dynamic-params.js`, `discover-layouts.js`, `vfs.js`, `client.jsx`, `client-webpack.jsx`, `handler.js`, `get-error-jsx.js`)**:
|
|
109
|
+
- **Backtracking & Tier Precedence**: Replaced greedy single-pass directory matching with full multi-branch backtracking and deterministic specificity tiers (`static` > `[param]` > `[[optional]]` > `[...catchAll]` > `[[...optionalCatchAll]]`), sorting `readdirSync` and VFS directory entries lexicographically (`vfs.js`) for OS-independent routing.
|
|
110
|
+
- **Route Groups `(group)`, Syntax Hardening & Scoped Boundaries**: Fixed backtracking across multiple sibling `(group)` folders and nested `(outer)/(inner)` group chains; blocked literal router syntax segments (`(group)`, `[param]`, `@slot`, `_private`, raw or URL-encoded) in incoming request paths; and scoped `no_layout`, `reset_layout`, `error.tsx`, and `not_found.tsx` resolution strictly along the matched route lineage (passing `slotParams` when resolving `@slot/error.tsx`).
|
|
111
|
+
- **Client SPA Active Layout Key Resolution (`getLayoutKey`)**: Added pattern-based page layout rules (`discover-layouts.js`) consumed by `client.jsx` and `client-webpack.jsx` so SPA transitions into `(group)` routes with `no_layout`, optional `[[param]]`, or catch-all segments compute the exact active layout key without mismatched `/____rsc_layout____` fetches.
|
|
112
|
+
- **Static Path Composition & On-Demand Route Resolution in Static Generation (`build-static-pages.js`)**: Fixed `collectPages` when nested `getStaticPaths` return primitive values or catch-all arrays beneath intermediate static segments (`STATIC_PARAM_NAME` preservation, leaf `targetParamName` binding, and `!Array.isArray(pathItem)` guard), replaced manual folder walking in on-demand `buildStaticPage(reqPath)` with `getFilePathAndDynamicParams(...)` so `(group)`, optional, and catch-all routes resolve identically to runtime requests, and passed `slotParams` to `@slot/error.tsx` during SSG.
|
|
113
|
+
- **Mixed Per-Segment PPR Dynamic Bailout & `noDynamic()` Layout Refresh Splicing (`handler.js`, `generate-static.js`, `get-jsx.js`)**: Prevented persisting or splicing cached PPR shells (`!rscDynamicState.value` / `!dynamicState.value` in `handler.js`, `layoutMeta.ppr = false` on `X-Dinou-Dynamic: true` in `generate-static.js`) when an outer `ppr = false` layout bails out dynamically (e.g., reading `req.cookies` inside `<Suspense>`) above a `ppr = true` nested layout or page, and passed `skipLayoutProbe: true` during `spliceDynamicHolesIntoShell` (`handler.js`, `get-jsx.js`) so `noDynamic()` static `<Suspense>` boundaries in `ppr = true` layouts and `@slots` are not re-executed on `router.refresh({ layout: true })`.
|
|
114
|
+
- **Duplicate DOM Nodes When Client Router Transitions Preempt Deferred Streaming SSR `<Suspense>` (`$RB` / `$RV`) Completion (`slot.js`, `client.jsx`, `client-webpack.jsx`)**: Previously, when `<Router />` hydrated its outer shell while a streaming SSR `<Suspense>` boundary (`$RC`) had queued its `<template id="B:N">` and `<div hidden id="S:N">` pair in `window.$RB` awaiting React DOM's deferred `$RV` pass, triggering an immediate `router.refresh(...)`, `navigate(...)`, or `popstate` transition swapped in a new RSC `<Suspense>` fiber and detached `<template id="B:N">` before `$RV` ran—leaving a stale duplicate SSR DOM subtree mounted alongside the newly committed RSC content. Added `flushPendingSsrStreams()` before client router transitions (`navigate`, `refresh`, and `popstate`) so ready `$RB` boundaries swap cleanly into the live DOM prior to fiber replacement, and `pruneOrphanedSsrStreams()` in `useLayoutEffect` to purge any orphaned `<div hidden id="S:...">` nodes whose `<template id="B:...">` markers were already detached.
|
|
115
|
+
- **Stylesheet HMR Hydration Race Condition Under Concurrent Load (`esbuild/react-refresh/esm-hmr/client.js`, `rollup/react-refresh/esm-hmr/client.js`)**: Deferred `<link rel="stylesheet">` cache-busting (`?t=...`) mutations on `style-update` HMR messages until `document.body[data-hydrated="true"]` (with a 3s fallback), preventing React Hydration Error `#418` on `<link precedence="default">` elements when file watchers emit CSS updates while a page is mid-hydration.
|
|
116
|
+
- **Client Router `fresh` Navigation & Browser Subresource Cache Bypass (`client.jsx`, `client-webpack.jsx`)**: `navigate(href, { fresh: true })` (`<Link fresh>` and `router.push(url, { fresh: true })`) now increments the client router `version` counter (`?____v____=<n>`) inside `startTransition`—matching `router.refresh()` so same-route `fresh` navigations re-evaluate `pagePromise` without invalidating server-side SSG/ISR caches—and `getPagePayload` / `getLayoutPayload` now pass `{ cache: "no-store" }` to `fetch(...)` to prevent browser in-memory caches (notably WebKit) from reusing prior RSC responses outside `pageCache` and `layoutCache`.
|
|
117
|
+
- **`AsyncLocalStorage` Request Context Isolation When Streaming Server Components Returned by Server Functions (`handler.js`)**: Wrapped `pipeRSC(returnValue, ...)` in `POST /____server_function____` (as well as `renderRSCStream(errorJsx, ...)` in the SSR error fallback) inside `requestStorage.run(context, () => ...)`. Previously, `pipeRSC` ran outside the `AsyncLocalStorage` scope after `await fn(...args)` resolved, causing async Server Components (and nested `<Suspense>` Server Components) returned by `"use server"` functions to lose their `AsyncLocalStorage` store across `await` boundaries and fall back to the shared `getCurrentContext()` pointer under concurrent requests.
|
|
118
|
+
- **Type-Safe Optional Catch-All (`[[...slug]]`) Runtime vs. Navigation Params**: Updated route type generation (`dinou/core/generate-route-types.js`) and fallback parameter inference (`dinou/index.d.ts`, `dinou/server.d.ts`) so received segment `params` in `PageProps`, `LayoutProps`, `SlotProps`, `ErrorProps`, `NotFoundProps`, and `PageFunctions` / `LayoutFunctions` lifecycles (`getProps`, `validateParams`, `getCacheTags`) are strictly typed as `string[]` (matching Dinou's runtime `[]` normalization on base routes without `undefined` checks), while keeping `[[...slug]]` optional in `<Link params>`, `router.push` / `router.replace`, and `getStaticPaths` parameter objects.
|
|
119
|
+
- **`getStaticPaths` Strict Type Checking for Optional & Numeric Segments**: Refined `StaticPathItem`, `StaticPathParams`, and contextual `"./dinou"` `PageFunctions` / `LayoutFunctions` definitions so `undefined` entries (e.g. `[undefined, "electronics"]` to pre-render the base route) compile cleanly under `strict: true` when all dynamic segments in the route are optional (`[[param]]`, `[[...slug]]`), while remaining disallowed on routes with required dynamic segments, and allowed `number` values alongside `string` inside `getStaticPaths` parameter objects.
|
|
120
|
+
- **False Dynamic Bailout on Client `useSearchParams()` in ISG & ISR**: Fixed a server-rendering bug where calling `useSearchParams()` inside a `"use client"` component accessed `ctx.req.query` through `createBailoutProxy` during React Fizz HTML SSR (`renderHtmlStream`), falsely flagging the render as dynamic. Client Components calling `useSearchParams()` no longer prevent on-demand ISG pages from caching to storage or de-optimize static ISR routes into permanent Dynamic SSR during background revalidation, while Server Components calling `useSearchParams()` continue to trigger Automatic Static Bailout (or register Dynamic PPR Holes inside `<Suspense>`) as intended.
|
|
121
|
+
- **Multi-Value & Empty-String Query Parameters in `req.query` and `useSearchParams()` SSR Hydration (`handler.js`, `navigation.js`)**: Fixed `req.query` parsing in `handler.js` where `Object.fromEntries(url.searchParams.entries())` overwrote repeated query keys with only the last value instead of accumulating `string[]` arrays as declared by `Query` (`Record<string, string | string[] | undefined>`, while ignoring `__proto__`), and updated server-side `useSearchParams()` serialization (`queryObjectToURLSearchParams`) in `navigation.js` to preserve empty-string values (`?key=` where `val === ""`) instead of dropping falsy strings—preventing React hydration mismatches during `dev` and live dynamic SSR when URLs contain repeated (`?tag=a&tag=b`) or empty (`?empty=`) query parameters.
|
|
122
|
+
- **Windows File-Lock Resilience & Dev Watcher Route-Type Sync (`generate-route-types.js`, `node/dev.js`)**: Hardened `generateRouteTypes` on Windows against transient `EPERM`/`EBUSY` file locks (caused by TypeScript language servers, `tsconfig` path resolvers, or real-time file scanners during live directory renames) by using `fs.rmSync` with built-in retries and scheduling non-blocking `.unref()` deferred retries when writing `.dinou/types/routes.d.ts` or pruning stale `.dinou/routes/**/dinou.{js,d.ts}` shims, and updated `generateEntryFiles()` in `node/dev.js` so `dev:rollup` and `dev:webpack` also re-synchronize route types during debounced structural rebuilds.
|
|
123
|
+
- **False Dynamic Bailout on `<Suspense>`-Wrapped `<DinouCacheSlot>` in ISG (`ppr = false`)**: Fixed a bug in `DinouCacheSlot` where checking for incoming URL query parameters (`Object.keys(reqCtx.req.query)`) inside a runtime `<Suspense>` boundary accessed `req.query` through `createBailoutProxy` (`ownKeys` trap), falsely triggering Automatic Static Bailout even when no query parameters were present. Non-PPR on-demand ISG routes (`ppr = false`) wrapping `<DinouCacheSlot revalidate >= 1>` inside `<Suspense>` now cache cleanly to storage (`index.html` + `slots/<id>/slot.json`), preserve `isDynamic === false` across unread marketing query strings (`?utm_source=...`), and refresh Micro-ISR slots independently without re-rendering the parent page. Also unwrapped internal `req.headers` inspection in `normalizeRevalidatePath` and tightened `DinouCacheSlotProps` TypeScript types from `any` to `ReactNode`.
|
|
124
|
+
- **Server Functions (UI Component Streaming `callServer`)**: Fixed `createServerFunctionProxy` (`dinou/core/server-function-proxy.js` and `dinou/core/server-function-proxy-webpack.js`) omitting the `{ callServer }` option when decoding `text/x-component` Flight streams via `createFromFetch`, which previously caused nested Server Functions inside streamed JSX / async Server Components to throw `Trying to call a function from "use server" but the callServer option was not implemented in your router runtime`.
|
|
125
|
+
- **Server Functions (`export default` Support Across Compilers)**: Fixed a Babel AST crash in `transformServerFunctions` when using function-level `"use server"` on `export default` functions, and registered `default` Server Function exports with `registerServerReference` across all server/SSR build pipelines (`node`, `dev`, `cloudflare`, `bun`, and `deno`) so default-exported actions can be passed from Server Components as well as imported in Client Components.
|
|
126
|
+
- **Server Functions (Windows Manifest Casing in Rollup & Webpack)**: Fixed Rollup and Webpack `serverFiles` discovery lowercasing full filesystem paths on Windows, which previously wrote lowercase keys into `server-functions-manifest.json` and caused `400 Invalid export name` rejections on mixed-case dynamic routes (e.g. `[userId]`) or camelCase action files; added a case-insensitive manifest and route-module lookup fallback in `handler.js` and `import-module.js`.
|
|
127
|
+
- **Relative Path Resolution in `revalidateLayout` & URL Helpers**: Fixed `revalidateLayout("./")`, `revalidateLayout("..")`, and relative sibling paths (`revalidateLayout("../billing")`) failing inside Server Functions due to bypassing `normalizeRevalidatePath`; stripped `?query` and `#hash` suffixes from base paths in `normalizeRevalidatePath` and `resolveRelativeUrl` before resolving relative segments so `"./"` never resolves to the parent directory; and prevented `normalizeRevalidatePath` from falling back to `"/____server_function____"` when neither `x-dinou-current-path` nor `Referer` is present.
|
|
128
|
+
- **`RedisStorage` Tag Revalidation, Key Normalization & Cluster Tombstones**: Implemented `RedisStorage.keys(prefix)` across `node-redis` v4/v5 (`scanIterator`), `ioredis` (`scanStream`), Upstash (`keys`), and cursor `scan` clients so `revalidateTag()` works out of the box on Redis; normalized Windows backslashes (`\` -> `/`), leading/trailing slashes, and `route` <-> `route/index.html` / companion metadata keys across storage adapters; added options object support (`new RedisStorage(client, { prefix, hydrateFromDisk })`); and added Redis-backed deletion tombstones and tag invalidation timestamps so multi-pod clusters never resurrect invalidated `.dinou/dist2` artifacts.
|
|
129
|
+
- **`DinouConfig.storage` Typing, Runtime Binding, SSG Isolation & `.dinou/dist2` Hydration**: Added `storage?: StorageAdapter` to `DinouConfig` TypeScript definitions; guarded runtime `initStorage()` across Node, Bun, Deno, and Cloudflare entrypoints from overwriting custom storage adapters; isolated `generateStatic()` (`__DINOU_IS_SSG_BUILD__`) so build-time SSG always writes to `.dinou/dist2` without polluting live `RedisStorage` instances; and added lazy `.dinou/dist2` hydration (`readDist2Fallback`) for cold distributed storage pods while keeping `MemoryStorage` isolated by default for unit testing.
|
|
130
|
+
- **Standalone / Vitest Revalidation Crashes (`ReferenceError: getBuildStaticPage is not defined`)**: Unified `revalidatePage`, `revalidatePath`, `revalidateLayout`, and `revalidateTag` onto `getStorageAdapter()` across all runtimes, cleanly evicting cached entries in standalone test/worker environments instead of calling removed legacy build helpers.
|
|
131
|
+
- **3D Slot Splicing on Cold Distributed Pods & Host Segment ISR TTL Preservation**: Preserved `shell.page.json` / `shell.layout.json` and `*metadata.json` lookup across `.dinou/dist2` during slot-only tag invalidations (`onlyRefreshSlots: true`) without clobbering updated runtime metadata, and preserved `pageGeneratedAt` / `layoutGeneratedAt` during slot-only splices so frequent `<DinouCacheSlot>` refreshes never starve host `page.tsx` or `layout.tsx` time-based ISR TTLs.
|
|
132
|
+
- **Per-Parameter `getCacheTags(params)` Isolation on Dynamic Routes**: Fixed `pageFunctionsConfigCache` caching the evaluated `getCacheTags(params)` array from the first rendered parameter on dynamic routes (e.g. `[slug]`) and reusing it for all subsequent dynamic parameters during SSG and ISG, ensuring `revalidateTag()` accurately targets each parameter's own cache tags.
|
|
133
|
+
- **Cold-Start `<DinouCacheSlot>` Discovery Isolation & False ISR Bailout Prevention**: Scoped `slotRegistry` nested-slot discovery to matching route hierarchies first, isolated slot discovery and cold route pre-evaluation inside a side-effect-free `requestStorage` + PPR context, and guarded `createBailoutProxy`, `revalidatePage`, `revalidateLayout`, and request `markDynamic` checks while `isSlotDiscoveryActive()` is active so dynamic `req.cookies` / `req.headers` / `req.query` or `res.*` accesses in other routes' slots never poison `onlyRefreshSlots` revalidations or downgrade static/ISR pages to Dynamic SSR.
|
|
134
|
+
- **Ancestor-First Layout `<DinouCacheSlot>` Tag Revalidation & Child Layout Shell Isolation**: Sorted `FileSystemStorage.keys()`, `.dinou/dist2` metadata walks, SSG layout pre-rendering, and `revalidateTag()` layout queues in deterministic ancestor-first order so OS filesystem entry ordering (such as Linux `ext4` `htree`) or sibling directory names never stamp parent layouts newer than their descendants during slot refreshes; separated ancestor full-layout generation (`layoutGeneratedAt`) from slot-only splices (`generatedAt`) across cached HTML, `____rsc_layout____`, and `revalidatePage()` chains so refreshing a parent layout `<DinouCacheSlot>` splices child `shell.layout.json` artifacts without re-executing child `layout.tsx` components; and mapped `shell.layout.json` companion metadata to `layout.metadata.json` in `FileSystemStorage`.
|
|
135
|
+
- **Progressive `<Suspense>` Streaming in Production on Dynamic SSR Routes**: Removed the unconditional `process.env.NODE_ENV === "production"` eager-resolution guard in `asyncRenderJSXToClientJSX` (`dinou/core/render-jsx-to-client-jsx.js`) and replaced it with context-aware dynamic streaming detection (`shouldStreamDynamicSuspense`). Dynamic SSR routes (`revalidate = 0`, prior dynamic bailout via `cookies`/`headers`/`query`, URLs carrying `?query` parameters inspected via `unwrapBailoutProxy` without tripping `BailoutProxy`, and `POST /____server_function____` contexts) now flush the initial HTML/RSC shell and `<Suspense fallback>` immediately in production via `DinouSuspenseHoleBoundary`, while SSG builds, ISR/tag background revalidations, PPR shell builds, and clean ISG candidate routes continue settling `<Suspense>` boundaries eagerly into static HTML without skeleton flashes.
|
|
136
|
+
- **Direct `Promise<ReactNode>` JSX Children Across PPR, SSG, Streaming SSR & `<DinouCacheSlot>`**: Fixed `asyncRenderJSXToClientJSX` (`dinou/core/render-jsx-to-client-jsx.js`) and PPR hole traversers (`spliceDynamicHolesIntoShell` and `streamDynamicHoles` in `dinou/core/ppr-runtime.js`) so direct `Promise<ReactNode>` expressions in Server JSX (such as `<Suspense fallback={<Skeleton />}>{getMetricsTable()}</Suspense>` and `<DinouCacheSlot id="metrics">{getMetricsTable()}</DinouCacheSlot>`) properly register `ppr-hole-*` boundaries during PPR builds, await and recursively transform resolved Server Component subtrees (including slot/hole-scoped `useId()`), and serialize resolved DOM trees into `slot.json` instead of `{}`—while preserving raw un-awaited `Promise` props passed to `"use client"` components for non-blocking React 19 `use(promise)` Flight streaming.
|
|
137
|
+
- **Pass B (`ssr-engine`) Server Reference Isolation Across All Runtimes**: Fixed `serverReferencesPluginSsr` and `ssr-client-manifest` across `node/dev.js`, `node/bundle-dual-engine.js`, `cloudflare/build.js`, `bun/build.js`, and `deno/build.js` so `"use server"` implementations, server-only imports (`import "server-only"`), and server module state are never bundled into or executed inside the browser-conditioned Client SSR engine. SSR server references now emit pure canonical `registerServerReference` stubs (`file:///src/...#action`) that defer in-render client RPC calls (`useState(() => fetchServerFn())` + `use()`) cleanly to client `<Suspense>` mount via React 19's `Symbol.for("react.recoverable")` digest without server `onError` noise, SSG hangs, hydration warnings, or leaked filesystem paths in `<form action>` hidden inputs.
|
|
138
|
+
- **Server Function Error Message & `digest` Propagation**: Fixed `dinou/core/server-function-proxy.js`, `dinou/core/server-function-proxy-webpack.js`, and `dinou/core/handler.js` so errors thrown inside `"use server"` functions preserve their `error.message` and optional `error.digest` on rejected client Promises instead of always throwing `"Server function failed"`.
|
|
139
|
+
- **Rollup Client Manifest `#default` Parity**: Updated `rollup-plugin-react-client-manifest.js` (`setManifestEntry`) to register both `fileUrl` and `${fileUrl}#default` (plus Windows drive-letter variants) for default-exported `"use client"` components, matching `esbuild` and `webpack`.
|
|
140
|
+
- **Esbuild React Compiler Full Client Subgraph Compilation**: Fixed `babelReactCompilerPlugin` in `dinou/esbuild/plugins-esbuild/babel-react-compiler-plugin.js` where an `isAnEntryPoint` guard caused child components and custom hooks without their own `"use client"` directive to skip `babel-plugin-react-compiler` in production builds, while unnecessarily compiling Dinou's own ejected runtime files. Moved `babelReactCompilerPlugin` after `serverFunctionsPlugin` in `get-config-esbuild-prod.js` and added defense-in-depth `"use server"` guards plus `@babel/plugin-syntax-import-meta` parity.
|
|
141
|
+
- **Rollup Production `"use server"` Pre-Transform Ordering**: Updated `dinou/rollup/rollup-plugins/rollup-plugin-server-functions.js` to run `transform` with `order: "pre"`, ensuring module-level and inline `"use server"` functions are converted into lightweight RPC proxies before `babel-plugin-react-compiler` processes the client module graph.
|
|
142
|
+
- **Vendorized Babel & React Compiler Resolution Across All Bundlers**: Replaced bare string plugin/preset/loader specifiers in Esbuild, Rollup, and Webpack configs with direct subpath imports (`#babel/preset-react`, `#babel/preset-typescript`, `#babel/plugin-syntax-import-meta`, `#babel-plugin-react-compiler`, `#babel-loader`, `#rollup-plugin-delete`) so strict `pnpm` installations and ejected projects require zero hoisted Babel packages.
|
|
143
|
+
- **Multi-Bundler `public/` Parity**: Replaced `rollup-plugin-copy` (which flattened nested subdirectories in `public/**/*`) with recursive `copyStaticDirectoriesToOutdir` and enabled `dot: true` in Webpack's `CopyWebpackPlugin` so nested directories, filenames with spaces, and `public/.well-known/*` behave identically across Esbuild, Rollup, and Webpack.
|
|
144
|
+
- **Cloudflare Workers `public/` Asset Routing**: Fixed `dinou/adapters/cloudflare.js` and `dinou/cloudflare/build.js` so `public/*` files of all extensions (`/sitemap.xml`, `/docs/*.pdf`, `/media/*.mp4`, `/google*.html`, `/.well-known/*`, `/manifest.json`) are served via `env.ASSETS` instead of falling through to the RSC router as `404`, and removed the obsolete `.assetsignore` hack that previously blocked user `/manifest.json` uploads.
|
|
145
|
+
- **Dev vs Build Manifest Isolation**: Guarded `dinou/core/get-asset-from-manifest.js`, `dinou/core/manifest-provider.js`, `dinou/node/bundle-dual-engine.js`, and `dinou/node/dev.js` so `dinou dev` reads disk fallback manifests strictly from `.dinou/node-dev` while `dinou build` writes and reads strictly from `.dinou/dist1`.
|
|
146
|
+
- **Windows Drive-Letter Case Determinism in `createScopedName`**: Normalized `src` context and file paths in `dinou/core/createScopedName.js` so CSS Module class hashes match 100% regardless of Windows uppercase/lowercase drive letters (`C:\` vs `c:\`) or path separators.
|
|
147
|
+
- **Incremental Dev CSS Preservation & Tailwind v4 `.tsx` Refresh**: Fixed Esbuild's `postcss-extract-plugin.js` and Rollup's `rollup-plugin-react-client-manifest.js` wiping unchanged global stylesheets on incremental rebuilds, and added automatic Tailwind v4 stylesheet re-evaluation when `.tsx`/`.jsx` files add new utility classes.
|
|
148
|
+
- **JSONC `tsconfig.json` Comments, Trailing Commas & Webpack CSS `@import` Aliases**: Fixed `tsconfig.json` parsing with comments and trailing commas in `get-abs-path-with-ext.js` and `get-config-esbuild-prod.js`, and wired `postcss-import` alias resolution into both `.css` and `.module.css` rules in Webpack.
|
|
149
|
+
- **Server Component Stylesheet Discovery**: Fixed `Set.prototype.add(...arr)` dropping multiple CSS imports in a single Server Component, added `error.tsx` and `not_found.tsx` CSS discovery, supported bare `node_modules` stylesheet imports (e.g. `import "katex/dist/katex.min.css"` and `"style"` export conditions) in Server Components, and removed blind compilation of unimported `.css` files in Esbuild.
|
|
150
|
+
- **Deterministic `public/styles.css` Coexistence & Collision Protection**: Fixed `postcss-extract-plugin.js` shadowing static `public/styles.css` with an empty in-memory buffer when no CSS is imported in `src/`, and prevented `copyStaticDirectoriesToOutdir` / `CopyWebpackPlugin` from overwriting compiled `/styles.css` in production builds when both `public/styles.css` and `src/` CSS imports exist (emitting an explicit collision warning across Esbuild, Rollup, and Webpack while preserving nested `public/<dir>/styles.css` files).
|
|
151
|
+
- **Dev Fast Refresh / HMR initialization race (`dev:esbuild` & `dev:rollup`)**: Enforced deterministic ESM evaluation order by prepending `import "/runtime.js";` to `/main.js` and hardened Esbuild's React Refresh module wrapper (`$RefreshSig$` / `$RefreshReg$`) with safe fallbacks so client components with hooks never crash with `TypeError: $RefreshSig$ is not a function` on fast reloads (`F5`).
|
|
152
|
+
- **ISR background revalidation hydration race (`React error #418`)**: Preserved freshly regenerated `layout.rsc` payloads across 2-cycle ISR revalidations instead of deleting them mid-flight when a concurrent request reads a newly written `index.html`.
|
|
153
|
+
- **Content + Path Asset Fingerprinting (`/assets/[name]-[hash].[ext]`)**: Replaced path-only `createScopedName` asset naming with an OS-independent SHA-256 digest of `relPosixPath + "\0" + fileBytes`, preventing stale 1-year `immutable` browser/CDN caches when media files are updated at the same path while preserving zero-collision folder scoping and deduplicating CSS `url(...)` and JS/TS imports.
|
|
154
|
+
- **Full Bundler & Runtime Asset Parity (Esbuild, Rollup, Webpack × Node, Bun, Deno, Cloudflare)**: Fixed `swcRedirectPlugin` crashing `dinou dev:esbuild` on relative asset imports inside `"use client"` components; fixed Webpack production builds and Rollup incremental watch rebuilds dropping assets imported exclusively in Server Components; replaced `dataurl` asset loaders in Cloudflare Workers, Bun, and Deno builds with `createServerAssetPlugin` (eliminating SSR hydration mismatches, Base64 Worker bloat, and `No loader is configured` crashes on `.mp4`/`.avif`/`.gif`/`.webm`/audio files); unified custom `tsconfig.json`/`jsconfig.json` path aliases and `node_modules` asset resolution; and wired live asset rebuilds in `dinou dev`.
|
|
155
|
+
- **Cloudflare Workers static asset `Content-Type` fallback (`cloudflare/build.js` & `adapters/cloudflare.js`)**: Populated missing or generic `application/octet-stream` `Content-Type` headers from `env.ASSETS.fetch` via `getStaticContentType` so formats omitted by Wrangler's built-in MIME table (such as `.hdr` or custom `assetExtensions`) serve deterministic MIME headers at the edge.
|
|
156
|
+
- **Multi-batch dev HMR / reload broadcast preservation (`dinou/node/dev.js`)**: Accumulated pending `reload`, `style-update`, and `rsc-update` notifications across consecutive Chokidar rebuild batches so structural or Server Component updates (such as injecting a new `"use server"` action alongside a Client Component edit) are never dropped when file-watcher events split across sequential rebuild iterations.
|
|
157
|
+
- **Environment Variable Loading, SSR Secret Isolation, Unified `getContext().env` & Anti-Bot Shield**:
|
|
158
|
+
- Fixed a regression where `.env` files were ignored in `dinou dev` (`esbuild` & `rollup`), `dinou build` (`esbuild` & `rollup`), `dinou start`, `dinou export-static`, Deno builds, and `dinou dev:webpack` port selection.
|
|
159
|
+
- Fixed a critical SSR/SSG security leak and client hydration crash where accessing unprefixed `process.env.*` inside `"use client"` components leaked server secrets into Pass B SSR/SSG HTML and threw `ReferenceError: process is not defined` in browsers across Esbuild, Rollup, and Webpack.
|
|
160
|
+
- Unified `getContext().env` via a live zero-copy `Proxy` (`createUnifiedEnv`) so plain-text secrets and Cloudflare Workers bindings (KV, D1, R2) resolve consistently across Cloudflare Edge, Node.js, Bun, Deno, Netlify, and SSG, synced Edge string bindings onto `process.env`, wrapped `plugin.onRequest` and `page_functions` / `layout_functions` config hooks in `AsyncLocalStorage`, and fixed `getContext()` TypeScript return type (`RequestContextStore`).
|
|
161
|
+
- Hardened the Anti-Bot Shield and static build pipelines to block `.env.*` and percent-encoded probes (`/.env.production`, `/%2eenv`, `/.%65nv`) with `404` before routing/ISG and physically exclude any accidental `public/.env*` files from `.dinou/dist3`, `.dinou/cloudflare/assets`, and `out/`.
|
|
162
|
+
- **Custom Path Aliases in `dinou dev` & Edge/Server Runtimes**: Fixed `createDevExternalPackagesPlugin` in `dinou/node/dev.js` and hardcoded `commonAlias` maps in `node`, `cloudflare`, `bun`, `deno`, `esbuild/build.js`, and `rollup/rollup.config.js` (`serverConfig`) where any alias other than `@/*` was treated as an external `node_modules` package and crashed at runtime with `ERR_MODULE_NOT_FOUND`.
|
|
163
|
+
- **Aliased Stylesheet & CSS Module Imports in Rollup & Esbuild Prod**: Replaced `rollup-plugin-tsconfig-paths` and `@esbuild-plugins/tsconfig-paths` (which delegated to TypeScript's JS-only module resolver and failed on `.css` / `.module.css` imports and `jsconfig.json` projects) with Dinou's unified alias plugins.
|
|
164
|
+
- **Esbuild Dev `.dinou/swc` Mirror Resolution with Explicit `baseUrl`**: Fixed `get-config-esbuild.js` resolving `.dinou/swc` mirror targets relative to `compilerOptions.baseUrl` (which broke projects setting `"baseUrl": "./src"`), and isolated SWC compilation from disk `mkdir` retries in `swc-disk-cache.js`.
|
|
165
|
+
- **Underscore (`_folder`) Escape Enforcement Across Custom Aliases**: Updated `checkForbiddenUnderscoreImport` in `dinou/core/resolve-contextual-dinou.js` so custom `tsconfig.json` / `jsconfig.json` aliases pointing into `_`-prefixed directories under `src/` are blocked consistently across all bundlers.
|
|
166
|
+
- **Background ISR TTL Commit Timestamp & In-Flight RSC Deduplication**: Fixed `revalidatePage` in `dinou/core/cache-revalidate.js` stamping `generatedAt` / `pageGeneratedAt` at the start of rendering instead of at causal commit time (which subtracted slow SSR/render latency from the route's `revalidate` TTL and could prematurely trigger back-to-back background regenerations under heavy load while keeping `window.__DINOU_BUILD_ID__` synchronized), and unified trailing-slash `regenerating` key checks in `dinou/core/handler.js` so concurrent RSC requests serve stale cached payloads instead of firing duplicate revalidations.
|
|
167
|
+
- **Automatic `x-rsc-redirect` Translation for `onRequest` Redirects on `<Link>` Navigations**: Returning a `3xx` `Response.redirect(...)` (or calling `context.res.redirect(...)`) inside `onRequest` during client-side RSC fetches (`/____rsc_page____/*` and `/____rsc_layout____/*`) now translates cleanly into an `x-rsc-redirect` response (preserving `Set-Cookie` headers) across Esbuild, Rollup, and Webpack instead of feeding redirected HTML into React's Flight stream parser.
|
|
168
|
+
- **`context.res` Mutations Preserved in `onRequest` & PPR Resume**: Fixed `context.res.redirect()` not halting `onRequest`, prevented default `200` status and `Cache-Control: no-store` from overwriting explicit `context.res.status()` / `context.res.setHeader("Cache-Control", ...)` calls, preserved `bridge.cookies` in `handlePprResume`, and merged accumulated `context.res` headers and cookies onto returned `Response` instances.
|
|
169
|
+
- **Single-Execution Guarantee for `setupFiles`**: Removed duplicate `inject: setupFiles` across Pass B and Pass C so initialization side effects (such as `Sentry.init()` or OpenTelemetry SDK registration) execute once at Line 1 rather than three times per isolate boot or twice per HMR save.
|
|
170
|
+
- **Rollup `.dinou/dist1` Cleanup Ordering**: Moved production `.dinou/dist1` cleanup in `dinou/rollup/rollup.config.js` ahead of `prepareDist1ServerEntries` so Rollup's `buildStart` hook no longer deletes generated server bootstrap entries before `serverConfig` runs.
|
|
171
|
+
- **Windows Drive-Letter Casing in `<script type="importmap">` Generation**: Normalized Windows `file:///X:` drive-letter prefix stripping across Node Dual-Engine, Bun, Deno, Cloudflare Workers, and `dinou dev` so lowercase drive-letter entries (`file:///d:/...`) emitted by Rollup on Windows no longer leak absolute build-machine `file:///` paths into HTML import maps (while keeping all directory and file paths strictly case-sensitive across Linux, macOS, and Windows).
|
|
172
|
+
- **`<Link>` Hover-Prefetch & Parallel Segment `x-rsc-redirect` Race Conditions (`client.jsx`, `client-webpack.jsx`)**: Fixed client-side RSC redirects (`x-rsc-redirect`) where clicking a `<Link>` while its hover-prefetch was still in flight suppressed the redirect and stalled navigation, hovering a `<Link>` to a route with a redirecting layout prematurely redirected without a click, or parallel `layout` + `page` RSC fetches triggered duplicate stale redirects.
|
|
173
|
+
- Declared `@babel/generator`, `@babel/types`, `fast-glob`, and `resolve` as direct dependencies in `package.json` and `dinou/package.json`, and switched `dinou/node/dev.js`, `dinou/webpack/webpack.config.js`, and core/bundler entry helpers to Dinou-scoped module resolution (`#chokidar`, `#css-loader`, `postcss-loader`, `#fast-glob`, `#resolve`) for strict `pnpm` compatibility.
|
|
174
|
+
- Fixed Webpack 5.112+ `react-server-dom-webpack/plugin` loading under Bun (`build:node:pure:webpack`, `build:bun:pure:webpack`) via `loadReactServerWebpackPlugin()` in `dinou/webpack/helpers/patch-webpack-internals.js`.
|
|
175
|
+
- Fixed `-u` / `--unvendorized` / `DINOU_UNVENDORIZED=true` activation (including `.env*` files) under Bun, `dinou typegen -u`, `export-static.js`, and `run-ssg.js` by passing `--conditions=unvendorized` in `execArgv` while preserving existing `process.execArgv` flags.
|
|
176
|
+
- Fixed missing `DINOU_BUILD_TOOL=rollup` propagation across Node, Deno, and Bun build/SSG/start commands (plus explicit `DINOU_BUILD_TOOL=esbuild` propagation in Esbuild SSG), and removed unused dev-only `react-refresh` entrypoints (`runtime`, `react-refresh-entry`) from Esbuild production builds.
|
|
177
|
+
- **Netlify Functions v2 & `.dinou/dist1/server/` Dynamic SSR, `.tsx` Routes & Read-Only Lambda Compatibility**: Migrated `.dinou/netlify/functions/ssr.mjs`, `.dinou/dist1/server/{netlify.js,handler.js}`, and `dinou/adapters/netlify.js` to Dinou's AOT Dual-Bundle Engine (`rsc-engine` + `ssr-engine`) with `MemoryStorage({ hydrateFromDisk: true })` by default, `Netlify.env` unification, and `context.waitUntil()` ISR support—eliminating `500 Internal Server Error: No renderer available` on dynamic/404 routes, runtime `.tsx` import crashes without `--conditions=react-server`, and `EROFS` errors on AWS Lambda's read-only `/var/task` filesystem across Esbuild, Rollup, and Webpack.
|
|
178
|
+
- **Multi-Bundle React Dispatcher Isolation**: Scoped `globalThis.__DINOU_EDGE_RENDERER__` and `globalThis.__webpack_require__` per `handleRequest()` and `renderHtml()` invocation across Node, Netlify, Cloudflare, Bun, and Deno Dual-Bundles so multiple compiled bundles loaded in the same process never collide on internal `React` hook dispatchers.
|
|
179
|
+
- **Cloudflare, Bun & Deno Runtime Adapters (`dinou/adapters/{cloudflare,bun,deno}.js`)**: Updated `dinou/adapters/cloudflare.js` to delegate to `.dinou/cloudflare/worker.js` and preserve explicit storage adapters; propagated `HOST` (`hostname`) and enforced fail-fast non-zero exit codes when `dinou start:bun` or `dinou start:deno` are invoked without a prior production build.
|
|
180
|
+
- **Guaranteed `.dinou/dist2` Directory & Nested `.dinou` Esbuild Server Functions Guard**: `generate-static.js` now always creates `.dinou/dist2` even for 100% dynamic apps (preventing Docker `COPY` / Netlify `included_files` failures), `readDist2Fallback` falls back to `Deno.cwd()`, and Esbuild's `serverFunctionsPlugin` checks `.dinou/` relative to the project root instead of matching parent directory substrings.
|
|
181
|
+
- **Live Ejected Module Resolution Across `pnpm` / `yarn` & Webpack `"dinou/config"`**: Esbuild, Rollup, and Webpack now resolve `"dinou"`, `"dinou/server"`, `"dinou/config"`, and `"dinou/adapters/*"` directly to `<projectRoot>/dinou/...` whenever `./dinou` exists, ensuring live framework edits take effect immediately even when package managers copy a static snapshot into `node_modules/dinou`, and fixing `import { defineConfig } from "dinou/config"` in Webpack Ejected Mode.
|
|
182
|
+
- **Immediate `getProps()` Redirect Short-Circuit (`page_functions.ts` & `layout_functions.ts`)**: Exposes `context._hasRedirected` in `dinou/core/handler.js` and short-circuits `dinou/core/get-jsx.js` immediately after `getProps()`, page rendering, `@slot` rendering, `getLayoutProps()`, and layout rendering whenever a redirect occurs — preventing `<Page />` / `<Layout />` components from executing with undefined props or turning SPA `x-rsc-redirect` responses into 500 errors.
|
|
183
|
+
- **External URL Handling in `router.push()`, `router.replace()`, and `<ClientRedirect>`**: `navigate()` in both `dinou/core/client.jsx` and `dinou/core/client-webpack.jsx` now detects external URLs via `isExternalUrl()` and delegates to `window.location.assign()` / `window.location.replace()`, preventing cross-origin `History.pushState` `SecurityError` crashes.
|
|
184
|
+
- **`<Link>` Native Browser Yielding (`target="_blank"`, `download`, Non-Primary Clicks)**: `dinou/core/link.jsx` and the global anchor click handlers in `client.jsx` / `client-webpack.jsx` now skip hover prefetching and SPA interception when `target` is set to a non-`_self` value, when `download` is present, or when `e.button !== 0`.
|
|
185
|
+
- **Hash Fragment Normalization for Client RSC Cache & `{ fresh: true }`**: `navigate()`, `getPagePayload()`, and `__DINOU_PREFETCH__` now strip `#hash` fragments from `pageCache` keys, `route` state, and RSC fetch URLs while preserving `#hash` in browser history — ensuring `?____v____=` and `?____build_id____=` are never placed inside the URL fragment and avoiding duplicate cache entries.
|
|
186
|
+
- **Referentially Stable `useRouter()` & Static-Export `useSearchParams()` Hydration**: Memoizes the object returned by `useRouter()` on `RouterContext` so local state updates do not unnecessarily re-run `useEffect(..., [router])` hooks, includes `window.__DINOU_STATIC_EXPORT__` in `useSearchParams()`'s static hydration guard, and corrects the `redirect()` JSDoc in `dinou/index.d.ts` from HTTP 307 to HTTP 302.
|
|
187
|
+
- **SSG `revalidate = 0` Detection (`||` → `??`) & Build-Time Redirect Short-Circuit (`dinou/core/build-static-pages.js`, `dinou/core/generate-static-rsc.js`)**: Replaces falsy `||` fallbacks with nullish coalescing (`??`) across all `revalidate` lookups in `collectPages()`, `buildStaticPages()`, and `buildStaticPage()` so `export const revalidate = 0` is no longer coerced to `undefined` and mistakenly pre-rendered at build time (also calling `markAsDynamic()` in `buildStaticPage()` before returning early). Additionally exposes `_hasRedirected` on SSG/ISR mock contexts and short-circuits `build-static-pages.js` immediately after `getProps()`, `@slot` renders, and `getLayoutProps()` whenever a redirect occurs, preventing build-time `TypeError` logs on guarded pages/layouts.
|
|
188
|
+
- **Bun Static Asset `<a download="...">` Filename Parity (`dinou/bun/build.js`)**: Sets `"content-disposition": "inline"` on `Bun.file(...)` static asset responses (`200` and `206` Range) so `Bun.serve()` does not auto-inject `content-disposition: filename="..."` — which previously overrode the HTML `<a download="...">` attribute in Chromium and Firefox — while preserving zero-copy `sendfile` delivery and full parity with Node, Deno, and Cloudflare.
|
|
189
|
+
- **Single-Pass TypeScript Performance Optimization for Contextual Route Types (`dinou/index.d.ts`)**: Hoists `SplitRouteSegments<CleanRoutePath<TFrom>>` out of union distributions in `DistributeRelative*` and computes completions, non-completion patterns, and dynamic templates in a single `RelativeTargetRecord` pass in `DinouRelativeLinkTarget<TFrom>`, eliminating redundant per-route traversals and `O(N²)` `Exclude<>` union diffs (~8× faster `tsc` and IDE type-checking on large route trees with identical type-safety guarantees).
|
|
190
|
+
- **ISR Stale-While-Revalidate TOCTOU Deduplication (`dinou/core/cache-revalidate.js`, `dinou/core/handler.js`)**: Adds an `onlyIfExpired` guard inside `enqueueRevalidation()` for both `revalidatePage()` and `revalidateLayout()` (with `:ttl` / `:force` separation in `inFlightKey` so explicit `revalidatePath()`/`revalidateTag()` calls are never coalesced with TTL refreshes), claims `regenerating.add(reqPath)` synchronously before launching background SWR tasks, re-checks `latestMeta` in the non-streaming fallback path, and guards `pageRevalidate !== undefined && pageRevalidate !== null` — preventing concurrent requests that observed a stale snapshot from triggering a redundant back-to-back regeneration immediately after the first SWR commit.
|
|
191
|
+
- **Memoized Contextual `"./dinou"` `useRouter()` (`dinou/core/generate-route-types.js`)**: Wrapped generated route-contextual `useRouter()` wrappers in a `react-server`-safe `useMemo(..., [router])` so Client Components importing `useRouter` from `"./dinou"` retain referential stability across unrelated local re-renders and avoid spurious `useEffect(..., [router])` teardowns.
|
|
192
|
+
- **Contextual `dinou.d.ts` Type Re-Export Parity (`dinou/core/generate-route-types.js`)**: Re-exported `DinouEnv`, `DinouNavigableRoutePatternMap`, `DinouNavigableRouteKey`, `DinouDynamicRoutePattern`, `DinouDynamicRouteWithSuffix`, `DinouEffectiveRoutePattern`, and `ScopedLinkTargetForFrom` from `"dinou"` in all generated `.dinou/routes/**/dinou.d.ts` declarations.
|
|
193
|
+
- **`getContext()` `rawPath` & `isRscRequest` Consistency and Sub-Context Isolation (`dinou/core/handler.js`, `dinou/core/request-context.js`)**: Excluded internal `rawPath` and `isRscRequest` wire transport fields from `copyCustomContextProperties()` `req` cloning so RSC wire metadata never leaks onto sub-contexts, and ensured `createServerFunctionContext()` as well as server/browser `getContext()` fallback stores consistently populate `req.rawPath` and `req.isRscRequest`.
|
|
194
|
+
- **`CloudflareKVStorage` Pagination & `has()` Fallback (`dinou/core/storage-adapter.js`)**: Implemented cursor-based pagination in `CloudflareKVStorage.keys(prefix)` so `revalidateTag()` no longer truncates at Cloudflare KV's 1,000-key limit, and added folder/index (`<key>/index.html`) fallback parity to `CloudflareKVStorage.has(key)`.
|
|
195
|
+
- **`DenoKVStorage` Trailing-Slash Normalization (`dinou/core/storage-adapter.js`)**: Stripped trailing slashes in `DenoKVStorage._cleanKey()` to match `FileSystemStorage`, `MemoryStorage`, `RedisStorage`, and `CloudflareKVStorage` across `get()`, `has()`, `set()`, and `delete()`.
|
|
196
|
+
- **`<DinouCacheSlot>` Combined `tag` + `tags` Merging & `revalidate < 1` Parity (`dinou/core/cache-slot.js`, `dinou/server.d.ts`)**: Merged and deduplicated `tag` and `tags` when both props are supplied; unified `< 1` no-cache semantics across `DinouCacheSlot`, `getSlotJSX()`, and `hasExpiredSlots()`; and widened `DinouCacheSlotProps.revalidate` to `number | false`.
|
|
197
|
+
- **Cold-Start / Multi-Pod `revalidateTag(slotId)` & Cold `revalidatePath()` Layout Detection (`dinou/core/cache-revalidate.js`, `dinou/core/cache-slot.js`, `dinou/core/storage-adapter.js`)**: Matched `id`-only `<DinouCacheSlot id="...">` records via `meta.slotId` / directory name even when the in-memory `slotRegistry` is cold (including checking `slotId` against tag invalidation timestamps in Cloudflare `env.ASSETS` and `readDist2Fallback`, and calling `markTagInvalidatedAsync` on non-`keys()` adapters), and detected exact segment `layout.tsx` files in `revalidatePath()` when storage is cold.
|
|
198
|
+
- **Authoritative `validateParams()` & `allowISG: false` Veto on Cached SPA RSC Requests (`dinou/core/handler.js`)**: Moved layout and page perimeter checks ahead of cached `page.rsc` / `layout.rsc` delivery on `/____rsc_page____/*`, `/____rsc_layout____/*`, and `/____rsc_payload____/*` so deactivated tenants/items return `404 Not Found` on SPA navigation just like direct HTML requests, and reversed layout perimeter evaluation order to strict **root-to-child** so a failing ancestor layout short-circuits before child layouts or child `page_functions.ts` execute.
|
|
199
|
+
- **`allowISG: false` Parameter Normalization for Numeric & Array `getStaticPaths` Objects (`dinou/core/handler.js`, `dinou/core/layout-functions.js`)**: Normalized `number`, `string[]`, and `undefined` values symmetrically when constructing and querying `staticPathsSet` so routes declaring `getStaticPaths = [{ id: 1 }]` or `[{ slug: ["docs", "intro"] }]` with `allowISG = false` no longer falsely 404 in `dinou dev`, cold storage, or Cloudflare Workers.
|
|
200
|
+
- **SSG `layout_functions.ts` `getStaticPaths` Support Across All Dynamic Bracket Types (`dinou/core/build-static-pages.js`)**: Extended `layout_functions.ts` `getStaticPaths` and `hasLocalLayout` discovery in `buildStaticPages()` from required `[param]` folders to optional `[[param]]`, catch-all `[...slug]`, and optional catch-all `[[...slug]]` segments.
|
|
201
|
+
- **Build-Time Numeric `getStaticPaths` Segment Coercion & Parent-Param Filtering (`dinou/core/build-static-pages.js`, `dinou/core/get-file-path-and-dynamic-params.js`)**: Coerced numeric `getStaticPaths` segments (e.g. `[{ id: 1 }]`, `[{ tenant: "acme", id: 1 }]`) to strings in `collectPages()` (with defensive string normalization in `matchRouteTree()`) so static pre-rendering no longer throws `TypeError: seg.startsWith is not a function`, and skipped mismatched child `getStaticPaths` entries whose ancestor params were already bound by a parent dynamic layout.
|
|
202
|
+
- **Named-Over-Default Export Precedence for `revalidate` & `allowISG` (`dinou/core/handler.js`, `dinou/core/layout-functions.js`, `dinou/core/cache-revalidate.js`)**: Fixed inverted function-first resolution ternaries in `page_functions` and `layout_functions` so named constant overrides (e.g. `export const revalidate = 0` / `false`, `export const allowISG = false` / `true`) always take precedence over `export default` function definitions without invoking the shadowed default functions, while preserving default-function invocation when no named export is present.
|
|
203
|
+
|
|
8
204
|
## [9.3.0] - 2026-11-07
|
|
9
205
|
|
|
10
206
|
### Added
|