@adonisjs/inertia 4.0.0-next.4 → 4.0.0-next.5
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.
|
@@ -67,14 +67,13 @@ function defineConfig(config) {
|
|
|
67
67
|
return lodash.merge(
|
|
68
68
|
{
|
|
69
69
|
rootView: "inertia_layout",
|
|
70
|
-
entrypoint: "inertia/app/app.ts",
|
|
71
70
|
history: {
|
|
72
71
|
encrypt: false
|
|
73
72
|
},
|
|
74
73
|
ssr: {
|
|
75
74
|
enabled: false,
|
|
76
75
|
bundle: "ssr/ssr.js",
|
|
77
|
-
entrypoint: "inertia/
|
|
76
|
+
entrypoint: "inertia/ssr.tsx"
|
|
78
77
|
}
|
|
79
78
|
},
|
|
80
79
|
config
|
package/build/factories/main.js
CHANGED
package/build/index.js
CHANGED
package/build/src/inertia.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Vite } from '@adonisjs/vite';
|
|
2
2
|
import type { HttpContext } from '@adonisjs/core/http';
|
|
3
3
|
import { type ServerRenderer } from './server_renderer.js';
|
|
4
|
-
import type { PageProps, PageObject, AsPageProps, RequestInfo, InertiaConfig, ComponentProps } from './types.js';
|
|
4
|
+
import type { PageProps, PageObject, AsPageProps, RequestInfo, InertiaConfig, ComponentProps, SharedProps } from './types.js';
|
|
5
5
|
import { defer, merge, always, optional, deepMerge } from './props.ts';
|
|
6
6
|
/**
|
|
7
7
|
* Main class used to interact with Inertia
|
|
@@ -175,7 +175,7 @@ export declare class Inertia<Pages> {
|
|
|
175
175
|
* })
|
|
176
176
|
* ```
|
|
177
177
|
*/
|
|
178
|
-
page<Page extends keyof Pages & string>(page: Page, pageProps: Pages[Page] extends ComponentProps ? AsPageProps<Pages[Page]
|
|
178
|
+
page<Page extends keyof Pages & string>(page: Page, pageProps: Pages[Page] extends ComponentProps ? AsPageProps<Omit<Pages[Page], keyof SharedProps>> : never): Promise<PageObject<Pages[Page]>>;
|
|
179
179
|
/**
|
|
180
180
|
* Render a page using Inertia
|
|
181
181
|
*
|
|
@@ -202,7 +202,7 @@ export declare class Inertia<Pages> {
|
|
|
202
202
|
* const html = await inertia.render('Home', { welcome: 'Hello World' })
|
|
203
203
|
* ```
|
|
204
204
|
*/
|
|
205
|
-
render<Page extends keyof Pages & string>(page: Page, pageProps: Pages[Page] extends ComponentProps ? AsPageProps<Pages[Page]
|
|
205
|
+
render<Page extends keyof Pages & string>(page: Page, pageProps: Pages[Page] extends ComponentProps ? AsPageProps<Omit<Pages[Page], keyof SharedProps>> : never, viewProps?: Record<string, any>): Promise<string | PageObject<Pages[Page]>>;
|
|
206
206
|
/**
|
|
207
207
|
* Clear the browser history on the next navigation
|
|
208
208
|
*
|
package/build/src/types.d.ts
CHANGED
|
@@ -242,10 +242,6 @@ export type InertiaConfig = {
|
|
|
242
242
|
* application
|
|
243
243
|
*/
|
|
244
244
|
rootView: string | ((ctx: HttpContext) => string);
|
|
245
|
-
/**
|
|
246
|
-
* The entrypoint file to load in order to boot the frontend application.
|
|
247
|
-
*/
|
|
248
|
-
entrypoint: string;
|
|
249
245
|
/**
|
|
250
246
|
* A fixed asset version value to use. Otherwise, it will be read from the
|
|
251
247
|
* Vite manifest file.
|
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.5",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@japa/snapshot": "^2.0.9",
|
|
59
59
|
"@poppinss/ts-exec": "^1.4.1",
|
|
60
60
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
61
|
-
"@types/node": "^24.6.
|
|
61
|
+
"@types/node": "^24.6.2",
|
|
62
62
|
"@types/supertest": "^6.0.3",
|
|
63
63
|
"c8": "^10.1.3",
|
|
64
64
|
"copyfiles": "^2.4.1",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"release-it": "^19.0.5",
|
|
72
72
|
"supertest": "^7.1.4",
|
|
73
73
|
"tsup": "^8.5.0",
|
|
74
|
-
"typescript": "~5.9.
|
|
74
|
+
"typescript": "~5.9.3",
|
|
75
75
|
"vite": "^7.1.7"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|