@dudousxd/nestjs-inertia 1.0.5 → 1.0.7
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 +12 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog — @dudousxd/nestjs-inertia
|
|
2
2
|
|
|
3
|
+
## 1.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(core): use data-page="app" attribute on script tag for Inertia v3 protocol compatibility
|
|
8
|
+
|
|
9
|
+
## 1.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fix(codegen): resolve interfaces, type aliases, and enums — not just classes. Conditional @tanstack/query-core import.
|
|
14
|
+
|
|
3
15
|
## 1.0.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1412,7 +1412,7 @@ function processDirectives(template, ctx) {
|
|
|
1412
1412
|
out = out.replace(/@inertia(?![a-zA-Z(])/g, () => {
|
|
1413
1413
|
if (ctx.ssrBody) return ctx.ssrBody;
|
|
1414
1414
|
return `<div id="app"></div>
|
|
1415
|
-
<script
|
|
1415
|
+
<script data-page="app" type="application/json">${ctx.pageJson}</script>`;
|
|
1416
1416
|
});
|
|
1417
1417
|
out = out.replace(/@viteRefresh\b/g, () => ctx.isDev ? VITE_REFRESH_PREAMBLE : "");
|
|
1418
1418
|
out = out.replace(/@vite\(\s*['"]([^'"]+)['"]\s*\)/g, (_full, entry) => {
|
|
@@ -1542,7 +1542,7 @@ var FileBasedShellRenderer = class {
|
|
|
1542
1542
|
this.engineRenderer = adapter.compile(this.cachedTemplate, this.absPath);
|
|
1543
1543
|
}
|
|
1544
1544
|
const inertiaHtml = ssrBody ?? `<div id="app"></div>
|
|
1545
|
-
<script
|
|
1545
|
+
<script data-page="app" type="application/json">${pageJson}</script>`;
|
|
1546
1546
|
const directiveCtx = {
|
|
1547
1547
|
pageJson,
|
|
1548
1548
|
ssrHead,
|
|
@@ -1579,7 +1579,7 @@ var DefaultShellRenderer = class {
|
|
|
1579
1579
|
</head>
|
|
1580
1580
|
<body>
|
|
1581
1581
|
<div id="app"></div>
|
|
1582
|
-
<script
|
|
1582
|
+
<script data-page="app" type="application/json">${pageJson}</script>
|
|
1583
1583
|
</body>
|
|
1584
1584
|
</html>`;
|
|
1585
1585
|
}
|
|
@@ -2281,7 +2281,7 @@ CsrfGuard = _ts_decorate10([
|
|
|
2281
2281
|
], CsrfGuard);
|
|
2282
2282
|
|
|
2283
2283
|
// src/index.ts
|
|
2284
|
-
var VERSION = "1.0.
|
|
2284
|
+
var VERSION = "1.0.7";
|
|
2285
2285
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2286
2286
|
0 && (module.exports = {
|
|
2287
2287
|
CsrfCookieInterceptor,
|