vike 0.4.171-commit-d60a550 → 0.4.171-commit-12edaaa

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROJECT_VERSION = exports.projectInfo = void 0;
4
- const PROJECT_VERSION = '0.4.171-commit-d60a550';
4
+ const PROJECT_VERSION = '0.4.171-commit-12edaaa';
5
5
  exports.PROJECT_VERSION = PROJECT_VERSION;
6
6
  const projectInfo = {
7
7
  projectName: 'Vike',
@@ -19,56 +19,9 @@ declare function loadUserFilesServerSide(pageContext: {
19
19
  _isHtmlOnly: boolean;
20
20
  _passToClient: string[];
21
21
  _pageFilePathsLoaded: string[];
22
- source: {
23
- [x: string]: {
24
- type: "configsOverridable";
25
- value: unknown;
26
- definedAt: string;
27
- } | {
28
- type: "configsCumulative";
29
- values: {
30
- value: unknown;
31
- definedAt: string;
32
- }[];
33
- } | {
34
- type: "configsComputed";
35
- value: unknown;
36
- };
37
- };
38
- sources: {
39
- [x: string]: ({
40
- type: "configsOverridable";
41
- value: unknown;
42
- definedAt: string;
43
- } | {
44
- type: "configsCumulative";
45
- values: {
46
- value: unknown;
47
- definedAt: string;
48
- }[];
49
- } | {
50
- type: "configsComputed";
51
- value: unknown;
52
- })[];
53
- };
54
- from: {
55
- configsOverridable: Record<string, {
56
- type: "configsOverridable";
57
- value: unknown;
58
- definedAt: string;
59
- }>;
60
- configsCumulative: Record<string, {
61
- type: "configsCumulative";
62
- values: {
63
- value: unknown;
64
- definedAt: string;
65
- }[];
66
- }>;
67
- configsComputed: Record<string, {
68
- type: "configsComputed";
69
- value: unknown;
70
- }>;
71
- };
22
+ source: import("../../../shared/getPageFiles/getExports.js").Source;
23
+ sources: import("../../../shared/getPageFiles/getExports.js").Sources;
24
+ from: import("../../../shared/getPageFiles/getExports.js").From;
72
25
  config: Record<string, unknown>;
73
26
  configEntries: import("../../../shared/getPageFiles/getExports.js").ConfigEntries;
74
27
  exports: Record<string, unknown>;
@@ -61,56 +61,9 @@ declare function prerenderPage(pageContext: PageContextInitEnhanced & PageFiles
61
61
  _isHtmlOnly: boolean;
62
62
  _passToClient: string[];
63
63
  _pageFilePathsLoaded: string[];
64
- source: {
65
- [x: string]: {
66
- type: "configsOverridable";
67
- value: unknown;
68
- definedAt: string;
69
- } | {
70
- type: "configsCumulative";
71
- values: {
72
- value: unknown;
73
- definedAt: string;
74
- }[];
75
- } | {
76
- type: "configsComputed";
77
- value: unknown;
78
- };
79
- };
80
- sources: {
81
- [x: string]: ({
82
- type: "configsOverridable";
83
- value: unknown;
84
- definedAt: string;
85
- } | {
86
- type: "configsCumulative";
87
- values: {
88
- value: unknown;
89
- definedAt: string;
90
- }[];
91
- } | {
92
- type: "configsComputed";
93
- value: unknown;
94
- })[];
95
- };
96
- from: {
97
- configsOverridable: Record<string, {
98
- type: "configsOverridable";
99
- value: unknown;
100
- definedAt: string;
101
- }>;
102
- configsCumulative: Record<string, {
103
- type: "configsCumulative";
104
- values: {
105
- value: unknown;
106
- definedAt: string;
107
- }[];
108
- }>;
109
- configsComputed: Record<string, {
110
- type: "configsComputed";
111
- value: unknown;
112
- }>;
113
- };
64
+ source: import("../../../shared/getPageFiles/getExports.js").Source;
65
+ sources: import("../../../shared/getPageFiles/getExports.js").Sources;
66
+ from: import("../../../shared/getPageFiles/getExports.js").From;
114
67
  config: Record<string, unknown>;
115
68
  configEntries: import("../../../shared/getPageFiles/getExports.js").ConfigEntries;
116
69
  exports: Record<string, unknown>;
@@ -158,56 +111,9 @@ declare function prerenderPage(pageContext: PageContextInitEnhanced & PageFiles
158
111
  _isHtmlOnly: boolean;
159
112
  _passToClient: string[];
160
113
  _pageFilePathsLoaded: string[];
161
- source: {
162
- [x: string]: {
163
- type: "configsOverridable";
164
- value: unknown;
165
- definedAt: string;
166
- } | {
167
- type: "configsCumulative";
168
- values: {
169
- value: unknown;
170
- definedAt: string;
171
- }[];
172
- } | {
173
- type: "configsComputed";
174
- value: unknown;
175
- };
176
- };
177
- sources: {
178
- [x: string]: ({
179
- type: "configsOverridable";
180
- value: unknown;
181
- definedAt: string;
182
- } | {
183
- type: "configsCumulative";
184
- values: {
185
- value: unknown;
186
- definedAt: string;
187
- }[];
188
- } | {
189
- type: "configsComputed";
190
- value: unknown;
191
- })[];
192
- };
193
- from: {
194
- configsOverridable: Record<string, {
195
- type: "configsOverridable";
196
- value: unknown;
197
- definedAt: string;
198
- }>;
199
- configsCumulative: Record<string, {
200
- type: "configsCumulative";
201
- values: {
202
- value: unknown;
203
- definedAt: string;
204
- }[];
205
- }>;
206
- configsComputed: Record<string, {
207
- type: "configsComputed";
208
- value: unknown;
209
- }>;
210
- };
114
+ source: import("../../../shared/getPageFiles/getExports.js").Source;
115
+ sources: import("../../../shared/getPageFiles/getExports.js").Sources;
116
+ from: import("../../../shared/getPageFiles/getExports.js").From;
211
117
  config: Record<string, unknown>;
212
118
  configEntries: import("../../../shared/getPageFiles/getExports.js").ConfigEntries;
213
119
  exports: Record<string, unknown>;
@@ -256,56 +162,9 @@ declare function prerender404Page(renderContext: RenderContext, pageContextInit_
256
162
  _isHtmlOnly: boolean;
257
163
  _passToClient: string[];
258
164
  _pageFilePathsLoaded: string[];
259
- source: {
260
- [x: string]: {
261
- type: "configsOverridable";
262
- value: unknown;
263
- definedAt: string;
264
- } | {
265
- type: "configsCumulative";
266
- values: {
267
- value: unknown;
268
- definedAt: string;
269
- }[];
270
- } | {
271
- type: "configsComputed";
272
- value: unknown;
273
- };
274
- };
275
- sources: {
276
- [x: string]: ({
277
- type: "configsOverridable";
278
- value: unknown;
279
- definedAt: string;
280
- } | {
281
- type: "configsCumulative";
282
- values: {
283
- value: unknown;
284
- definedAt: string;
285
- }[];
286
- } | {
287
- type: "configsComputed";
288
- value: unknown;
289
- })[];
290
- };
291
- from: {
292
- configsOverridable: Record<string, {
293
- type: "configsOverridable";
294
- value: unknown;
295
- definedAt: string;
296
- }>;
297
- configsCumulative: Record<string, {
298
- type: "configsCumulative";
299
- values: {
300
- value: unknown;
301
- definedAt: string;
302
- }[];
303
- }>;
304
- configsComputed: Record<string, {
305
- type: "configsComputed";
306
- value: unknown;
307
- }>;
308
- };
165
+ source: import("../../../shared/getPageFiles/getExports.js").Source;
166
+ sources: import("../../../shared/getPageFiles/getExports.js").Sources;
167
+ from: import("../../../shared/getPageFiles/getExports.js").From;
309
168
  config: Record<string, unknown>;
310
169
  configEntries: import("../../../shared/getPageFiles/getExports.js").ConfigEntries;
311
170
  exports: Record<string, unknown>;
@@ -353,56 +212,9 @@ declare function prerender404Page(renderContext: RenderContext, pageContextInit_
353
212
  _isHtmlOnly: boolean;
354
213
  _passToClient: string[];
355
214
  _pageFilePathsLoaded: string[];
356
- source: {
357
- [x: string]: {
358
- type: "configsOverridable";
359
- value: unknown;
360
- definedAt: string;
361
- } | {
362
- type: "configsCumulative";
363
- values: {
364
- value: unknown;
365
- definedAt: string;
366
- }[];
367
- } | {
368
- type: "configsComputed";
369
- value: unknown;
370
- };
371
- };
372
- sources: {
373
- [x: string]: ({
374
- type: "configsOverridable";
375
- value: unknown;
376
- definedAt: string;
377
- } | {
378
- type: "configsCumulative";
379
- values: {
380
- value: unknown;
381
- definedAt: string;
382
- }[];
383
- } | {
384
- type: "configsComputed";
385
- value: unknown;
386
- })[];
387
- };
388
- from: {
389
- configsOverridable: Record<string, {
390
- type: "configsOverridable";
391
- value: unknown;
392
- definedAt: string;
393
- }>;
394
- configsCumulative: Record<string, {
395
- type: "configsCumulative";
396
- values: {
397
- value: unknown;
398
- definedAt: string;
399
- }[];
400
- }>;
401
- configsComputed: Record<string, {
402
- type: "configsComputed";
403
- value: unknown;
404
- }>;
405
- };
215
+ source: import("../../../shared/getPageFiles/getExports.js").Source;
216
+ sources: import("../../../shared/getPageFiles/getExports.js").Sources;
217
+ from: import("../../../shared/getPageFiles/getExports.js").From;
406
218
  config: Record<string, unknown>;
407
219
  configEntries: import("../../../shared/getPageFiles/getExports.js").ConfigEntries;
408
220
  exports: Record<string, unknown>;
@@ -2,6 +2,9 @@ export { getPageContextExports };
2
2
  export type { ExportsAll };
3
3
  export type { PageContextExports };
4
4
  export type { ConfigEntries };
5
+ export type { From };
6
+ export type { Sources };
7
+ export type { Source };
5
8
  import type { FileType } from './fileTypes.js';
6
9
  import type { PageConfigRuntimeLoaded } from './../page-configs/PageConfig.js';
7
10
  import type { PageFile } from './getPageFileObject.js';
@@ -8,7 +8,7 @@ export { PageContextBuiltInServer_deprecated as PageContextBuiltInServer };
8
8
  export { PageContextBuiltInClientWithClientRouting_deprecated as PageContextBuiltInClientWithClientRouting };
9
9
  export { PageContextBuiltInClientWithServerRouting_deprecated as PageContextBuiltInClientWithServerRouting };
10
10
  import type { PageContextUrlComputedPropsInternal, PageContextUrlComputedPropsClient, PageContextUrlComputedPropsServer } from './addUrlComputedProps.js';
11
- import type { ConfigEntries, ExportsAll } from './getPageFiles/getExports.js';
11
+ import type { ConfigEntries, ExportsAll, From, Source, Sources } from './getPageFiles/getExports.js';
12
12
  import type { Config } from './page-configs/Config.js';
13
13
  import type { PageContextConfig } from './page-configs/Config/PageContextConfig.js';
14
14
  import type { AbortStatusCode } from './route/abort.js';
@@ -88,6 +88,12 @@ type PageContextBuiltInCommon<Data> = {
88
88
  * https://vike.dev/errors
89
89
  */
90
90
  errorWhileRendering?: unknown;
91
+ /** @experimental https://github.com/vikejs/vike/issues/1268 */
92
+ from: From;
93
+ /** @experimental https://github.com/vikejs/vike/issues/1268 */
94
+ source: Source;
95
+ /** @experimental https://github.com/vikejs/vike/issues/1268 */
96
+ sources: Sources;
91
97
  /** @deprecated */
92
98
  url: string;
93
99
  /** @deprecated */
@@ -1,7 +1,7 @@
1
1
  export { projectInfo };
2
2
  export { PROJECT_VERSION };
3
- declare const PROJECT_VERSION: "0.4.171-commit-d60a550";
3
+ declare const PROJECT_VERSION: "0.4.171-commit-12edaaa";
4
4
  declare const projectInfo: {
5
5
  projectName: "Vike";
6
- projectVersion: "0.4.171-commit-d60a550";
6
+ projectVersion: "0.4.171-commit-12edaaa";
7
7
  };
@@ -1,6 +1,6 @@
1
1
  export { projectInfo };
2
2
  export { PROJECT_VERSION };
3
- const PROJECT_VERSION = '0.4.171-commit-d60a550';
3
+ const PROJECT_VERSION = '0.4.171-commit-12edaaa';
4
4
  const projectInfo = {
5
5
  projectName: 'Vike',
6
6
  projectVersion: PROJECT_VERSION
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.171-commit-d60a550",
3
+ "version": "0.4.171-commit-12edaaa",
4
4
  "scripts": {
5
5
  "dev": "tsc --watch",
6
6
  "build": "rimraf dist/ && pnpm run build:esm && pnpm run build:cjs",
@@ -195,7 +195,7 @@
195
195
  "fast-glob": "^3.3.2",
196
196
  "sirv": "^2.0.4",
197
197
  "source-map-support": "^0.5.21",
198
- "@brillout/release-me": "^0.3.4",
198
+ "@brillout/release-me": "^0.3.7",
199
199
  "@types/estree": "^1.0.5",
200
200
  "@types/jest": "^29.5.11",
201
201
  "@types/node": "^20.10.5",