vike 0.4.160-commit-afa9ce6 → 0.4.160-commit-937d8d5

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,14 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reload = exports.navigate = void 0;
3
+ exports.prefetch = exports.reload = exports.navigate = void 0;
4
4
  const assert_js_1 = require("../../utils/assert.js");
5
5
  // `never` to ensure package.json#exports["./client/router"].types points to type defined by the client-side code
6
6
  const navigate = (() => warnNoEffect('navigate'));
7
7
  exports.navigate = navigate;
8
8
  const reload = (() => warnNoEffect('reload'));
9
9
  exports.reload = reload;
10
+ const prefetch = (() => warnNoEffect('prefetch'));
11
+ exports.prefetch = prefetch;
10
12
  function warnNoEffect(caller) {
11
- (0, assert_js_1.assertWarning)(false, `Calling ${caller} on the server-side has no effect`, {
13
+ (0, assert_js_1.assertWarning)(false, `Calling ${caller}() on the server-side has no effect`, {
12
14
  showStackTrace: true,
13
15
  onlyOnce: false
14
16
  });
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROJECT_VERSION = exports.projectInfo = void 0;
4
4
  const assertSingleInstance_js_1 = require("./assertSingleInstance.js");
5
- const PROJECT_VERSION = '0.4.160-commit-afa9ce6';
5
+ const PROJECT_VERSION = '0.4.160-commit-937d8d5';
6
6
  exports.PROJECT_VERSION = PROJECT_VERSION;
7
7
  const projectInfo = {
8
8
  projectName: 'Vike',
@@ -1,4 +1,6 @@
1
1
  export { navigate };
2
2
  export { reload };
3
+ export { prefetch };
3
4
  declare const navigate: never;
4
5
  declare const reload: never;
6
+ declare const prefetch: never;
@@ -1,11 +1,13 @@
1
1
  export { navigate };
2
2
  export { reload };
3
+ export { prefetch };
3
4
  import { assertWarning } from '../../utils/assert.js';
4
5
  // `never` to ensure package.json#exports["./client/router"].types points to type defined by the client-side code
5
6
  const navigate = (() => warnNoEffect('navigate'));
6
7
  const reload = (() => warnNoEffect('reload'));
8
+ const prefetch = (() => warnNoEffect('prefetch'));
7
9
  function warnNoEffect(caller) {
8
- assertWarning(false, `Calling ${caller} on the server-side has no effect`, {
10
+ assertWarning(false, `Calling ${caller}() on the server-side has no effect`, {
9
11
  showStackTrace: true,
10
12
  onlyOnce: false
11
13
  });
@@ -1,7 +1,7 @@
1
1
  export { projectInfo };
2
2
  export { PROJECT_VERSION };
3
- declare const PROJECT_VERSION: "0.4.160-commit-afa9ce6";
3
+ declare const PROJECT_VERSION: "0.4.160-commit-937d8d5";
4
4
  declare const projectInfo: {
5
5
  projectName: "Vike";
6
- projectVersion: "0.4.160-commit-afa9ce6";
6
+ projectVersion: "0.4.160-commit-937d8d5";
7
7
  };
@@ -1,7 +1,7 @@
1
1
  export { projectInfo };
2
2
  export { PROJECT_VERSION };
3
3
  import { onProjectInfo } from './assertSingleInstance.js';
4
- const PROJECT_VERSION = '0.4.160-commit-afa9ce6';
4
+ const PROJECT_VERSION = '0.4.160-commit-937d8d5';
5
5
  const projectInfo = {
6
6
  projectName: 'Vike',
7
7
  projectVersion: PROJECT_VERSION
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.160-commit-afa9ce6",
3
+ "version": "0.4.160-commit-937d8d5",
4
4
  "scripts": {
5
5
  "dev": "tsc --watch",
6
6
  "build": "rimraf dist/ && pnpm run build:esm && pnpm run build:cjs",