@lwrjs/shared-utils 0.17.2-alpha.29 → 0.17.2-alpha.30

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/build/cjs/env.cjs CHANGED
@@ -44,7 +44,8 @@ function getFeatureFlags() {
44
44
  SSR_LOADER_PER_REQUEST: parseBooleanFlag("SSR_LOADER_PER_REQUEST"),
45
45
  VIEW_CACHE_SIZE: parseStringFlag("VIEW_CACHE_SIZE"),
46
46
  EXPERIMENTAL_ASSET_HEADERS: parseStringFlag("EXPERIMENTAL_ASSET_HEADERS"),
47
- SSR_TIMEOUT: parseStringFlag("SSR_TIMEOUT")
47
+ SSR_TIMEOUT: parseStringFlag("SSR_TIMEOUT"),
48
+ PRELOAD_INCLUDED_MODULES: parseBooleanFlag("PRELOAD_INCLUDED_MODULES")
48
49
  };
49
50
  }
50
51
  function parseBooleanFlag(flag) {
@@ -127,7 +127,7 @@ async function getVersionedModuleId(rawSpecifier, moduleRegistry, runtimeParams)
127
127
  return {...moduleId, version: moduleEntry.version};
128
128
  }
129
129
  function isSpecifier(specifier) {
130
- return !!specifier && /^@?[\w-]+(\/[\w-]+)*$/.test(specifier);
130
+ return !!specifier && /^@?[\w-.]+(\/[\w-.]+)*$/.test(specifier);
131
131
  }
132
132
  var RE_SCOPED = /^(@[^/]+\/[^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/;
133
133
  var RE_NORMAL = /^([^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/;
package/build/es/env.js CHANGED
@@ -32,6 +32,8 @@ export function getFeatureFlags() {
32
32
  EXPERIMENTAL_ASSET_HEADERS: parseStringFlag('EXPERIMENTAL_ASSET_HEADERS'),
33
33
  // Sets the timeout for SSR on lambda in ms
34
34
  SSR_TIMEOUT: parseStringFlag('SSR_TIMEOUT'),
35
+ // Pushes the includedModules of each root component bundle into clientBootstrapConfig.preloadModules
36
+ PRELOAD_INCLUDED_MODULES: parseBooleanFlag('PRELOAD_INCLUDED_MODULES'),
35
37
  };
36
38
  }
37
39
  /**
@@ -128,7 +128,7 @@ export async function getVersionedModuleId(rawSpecifier, moduleRegistry, runtime
128
128
  return { ...moduleId, version: moduleEntry.version };
129
129
  }
130
130
  export function isSpecifier(specifier) {
131
- return !!specifier && /^@?[\w-]+(\/[\w-]+)*$/.test(specifier);
131
+ return !!specifier && /^@?[\w-.]+(\/[\w-.]+)*$/.test(specifier);
132
132
  }
133
133
  const RE_SCOPED = /^(@[^/]+\/[^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/;
134
134
  const RE_NORMAL = /^([^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.17.2-alpha.29",
7
+ "version": "0.17.2-alpha.30",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "build/**/*.d.ts"
38
38
  ],
39
39
  "dependencies": {
40
- "@lwrjs/diagnostics": "0.17.2-alpha.29",
40
+ "@lwrjs/diagnostics": "0.17.2-alpha.30",
41
41
  "es-module-lexer": "^1.5.4",
42
42
  "fast-json-stable-stringify": "^2.1.0",
43
43
  "magic-string": "^0.30.9",
@@ -50,7 +50,7 @@
50
50
  "slugify": "^1.4.5"
51
51
  },
52
52
  "devDependencies": {
53
- "@lwrjs/types": "0.17.2-alpha.29",
53
+ "@lwrjs/types": "0.17.2-alpha.30",
54
54
  "@types/mime-types": "2.1.4",
55
55
  "@types/path-to-regexp": "^1.7.0",
56
56
  "memfs": "^4.13.0"
@@ -58,5 +58,5 @@
58
58
  "engines": {
59
59
  "node": ">=20.0.0"
60
60
  },
61
- "gitHead": "c5d23a5a170bb906f66fc3fcbadf1648e87dcf1b"
61
+ "gitHead": "818bbb13d2d4b14d128c4c4f23229c9ce7458a23"
62
62
  }