@adonisjs/inertia 3.1.1 → 4.0.0-next.0
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/{chunk-W7TVEB4V.js → chunk-AWCR2NAY.js} +1 -1
- package/build/index.js +2 -2
- package/build/providers/inertia_provider.js +1 -1
- package/build/react/root.edge.stub +1 -1
- package/build/src/inertia_middleware.js +1 -1
- package/build/src/plugins/edge/plugin.js +1 -1
- package/build/src/plugins/vite.js +7 -15
- package/package.json +32 -24
package/build/index.js
CHANGED
|
@@ -184,8 +184,8 @@ import { slash } from "@poppinss/utils";
|
|
|
184
184
|
import { configProvider } from "@adonisjs/core";
|
|
185
185
|
|
|
186
186
|
// src/version_cache.ts
|
|
187
|
-
import { createHash } from "
|
|
188
|
-
import { readFile } from "
|
|
187
|
+
import { createHash } from "crypto";
|
|
188
|
+
import { readFile } from "fs/promises";
|
|
189
189
|
var VersionCache = class {
|
|
190
190
|
constructor(appRoot, assetsVersion) {
|
|
191
191
|
this.appRoot = appRoot;
|
|
@@ -3,21 +3,13 @@ function inertia(options) {
|
|
|
3
3
|
return {
|
|
4
4
|
name: "vite-plugin-inertia",
|
|
5
5
|
config: (_, { command }) => {
|
|
6
|
-
if (
|
|
7
|
-
if (command === "build") {
|
|
8
|
-
process.env.NODE_ENV = "production";
|
|
9
|
-
}
|
|
6
|
+
if (command === "build") process.env.NODE_ENV = "production";
|
|
10
7
|
return {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
name: "build-ssr",
|
|
19
|
-
description: "build inertia server bundle",
|
|
20
|
-
config: {
|
|
8
|
+
builder: {},
|
|
9
|
+
build: { outDir: "build/public/assets" },
|
|
10
|
+
environments: {
|
|
11
|
+
...options?.ssr?.enabled && {
|
|
12
|
+
ssr: {
|
|
21
13
|
build: {
|
|
22
14
|
ssr: true,
|
|
23
15
|
outDir: options.ssr.output || "build/ssr",
|
|
@@ -25,7 +17,7 @@ function inertia(options) {
|
|
|
25
17
|
}
|
|
26
18
|
}
|
|
27
19
|
}
|
|
28
|
-
|
|
20
|
+
}
|
|
29
21
|
};
|
|
30
22
|
}
|
|
31
23
|
};
|
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
|
+
"version": "4.0.0-next.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.6.0"
|
|
7
7
|
},
|
|
@@ -40,51 +40,50 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@adonisjs/assembler": "^7.8.2",
|
|
42
42
|
"@adonisjs/core": "6.17.1",
|
|
43
|
-
"@adonisjs/eslint-config": "^2.
|
|
44
|
-
"@adonisjs/prettier-config": "^1.4.
|
|
43
|
+
"@adonisjs/eslint-config": "^2.1.0",
|
|
44
|
+
"@adonisjs/prettier-config": "^1.4.5",
|
|
45
45
|
"@adonisjs/session": "^7.5.1",
|
|
46
|
-
"@adonisjs/tsconfig": "^1.4.
|
|
47
|
-
"@adonisjs/vite": "^
|
|
48
|
-
"@japa/api-client": "^3.0
|
|
46
|
+
"@adonisjs/tsconfig": "^1.4.1",
|
|
47
|
+
"@adonisjs/vite": "^5.0.0-next.0",
|
|
48
|
+
"@japa/api-client": "^3.1.0",
|
|
49
49
|
"@japa/assert": "4.0.1",
|
|
50
50
|
"@japa/expect-type": "^2.0.3",
|
|
51
51
|
"@japa/file-system": "^2.3.2",
|
|
52
52
|
"@japa/plugin-adonisjs": "^4.0.0",
|
|
53
53
|
"@japa/runner": "4.2.0",
|
|
54
54
|
"@japa/snapshot": "^2.0.8",
|
|
55
|
-
"@release-it/conventional-changelog": "^10.0.
|
|
55
|
+
"@release-it/conventional-changelog": "^10.0.1",
|
|
56
56
|
"@swc/core": "1.10.7",
|
|
57
|
-
"@types/node": "^
|
|
58
|
-
"@types/qs": "^6.
|
|
59
|
-
"@types/supertest": "^6.0.
|
|
60
|
-
"@vavite/multibuild": "^5.1.0",
|
|
57
|
+
"@types/node": "^24.0.15",
|
|
58
|
+
"@types/qs": "^6.14.0",
|
|
59
|
+
"@types/supertest": "^6.0.3",
|
|
61
60
|
"c8": "^10.1.3",
|
|
62
61
|
"copyfiles": "^2.4.1",
|
|
63
62
|
"del-cli": "^6.0.0",
|
|
64
63
|
"edge-parser": "^9.0.4",
|
|
65
64
|
"edge.js": "^6.2.1",
|
|
66
|
-
"eslint": "^9.
|
|
65
|
+
"eslint": "^9.31.0",
|
|
67
66
|
"get-port": "^7.1.0",
|
|
68
|
-
"prettier": "^3.
|
|
69
|
-
"release-it": "^
|
|
70
|
-
"supertest": "^7.
|
|
67
|
+
"prettier": "^3.6.2",
|
|
68
|
+
"release-it": "^19.0.4",
|
|
69
|
+
"supertest": "^7.1.3",
|
|
71
70
|
"ts-node-maintained": "^10.9.5",
|
|
72
|
-
"tsup": "^8.
|
|
73
|
-
"typescript": "~5.8.
|
|
74
|
-
"vite": "^
|
|
71
|
+
"tsup": "^8.5.0",
|
|
72
|
+
"typescript": "~5.8.3",
|
|
73
|
+
"vite": "^7.0.5"
|
|
75
74
|
},
|
|
76
75
|
"dependencies": {
|
|
77
|
-
"@poppinss/utils": "^6.
|
|
78
|
-
"@tuyau/utils": "^0.0.
|
|
76
|
+
"@poppinss/utils": "^6.10.0",
|
|
77
|
+
"@tuyau/utils": "^0.0.9",
|
|
79
78
|
"edge-error": "^4.0.2",
|
|
80
|
-
"html-entities": "^2.
|
|
79
|
+
"html-entities": "^2.6.0",
|
|
81
80
|
"locate-path": "^7.2.0",
|
|
82
81
|
"qs": "^6.14.0"
|
|
83
82
|
},
|
|
84
83
|
"peerDependencies": {
|
|
85
84
|
"@adonisjs/core": "^6.9.1",
|
|
86
85
|
"@adonisjs/session": "^7.4.0",
|
|
87
|
-
"@adonisjs/vite": "^
|
|
86
|
+
"@adonisjs/vite": "^5.0.0",
|
|
88
87
|
"@japa/api-client": "^2.0.0 || ^3.0.0",
|
|
89
88
|
"edge.js": "^6.0.0"
|
|
90
89
|
},
|
|
@@ -96,8 +95,16 @@
|
|
|
96
95
|
"publishConfig": {
|
|
97
96
|
"access": "public"
|
|
98
97
|
},
|
|
99
|
-
"author": "Julien Ripouteau <julien@ripouteau.com
|
|
98
|
+
"author": "Julien Ripouteau <julien@ripouteau.com>",
|
|
100
99
|
"license": "MIT",
|
|
100
|
+
"homepage": "https://github.com/adonisjs/inertia#readme",
|
|
101
|
+
"repository": {
|
|
102
|
+
"type": "git",
|
|
103
|
+
"url": "git+https://github.com/adonisjs/inertia.git"
|
|
104
|
+
},
|
|
105
|
+
"bugs": {
|
|
106
|
+
"url": "https://github.com/adonisjs/inertia/issues"
|
|
107
|
+
},
|
|
101
108
|
"keywords": [
|
|
102
109
|
"inertia",
|
|
103
110
|
"adonisjs"
|
|
@@ -154,5 +161,6 @@
|
|
|
154
161
|
"format": "esm",
|
|
155
162
|
"dts": true,
|
|
156
163
|
"target": "esnext"
|
|
157
|
-
}
|
|
164
|
+
},
|
|
165
|
+
"packageManager": "pnpm@10.13.1"
|
|
158
166
|
}
|