@voidzero-dev/vite-plus-core 0.2.5 → 0.2.6

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.
Files changed (79) hide show
  1. package/LICENSE +31 -7
  2. package/dist/rolldown/cli.d.mts +1 -1
  3. package/dist/rolldown/cli.mjs +6 -6
  4. package/dist/rolldown/config.d.mts +16 -17
  5. package/dist/rolldown/config.mjs +2 -2
  6. package/dist/rolldown/experimental-index.d.mts +164 -155
  7. package/dist/rolldown/experimental-index.mjs +23 -14
  8. package/dist/rolldown/experimental-runtime-types.d.ts +111 -41
  9. package/dist/rolldown/filter-index.d.mts +6 -5
  10. package/dist/rolldown/get-log-filter.d.mts +2 -2
  11. package/dist/rolldown/index.d.mts +3 -3
  12. package/dist/rolldown/index.mjs +4 -4
  13. package/dist/rolldown/parallel-plugin-worker.d.mts +1 -1
  14. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  15. package/dist/rolldown/parallel-plugin.d.mts +3 -4
  16. package/dist/rolldown/parse-ast-index.d.mts +19 -20
  17. package/dist/rolldown/parse-ast-index.mjs +1 -1
  18. package/dist/rolldown/plugins-index.d.mts +27 -28
  19. package/dist/rolldown/plugins-index.mjs +2 -2
  20. package/dist/rolldown/shared/{binding-D26QphWG.d.mts → binding-Dbbi0RbO.d.mts} +37 -25
  21. package/dist/rolldown/shared/{binding-TuFFIE_J.mjs → binding-Dby9rwGk.mjs} +26 -26
  22. package/dist/rolldown/shared/{bindingify-input-options-CwbcQL6W.mjs → bindingify-input-options-DVQ4K-zY.mjs} +5 -5
  23. package/dist/rolldown/shared/{constructors-BbWPse2X.d.mts → constructors-CSWbNgBZ.d.mts} +9 -10
  24. package/dist/rolldown/shared/{constructors-D_3i7dpX.mjs → constructors-CuGa75s-.mjs} +1 -1
  25. package/dist/rolldown/shared/define-config-B-IDOhDz.d.mts +4003 -0
  26. package/dist/rolldown/shared/{error-BHRSI0R7.mjs → error-DFGNOCle.mjs} +1 -1
  27. package/dist/rolldown/shared/get-log-filter-AjBknEEO.d.mts +34 -0
  28. package/dist/rolldown/shared/{load-config-Bd7MgqCK.mjs → load-config-R0z2olkB.mjs} +1 -1
  29. package/dist/rolldown/shared/{logging-BSNejiLS.d.mts → logging-xuHO4mAy.d.mts} +6 -6
  30. package/dist/rolldown/shared/{normalize-string-or-regex-dnh67V_w.mjs → normalize-string-or-regex-SiXbePVH.mjs} +1 -1
  31. package/dist/rolldown/shared/{parse-B6_waszz.mjs → parse-D5dkElpf.mjs} +2 -2
  32. package/dist/rolldown/shared/{resolve-tsconfig-DxqIJB3x.mjs → resolve-tsconfig-2TXRF_zr.mjs} +2 -2
  33. package/dist/rolldown/shared/{rolldown-CACDGVWV.mjs → rolldown-BnV7isAX.mjs} +1 -1
  34. package/dist/rolldown/shared/{rolldown-build-BV22mk7t.mjs → rolldown-build-BGXNOfvH.mjs} +4 -4
  35. package/dist/rolldown/shared/transform-Cs2bUDRH.d.mts +148 -0
  36. package/dist/rolldown/shared/{watch-CS_JygCu.mjs → watch-DVucf-VG.mjs} +4 -4
  37. package/dist/rolldown/utils-index.d.mts +29 -30
  38. package/dist/rolldown/utils-index.mjs +6 -8
  39. package/dist/tsdown/{build-BlM3pDGJ-C8Uovnt4.js → build-oq13wECG-Bymq3jT5.js} +131 -1240
  40. package/dist/tsdown/debug-BntVTkRq-BGIoAiTa.js +159 -0
  41. package/dist/tsdown/{detect-BNXt7gkp-DKAC9Z7n.js → detect-DGhJGEqb-S-tkSzpt.js} +7 -1
  42. package/dist/tsdown/{dist-Pjag7IPt.js → dist-CxIM8o7n.js} +1936 -2529
  43. package/dist/tsdown/dist-DCMiHFrJ.js +1061 -0
  44. package/dist/tsdown/index-types.d.ts +729 -553
  45. package/dist/tsdown/index.js +4 -4
  46. package/dist/tsdown/internal-C7ewSPAZ.js +3 -0
  47. package/dist/tsdown/load-tsc-BKULZsrs-BFmeD6Bu.js +18 -0
  48. package/dist/tsdown/{main-BlTcyuFi.js → main-BdzlWPt6.js} +214 -9
  49. package/dist/tsdown/{resolver-DtsKFXi2-B8Z3WwZh.js → resolver-cwLsPb2o-oj1hqxK6.js} +4 -3
  50. package/dist/tsdown/run.js +4 -4
  51. package/dist/tsdown/{src-CK50m8R_.js → src-BV-UJr_R.js} +5 -5
  52. package/dist/tsdown/target-CNxIDvSz-eoHNdJNs.js +576 -0
  53. package/dist/tsdown/tsc-context-CA76SkkZ.js +23 -0
  54. package/dist/tsdown/{tsc-CilQvmj4.js → tsc-zcbB6ZVY.js} +49 -116
  55. package/dist/tsdown/tsdown-css.js +5 -5
  56. package/dist/tsdown/tsdown-exe.js +129 -877
  57. package/dist/vite/client/client.mjs +5 -5
  58. package/dist/vite/node/chunks/build.js +19 -19
  59. package/dist/vite/node/chunks/moduleRunnerTransport.d.ts +25 -26
  60. package/dist/vite/node/chunks/node.js +73 -38
  61. package/dist/vite/node/chunks/postcss-import.js +10 -10
  62. package/dist/vite/node/index.d.ts +1282 -1283
  63. package/dist/vite/node/module-runner.d.ts +76 -77
  64. package/dist/vite/node/module-runner.js +6 -7
  65. package/package.json +16 -16
  66. package/dist/rolldown/shared/define-config-BhJ90aEv.d.mts +0 -3978
  67. package/dist/rolldown/shared/get-log-filter-BpNVNJ5-.d.mts +0 -35
  68. package/dist/rolldown/shared/transform-BPrUvqEZ.d.mts +0 -149
  69. package/dist/tsdown/debug-B1wUEHkd-DhRzGJTf.js +0 -265
  70. package/dist/tsdown/fs-qxJxxoCE-B_amenYz.js +0 -46
  71. package/dist/tsdown/general-Cp4NiJNK-xAqmPhMP.js +0 -97
  72. package/dist/tsdown/internal-Bn6NGoha.js +0 -3
  73. package/dist/tsdown/npm_cjs_chunk_range.cjs +0 -475
  74. package/dist/tsdown/npm_cjs_chunk_semver.cjs +0 -357
  75. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +0 -52
  76. package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +0 -19
  77. package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +0 -46
  78. package/dist/tsdown/target-CqeSqtms-CIvlAiuG.js +0 -35
  79. package/dist/tsdown/tsc-context-BusiAGCd.js +0 -27
@@ -1,357 +0,0 @@
1
- const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
2
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js
3
- var require_parse_options = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
4
- const looseOption = Object.freeze({ loose: true });
5
- const emptyOpts = Object.freeze({});
6
- const parseOptions = (options) => {
7
- if (!options) return emptyOpts;
8
- if (typeof options !== "object") return looseOption;
9
- return options;
10
- };
11
- module.exports = parseOptions;
12
- }));
13
- //#endregion
14
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
15
- var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
16
- const SEMVER_SPEC_VERSION = "2.0.0";
17
- const MAX_LENGTH = 256;
18
- const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
19
- module.exports = {
20
- MAX_LENGTH,
21
- MAX_SAFE_COMPONENT_LENGTH: 16,
22
- MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
23
- MAX_SAFE_INTEGER,
24
- RELEASE_TYPES: [
25
- "major",
26
- "premajor",
27
- "minor",
28
- "preminor",
29
- "patch",
30
- "prepatch",
31
- "prerelease"
32
- ],
33
- SEMVER_SPEC_VERSION,
34
- FLAG_INCLUDE_PRERELEASE: 1,
35
- FLAG_LOOSE: 2
36
- };
37
- }));
38
- //#endregion
39
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js
40
- var require_debug = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
41
- module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
42
- }));
43
- //#endregion
44
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js
45
- var require_re = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
46
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
47
- const debug = require_debug();
48
- exports = module.exports = {};
49
- const re = exports.re = [];
50
- const safeRe = exports.safeRe = [];
51
- const src = exports.src = [];
52
- const safeSrc = exports.safeSrc = [];
53
- const t = exports.t = {};
54
- let R = 0;
55
- const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
56
- const safeRegexReplacements = [
57
- ["\\s", 1],
58
- ["\\d", MAX_LENGTH],
59
- [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
60
- ];
61
- const makeSafeRegex = (value) => {
62
- for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
63
- return value;
64
- };
65
- const createToken = (name, value, isGlobal) => {
66
- const safe = makeSafeRegex(value);
67
- const index = R++;
68
- debug(name, index, value);
69
- t[name] = index;
70
- src[index] = value;
71
- safeSrc[index] = safe;
72
- re[index] = new RegExp(value, isGlobal ? "g" : void 0);
73
- safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
74
- };
75
- createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
76
- createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
77
- createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
78
- createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
79
- createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
80
- createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
81
- createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
82
- createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
83
- createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
84
- createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
85
- createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
86
- createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
87
- createToken("FULL", `^${src[t.FULLPLAIN]}$`);
88
- createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
89
- createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
90
- createToken("GTLT", "((?:<|>)?=?)");
91
- createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
92
- createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
93
- createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
94
- createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
95
- createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
96
- createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
97
- createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
98
- createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
99
- createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
100
- createToken("COERCERTL", src[t.COERCE], true);
101
- createToken("COERCERTLFULL", src[t.COERCEFULL], true);
102
- createToken("LONETILDE", "(?:~>?)");
103
- createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
104
- exports.tildeTrimReplace = "$1~";
105
- createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
106
- createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
107
- createToken("LONECARET", "(?:\\^)");
108
- createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
109
- exports.caretTrimReplace = "$1^";
110
- createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
111
- createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
112
- createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
113
- createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
114
- createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
115
- exports.comparatorTrimReplace = "$1$2$3";
116
- createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
117
- createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
118
- createToken("STAR", "(<|>)?=?\\s*\\*");
119
- createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
120
- createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
121
- }));
122
- //#endregion
123
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js
124
- var require_identifiers = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
125
- const numeric = /^[0-9]+$/;
126
- const compareIdentifiers = (a, b) => {
127
- if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
128
- const anum = numeric.test(a);
129
- const bnum = numeric.test(b);
130
- if (anum && bnum) {
131
- a = +a;
132
- b = +b;
133
- }
134
- return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
135
- };
136
- const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
137
- module.exports = {
138
- compareIdentifiers,
139
- rcompareIdentifiers
140
- };
141
- }));
142
- //#endregion
143
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js
144
- var require_semver = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
145
- const debug = require_debug();
146
- const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
147
- const { safeRe: re, t } = require_re();
148
- const parseOptions = require_parse_options();
149
- const { compareIdentifiers } = require_identifiers();
150
- const isPrereleaseIdentifier = (prerelease, identifier) => {
151
- const identifiers = identifier.split(".");
152
- if (identifiers.length > prerelease.length) return false;
153
- for (let i = 0; i < identifiers.length; i++) if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) return false;
154
- return true;
155
- };
156
- module.exports = class SemVer {
157
- constructor(version, options) {
158
- options = parseOptions(options);
159
- if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
160
- else version = version.version;
161
- else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
162
- if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
163
- debug("SemVer", version, options);
164
- this.options = options;
165
- this.loose = !!options.loose;
166
- this.includePrerelease = !!options.includePrerelease;
167
- const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
168
- if (!m) throw new TypeError(`Invalid Version: ${version}`);
169
- this.raw = version;
170
- this.major = +m[1];
171
- this.minor = +m[2];
172
- this.patch = +m[3];
173
- if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
174
- if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
175
- if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
176
- if (!m[4]) this.prerelease = [];
177
- else this.prerelease = m[4].split(".").map((id) => {
178
- if (/^[0-9]+$/.test(id)) {
179
- const num = +id;
180
- if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
181
- }
182
- return id;
183
- });
184
- this.build = m[5] ? m[5].split(".") : [];
185
- this.format();
186
- }
187
- format() {
188
- this.version = `${this.major}.${this.minor}.${this.patch}`;
189
- if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
190
- return this.version;
191
- }
192
- toString() {
193
- return this.version;
194
- }
195
- compare(other) {
196
- debug("SemVer.compare", this.version, this.options, other);
197
- if (!(other instanceof SemVer)) {
198
- if (typeof other === "string" && other === this.version) return 0;
199
- other = new SemVer(other, this.options);
200
- }
201
- if (other.version === this.version) return 0;
202
- return this.compareMain(other) || this.comparePre(other);
203
- }
204
- compareMain(other) {
205
- if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
206
- if (this.major < other.major) return -1;
207
- if (this.major > other.major) return 1;
208
- if (this.minor < other.minor) return -1;
209
- if (this.minor > other.minor) return 1;
210
- if (this.patch < other.patch) return -1;
211
- if (this.patch > other.patch) return 1;
212
- return 0;
213
- }
214
- comparePre(other) {
215
- if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
216
- if (this.prerelease.length && !other.prerelease.length) return -1;
217
- else if (!this.prerelease.length && other.prerelease.length) return 1;
218
- else if (!this.prerelease.length && !other.prerelease.length) return 0;
219
- let i = 0;
220
- do {
221
- const a = this.prerelease[i];
222
- const b = other.prerelease[i];
223
- debug("prerelease compare", i, a, b);
224
- if (a === void 0 && b === void 0) return 0;
225
- else if (b === void 0) return 1;
226
- else if (a === void 0) return -1;
227
- else if (a === b) continue;
228
- else return compareIdentifiers(a, b);
229
- } while (++i);
230
- }
231
- compareBuild(other) {
232
- if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
233
- let i = 0;
234
- do {
235
- const a = this.build[i];
236
- const b = other.build[i];
237
- debug("build compare", i, a, b);
238
- if (a === void 0 && b === void 0) return 0;
239
- else if (b === void 0) return 1;
240
- else if (a === void 0) return -1;
241
- else if (a === b) continue;
242
- else return compareIdentifiers(a, b);
243
- } while (++i);
244
- }
245
- inc(release, identifier, identifierBase) {
246
- if (release.startsWith("pre")) {
247
- if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
248
- if (identifier) {
249
- const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
250
- if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
251
- }
252
- }
253
- switch (release) {
254
- case "premajor":
255
- this.prerelease.length = 0;
256
- this.patch = 0;
257
- this.minor = 0;
258
- this.major++;
259
- this.inc("pre", identifier, identifierBase);
260
- break;
261
- case "preminor":
262
- this.prerelease.length = 0;
263
- this.patch = 0;
264
- this.minor++;
265
- this.inc("pre", identifier, identifierBase);
266
- break;
267
- case "prepatch":
268
- this.prerelease.length = 0;
269
- this.inc("patch", identifier, identifierBase);
270
- this.inc("pre", identifier, identifierBase);
271
- break;
272
- case "prerelease":
273
- if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
274
- this.inc("pre", identifier, identifierBase);
275
- break;
276
- case "release":
277
- if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
278
- this.prerelease.length = 0;
279
- break;
280
- case "major":
281
- if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
282
- this.minor = 0;
283
- this.patch = 0;
284
- this.prerelease = [];
285
- break;
286
- case "minor":
287
- if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
288
- this.patch = 0;
289
- this.prerelease = [];
290
- break;
291
- case "patch":
292
- if (this.prerelease.length === 0) this.patch++;
293
- this.prerelease = [];
294
- break;
295
- case "pre": {
296
- const base = Number(identifierBase) ? 1 : 0;
297
- if (this.prerelease.length === 0) this.prerelease = [base];
298
- else {
299
- let i = this.prerelease.length;
300
- while (--i >= 0) if (typeof this.prerelease[i] === "number") {
301
- this.prerelease[i]++;
302
- i = -2;
303
- }
304
- if (i === -1) {
305
- if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
306
- this.prerelease.push(base);
307
- }
308
- }
309
- if (identifier) {
310
- let prerelease = [identifier, base];
311
- if (identifierBase === false) prerelease = [identifier];
312
- if (isPrereleaseIdentifier(this.prerelease, identifier)) {
313
- const prereleaseBase = this.prerelease[identifier.split(".").length];
314
- if (isNaN(prereleaseBase)) this.prerelease = prerelease;
315
- } else this.prerelease = prerelease;
316
- }
317
- break;
318
- }
319
- default: throw new Error(`invalid increment argument: ${release}`);
320
- }
321
- this.raw = this.format();
322
- if (this.build.length) this.raw += `+${this.build.join(".")}`;
323
- return this;
324
- }
325
- };
326
- }));
327
- //#endregion
328
- Object.defineProperty(exports, "require_constants", {
329
- enumerable: true,
330
- get: function() {
331
- return require_constants;
332
- }
333
- });
334
- Object.defineProperty(exports, "require_debug", {
335
- enumerable: true,
336
- get: function() {
337
- return require_debug;
338
- }
339
- });
340
- Object.defineProperty(exports, "require_parse_options", {
341
- enumerable: true,
342
- get: function() {
343
- return require_parse_options;
344
- }
345
- });
346
- Object.defineProperty(exports, "require_re", {
347
- enumerable: true,
348
- get: function() {
349
- return require_re;
350
- }
351
- });
352
- Object.defineProperty(exports, "require_semver", {
353
- enumerable: true,
354
- get: function() {
355
- return require_semver;
356
- }
357
- });
@@ -1,52 +0,0 @@
1
- const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
2
- const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
3
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js
4
- var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
5
- const SemVer = require_semver$1.require_semver();
6
- const parse = (version, options, throwErrors = false) => {
7
- if (version instanceof SemVer) return version;
8
- try {
9
- return new SemVer(version, options);
10
- } catch (er) {
11
- if (!throwErrors) return null;
12
- throw er;
13
- }
14
- };
15
- module.exports = parse;
16
- }));
17
- //#endregion
18
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js
19
- var require_coerce = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
20
- const SemVer = require_semver$1.require_semver();
21
- const parse = require_parse();
22
- const { safeRe: re, t } = require_semver$1.require_re();
23
- const coerce = (version, options) => {
24
- if (version instanceof SemVer) return version;
25
- if (typeof version === "number") version = String(version);
26
- if (typeof version !== "string") return null;
27
- options = options || {};
28
- let match = null;
29
- if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
30
- else {
31
- const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
32
- let next;
33
- while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
34
- if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
35
- coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
36
- }
37
- coerceRtlRegex.lastIndex = -1;
38
- }
39
- if (match === null) return null;
40
- const major = match[2];
41
- const minor = match[3] || "0";
42
- const patch = match[4] || "0";
43
- const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
44
- const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
45
- return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
46
- };
47
- module.exports = coerce;
48
- }));
49
- //#endregion
50
- //#region dist/tsdown/_npm_entry_semver_functions_coerce.cjs
51
- module.exports = require_coerce();
52
- //#endregion
@@ -1,19 +0,0 @@
1
- const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
2
- const require_range$1 = require("./npm_cjs_chunk_range.cjs");
3
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js
4
- var require_satisfies = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
5
- const Range = require_range$1.require_range();
6
- const satisfies = (version, range, options) => {
7
- try {
8
- range = new Range(range, options);
9
- } catch (er) {
10
- return false;
11
- }
12
- return range.test(version);
13
- };
14
- module.exports = satisfies;
15
- }));
16
- //#endregion
17
- //#region dist/tsdown/_npm_entry_semver_functions_satisfies.cjs
18
- module.exports = require_satisfies();
19
- //#endregion
@@ -1,46 +0,0 @@
1
- const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
2
- const require_range$1 = require("./npm_cjs_chunk_range.cjs");
3
- const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
4
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js
5
- var require_min_version = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
6
- const SemVer = require_semver$1.require_semver();
7
- const Range = require_range$1.require_range();
8
- const gt = require_range$1.require_gt();
9
- const minVersion = (range, loose) => {
10
- range = new Range(range, loose);
11
- let minver = new SemVer("0.0.0");
12
- if (range.test(minver)) return minver;
13
- minver = new SemVer("0.0.0-0");
14
- if (range.test(minver)) return minver;
15
- minver = null;
16
- for (let i = 0; i < range.set.length; ++i) {
17
- const comparators = range.set[i];
18
- let setMin = null;
19
- comparators.forEach((comparator) => {
20
- const compver = new SemVer(comparator.semver.version);
21
- switch (comparator.operator) {
22
- case ">":
23
- if (compver.prerelease.length === 0) compver.patch++;
24
- else compver.prerelease.push(0);
25
- compver.raw = compver.format();
26
- case "":
27
- case ">=":
28
- if (!setMin || gt(compver, setMin)) setMin = compver;
29
- break;
30
- case "<":
31
- case "<=": break;
32
- /* istanbul ignore next */
33
- default: throw new Error(`Unexpected operation: ${comparator.operator}`);
34
- }
35
- });
36
- if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
37
- }
38
- if (minver && range.test(minver)) return minver;
39
- return null;
40
- };
41
- module.exports = minVersion;
42
- }));
43
- //#endregion
44
- //#region dist/tsdown/_npm_entry_semver_ranges_min-version.cjs
45
- module.exports = require_min_version();
46
- //#endregion
@@ -1,35 +0,0 @@
1
- import { s as resolveComma, u as toArray } from "./general-Cp4NiJNK-xAqmPhMP.js";
2
- import { createRequire } from "node:module";
3
- const minVersion = createRequire(import.meta.url)("./npm_entry_semver_ranges_min-version.cjs");
4
- const BASELINE_WIDELY_AVAILABLE_TARGET = [
5
- "chrome111",
6
- "edge111",
7
- "firefox114",
8
- "safari16.4",
9
- "ios16.4"
10
- ];
11
- function expandBaselineTarget(targets) {
12
- return targets.flatMap((t) => t === "baseline-widely-available" ? BASELINE_WIDELY_AVAILABLE_TARGET : t);
13
- }
14
- function resolveTarget(logger, target, color, pkg, nameLabel) {
15
- if (target === false) return;
16
- if (target == null) {
17
- const pkgTarget = resolvePackageTarget(pkg);
18
- if (pkgTarget) target = pkgTarget;
19
- else return;
20
- }
21
- if (typeof target === "number") throw new TypeError(`Invalid target: ${target}`);
22
- const targets = expandBaselineTarget(resolveComma(toArray(target)));
23
- if (targets.length) logger.info(nameLabel, `target${targets.length > 1 ? "s" : ""}: ${color(targets.join(", "))}`);
24
- return targets;
25
- }
26
- function resolvePackageTarget(pkg) {
27
- const nodeVersion = pkg?.engines?.node;
28
- if (!nodeVersion) return;
29
- const nodeMinVersion = minVersion(nodeVersion);
30
- if (!nodeMinVersion) return;
31
- if (nodeMinVersion.version === "0.0.0") return;
32
- return `node${nodeMinVersion.version}`;
33
- }
34
- //#endregion
35
- export { resolveTarget as n, expandBaselineTarget as t };
@@ -1,27 +0,0 @@
1
- import { r as createDebug } from "./main-BlTcyuFi.js";
2
- import { createRequire } from "node:module";
3
- import path from "node:path";
4
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.9_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_9f43f644337e3a4030148b21b794fdcf/node_modules/rolldown-plugin-dts/dist/rolldown-runtime-CMgrfpPY.mjs
5
- var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
6
- //#endregion
7
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.9_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_9f43f644337e3a4030148b21b794fdcf/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
8
- const debug = createDebug("rolldown-plugin-dts:tsc-context");
9
- function createContext() {
10
- return {
11
- programs: [],
12
- files: /* @__PURE__ */ new Map(),
13
- projects: /* @__PURE__ */ new Map()
14
- };
15
- }
16
- function invalidateContextFile(context, file) {
17
- file = path.resolve(file).replaceAll("\\", "/");
18
- debug(`invalidating context file: ${file}`);
19
- context.files.delete(file);
20
- context.programs = context.programs.filter((program) => {
21
- return !program.getSourceFiles().some((sourceFile) => sourceFile.fileName === file);
22
- });
23
- context.projects.clear();
24
- }
25
- const globalContext = createContext();
26
- //#endregion
27
- export { __require as i, globalContext as n, invalidateContextFile as r, createContext as t };