@bamboocss/node 1.18.0 → 1.20.0

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 CHANGED
@@ -2378,6 +2378,7 @@ var Builder = class {
2378
2378
  const sheet = ctx.createSheet();
2379
2379
  ctx.appendBaselineCss(sheet);
2380
2380
  if (ctx.config.pruneUnusedTokens) ctx.pruneTokens(sheet, collectTokenReferences(ctx, []));
2381
+ else ctx.pruneTokens(sheet);
2381
2382
  if (ctx.config.pruneUnusedKeyframes) ctx.pruneKeyframes(sheet, collectKeyframeReferences(ctx, keyframeNames(ctx)));
2382
2383
  const css = ctx.getCss(sheet);
2383
2384
  root.append(css);
@@ -2482,6 +2483,7 @@ const cssgen = async (ctx, options) => {
2482
2483
  }
2483
2484
  ctx.appendParserCss(sheet);
2484
2485
  if (!minimal && ctx.config.pruneUnusedTokens) ctx.pruneTokens(sheet, collectTokenReferences(ctx, results));
2486
+ else if (!minimal) ctx.pruneTokens(sheet);
2485
2487
  if (!minimal && ctx.config.pruneUnusedKeyframes) ctx.pruneKeyframes(sheet, collectKeyframeReferences(ctx, keyframeNames(ctx)));
2486
2488
  if (splitting) await ctx.writeSplitCss(sheet);
2487
2489
  else if (outfile) {
@@ -2553,6 +2555,7 @@ async function build(ctx, artifactIds) {
2553
2555
  const parsed = ctx.parseFiles();
2554
2556
  ctx.appendParserCss(sheet);
2555
2557
  if (ctx.config.pruneUnusedTokens) ctx.pruneTokens(sheet, collectTokenReferences(ctx, parsed.results));
2558
+ else ctx.pruneTokens(sheet);
2556
2559
  if (ctx.config.pruneUnusedKeyframes) ctx.pruneKeyframes(sheet, collectKeyframeReferences(ctx, keyframeNames(ctx)));
2557
2560
  await ctx.writeCss(sheet);
2558
2561
  done(ctx.messages.buildComplete(parsed.files.length));
@@ -2699,12 +2702,11 @@ export default defineConfig({
2699
2702
  // Files to exclude
2700
2703
  exclude: [],
2701
2704
 
2702
- // Drop tokens and keyframes nothing in the emitted css reaches. Worth 50-60% of a new
2703
- // project's stylesheet. Turn off if you read tokens from somewhere the build cannot
2704
- // see them — \`token.var()\` with a computed path, or a hand-written stylesheet outside
2705
- // \`include\` — or list those under \`staticCss\` to keep them.
2706
- pruneUnusedTokens: true,
2707
- pruneUnusedKeyframes: true,
2705
+ // Tokens, keyframes and @property rules nothing in the emitted css reaches are dropped
2706
+ // by default — worth 50-60% of a new project's stylesheet. Set \`pruneUnusedTokens: false\`
2707
+ // if you read tokens from somewhere the build cannot see them — \`token.var()\` with a
2708
+ // computed path, or a hand-written stylesheet outside \`include\` — or list those under
2709
+ // \`staticCss\` to keep them.
2708
2710
 
2709
2711
  // Useful for theme customization
2710
2712
  theme: {
package/dist/index.mjs CHANGED
@@ -2363,6 +2363,7 @@ var Builder = class {
2363
2363
  const sheet = ctx.createSheet();
2364
2364
  ctx.appendBaselineCss(sheet);
2365
2365
  if (ctx.config.pruneUnusedTokens) ctx.pruneTokens(sheet, collectTokenReferences(ctx, []));
2366
+ else ctx.pruneTokens(sheet);
2366
2367
  if (ctx.config.pruneUnusedKeyframes) ctx.pruneKeyframes(sheet, collectKeyframeReferences(ctx, keyframeNames(ctx)));
2367
2368
  const css = ctx.getCss(sheet);
2368
2369
  root.append(css);
@@ -2467,6 +2468,7 @@ const cssgen = async (ctx, options) => {
2467
2468
  }
2468
2469
  ctx.appendParserCss(sheet);
2469
2470
  if (!minimal && ctx.config.pruneUnusedTokens) ctx.pruneTokens(sheet, collectTokenReferences(ctx, results));
2471
+ else if (!minimal) ctx.pruneTokens(sheet);
2470
2472
  if (!minimal && ctx.config.pruneUnusedKeyframes) ctx.pruneKeyframes(sheet, collectKeyframeReferences(ctx, keyframeNames(ctx)));
2471
2473
  if (splitting) await ctx.writeSplitCss(sheet);
2472
2474
  else if (outfile) {
@@ -2538,6 +2540,7 @@ async function build(ctx, artifactIds) {
2538
2540
  const parsed = ctx.parseFiles();
2539
2541
  ctx.appendParserCss(sheet);
2540
2542
  if (ctx.config.pruneUnusedTokens) ctx.pruneTokens(sheet, collectTokenReferences(ctx, parsed.results));
2543
+ else ctx.pruneTokens(sheet);
2541
2544
  if (ctx.config.pruneUnusedKeyframes) ctx.pruneKeyframes(sheet, collectKeyframeReferences(ctx, keyframeNames(ctx)));
2542
2545
  await ctx.writeCss(sheet);
2543
2546
  done(ctx.messages.buildComplete(parsed.files.length));
@@ -2684,12 +2687,11 @@ export default defineConfig({
2684
2687
  // Files to exclude
2685
2688
  exclude: [],
2686
2689
 
2687
- // Drop tokens and keyframes nothing in the emitted css reaches. Worth 50-60% of a new
2688
- // project's stylesheet. Turn off if you read tokens from somewhere the build cannot
2689
- // see them — \`token.var()\` with a computed path, or a hand-written stylesheet outside
2690
- // \`include\` — or list those under \`staticCss\` to keep them.
2691
- pruneUnusedTokens: true,
2692
- pruneUnusedKeyframes: true,
2690
+ // Tokens, keyframes and @property rules nothing in the emitted css reaches are dropped
2691
+ // by default — worth 50-60% of a new project's stylesheet. Set \`pruneUnusedTokens: false\`
2692
+ // if you read tokens from somewhere the build cannot see them — \`token.var()\` with a
2693
+ // computed path, or a hand-written stylesheet outside \`include\` — or list those under
2694
+ // \`staticCss\` to keep them.
2693
2695
 
2694
2696
  // Useful for theme customization
2695
2697
  theme: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/node",
3
- "version": "1.18.0",
3
+ "version": "1.20.0",
4
4
  "description": "The core css bamboo library",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -33,8 +33,8 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "browserslist": "4.28.1",
37
- "chokidar": "4.0.3",
36
+ "browserslist": "4.28.7",
37
+ "chokidar": "5.0.0",
38
38
  "fast-glob": "3.3.3",
39
39
  "fs-extra": "11.3.2",
40
40
  "get-tsconfig": "^4.13.0",
@@ -46,24 +46,24 @@
46
46
  "p-limit": "5.0.0",
47
47
  "package-manager-detector": "1.6.0",
48
48
  "perfect-debounce": "1.0.0",
49
- "picomatch": "4.0.4",
49
+ "picomatch": "4.0.5",
50
50
  "pkg-types": "2.3.0",
51
51
  "pluralize": "8.0.0",
52
- "postcss": "8.5.25",
52
+ "postcss": "8.5.26",
53
53
  "ts-morph": "28.0.0",
54
54
  "ts-pattern": "5.9.0",
55
- "@bamboocss/config": "1.18.0",
56
- "@bamboocss/core": "1.18.0",
57
- "@bamboocss/generator": "1.18.0",
58
- "@bamboocss/logger": "1.18.0",
59
- "@bamboocss/parser": "1.18.0",
60
- "@bamboocss/plugin-lightningcss": "1.18.0",
61
- "@bamboocss/plugin-svelte": "1.18.0",
62
- "@bamboocss/plugin-vue": "1.18.0",
63
- "@bamboocss/reporter": "1.18.0",
64
- "@bamboocss/shared": "1.18.0",
65
- "@bamboocss/token-dictionary": "1.18.0",
66
- "@bamboocss/types": "1.18.0"
55
+ "@bamboocss/config": "1.20.0",
56
+ "@bamboocss/core": "1.20.0",
57
+ "@bamboocss/generator": "1.20.0",
58
+ "@bamboocss/logger": "1.20.0",
59
+ "@bamboocss/parser": "1.20.0",
60
+ "@bamboocss/plugin-lightningcss": "1.20.0",
61
+ "@bamboocss/plugin-svelte": "1.20.0",
62
+ "@bamboocss/plugin-vue": "1.20.0",
63
+ "@bamboocss/reporter": "1.20.0",
64
+ "@bamboocss/shared": "1.20.0",
65
+ "@bamboocss/token-dictionary": "1.20.0",
66
+ "@bamboocss/types": "1.20.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/fs-extra": "11.0.4",