@csszyx/unplugin 0.11.9 → 0.11.11
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/dist/index.cjs +4 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/next-prebuild.cjs +3 -3
- package/dist/next-prebuild.d.cts +1 -1
- package/dist/next-prebuild.d.mts +1 -1
- package/dist/next-prebuild.mjs +3 -3
- package/dist/next-turbo-loader.cjs +4 -4
- package/dist/next-turbo-loader.d.cts +1 -1
- package/dist/next-turbo-loader.d.mts +1 -1
- package/dist/next-turbo-loader.mjs +4 -4
- package/dist/next-watcher.cjs +1 -1
- package/dist/next-watcher.mjs +1 -1
- package/dist/shared/{unplugin.Bqx2WfBV.mjs → unplugin.-yLpX1Ck.mjs} +2 -2
- package/dist/shared/{unplugin.wx3cvxxX.mjs → unplugin.B2RUVK6Z.mjs} +135 -39
- package/dist/shared/{unplugin.CjCKWnoX.d.cts → unplugin.BK7BIeBn.d.cts} +15 -1
- package/dist/shared/{unplugin.CjCKWnoX.d.mts → unplugin.BK7BIeBn.d.mts} +15 -1
- package/dist/shared/{unplugin.jZsBqx54.cjs → unplugin.BZq6FKn2.cjs} +2 -2
- package/dist/shared/{unplugin.DUI48s3S.cjs → unplugin.CJcFsJcf.cjs} +137 -40
- package/dist/shared/{unplugin.DVCQC5wq.cjs → unplugin.CKIOVNOg.cjs} +9 -0
- package/dist/shared/{unplugin.CScQRdTp.d.cts → unplugin.CXV7fOa2.d.cts} +1 -1
- package/dist/shared/{unplugin.CScQRdTp.d.mts → unplugin.CXV7fOa2.d.mts} +1 -1
- package/dist/shared/{unplugin.DmuOKVS4.cjs → unplugin.Cnxm1DcC.cjs} +2 -2
- package/dist/shared/{unplugin.nnsa7OVW.mjs → unplugin.Lhzkcj-A.mjs} +2 -2
- package/dist/shared/{unplugin.D-K57LNR.mjs → unplugin.fOnGXWgS.mjs} +9 -1
- package/dist/vite.cjs +3 -3
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +3 -3
- package/dist/webpack.cjs +3 -3
- package/dist/webpack.d.cts +2 -2
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.mjs +3 -3
- package/package.json +17 -17
- package/dist/shared/{unplugin.7TELUwsj.mjs → unplugin.DMcbmP01.mjs} +46 -46
- package/dist/shared/{unplugin.WVn08Fln.cjs → unplugin.DblMogcN.cjs} +46 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csszyx/unplugin",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.11",
|
|
4
4
|
"description": "Vite and Webpack integration for csszyx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"csszyx",
|
|
@@ -112,35 +112,35 @@
|
|
|
112
112
|
"dist"
|
|
113
113
|
],
|
|
114
114
|
"dependencies": {
|
|
115
|
-
"postcss": "^8.
|
|
116
|
-
"postcss-selector-parser": "^
|
|
115
|
+
"postcss": "^8.5.19",
|
|
116
|
+
"postcss-selector-parser": "^7.1.4",
|
|
117
117
|
"postcss-value-parser": "^4.2.0",
|
|
118
118
|
"proper-lockfile": "^4.1.2",
|
|
119
|
-
"unplugin": "^
|
|
120
|
-
"@csszyx/compiler": "0.11.
|
|
121
|
-
"@csszyx/
|
|
122
|
-
"@csszyx/
|
|
123
|
-
"@csszyx/types": "0.11.
|
|
124
|
-
"@csszyx/vue-adapter": "0.11.
|
|
119
|
+
"unplugin": "^3.3.0",
|
|
120
|
+
"@csszyx/compiler": "0.11.11",
|
|
121
|
+
"@csszyx/svelte-adapter": "0.11.11",
|
|
122
|
+
"@csszyx/core": "0.11.11",
|
|
123
|
+
"@csszyx/types": "0.11.11",
|
|
124
|
+
"@csszyx/vue-adapter": "0.11.11"
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|
|
127
|
-
"@csszyx/runtime": "^0.11.
|
|
127
|
+
"@csszyx/runtime": "^0.11.11"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
|
-
"@tailwindcss/node": "4.3.
|
|
131
|
-
"@types/node": "^20.
|
|
130
|
+
"@tailwindcss/node": "4.3.3",
|
|
131
|
+
"@types/node": "^22.20.1",
|
|
132
132
|
"@types/proper-lockfile": "^4.1.4",
|
|
133
133
|
"esbuild": "^0.28.1",
|
|
134
|
-
"rollup": "^4.
|
|
134
|
+
"rollup": "^4.62.2",
|
|
135
135
|
"typescript": "^6.0.3",
|
|
136
136
|
"unbuild": "^3.6.1",
|
|
137
|
-
"vite": "^8.
|
|
138
|
-
"vitest": "^4.1.
|
|
139
|
-
"webpack": "^5.
|
|
137
|
+
"vite": "^8.1.5",
|
|
138
|
+
"vitest": "^4.1.10",
|
|
139
|
+
"webpack": "^5.108.4"
|
|
140
140
|
},
|
|
141
141
|
"sideEffects": false,
|
|
142
142
|
"engines": {
|
|
143
|
-
"node": "
|
|
143
|
+
"node": "^22.18.0 || >=24.11.0"
|
|
144
144
|
},
|
|
145
145
|
"scripts": {
|
|
146
146
|
"build": "unbuild",
|
|
@@ -353,6 +353,52 @@ function sleepSync(ms) {
|
|
|
353
353
|
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
+
function createNextCacheIdentity(input) {
|
|
357
|
+
const configHash = hashString(stableStringify(input.config));
|
|
358
|
+
const envHash = hashString(stableStringify(pickEnv(input.env ?? {}, input.envKeys ?? [])));
|
|
359
|
+
const generation = hashString(
|
|
360
|
+
stableStringify({
|
|
361
|
+
root: input.root,
|
|
362
|
+
configHash,
|
|
363
|
+
envHash,
|
|
364
|
+
nextVersion: input.nextVersion,
|
|
365
|
+
csszyxVersion: input.csszyxVersion,
|
|
366
|
+
nativeVersion: input.nativeVersion,
|
|
367
|
+
mode: input.mode
|
|
368
|
+
})
|
|
369
|
+
);
|
|
370
|
+
return { configHash, envHash, generation };
|
|
371
|
+
}
|
|
372
|
+
function stableStringify(value) {
|
|
373
|
+
if (value === null || typeof value === "boolean" || typeof value === "string") {
|
|
374
|
+
return JSON.stringify(value);
|
|
375
|
+
}
|
|
376
|
+
if (typeof value === "number") {
|
|
377
|
+
return Number.isFinite(value) ? JSON.stringify(value) : "null";
|
|
378
|
+
}
|
|
379
|
+
if (Array.isArray(value)) {
|
|
380
|
+
return `[${value.map((item) => stableStringify(item)).join(",")}]`;
|
|
381
|
+
}
|
|
382
|
+
if (typeof value === "object") {
|
|
383
|
+
const entries = Object.entries(value).filter((entry) => entry[1] !== void 0).sort(([left], [right]) => left.localeCompare(right));
|
|
384
|
+
return `{${entries.map(([key, entryValue]) => `${JSON.stringify(key)}:${stableStringify(entryValue)}`).join(",")}}`;
|
|
385
|
+
}
|
|
386
|
+
return "null";
|
|
387
|
+
}
|
|
388
|
+
function pickEnv(env, envKeys) {
|
|
389
|
+
const selected = {};
|
|
390
|
+
for (const key of sortStrings(new Set(envKeys))) {
|
|
391
|
+
const value = env[key];
|
|
392
|
+
if (value !== void 0) {
|
|
393
|
+
selected[key] = value;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
return selected;
|
|
397
|
+
}
|
|
398
|
+
function hashString(value) {
|
|
399
|
+
return `sha256:${createHash("sha256").update(value).digest("hex")}`;
|
|
400
|
+
}
|
|
401
|
+
|
|
356
402
|
function resolveNextGenerationManifestPath(rootDir, cacheDir = ".csszyx/cache") {
|
|
357
403
|
return path.resolve(rootDir, cacheDir, "generation-manifest.json");
|
|
358
404
|
}
|
|
@@ -417,52 +463,6 @@ function normalizeManifest(manifest) {
|
|
|
417
463
|
};
|
|
418
464
|
}
|
|
419
465
|
|
|
420
|
-
function createNextCacheIdentity(input) {
|
|
421
|
-
const configHash = hashString(stableStringify(input.config));
|
|
422
|
-
const envHash = hashString(stableStringify(pickEnv(input.env ?? {}, input.envKeys ?? [])));
|
|
423
|
-
const generation = hashString(
|
|
424
|
-
stableStringify({
|
|
425
|
-
root: input.root,
|
|
426
|
-
configHash,
|
|
427
|
-
envHash,
|
|
428
|
-
nextVersion: input.nextVersion,
|
|
429
|
-
csszyxVersion: input.csszyxVersion,
|
|
430
|
-
nativeVersion: input.nativeVersion,
|
|
431
|
-
mode: input.mode
|
|
432
|
-
})
|
|
433
|
-
);
|
|
434
|
-
return { configHash, envHash, generation };
|
|
435
|
-
}
|
|
436
|
-
function stableStringify(value) {
|
|
437
|
-
if (value === null || typeof value === "boolean" || typeof value === "string") {
|
|
438
|
-
return JSON.stringify(value);
|
|
439
|
-
}
|
|
440
|
-
if (typeof value === "number") {
|
|
441
|
-
return Number.isFinite(value) ? JSON.stringify(value) : "null";
|
|
442
|
-
}
|
|
443
|
-
if (Array.isArray(value)) {
|
|
444
|
-
return `[${value.map((item) => stableStringify(item)).join(",")}]`;
|
|
445
|
-
}
|
|
446
|
-
if (typeof value === "object") {
|
|
447
|
-
const entries = Object.entries(value).filter((entry) => entry[1] !== void 0).sort(([left], [right]) => left.localeCompare(right));
|
|
448
|
-
return `{${entries.map(([key, entryValue]) => `${JSON.stringify(key)}:${stableStringify(entryValue)}`).join(",")}}`;
|
|
449
|
-
}
|
|
450
|
-
return "null";
|
|
451
|
-
}
|
|
452
|
-
function pickEnv(env, envKeys) {
|
|
453
|
-
const selected = {};
|
|
454
|
-
for (const key of sortStrings(new Set(envKeys))) {
|
|
455
|
-
const value = env[key];
|
|
456
|
-
if (value !== void 0) {
|
|
457
|
-
selected[key] = value;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
return selected;
|
|
461
|
-
}
|
|
462
|
-
function hashString(value) {
|
|
463
|
-
return `sha256:${createHash("sha256").update(value).digest("hex")}`;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
466
|
function resolveNextAppRoot(input) {
|
|
467
467
|
if (input.explicitRoot) {
|
|
468
468
|
return { root: path.resolve(input.explicitRoot), source: "explicit" };
|
|
@@ -373,6 +373,52 @@ function sleepSync(ms) {
|
|
|
373
373
|
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
+
function createNextCacheIdentity(input) {
|
|
377
|
+
const configHash = hashString(stableStringify(input.config));
|
|
378
|
+
const envHash = hashString(stableStringify(pickEnv(input.env ?? {}, input.envKeys ?? [])));
|
|
379
|
+
const generation = hashString(
|
|
380
|
+
stableStringify({
|
|
381
|
+
root: input.root,
|
|
382
|
+
configHash,
|
|
383
|
+
envHash,
|
|
384
|
+
nextVersion: input.nextVersion,
|
|
385
|
+
csszyxVersion: input.csszyxVersion,
|
|
386
|
+
nativeVersion: input.nativeVersion,
|
|
387
|
+
mode: input.mode
|
|
388
|
+
})
|
|
389
|
+
);
|
|
390
|
+
return { configHash, envHash, generation };
|
|
391
|
+
}
|
|
392
|
+
function stableStringify(value) {
|
|
393
|
+
if (value === null || typeof value === "boolean" || typeof value === "string") {
|
|
394
|
+
return JSON.stringify(value);
|
|
395
|
+
}
|
|
396
|
+
if (typeof value === "number") {
|
|
397
|
+
return Number.isFinite(value) ? JSON.stringify(value) : "null";
|
|
398
|
+
}
|
|
399
|
+
if (Array.isArray(value)) {
|
|
400
|
+
return `[${value.map((item) => stableStringify(item)).join(",")}]`;
|
|
401
|
+
}
|
|
402
|
+
if (typeof value === "object") {
|
|
403
|
+
const entries = Object.entries(value).filter((entry) => entry[1] !== void 0).sort(([left], [right]) => left.localeCompare(right));
|
|
404
|
+
return `{${entries.map(([key, entryValue]) => `${JSON.stringify(key)}:${stableStringify(entryValue)}`).join(",")}}`;
|
|
405
|
+
}
|
|
406
|
+
return "null";
|
|
407
|
+
}
|
|
408
|
+
function pickEnv(env, envKeys) {
|
|
409
|
+
const selected = {};
|
|
410
|
+
for (const key of htmlEscape.sortStrings(new Set(envKeys))) {
|
|
411
|
+
const value = env[key];
|
|
412
|
+
if (value !== void 0) {
|
|
413
|
+
selected[key] = value;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
return selected;
|
|
417
|
+
}
|
|
418
|
+
function hashString(value) {
|
|
419
|
+
return `sha256:${node_crypto.createHash("sha256").update(value).digest("hex")}`;
|
|
420
|
+
}
|
|
421
|
+
|
|
376
422
|
function resolveNextGenerationManifestPath(rootDir, cacheDir = ".csszyx/cache") {
|
|
377
423
|
return path__namespace.resolve(rootDir, cacheDir, "generation-manifest.json");
|
|
378
424
|
}
|
|
@@ -437,52 +483,6 @@ function normalizeManifest(manifest) {
|
|
|
437
483
|
};
|
|
438
484
|
}
|
|
439
485
|
|
|
440
|
-
function createNextCacheIdentity(input) {
|
|
441
|
-
const configHash = hashString(stableStringify(input.config));
|
|
442
|
-
const envHash = hashString(stableStringify(pickEnv(input.env ?? {}, input.envKeys ?? [])));
|
|
443
|
-
const generation = hashString(
|
|
444
|
-
stableStringify({
|
|
445
|
-
root: input.root,
|
|
446
|
-
configHash,
|
|
447
|
-
envHash,
|
|
448
|
-
nextVersion: input.nextVersion,
|
|
449
|
-
csszyxVersion: input.csszyxVersion,
|
|
450
|
-
nativeVersion: input.nativeVersion,
|
|
451
|
-
mode: input.mode
|
|
452
|
-
})
|
|
453
|
-
);
|
|
454
|
-
return { configHash, envHash, generation };
|
|
455
|
-
}
|
|
456
|
-
function stableStringify(value) {
|
|
457
|
-
if (value === null || typeof value === "boolean" || typeof value === "string") {
|
|
458
|
-
return JSON.stringify(value);
|
|
459
|
-
}
|
|
460
|
-
if (typeof value === "number") {
|
|
461
|
-
return Number.isFinite(value) ? JSON.stringify(value) : "null";
|
|
462
|
-
}
|
|
463
|
-
if (Array.isArray(value)) {
|
|
464
|
-
return `[${value.map((item) => stableStringify(item)).join(",")}]`;
|
|
465
|
-
}
|
|
466
|
-
if (typeof value === "object") {
|
|
467
|
-
const entries = Object.entries(value).filter((entry) => entry[1] !== void 0).sort(([left], [right]) => left.localeCompare(right));
|
|
468
|
-
return `{${entries.map(([key, entryValue]) => `${JSON.stringify(key)}:${stableStringify(entryValue)}`).join(",")}}`;
|
|
469
|
-
}
|
|
470
|
-
return "null";
|
|
471
|
-
}
|
|
472
|
-
function pickEnv(env, envKeys) {
|
|
473
|
-
const selected = {};
|
|
474
|
-
for (const key of htmlEscape.sortStrings(new Set(envKeys))) {
|
|
475
|
-
const value = env[key];
|
|
476
|
-
if (value !== void 0) {
|
|
477
|
-
selected[key] = value;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
return selected;
|
|
481
|
-
}
|
|
482
|
-
function hashString(value) {
|
|
483
|
-
return `sha256:${node_crypto.createHash("sha256").update(value).digest("hex")}`;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
486
|
function resolveNextAppRoot(input) {
|
|
487
487
|
if (input.explicitRoot) {
|
|
488
488
|
return { root: path__namespace.resolve(input.explicitRoot), source: "explicit" };
|