@inertiajs/core 2.3.10 → 2.3.12
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/dist/index.esm.js +16 -2
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +16 -2
- package/dist/index.js.map +2 -2
- package/package.json +5 -7
- package/types/types.d.ts +1 -1
- package/types/url.d.ts +1 -0
- package/types/useFormUtils.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inertiajs/core",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A framework for creating server-driven single page apps.",
|
|
6
6
|
"contributors": [
|
|
@@ -45,18 +45,16 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@types/lodash-es": "^4.17.12",
|
|
48
|
-
"laravel-precognition": "^1.0.0",
|
|
49
48
|
"axios": "^1.13.2",
|
|
50
|
-
"
|
|
49
|
+
"laravel-precognition": "^1.0.0",
|
|
50
|
+
"lodash-es": "^4.17.23",
|
|
51
51
|
"qs": "^6.14.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@types/deepmerge": "^2.2.3",
|
|
55
54
|
"@types/node": "^18.19.130",
|
|
56
|
-
"@types/nprogress": "^0.2.3",
|
|
57
55
|
"@types/qs": "^6.14.0",
|
|
58
|
-
"es-check": "^9.
|
|
59
|
-
"esbuild": "^0.
|
|
56
|
+
"es-check": "^9.5.3",
|
|
57
|
+
"esbuild": "^0.27.2",
|
|
60
58
|
"esbuild-node-externals": "^1.20.1",
|
|
61
59
|
"typescript": "^5.9.3"
|
|
62
60
|
},
|
package/types/types.d.ts
CHANGED
|
@@ -438,7 +438,7 @@ export type UrlMethodPair = {
|
|
|
438
438
|
};
|
|
439
439
|
export type UseFormTransformCallback<TForm> = (data: TForm) => object;
|
|
440
440
|
export type UseFormWithPrecognitionArguments = [Method | (() => Method), string | (() => string)] | [UrlMethodPair | (() => UrlMethodPair)];
|
|
441
|
-
type UseFormInertiaArguments<TForm> = [data: TForm | (() => TForm)] | [rememberKey: string, data: TForm | (() => TForm)];
|
|
441
|
+
type UseFormInertiaArguments<TForm> = [] | [data: TForm | (() => TForm)] | [rememberKey: string, data: TForm | (() => TForm)];
|
|
442
442
|
type UseFormPrecognitionArguments<TForm> = [urlMethodPair: UrlMethodPair | (() => UrlMethodPair), data: TForm | (() => TForm)] | [method: Method | (() => Method), url: string | (() => string), data: TForm | (() => TForm)];
|
|
443
443
|
export type UseFormArguments<TForm> = UseFormInertiaArguments<TForm> | UseFormPrecognitionArguments<TForm>;
|
|
444
444
|
export type UseFormSubmitOptions = Omit<VisitOptions, 'data'>;
|
package/types/url.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare function mergeDataIntoQueryString<T extends RequestPayload>(metho
|
|
|
6
6
|
export declare function urlWithoutHash(url: URL | Location): URL;
|
|
7
7
|
export declare const setHashIfSameUrl: (originUrl: URL | Location, destinationUrl: URL | Location) => void;
|
|
8
8
|
export declare const isSameUrlWithoutHash: (url1: URL | Location, url2: URL | Location) => boolean;
|
|
9
|
+
export declare const isSameUrlWithoutQueryOrHash: (url1: URL | Location, url2: URL | Location) => boolean;
|
|
9
10
|
export declare function isUrlMethodPair(href: unknown): href is UrlMethodPair;
|
|
10
11
|
export declare function urlHasProtocol(url: string): boolean;
|
|
11
12
|
export declare function urlToString(url: URL | string, absolute: boolean): string;
|
package/types/useFormUtils.d.ts
CHANGED