vike 0.4.160-commit-afa9ce6 → 0.4.160-commit-f473528
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/node/client/router.js +4 -2
- package/dist/cjs/utils/projectInfo.js +1 -1
- package/dist/esm/client/client-routing-runtime/index.d.ts +1 -1
- package/dist/esm/client/client-routing-runtime/index.js +1 -1
- package/dist/esm/node/client/router.d.ts +2 -0
- package/dist/esm/node/client/router.js +3 -1
- package/dist/esm/node/runtime/renderPage/getHttpResponseBody.d.ts +1 -0
- package/dist/esm/utils/projectInfo.d.ts +2 -2
- package/dist/esm/utils/projectInfo.js +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
5
|
+
const PROJECT_VERSION = '0.4.160-commit-f473528';
|
|
6
6
|
exports.PROJECT_VERSION = PROJECT_VERSION;
|
|
7
7
|
const projectInfo = {
|
|
8
8
|
projectName: 'Vike',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { navigate, reload } from './navigate.js';
|
|
2
2
|
export { prefetch } from './prefetch.js';
|
|
3
|
-
export { PROJECT_VERSION } from './utils.js';
|
|
3
|
+
export { PROJECT_VERSION as version } from './utils.js';
|
|
4
4
|
import type { PageContextBuiltInClientWithClientRouting } from '../../shared/types.js';
|
|
5
5
|
/** @deprecated
|
|
6
6
|
* Replace:
|
|
@@ -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
|
});
|
|
@@ -9,6 +9,7 @@ type HttpResponseBody = {
|
|
|
9
9
|
body: string;
|
|
10
10
|
getBody: () => Promise<string>;
|
|
11
11
|
getReadableWebStream: () => StreamReadableWeb;
|
|
12
|
+
getReadableNodeStream: () => Promise<StreamReadableNode>;
|
|
12
13
|
pipe: (writable: StreamWritableWeb | StreamWritableNode) => void;
|
|
13
14
|
/** @deprecated */
|
|
14
15
|
getNodeStream: () => Promise<StreamReadableNode>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { projectInfo };
|
|
2
2
|
export { PROJECT_VERSION };
|
|
3
|
-
declare const PROJECT_VERSION: "0.4.160-commit-
|
|
3
|
+
declare const PROJECT_VERSION: "0.4.160-commit-f473528";
|
|
4
4
|
declare const projectInfo: {
|
|
5
5
|
projectName: "Vike";
|
|
6
|
-
projectVersion: "0.4.160-commit-
|
|
6
|
+
projectVersion: "0.4.160-commit-f473528";
|
|
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-
|
|
4
|
+
const PROJECT_VERSION = '0.4.160-commit-f473528';
|
|
5
5
|
const projectInfo = {
|
|
6
6
|
projectName: 'Vike',
|
|
7
7
|
projectVersion: PROJECT_VERSION
|