@adonisjs/inertia 4.0.0-next.17 → 4.0.0-next.18
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/build/factories/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ServerRenderer, r as Inertia } from "../inertia_manager-
|
|
1
|
+
import { n as ServerRenderer, r as Inertia } from "../inertia_manager-DsjSQHlg.js";
|
|
2
2
|
import { t as InertiaHeaders } from "../headers-DafWEpBh.js";
|
|
3
3
|
import "../debug-CBMTuPUm.js";
|
|
4
4
|
import { t as defineConfig } from "../inertia-CrPBlGRS.js";
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as symbols_exports, n as ServerRenderer, r as Inertia, t as InertiaManager } from "./inertia_manager-
|
|
1
|
+
import { i as symbols_exports, n as ServerRenderer, r as Inertia, t as InertiaManager } from "./inertia_manager-DsjSQHlg.js";
|
|
2
2
|
import { t as InertiaHeaders } from "./headers-DafWEpBh.js";
|
|
3
3
|
import "./debug-CBMTuPUm.js";
|
|
4
4
|
import { n as indexPages, t as defineConfig } from "./inertia-CrPBlGRS.js";
|
|
@@ -2,7 +2,7 @@ import { t as InertiaHeaders } from "./headers-DafWEpBh.js";
|
|
|
2
2
|
import { t as debug_default } from "./debug-CBMTuPUm.js";
|
|
3
3
|
import "node:module";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
|
-
import {
|
|
5
|
+
import { BaseSerializer } from "@adonisjs/core/transformers";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __exportAll = (all, symbols) => {
|
|
@@ -26,6 +26,13 @@ const OPTIONAL_PROP = Symbol.for("OPTIONAL_PROP");
|
|
|
26
26
|
const TO_BE_MERGED = Symbol.for("TO_BE_MERGED");
|
|
27
27
|
const DEFERRED_PROP = Symbol.for("DEFERRED_PROP");
|
|
28
28
|
const DEEP_MERGE = Symbol.for("DEEP_MERGE");
|
|
29
|
+
var InertiaSerializer = class extends BaseSerializer {
|
|
30
|
+
wrap = void 0;
|
|
31
|
+
definePaginationMetaData(metaData) {
|
|
32
|
+
return metaData;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const inertiaSerializer = new InertiaSerializer();
|
|
29
36
|
function isObject(value) {
|
|
30
37
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
31
38
|
}
|
|
@@ -78,7 +85,7 @@ function isOptionalProp(propValue) {
|
|
|
78
85
|
return OPTIONAL_PROP in propValue;
|
|
79
86
|
}
|
|
80
87
|
async function unpackPropValue(value, containerResolver) {
|
|
81
|
-
return serialize(value, containerResolver);
|
|
88
|
+
return inertiaSerializer.serialize(value, containerResolver);
|
|
82
89
|
}
|
|
83
90
|
async function buildStandardVisitProps(pageProps, containerResolver) {
|
|
84
91
|
const mergeProps = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as InertiaManager } from "../inertia_manager-
|
|
1
|
+
import { t as InertiaManager } from "../inertia_manager-DsjSQHlg.js";
|
|
2
2
|
import { t as InertiaHeaders } from "../headers-DafWEpBh.js";
|
|
3
3
|
import { t as debug_default } from "../debug-CBMTuPUm.js";
|
|
4
4
|
const MUTATION_METHODS = [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/inertia",
|
|
3
3
|
"description": "Official Inertia.js adapter for AdonisJS",
|
|
4
|
-
"version": "4.0.0-next.
|
|
4
|
+
"version": "4.0.0-next.18",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
@@ -43,25 +43,25 @@
|
|
|
43
43
|
"docs": "typedoc"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@adonisjs/assembler": "^8.0.0-next.
|
|
47
|
-
"@adonisjs/core": "^7.0.0-next.
|
|
48
|
-
"@adonisjs/eslint-config": "^3.0.0-next.
|
|
46
|
+
"@adonisjs/assembler": "^8.0.0-next.29",
|
|
47
|
+
"@adonisjs/core": "^7.0.0-next.23",
|
|
48
|
+
"@adonisjs/eslint-config": "^3.0.0-next.9",
|
|
49
49
|
"@adonisjs/prettier-config": "^1.4.5",
|
|
50
|
-
"@adonisjs/session": "^8.0.0-next.
|
|
50
|
+
"@adonisjs/session": "^8.0.0-next.2",
|
|
51
51
|
"@adonisjs/tsconfig": "^2.0.0-next.3",
|
|
52
52
|
"@adonisjs/vite": "^5.1.0-next.2",
|
|
53
|
-
"@inertiajs/react": "^2.3.
|
|
54
|
-
"@japa/api-client": "^3.
|
|
53
|
+
"@inertiajs/react": "^2.3.8",
|
|
54
|
+
"@japa/api-client": "^3.2.1",
|
|
55
55
|
"@japa/assert": "4.2.0",
|
|
56
56
|
"@japa/expect-type": "^2.0.4",
|
|
57
57
|
"@japa/file-system": "^3.0.0",
|
|
58
|
-
"@japa/plugin-adonisjs": "^5.1.0-next.
|
|
58
|
+
"@japa/plugin-adonisjs": "^5.1.0-next.1",
|
|
59
59
|
"@japa/runner": "5.0.0",
|
|
60
60
|
"@japa/snapshot": "^2.0.10",
|
|
61
61
|
"@poppinss/ts-exec": "^1.4.1",
|
|
62
62
|
"@release-it/conventional-changelog": "^10.0.4",
|
|
63
|
-
"@tuyau/core": "^1.0.0-beta.
|
|
64
|
-
"@types/node": "^25.0.
|
|
63
|
+
"@tuyau/core": "^1.0.0-beta.10",
|
|
64
|
+
"@types/node": "^25.0.5",
|
|
65
65
|
"@types/react": "^19.2.7",
|
|
66
66
|
"@types/supertest": "^6.0.3",
|
|
67
67
|
"c8": "^10.1.3",
|
|
@@ -73,26 +73,26 @@
|
|
|
73
73
|
"get-port": "^7.1.0",
|
|
74
74
|
"prettier": "^3.7.4",
|
|
75
75
|
"react": "^19.2.3",
|
|
76
|
-
"release-it": "^19.
|
|
77
|
-
"supertest": "^7.
|
|
78
|
-
"tsdown": "^0.18.
|
|
76
|
+
"release-it": "^19.2.3",
|
|
77
|
+
"supertest": "^7.2.2",
|
|
78
|
+
"tsdown": "^0.18.4",
|
|
79
79
|
"typescript": "~5.9.3",
|
|
80
|
-
"vite": "^7.3.
|
|
80
|
+
"vite": "^7.3.1"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@poppinss/utils": "^7.0.0-next.
|
|
83
|
+
"@poppinss/utils": "^7.0.0-next.6",
|
|
84
84
|
"edge-error": "^4.0.2",
|
|
85
85
|
"html-entities": "^2.6.0"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@adonisjs/assembler": "^8.0.0-next.
|
|
89
|
-
"@adonisjs/core": "^7.0.0-next.
|
|
90
|
-
"@adonisjs/session": "^8.0.0-next.
|
|
91
|
-
"@adonisjs/vite": "^5.1.0-next.
|
|
92
|
-
"@inertiajs/react": "^2.3.
|
|
88
|
+
"@adonisjs/assembler": "^8.0.0-next.29",
|
|
89
|
+
"@adonisjs/core": "^7.0.0-next.23",
|
|
90
|
+
"@adonisjs/session": "^8.0.0-next.2",
|
|
91
|
+
"@adonisjs/vite": "^5.1.0-next.2",
|
|
92
|
+
"@inertiajs/react": "^2.3.8",
|
|
93
93
|
"@japa/api-client": "^3.1.1",
|
|
94
|
-
"@japa/plugin-adonisjs": "^5.1.0-next.
|
|
95
|
-
"@tuyau/core": "^1.0.0-beta.
|
|
94
|
+
"@japa/plugin-adonisjs": "^5.1.0-next.1",
|
|
95
|
+
"@tuyau/core": "^1.0.0-beta.10",
|
|
96
96
|
"edge.js": "^6.4.0",
|
|
97
97
|
"react": "^19.2.3"
|
|
98
98
|
},
|