vike 0.4.170 → 0.4.171

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.
@@ -271,7 +271,6 @@ async function loadVikeConfig(userRootDir, outDirRoot, isDev) {
271
271
  if (isGlobalConfig(configName))
272
272
  return;
273
273
  const configDef = getConfigDefinition(configDefinitions, configName, interfaceFile.filePath.filePathToShowToUser);
274
- configDef.env = deriveConfigEnvFromFileName(configDef.env, interfaceFile.filePath.fileName);
275
274
  if (!isConfigEnv(configDef, configName))
276
275
  return;
277
276
  const isAlreadyLoaded = interfacefileIsAlreaydLoaded(interfaceFile);
@@ -502,7 +501,7 @@ function isInterfaceFileUserLand(interfaceFile) {
502
501
  async function getConfigValueSource(configName, interfaceFile, configDef, userRootDir, importedFilesLoaded) {
503
502
  const conf = interfaceFile.fileExportsByConfigName[configName];
504
503
  (0, utils_js_1.assert)(conf);
505
- const configEnv = configDef.env;
504
+ const configEnv = deriveConfigEnvFromFileName(configDef.env, interfaceFile.filePath.fileName);
506
505
  const { locationId } = interfaceFile;
507
506
  const definedAtFilePath_ = {
508
507
  ...interfaceFile.filePath,
@@ -939,6 +938,7 @@ function mergeCumulative(configName, configValueSources) {
939
938
  function getConfigEnvValue(val, errMsgIntro) {
940
939
  const errInvalidValue = `${errMsgIntro} an invalid value ${picocolors_1.default.cyan(JSON.stringify(val))}`;
941
940
  // Legacy outdated values
941
+ // TODO/v1-release: remove
942
942
  if (typeof val === 'string') {
943
943
  const valConverted = (() => {
944
944
  if (val === 'client-only')
@@ -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.170';
4
+ const PROJECT_VERSION = '0.4.171';
5
5
  exports.PROJECT_VERSION = PROJECT_VERSION;
6
6
  const projectInfo = {
7
7
  projectName: 'Vike',
@@ -266,7 +266,6 @@ async function loadVikeConfig(userRootDir, outDirRoot, isDev) {
266
266
  if (isGlobalConfig(configName))
267
267
  return;
268
268
  const configDef = getConfigDefinition(configDefinitions, configName, interfaceFile.filePath.filePathToShowToUser);
269
- configDef.env = deriveConfigEnvFromFileName(configDef.env, interfaceFile.filePath.fileName);
270
269
  if (!isConfigEnv(configDef, configName))
271
270
  return;
272
271
  const isAlreadyLoaded = interfacefileIsAlreaydLoaded(interfaceFile);
@@ -497,7 +496,7 @@ function isInterfaceFileUserLand(interfaceFile) {
497
496
  async function getConfigValueSource(configName, interfaceFile, configDef, userRootDir, importedFilesLoaded) {
498
497
  const conf = interfaceFile.fileExportsByConfigName[configName];
499
498
  assert(conf);
500
- const configEnv = configDef.env;
499
+ const configEnv = deriveConfigEnvFromFileName(configDef.env, interfaceFile.filePath.fileName);
501
500
  const { locationId } = interfaceFile;
502
501
  const definedAtFilePath_ = {
503
502
  ...interfaceFile.filePath,
@@ -933,6 +932,7 @@ function mergeCumulative(configName, configValueSources) {
933
932
  function getConfigEnvValue(val, errMsgIntro) {
934
933
  const errInvalidValue = `${errMsgIntro} an invalid value ${pc.cyan(JSON.stringify(val))}`;
935
934
  // Legacy outdated values
935
+ // TODO/v1-release: remove
936
936
  if (typeof val === 'string') {
937
937
  const valConverted = (() => {
938
938
  if (val === 'client-only')
@@ -1,7 +1,7 @@
1
1
  export { projectInfo };
2
2
  export { PROJECT_VERSION };
3
- declare const PROJECT_VERSION: "0.4.170";
3
+ declare const PROJECT_VERSION: "0.4.171";
4
4
  declare const projectInfo: {
5
5
  projectName: "Vike";
6
- projectVersion: "0.4.170";
6
+ projectVersion: "0.4.171";
7
7
  };
@@ -1,6 +1,6 @@
1
1
  export { projectInfo };
2
2
  export { PROJECT_VERSION };
3
- const PROJECT_VERSION = '0.4.170';
3
+ const PROJECT_VERSION = '0.4.171';
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.170",
3
+ "version": "0.4.171",
4
4
  "scripts": {
5
5
  "dev": "tsc --watch",
6
6
  "build": "rimraf dist/ && pnpm run build:esm && pnpm run build:cjs",