@adonisjs/inertia 1.0.0-23 → 1.0.0-25
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/README.md
CHANGED
|
@@ -21,8 +21,8 @@ In order to ensure that the AdonisJS community is welcoming to all, please revie
|
|
|
21
21
|
## License
|
|
22
22
|
AdonisJS Lucid is open-sourced software licensed under the [MIT license](LICENSE.md).
|
|
23
23
|
|
|
24
|
-
[gh-workflow-image]: https://img.shields.io/github/actions/workflow/status/adonisjs/inertia/
|
|
25
|
-
[gh-workflow-url]: https://github.com/adonisjs/inertia/actions/workflows/
|
|
24
|
+
[gh-workflow-image]: https://img.shields.io/github/actions/workflow/status/adonisjs/inertia/checks.yml?style=for-the-badge
|
|
25
|
+
[gh-workflow-url]: https://github.com/adonisjs/inertia/actions/workflows/checks.yml "Github action"
|
|
26
26
|
|
|
27
27
|
[npm-image]: https://img.shields.io/npm/v/@adonisjs/inertia/latest.svg?style=for-the-badge&logo=npm
|
|
28
28
|
[npm-url]: https://www.npmjs.com/package/@adonisjs/inertia/v/latest "npm"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Route } from '@adonisjs/core/http';
|
|
1
2
|
import { ApplicationService } from '@adonisjs/core/types';
|
|
2
3
|
|
|
3
4
|
declare module '@adonisjs/core/http' {
|
|
@@ -6,7 +7,7 @@ declare module '@adonisjs/core/http' {
|
|
|
6
7
|
* Render an inertia page without defining an
|
|
7
8
|
* explicit route handler
|
|
8
9
|
*/
|
|
9
|
-
renderInertia(component: string, props?: Record<string, any>, viewProps?: Record<string, any>):
|
|
10
|
+
renderInertia(component: string, props?: Record<string, any>, viewProps?: Record<string, any>): Route;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InertiaMiddleware
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-Y7UMAJ3S.js";
|
|
4
4
|
|
|
5
5
|
// providers/inertia_provider.ts
|
|
6
6
|
import { configProvider } from "@adonisjs/core";
|
|
7
|
-
import { BriskRoute } from "@adonisjs/core/http";
|
|
8
7
|
import { RuntimeException } from "@poppinss/utils";
|
|
8
|
+
import { BriskRoute } from "@adonisjs/core/http";
|
|
9
9
|
var InertiaProvider = class {
|
|
10
10
|
constructor(app) {
|
|
11
11
|
this.app = app;
|
package/build/src/types.d.ts
CHANGED
|
@@ -123,5 +123,12 @@ interface PageObject<TPageProps extends PageProps = PageProps> {
|
|
|
123
123
|
* ```
|
|
124
124
|
*/
|
|
125
125
|
type InferPageProps<Controller, Method extends keyof Controller> = Controller[Method] extends (...args: any[]) => any ? Serialize<Exclude<Awaited<ReturnType<Controller[Method]>>, string>['props']> : never;
|
|
126
|
+
/**
|
|
127
|
+
* Signature for the method in the SSR entrypoint file
|
|
128
|
+
*/
|
|
129
|
+
type RenderInertiaSsrApp = (page: PageObject) => Promise<{
|
|
130
|
+
head: string[];
|
|
131
|
+
body: string;
|
|
132
|
+
}>;
|
|
126
133
|
|
|
127
|
-
export type { AssetsVersion, Data, InertiaConfig, InferPageProps, MaybePromise, PageObject, PageProps, ResolvedConfig, SharedData, SharedDatumFactory };
|
|
134
|
+
export type { AssetsVersion, Data, InertiaConfig, InferPageProps, MaybePromise, PageObject, PageProps, RenderInertiaSsrApp, ResolvedConfig, SharedData, SharedDatumFactory };
|
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": "1.0.0-
|
|
4
|
+
"version": "1.0.0-25",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.16.0"
|
|
7
7
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"prebuild": "npm run lint && npm run clean",
|
|
34
34
|
"build": "tsup-node",
|
|
35
35
|
"postbuild": "npm run copy:templates",
|
|
36
|
-
"release": "
|
|
36
|
+
"release": "release-it",
|
|
37
37
|
"version": "npm run build",
|
|
38
38
|
"prepublishOnly": "npm run build"
|
|
39
39
|
},
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"edge.js": "^6.0.2",
|
|
65
65
|
"eslint": "^8.57.0",
|
|
66
66
|
"get-port": "^7.1.0",
|
|
67
|
-
"np": "^10.0.2",
|
|
68
67
|
"prettier": "^3.2.5",
|
|
68
|
+
"release-it": "^17.1.1",
|
|
69
69
|
"supertest": "^6.3.4",
|
|
70
70
|
"tinybench": "^2.6.0",
|
|
71
71
|
"ts-node": "^10.9.2",
|
|
@@ -75,11 +75,11 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@poppinss/utils": "^6.7.2",
|
|
78
|
+
"@tuyau/utils": "^0.0.1",
|
|
78
79
|
"crc-32": "^1.2.2",
|
|
79
80
|
"edge-error": "^4.0.1",
|
|
80
81
|
"html-entities": "^2.5.2",
|
|
81
82
|
"locate-path": "^7.2.0",
|
|
82
|
-
"@tuyau/utils": "^0.0.1",
|
|
83
83
|
"qs": "^6.11.2"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
@@ -108,11 +108,17 @@
|
|
|
108
108
|
"access": "public",
|
|
109
109
|
"tag": "latest"
|
|
110
110
|
},
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
"release-it": {
|
|
112
|
+
"git": {
|
|
113
|
+
"commitMessage": "chore(release): ${version}",
|
|
114
|
+
"tagAnnotation": "v${version}",
|
|
115
|
+
"tagName": "v${version}"
|
|
116
|
+
},
|
|
117
|
+
"github": {
|
|
118
|
+
"release": true,
|
|
119
|
+
"releaseName": "v${version}",
|
|
120
|
+
"web": true
|
|
121
|
+
}
|
|
116
122
|
},
|
|
117
123
|
"c8": {
|
|
118
124
|
"reporter": [
|