@dudousxd/nestjs-inertia 1.0.0 → 1.0.3

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
@@ -1,5 +1,23 @@
1
1
  # Changelog — @dudousxd/nestjs-inertia
2
2
 
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c79cc6d`](https://github.com/DavideCarvalho/nestjs-inertia/commit/c79cc6dad64342bce17c28a705ae27911c3f4c74) - Fix React Refresh preamble in @vite directive, watcher initial pass runs full discovery, auto-sync VERSION constants
8
+
9
+ ## 1.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`27e0bab`](https://github.com/DavideCarvalho/nestjs-inertia/commit/27e0bab4b7f8752a4dd179cc715b4e3d64161624) - Fix: @vite directive includes React Refresh preamble, watcher initial pass runs full route+contract discovery from DTOs
14
+
15
+ ## 1.0.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [`a33c81b`](https://github.com/DavideCarvalho/nestjs-inertia/commit/a33c81b0a53077559b1f9433824cfaee1b01c80c) - Fix: @vite directive includes React Refresh preamble in dev, watcher initial pass runs full route+contract discovery
20
+
3
21
  ## 1.0.0
4
22
 
5
23
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1417,8 +1417,11 @@ function processDirectives(template, ctx) {
1417
1417
  out = out.replace(/@viteRefresh\b/g, () => ctx.isDev ? VITE_REFRESH_PREAMBLE : "");
1418
1418
  out = out.replace(/@vite\(\s*['"]([^'"]+)['"]\s*\)/g, (_full, entry) => {
1419
1419
  if (ctx.isDev) {
1420
- return `<script type="module" src="/@vite/client"></script>
1421
- <script type="module" src="/${entry}"></script>`;
1420
+ return [
1421
+ `<script type="module" src="/@vite/client"></script>`,
1422
+ VITE_REFRESH_PREAMBLE,
1423
+ `<script type="module" src="/${entry}"></script>`
1424
+ ].join("\n");
1422
1425
  }
1423
1426
  const entryRecord = ctx.manifest?.[entry];
1424
1427
  if (!entryRecord) {
@@ -2278,7 +2281,7 @@ CsrfGuard = _ts_decorate10([
2278
2281
  ], CsrfGuard);
2279
2282
 
2280
2283
  // src/index.ts
2281
- var VERSION = "1.0.0";
2284
+ var VERSION = "1.0.3";
2282
2285
  // Annotate the CommonJS export names for ESM import in node:
2283
2286
  0 && (module.exports = {
2284
2287
  CsrfCookieInterceptor,