dinou 8.0.1 → 8.0.2

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 CHANGED
@@ -5,6 +5,11 @@ 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
+ ## [8.0.2] - 2026-10-22
9
+
10
+ ### Fixed
11
+ - **Type-Safe Routing Ambient Inclusions**: Dinou no longer modifies `dinou-env.d.ts` at runtime. Ambient route declarations (`.dinou/types/routes.d.ts`) are now consumed directly via `tsconfig.json` (`".dinou/types/**/*.d.ts"`), preventing `TS6053` errors on fresh clones and keeping Git working trees clean.
12
+
8
13
  ## [8.0.1] - 2026-10-21
9
14
 
10
15
  ### Fixed
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # **Dinou**
2
2
 
3
- [![Documentation](https://img.shields.io/badge/docs-dinou.dev-blue?style=flat-square)](https://dinou.dev) [![Version](https://img.shields.io/badge/version-8.0.1-orange?style=flat-square)](https://www.npmjs.com/package/dinou)
3
+ [![Documentation](https://img.shields.io/badge/docs-dinou.dev-blue?style=flat-square)](https://dinou.dev) [![Version](https://img.shields.io/badge/version-8.0.2-orange?style=flat-square)](https://www.npmjs.com/package/dinou)
4
4
 
5
5
  ### **Full-Stack React 19 Framework**
6
6
 
@@ -539,7 +539,8 @@ Dinou does not force you to use TypeScript—you are completely free to write yo
539
539
  },
540
540
  "include": [
541
541
  "src",
542
- "dinou-env.d.ts"
542
+ "dinou-env.d.ts",
543
+ ".dinou/types/**/*.d.ts"
543
544
  ]
544
545
  }
545
546
  ```
@@ -6148,7 +6149,8 @@ Ensure your `tsconfig.json` includes the declaration file and specifies `"module
6148
6149
  },
6149
6150
  "include": [
6150
6151
  "src",
6151
- "dinou-env.d.ts"
6152
+ "dinou-env.d.ts",
6153
+ ".dinou/types/**/*.d.ts"
6152
6154
  ]
6153
6155
  }
6154
6156
  ```
@@ -6426,7 +6428,8 @@ And confirm your `tsconfig.json` includes the reference:
6426
6428
  },
6427
6429
  "include": [
6428
6430
  "src",
6429
- "dinou-env.d.ts"
6431
+ "dinou-env.d.ts",
6432
+ ".dinou/types/**/*.d.ts"
6430
6433
  ]
6431
6434
  }
6432
6435
  ```
@@ -6698,7 +6701,8 @@ To enable the standard `@/*` alias pointing to your `src/` directory, configure
6698
6701
  },
6699
6702
  "include": [
6700
6703
  "src",
6701
- "dinou-env.d.ts"
6704
+ "dinou-env.d.ts",
6705
+ ".dinou/types/**/*.d.ts"
6702
6706
  ]
6703
6707
  }
6704
6708
  ```
@@ -134,7 +134,7 @@ function generateRouteDefinitions(routes) {
134
134
  }
135
135
 
136
136
  /**
137
- * Generates the .dinou/types/routes.d.ts file and ensures dinou-env.d.ts references it.
137
+ * Generates the .dinou/types/routes.d.ts ambient definitions file.
138
138
  * @param {string} projectRoot Root directory of the project (default process.cwd())
139
139
  */
140
140
  function generateRouteTypes(projectRoot = process.cwd()) {
@@ -225,19 +225,6 @@ ${paramsEntries}
225
225
  }
226
226
  }
227
227
 
228
- // Ensure dinou-env.d.ts references .dinou/types/routes.d.ts
229
- const envFile = path.resolve(projectRoot, "dinou-env.d.ts");
230
- try {
231
- if (fs.existsSync(envFile)) {
232
- let envContent = fs.readFileSync(envFile, "utf8");
233
- const refLine = '/// <reference path="./.dinou/types/routes.d.ts" />';
234
- if (!envContent.includes(refLine)) {
235
- envContent = envContent.trimEnd() + "\n" + refLine + "\n";
236
- fs.writeFileSync(envFile, envContent, "utf8");
237
- }
238
- }
239
- } catch (e) {}
240
-
241
228
  return {
242
229
  staticCount: staticRoutes.length,
243
230
  dynamicCount: dynamicRoutes.length,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dinou-ejected",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "private": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dinou",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Full-stack React 19 framework with native RSC, Server Functions, progressive streaming, and zero vendor lock-in.",
5
5
  "type": "module",
6
6
  "main": "./dinou/index.js",