@arcgis/lumina-compiler 5.0.0-next.81 → 5.0.0-next.82

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.
@@ -12,10 +12,4 @@
12
12
  export declare function inferCdnUrl(packageJson?: {
13
13
  name: string;
14
14
  version: string;
15
- }, preferNext?: boolean,
16
- /**
17
- * Whether to include the patch semver component in the URL (1.1.x <- the x)
18
- *
19
- * @default false, unless packageJson.name is `@esri/calcite-components`
20
- */
21
- includePatch?: boolean): string;
15
+ }, preferNext?: boolean): string;
package/dist/index.js CHANGED
@@ -3090,23 +3090,27 @@ const ea = (e) => e.compiler?.name === At.name, ta = (e, t) => Object.fromEntrie
3090
3090
  ];
3091
3091
  })
3092
3092
  ), la = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, da = (e) => e.startsWith("/") ? e : `/${e}`, Lt = (e, t) => `${e}@fs${da(t)}`;
3093
- function Xe(e = R(), t = !1, i = e.name === "@esri/calcite-components") {
3094
- const n = e.version.includes("next"), s = e.name === "@esri/calcite-components";
3095
- if (s && n)
3093
+ function Xe(e = R(), t = !1) {
3094
+ const i = e.version.includes("next"), n = e.name === "@esri/calcite-components";
3095
+ if (n && i)
3096
3096
  return `https://cdn.jsdelivr.net/npm/@esri/calcite-components@${e.version}/dist/calcite/`;
3097
- const r = t || n ? "jsdev.arcgis.com" : "js.arcgis.com", a = pa(e.name), c = ma(e.version, i);
3098
- return a.length === 0 ? `https://${r}/${c}/` : s ? `https://${r}/${a}/${c}/` : `https://${r}/${c}/${a}/`;
3097
+ const s = t || i ? "jsdev.arcgis.com" : "js.arcgis.com", r = pa(e.name), a = ma(e.version);
3098
+ if (a === void 0)
3099
+ throw Error(
3100
+ E(
3101
+ "@arcgis/lumina:dependencies",
3102
+ `Failed to parse a semver version: ${e.name}. Ensure the version follows D.D.D format. Package version: ${e.version}`
3103
+ )
3104
+ );
3105
+ return r.length === 0 ? `https://${s}/${a}/` : n ? `https://${s}/${r}/${a}/` : `https://${s}/${a}/${r}/`;
3099
3106
  }
3100
3107
  const pa = (e) => e.split("/").pop() ?? e;
3101
- function ma(e, t) {
3102
- if (/\d+\.\d+\.\d+-(?:.*)$/u.test(e))
3103
- return "next";
3104
- const n = /^(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)/u, s = e.match(n);
3105
- if (s?.groups !== void 0) {
3106
- const { major: r, minor: a, patch: c } = s.groups, d = `${r}.${a}`;
3107
- return t ? `${d}.${c}` : d;
3108
- }
3109
- return "next";
3108
+ function ma(e) {
3109
+ const t = /^(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)(?<prerelease>-.*)?$/u, i = e.match(t);
3110
+ if (i?.groups === void 0)
3111
+ return;
3112
+ const { major: n, minor: s, patch: r, prerelease: a } = i.groups, c = `${n}.${s}.${r}`;
3113
+ return a?.startsWith("-next") ? `${c}-next` : c;
3110
3114
  }
3111
3115
  function ri(e, t, i) {
3112
3116
  if (se(e))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina-compiler",
3
- "version": "5.0.0-next.81",
3
+ "version": "5.0.0-next.82",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -18,9 +18,9 @@
18
18
  ],
19
19
  "license": "SEE LICENSE IN LICENSE.md",
20
20
  "dependencies": {
21
- "@arcgis/api-extractor": "5.0.0-next.81",
22
- "@arcgis/components-build-utils": "5.0.0-next.81",
23
- "@arcgis/toolkit": "~5.0.0-next.81",
21
+ "@arcgis/api-extractor": "5.0.0-next.82",
22
+ "@arcgis/components-build-utils": "5.0.0-next.82",
23
+ "@arcgis/toolkit": "~5.0.0-next.82",
24
24
  "chalk": "^5.4.1",
25
25
  "esbuild": "^0.25.12",
26
26
  "glob": "^11.0.3",
@@ -30,7 +30,7 @@
30
30
  "vite-plugin-dts": "^4.5.4"
31
31
  },
32
32
  "peerDependencies": {
33
- "@arcgis/lumina": "~5.0.0-next.81",
33
+ "@arcgis/lumina": "~5.0.0-next.82",
34
34
  "lit": "^3.3.0",
35
35
  "typescript": "~5.9.3",
36
36
  "vite": "^7.2.2",