vike 0.4.228-commit-8d90991 → 0.4.228-commit-4bed128
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/cjs/utils/PROJECT_VERSION.js +1 -1
- package/dist/esm/client/client-routing-runtime/globalContext.d.ts +1 -1
- package/dist/esm/client/server-routing-runtime/globalContext.d.ts +1 -1
- package/dist/esm/node/runtime/globalContext.d.ts +2 -2
- package/dist/esm/shared/VikeNamespace.d.ts +8 -8
- package/dist/esm/shared/types.d.ts +3 -3
- package/dist/esm/utils/PROJECT_VERSION.d.ts +1 -1
- package/dist/esm/utils/PROJECT_VERSION.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { getGlobalContext };
|
|
2
2
|
export type { GlobalContextClient };
|
|
3
3
|
import type { GlobalContextSharedPublic } from '../../shared/createGlobalContextShared.js';
|
|
4
|
-
type GlobalContextClient = GlobalContextSharedPublic & Vike.GlobalContext & {};
|
|
4
|
+
type GlobalContextClient = GlobalContextSharedPublic & Vike.GlobalContext & Vike.GlobalContextClient & {};
|
|
5
5
|
declare const getGlobalContext: () => Promise<{
|
|
6
6
|
_virtualFileExports: unknown;
|
|
7
7
|
_pageFilesAll: import("../../shared/getPageFiles.js").PageFile[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { getGlobalContext };
|
|
2
2
|
export type { GlobalContextClientWithServerRouting };
|
|
3
3
|
import type { GlobalContextSharedPublic } from '../../shared/createGlobalContextShared.js';
|
|
4
|
-
type GlobalContextClientWithServerRouting = GlobalContextSharedPublic & Vike.GlobalContext & {};
|
|
4
|
+
type GlobalContextClientWithServerRouting = GlobalContextSharedPublic & Vike.GlobalContext & Vike.GlobalContextClient & {};
|
|
5
5
|
declare const getGlobalContext: () => Promise<{
|
|
6
6
|
_virtualFileExports: unknown;
|
|
7
7
|
_pageFilesAll: import("../../shared/getPageFiles.js").PageFile[];
|
|
@@ -21,7 +21,7 @@ export type { GlobalContextServer };
|
|
|
21
21
|
import type { ViteManifest } from '../shared/ViteManifest.js';
|
|
22
22
|
import type { ResolvedConfig, ViteDevServer } from 'vite';
|
|
23
23
|
import type { ViteConfigRuntime } from '../plugin/shared/getViteConfigRuntime.js';
|
|
24
|
-
type GlobalContextServer = ReturnType<typeof makePublic> & Vike.GlobalContext;
|
|
24
|
+
type GlobalContextServer = ReturnType<typeof makePublic> & Vike.GlobalContext & Vike.GlobalContextServer;
|
|
25
25
|
type GlobalContextServerInternal = Awaited<ReturnType<typeof setGlobalContext>>;
|
|
26
26
|
declare function getGlobalContextInternal(): Promise<{
|
|
27
27
|
globalContext: (Record<string, unknown> & {
|
|
@@ -223,7 +223,7 @@ declare function getGlobalContextInternal(): Promise<{
|
|
|
223
223
|
_allPageIds: string[];
|
|
224
224
|
config: import("../../types/index.js").ConfigResolved;
|
|
225
225
|
pages: import("../../shared/page-configs/getPageConfigUserFriendly.js").PageConfigsUserFriendly;
|
|
226
|
-
}), "pages" | "viteConfig" | "viteConfigRuntime" | "assetsManifest" | "baseServer" | "baseAssets" | "config"> & Vike.GlobalContext;
|
|
226
|
+
}), "pages" | "viteConfig" | "viteConfigRuntime" | "assetsManifest" | "baseServer" | "baseAssets" | "config"> & Vike.GlobalContext & Vike.GlobalContextServer;
|
|
227
227
|
}>;
|
|
228
228
|
/**
|
|
229
229
|
* Get runtime information about your app.
|
|
@@ -9,6 +9,14 @@ declare global {
|
|
|
9
9
|
*/
|
|
10
10
|
interface Config {
|
|
11
11
|
}
|
|
12
|
+
/** Refine the `pageContext.config` type.
|
|
13
|
+
*
|
|
14
|
+
* It's used for cumulative configs: the `pageContext.config[configName]` type is an `array` whereas `Config[configName]` isn't.
|
|
15
|
+
*
|
|
16
|
+
* https://vike.dev/meta#typescript
|
|
17
|
+
*/
|
|
18
|
+
interface ConfigResolved {
|
|
19
|
+
}
|
|
12
20
|
/** Extend the `PageContext` type (`import type { PageContext } from 'vike/types'`).
|
|
13
21
|
*
|
|
14
22
|
* https://vike.dev/pageContext#typescript
|
|
@@ -27,14 +35,6 @@ declare global {
|
|
|
27
35
|
*/
|
|
28
36
|
interface PageContextServer {
|
|
29
37
|
}
|
|
30
|
-
/** Refine the `pageContext.config` type.
|
|
31
|
-
*
|
|
32
|
-
* It's used for cumulative configs: the `pageContext.config[configName]` type is an `array` whereas `Config[configName]` isn't.
|
|
33
|
-
*
|
|
34
|
-
* https://vike.dev/meta#typescript
|
|
35
|
-
*/
|
|
36
|
-
interface ConfigResolved {
|
|
37
|
-
}
|
|
38
38
|
/** Extend the `GlobalContext` type (`import type { GlobalContext } from 'vike/types'`).
|
|
39
39
|
*
|
|
40
40
|
* https://vike.dev/globalContext#typescript
|
|
@@ -19,12 +19,12 @@ import type { AbortStatusCode } from './route/abort.js';
|
|
|
19
19
|
import type { GlobalContextServer } from '../node/runtime/globalContext.js';
|
|
20
20
|
import type { GlobalContextClient } from '../client/client-routing-runtime/globalContext.js';
|
|
21
21
|
import type { GlobalContextClientWithServerRouting } from '../client/server-routing-runtime/globalContext.js';
|
|
22
|
-
type PageContextServer<Data = unknown> = PageContextBuiltInServer<Data> & Vike.PageContext;
|
|
22
|
+
type PageContextServer<Data = unknown> = PageContextBuiltInServer<Data> & Vike.PageContext & Vike.PageContextServer;
|
|
23
23
|
type PageContext<Data = unknown> = PageContextClient<Data> | PageContextServer<Data>;
|
|
24
|
-
type PageContextClient<Data = unknown> = PageContextBuiltInClientWithClientRouting<Data> & Vike.PageContext;
|
|
24
|
+
type PageContextClient<Data = unknown> = PageContextBuiltInClientWithClientRouting<Data> & Vike.PageContext & Vike.PageContextClient;
|
|
25
25
|
type GlobalContext = GlobalContextServer | GlobalContextClient;
|
|
26
26
|
type PageContextWithServerRouting<Data = unknown> = PageContextClientWithServerRouting<Data> | PageContextServer<Data>;
|
|
27
|
-
type PageContextClientWithServerRouting<Data = unknown> = PageContextBuiltInClientWithServerRouting<Data> & Vike.PageContext;
|
|
27
|
+
type PageContextClientWithServerRouting<Data = unknown> = PageContextBuiltInClientWithServerRouting<Data> & Vike.PageContext & Vike.PageContextClient;
|
|
28
28
|
type PageContextBuiltInCommon<Data> = {
|
|
29
29
|
/** The `export { Page }` of your `.page.js` file.
|
|
30
30
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.228-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.228-commit-4bed128";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically updated by @brillout/release-me
|
|
2
|
-
export const PROJECT_VERSION = '0.4.228-commit-
|
|
2
|
+
export const PROJECT_VERSION = '0.4.228-commit-4bed128';
|