vike 0.4.228-commit-558224a → 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.
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROJECT_VERSION = void 0;
4
4
  // Automatically updated by @brillout/release-me
5
- exports.PROJECT_VERSION = '0.4.228-commit-558224a';
5
+ exports.PROJECT_VERSION = '0.4.228-commit-4bed128';
@@ -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.
@@ -3,33 +3,37 @@ export type { VikePackages };
3
3
  declare global {
4
4
  /** Refine Vike types. */
5
5
  namespace Vike {
6
- /** Extend and/or refine the `Config` type (`import type { Config } from 'vike/types'`).
7
- *
8
- * For example:
9
- * - You can refine the type of `Config['Page']`.
10
- * - You can define the type of custom configurations created with `config.meta` (https://vike.dev/meta)
6
+ /** Extend the `Config` type (`import type { Config } from 'vike/types'`).
11
7
  *
12
8
  * https://vike.dev/meta#typescript
13
9
  */
14
10
  interface Config {
15
11
  }
16
- /** Extend and/or refine the `PageContext` type (`import type { PageContext } from 'vike/types'`).
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.
17
15
  *
18
- * For example:
19
- * - You can refine the type of `PageContext['Page']`.
20
- * - You can define the type of custom `pageContext` values such as `pageContext.user`, see https://vike.dev/pageContext#custom
16
+ * https://vike.dev/meta#typescript
17
+ */
18
+ interface ConfigResolved {
19
+ }
20
+ /** Extend the `PageContext` type (`import type { PageContext } from 'vike/types'`).
21
21
  *
22
22
  * https://vike.dev/pageContext#typescript
23
23
  */
24
24
  interface PageContext {
25
25
  }
26
- /** Refine the `pageContext.config` type.
26
+ /** Extend the `PageContextClient` type (`import type { PageContextClient } from 'vike/types'`).
27
27
  *
28
- * It's used for cumulative configs: the `pageContext.config[configName]` type is an `array` whereas `Config[configName]` isn't.
28
+ * https://vike.dev/pageContext#typescript
29
+ */
30
+ interface PageContextClient {
31
+ }
32
+ /** Extend the `PageContextServer` type (`import type { PageContextServer } from 'vike/types'`).
29
33
  *
30
- * https://vike.dev/meta#typescript
34
+ * https://vike.dev/pageContext#typescript
31
35
  */
32
- interface ConfigResolved {
36
+ interface PageContextServer {
33
37
  }
34
38
  /** Extend the `GlobalContext` type (`import type { GlobalContext } from 'vike/types'`).
35
39
  *
@@ -37,6 +41,18 @@ declare global {
37
41
  */
38
42
  interface GlobalContext {
39
43
  }
44
+ /** Extend the `GlobalContextClient` type (`import type { GlobalContextClient } from 'vike/types'`).
45
+ *
46
+ * https://vike.dev/globalContext#typescript
47
+ */
48
+ interface GlobalContextClient {
49
+ }
50
+ /** Extend the `GlobalContextServer` type (`import type { GlobalContextServer } from 'vike/types'`).
51
+ *
52
+ * https://vike.dev/globalContext#typescript
53
+ */
54
+ interface GlobalContextServer {
55
+ }
40
56
  }
41
57
  /** This namespace is only used by:
42
58
  * - `vike-react`
@@ -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-558224a";
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-558224a';
2
+ export const PROJECT_VERSION = '0.4.228-commit-4bed128';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.228-commit-558224a",
3
+ "version": "0.4.228-commit-4bed128",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {