vike 0.4.179-commit-9822036 → 0.4.180-commit-648cd01

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.
@@ -159,6 +159,9 @@ async function fastGlob(userRootDir, outDirRelativeFromUserRootDir) {
159
159
  cwd: userRootDir,
160
160
  dot: false
161
161
  });
162
+ // Make build deterministic, in order to get a stable generated hash for dist/client/assets/entries/entry-client-routing.${hash}.js
163
+ // https://github.com/vikejs/vike/pull/1750
164
+ files.sort();
162
165
  return files;
163
166
  }
164
167
  // Same as getIgnoreAsFilterFn() but as glob pattern
@@ -11,6 +11,7 @@ function injectHtmlTags(htmlString, htmlTags, position) {
11
11
  return htmlString;
12
12
  }
13
13
  exports.injectHtmlTags = injectHtmlTags;
14
+ // Is it worth it? Should we remove this? https://github.com/vikejs/vike/pull/1740#issuecomment-2230540892
14
15
  function injectHtmlTagsUsingStream(htmlTags, streamFromReactStreamingPackage) {
15
16
  const htmlFragment = joinHtmlTags(htmlTags.filter((h) => h.position === 'STREAM'));
16
17
  if (htmlFragment) {
@@ -35,6 +35,7 @@ function injectHtmlTagsToStream(pageContext, streamFromReactStreamingPackage, in
35
35
  }
36
36
  return htmlBegin;
37
37
  }
38
+ // Is it worth it? Should we remove this? https://github.com/vikejs/vike/pull/1740#issuecomment-2230540892
38
39
  function injectAtStreamAfterFirstChunk() {
39
40
  // React has its own stream injection mechanism, see injectHtmlTagsUsingStream()
40
41
  if (streamFromReactStreamingPackage)
@@ -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.179-commit-9822036';
4
+ const PROJECT_VERSION = '0.4.180-commit-648cd01';
5
5
  exports.PROJECT_VERSION = PROJECT_VERSION;
6
6
  const projectInfo = {
7
7
  projectName: 'Vike',
@@ -153,6 +153,9 @@ async function fastGlob(userRootDir, outDirRelativeFromUserRootDir) {
153
153
  cwd: userRootDir,
154
154
  dot: false
155
155
  });
156
+ // Make build deterministic, in order to get a stable generated hash for dist/client/assets/entries/entry-client-routing.${hash}.js
157
+ // https://github.com/vikejs/vike/pull/1750
158
+ files.sort();
156
159
  return files;
157
160
  }
158
161
  // Same as getIgnoreAsFilterFn() but as glob pattern
@@ -14,6 +14,7 @@ function injectHtmlTags(htmlString, htmlTags, position) {
14
14
  }
15
15
  return htmlString;
16
16
  }
17
+ // Is it worth it? Should we remove this? https://github.com/vikejs/vike/pull/1740#issuecomment-2230540892
17
18
  function injectHtmlTagsUsingStream(htmlTags, streamFromReactStreamingPackage) {
18
19
  const htmlFragment = joinHtmlTags(htmlTags.filter((h) => h.position === 'STREAM'));
19
20
  if (htmlFragment) {
@@ -33,6 +33,7 @@ function injectHtmlTagsToStream(pageContext, streamFromReactStreamingPackage, in
33
33
  }
34
34
  return htmlBegin;
35
35
  }
36
+ // Is it worth it? Should we remove this? https://github.com/vikejs/vike/pull/1740#issuecomment-2230540892
36
37
  function injectAtStreamAfterFirstChunk() {
37
38
  // React has its own stream injection mechanism, see injectHtmlTagsUsingStream()
38
39
  if (streamFromReactStreamingPackage)
@@ -1,7 +1,7 @@
1
1
  export { projectInfo };
2
2
  export { PROJECT_VERSION };
3
- declare const PROJECT_VERSION: "0.4.179-commit-9822036";
3
+ declare const PROJECT_VERSION: "0.4.180-commit-648cd01";
4
4
  declare const projectInfo: {
5
5
  projectName: "Vike";
6
- projectVersion: "0.4.179-commit-9822036";
6
+ projectVersion: "0.4.180-commit-648cd01";
7
7
  };
@@ -1,6 +1,6 @@
1
1
  export { projectInfo };
2
2
  export { PROJECT_VERSION };
3
- const PROJECT_VERSION = '0.4.179-commit-9822036';
3
+ const PROJECT_VERSION = '0.4.180-commit-648cd01';
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.179-commit-9822036",
3
+ "version": "0.4.180-commit-648cd01",
4
4
  "scripts": {
5
5
  "dev": "tsc --watch",
6
6
  "build": "rimraf dist/ && pnpm run build:esm && pnpm run build:cjs",