vike 0.4.243-commit-6ce9ef3 → 0.4.243-commit-0e44b70

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.
@@ -8,4 +8,7 @@ type PageContextForPublicUsageClientShared = PageContextPrepareMinimum & PageCon
8
8
  declare function preparePageContextForPublicUsageClientShared<PageContext extends PageContextForPublicUsageClientShared>(pageContext: PageContext): PageContext & {
9
9
  Page: unknown;
10
10
  };
11
- declare function preparePageContextForPublicUsageClientMinimal<PageContext extends PageContextPrepareMinimum>(pageContext: PageContext): PageContext;
11
+ declare function preparePageContextForPublicUsageClientMinimal<PageContext extends PageContextPrepareMinimum>(pageContext: PageContext): PageContext & {
12
+ _isProxyObject: true;
13
+ ignoreWarning: import("../../shared/getProxyForPublicUsage.js").IgnoreWarning;
14
+ };
@@ -18,6 +18,7 @@ import { type GlobalConfigPublic } from '../../../shared/page-configs/resolveVik
18
18
  import { type PlusFile } from './resolveVikeConfigInternal/getPlusFilesAll.js';
19
19
  import type { PrerenderContextPublic } from '../../prerender/runPrerender.js';
20
20
  import type { ResolvedConfig, UserConfig } from 'vite';
21
+ import { type IgnoreWarning } from '../../../shared/getProxyForPublicUsage.js';
21
22
  type VikeConfigContext = {
22
23
  userRootDir: string;
23
24
  isDev: boolean;
@@ -44,7 +45,10 @@ declare function getVikeConfigInternalSync(): VikeConfigInternal;
44
45
  * https://vike.dev/getVikeConfig
45
46
  */
46
47
  declare function getVikeConfig(config: ResolvedConfig | UserConfig): VikeConfig;
47
- type VikeConfig = Pick<VikeConfigInternal, 'config' | 'pages' | 'prerenderContext'>;
48
+ type VikeConfig = Pick<VikeConfigInternal, 'config' | 'pages' | 'prerenderContext'> & {
49
+ /** https://vike.dev/warning/internals */
50
+ ignoreWarning: IgnoreWarning;
51
+ };
48
52
  declare function setVikeConfigContext(vikeConfigCtx_: VikeConfigContext): void;
49
53
  declare function isVikeConfigContextSet(): boolean;
50
54
  declare function getVikeConfigInternalOptional(): Promise<null | VikeConfigInternal>;
@@ -2,6 +2,10 @@ export { getProxyForPublicUsage };
2
2
  export type { IgnoreWarning };
3
3
  type Target = Record<string, unknown>;
4
4
  type Fallback = (prop: string | symbol) => unknown;
5
- declare function getProxyForPublicUsage<Obj extends Target>(obj: Obj, objName: 'pageContext' | 'globalContext' | 'prerenderContext' | 'vikeConfig', skipOnInternalProp?: true, fallback?: Fallback): Obj;
5
+ declare function getProxyForPublicUsage<Obj extends Target>(obj: Obj, objName: 'pageContext' | 'globalContext' | 'prerenderContext' | 'vikeConfig', skipOnInternalProp?: true, fallback?: Fallback): Obj & {
6
+ _isProxyObject: true;
7
+ /** https://vike.dev/warning/internals */
8
+ ignoreWarning: IgnoreWarning;
9
+ };
6
10
  /** https://vike.dev/warning/internals */
7
- type IgnoreWarning = (prop: string) => unknown;
11
+ type IgnoreWarning = (prop: string) => any;
@@ -4,4 +4,7 @@ type GlobalContextPrepareMinimum = {
4
4
  _isOriginalObject: true;
5
5
  isGlobalContext: true;
6
6
  };
7
- declare function prepareGlobalContextForPublicUsage<GlobalContext extends GlobalContextPrepareMinimum>(globalContext: GlobalContext): GlobalContext;
7
+ declare function prepareGlobalContextForPublicUsage<GlobalContext extends GlobalContextPrepareMinimum>(globalContext: GlobalContext): GlobalContext & {
8
+ _isProxyObject: true;
9
+ ignoreWarning: import("./getProxyForPublicUsage.js").IgnoreWarning;
10
+ };
@@ -7,5 +7,8 @@ type PageContextPrepareMinimum = {
7
7
  isPageContext: true;
8
8
  _globalContext: GlobalContextPrepareMinimum;
9
9
  };
10
- declare function preparePageContextForPublicUsage<PageContext extends PageContextPrepareMinimum>(pageContext: PageContext): PageContext;
10
+ declare function preparePageContextForPublicUsage<PageContext extends PageContextPrepareMinimum>(pageContext: PageContext): PageContext & {
11
+ _isProxyObject: true;
12
+ ignoreWarning: import("./getProxyForPublicUsage.js").IgnoreWarning;
13
+ };
11
14
  declare function assertPropertyGetters(pageContext: Record<string, unknown>): void;
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.243-commit-6ce9ef3";
1
+ export declare const PROJECT_VERSION: "0.4.243-commit-0e44b70";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.243-commit-6ce9ef3';
2
+ export const PROJECT_VERSION = '0.4.243-commit-0e44b70';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.243-commit-6ce9ef3",
3
+ "version": "0.4.243-commit-0e44b70",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {