vike 0.4.167 → 0.4.168-commit-ce94f5c
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/plugin/plugins/extractAssetsPlugin.js +1 -1
- package/dist/cjs/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/crawlPlusFiles.js +9 -1
- package/dist/cjs/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/loadFileAtConfigTime.js +0 -8
- package/dist/cjs/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/resolveImportPath.js +14 -35
- package/dist/cjs/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/transpileAndExecuteFile.js +121 -95
- package/dist/cjs/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js +27 -8
- package/dist/cjs/node/plugin/shared/getFilePath.js +6 -1
- package/dist/cjs/node/runtime/renderPage/analyzePage.js +1 -1
- package/dist/cjs/node/runtime/renderPage/logErrorHint.js +13 -1
- package/dist/cjs/utils/assertPathIsFilesystemAbsolute.js +3 -3
- package/dist/cjs/utils/projectInfo.js +1 -1
- package/dist/esm/client/client-routing-runtime/history.d.ts +1 -0
- package/dist/esm/client/client-routing-runtime/history.js +23 -19
- package/dist/esm/node/plugin/plugins/extractAssetsPlugin.js +1 -1
- package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/crawlPlusFiles.js +9 -1
- package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/loadFileAtConfigTime.js +1 -9
- package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/resolveImportPath.js +14 -35
- package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/transformFileImports.d.ts +1 -1
- package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/transpileAndExecuteFile.d.ts +2 -2
- package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/transpileAndExecuteFile.js +121 -95
- package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js +28 -9
- package/dist/esm/node/plugin/shared/getFilePath.js +6 -1
- package/dist/esm/node/runtime/renderPage/analyzePage.js +1 -1
- package/dist/esm/node/runtime/renderPage/logErrorHint.js +13 -1
- package/dist/esm/shared/addUrlComputedProps.d.ts +2 -2
- package/dist/esm/utils/assertPathIsFilesystemAbsolute.js +3 -3
- package/dist/esm/utils/projectInfo.d.ts +2 -2
- package/dist/esm/utils/projectInfo.js +1 -1
- package/package.json +2 -2
|
@@ -20,6 +20,10 @@ const knownErrors = [
|
|
|
20
20
|
// ```
|
|
21
21
|
errMsg: 'assets.json',
|
|
22
22
|
link: 'https://vike.dev/getGlobalContext'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
errMsg: /Named export.*not found/i,
|
|
26
|
+
link: 'https://vike.dev/broken-npm-package#named-export-not-found'
|
|
23
27
|
}
|
|
24
28
|
];
|
|
25
29
|
function logErrorHint(error) {
|
|
@@ -285,7 +289,15 @@ function extractFromNodeModulesPath(str) {
|
|
|
285
289
|
return packageName;
|
|
286
290
|
}
|
|
287
291
|
function includes(str1, str2) {
|
|
288
|
-
|
|
292
|
+
if (!str1)
|
|
293
|
+
return false;
|
|
294
|
+
if (str2 instanceof RegExp) {
|
|
295
|
+
return str2.test(str1.toLowerCase());
|
|
296
|
+
}
|
|
297
|
+
if (typeof str2 === 'string') {
|
|
298
|
+
return str1.toLowerCase().includes(str2.toLowerCase());
|
|
299
|
+
}
|
|
300
|
+
return false;
|
|
289
301
|
}
|
|
290
302
|
function includesNodeModules(str) {
|
|
291
303
|
if (!str)
|
|
@@ -18,14 +18,14 @@ type Url = {
|
|
|
18
18
|
searchAll: Record<string, string[]>;
|
|
19
19
|
/** The URL search parameterer string, e.g. `?details=yes` of `https://example.com/product/42?details=yes#reviews` */
|
|
20
20
|
searchOriginal: null | string;
|
|
21
|
-
/** @deprecated */
|
|
22
|
-
searchString: null | string;
|
|
23
21
|
/** The URL hash, e.g. `reviews` of `https://example.com/product/42?details=yes#reviews` */
|
|
24
22
|
hash: string;
|
|
25
23
|
/** The URL hash string, e.g. `#reviews` of `https://example.com/product/42?details=yes#reviews` */
|
|
26
24
|
hashOriginal: null | string;
|
|
27
25
|
/** @deprecated */
|
|
28
26
|
hashString: null | string;
|
|
27
|
+
/** @deprecated */
|
|
28
|
+
searchString: null | string;
|
|
29
29
|
};
|
|
30
30
|
type PageContextUrlComputedPropsClient = {
|
|
31
31
|
/** @deprecated */
|
|
@@ -6,10 +6,10 @@ import { assertPosixPath } from './filesystemPathHandling.js';
|
|
|
6
6
|
function assertPathIsFilesystemAbsolute(p) {
|
|
7
7
|
assertPosixPath(p);
|
|
8
8
|
assert(!p.startsWith('/@fs/'));
|
|
9
|
-
if (process.platform
|
|
10
|
-
assert(
|
|
9
|
+
if (process.platform !== 'win32') {
|
|
10
|
+
assert(p.startsWith('/'));
|
|
11
11
|
}
|
|
12
12
|
else {
|
|
13
|
-
assert(
|
|
13
|
+
assert(path.win32.isAbsolute(p));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { projectInfo };
|
|
2
2
|
export { PROJECT_VERSION };
|
|
3
|
-
declare const PROJECT_VERSION: "0.4.
|
|
3
|
+
declare const PROJECT_VERSION: "0.4.168-commit-ce94f5c";
|
|
4
4
|
declare const projectInfo: {
|
|
5
5
|
projectName: "Vike";
|
|
6
|
-
projectVersion: "0.4.
|
|
6
|
+
projectVersion: "0.4.168-commit-ce94f5c";
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vike",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.168-commit-ce94f5c",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "tsc --watch",
|
|
6
6
|
"build": "rimraf dist/ && pnpm run build:esm && pnpm run build:cjs",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@brillout/json-serializer": "^0.5.8",
|
|
17
17
|
"@brillout/picocolors": "^1.0.10",
|
|
18
18
|
"@brillout/require-shim": "^0.1.2",
|
|
19
|
-
"@brillout/vite-plugin-server-entry": "^0.4.
|
|
19
|
+
"@brillout/vite-plugin-server-entry": "^0.4.5",
|
|
20
20
|
"acorn": "^8.0.0",
|
|
21
21
|
"cac": "^6.0.0",
|
|
22
22
|
"es-module-lexer": "^1.0.0",
|