@bamboocss/dev 1.40.0 → 1.41.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.
@@ -7627,7 +7627,7 @@ function isLocError(error) {
7627
7627
  //#endregion
7628
7628
  //#region package.json
7629
7629
  var name = "@bamboocss/dev";
7630
- var version = "1.40.0";
7630
+ var version = "1.41.0";
7631
7631
  //#endregion
7632
7632
  //#region src/interactive.ts
7633
7633
  /**
@@ -7679,7 +7679,7 @@ const interactive = async (options = {}) => {
7679
7679
  }),
7680
7680
  withStrictTokens: () => _clack_prompts.select({
7681
7681
  message: "How strictly should typescript check style values?",
7682
- initialValue: "no",
7682
+ initialValue: "unknown-tokens",
7683
7683
  options: [
7684
7684
  {
7685
7685
  value: "no",
@@ -7718,10 +7718,17 @@ const interactive = async (options = {}) => {
7718
7718
  gitignore: initFlags.shouldUpdateGitignore === "yes"
7719
7719
  };
7720
7720
  };
7721
- /** `'yes'` is the historical spelling of `true`; the third mode names itself. */
7721
+ /**
7722
+ * `'yes'` is the historical spelling of `true`; the third mode names itself.
7723
+ *
7724
+ * "No" is `false`, not `undefined`. `undefined` now means "nothing was said", which the caller
7725
+ * reads as the default — so returning it here would hand the middle mode to someone who had
7726
+ * just declined it.
7727
+ */
7722
7728
  const strictTokensFrom = (answer) => {
7723
7729
  if (answer === "yes") return true;
7724
7730
  if (answer === "unknown-tokens") return "unknown-tokens";
7731
+ return false;
7725
7732
  };
7726
7733
  //#endregion
7727
7734
  //#region src/cli-main.ts
@@ -7748,8 +7755,28 @@ const OFF = new Set([
7748
7755
  "0",
7749
7756
  ""
7750
7757
  ]);
7758
+ /**
7759
+ * What a new project gets when nothing says otherwise.
7760
+ *
7761
+ * `'unknown-tokens'` rather than nothing, because the default is the setting a project keeps.
7762
+ * Unchecked, `css({ color: 'mutedd' })` type-checks, builds, and ships `color: mutedd` — which
7763
+ * parses, so nothing objects and the browser drops it at compute time. `true` catches that and
7764
+ * rejects every raw value with it, which is a 468-error migration on one five-page app, so it is
7765
+ * realistically a day-one decision and a project that did not make it then never will.
7766
+ *
7767
+ * This one costs no migration: every literal value stays writable, and what it rejects is a bare
7768
+ * identifier that names neither a token nor a keyword the property enumerates. Run across this
7769
+ * repo's own documentation site it reported four, all of them real — `zIndex: 'overlay'` and
7770
+ * `'modal'` against a theme with no `zIndex` tokens, and a `transform: 'auto'` that is not css —
7771
+ * each shipping a declaration the browser discards.
7772
+ *
7773
+ * A new project has nothing written yet, so it starts at zero either way. The default only
7774
+ * decides whether the check is there when the first typo is.
7775
+ */
7776
+ const DEFAULT_STRICT_TOKENS = "unknown-tokens";
7751
7777
  const normalizeStrictTokens = (value) => {
7752
- if (value === void 0 || value === false) return void 0;
7778
+ if (value === void 0) return DEFAULT_STRICT_TOKENS;
7779
+ if (value === false) return void 0;
7753
7780
  if (value === true) return true;
7754
7781
  const named = String(value);
7755
7782
  if (OFF.has(named)) return void 0;
@@ -7630,7 +7630,7 @@ function isLocError(error) {
7630
7630
  //#endregion
7631
7631
  //#region package.json
7632
7632
  var name = "@bamboocss/dev";
7633
- var version = "1.40.0";
7633
+ var version = "1.41.0";
7634
7634
  //#endregion
7635
7635
  //#region src/interactive.ts
7636
7636
  /**
@@ -7682,7 +7682,7 @@ const interactive = async (options = {}) => {
7682
7682
  }),
7683
7683
  withStrictTokens: () => p.select({
7684
7684
  message: "How strictly should typescript check style values?",
7685
- initialValue: "no",
7685
+ initialValue: "unknown-tokens",
7686
7686
  options: [
7687
7687
  {
7688
7688
  value: "no",
@@ -7721,10 +7721,17 @@ const interactive = async (options = {}) => {
7721
7721
  gitignore: initFlags.shouldUpdateGitignore === "yes"
7722
7722
  };
7723
7723
  };
7724
- /** `'yes'` is the historical spelling of `true`; the third mode names itself. */
7724
+ /**
7725
+ * `'yes'` is the historical spelling of `true`; the third mode names itself.
7726
+ *
7727
+ * "No" is `false`, not `undefined`. `undefined` now means "nothing was said", which the caller
7728
+ * reads as the default — so returning it here would hand the middle mode to someone who had
7729
+ * just declined it.
7730
+ */
7725
7731
  const strictTokensFrom = (answer) => {
7726
7732
  if (answer === "yes") return true;
7727
7733
  if (answer === "unknown-tokens") return "unknown-tokens";
7734
+ return false;
7728
7735
  };
7729
7736
  //#endregion
7730
7737
  //#region src/cli-main.ts
@@ -7751,8 +7758,28 @@ const OFF = new Set([
7751
7758
  "0",
7752
7759
  ""
7753
7760
  ]);
7761
+ /**
7762
+ * What a new project gets when nothing says otherwise.
7763
+ *
7764
+ * `'unknown-tokens'` rather than nothing, because the default is the setting a project keeps.
7765
+ * Unchecked, `css({ color: 'mutedd' })` type-checks, builds, and ships `color: mutedd` — which
7766
+ * parses, so nothing objects and the browser drops it at compute time. `true` catches that and
7767
+ * rejects every raw value with it, which is a 468-error migration on one five-page app, so it is
7768
+ * realistically a day-one decision and a project that did not make it then never will.
7769
+ *
7770
+ * This one costs no migration: every literal value stays writable, and what it rejects is a bare
7771
+ * identifier that names neither a token nor a keyword the property enumerates. Run across this
7772
+ * repo's own documentation site it reported four, all of them real — `zIndex: 'overlay'` and
7773
+ * `'modal'` against a theme with no `zIndex` tokens, and a `transform: 'auto'` that is not css —
7774
+ * each shipping a declaration the browser discards.
7775
+ *
7776
+ * A new project has nothing written yet, so it starts at zero either way. The default only
7777
+ * decides whether the check is there when the first typo is.
7778
+ */
7779
+ const DEFAULT_STRICT_TOKENS = "unknown-tokens";
7754
7780
  const normalizeStrictTokens = (value) => {
7755
- if (value === void 0 || value === false) return void 0;
7781
+ if (value === void 0) return DEFAULT_STRICT_TOKENS;
7782
+ if (value === false) return void 0;
7756
7783
  if (value === true) return true;
7757
7784
  const named = String(value);
7758
7785
  if (OFF.has(named)) return void 0;
package/dist/cli-main.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_package = require("./package-C5AGgVpc.cjs");
2
+ const require_package = require("./package-CR5D_P9H.cjs");
3
3
  let _bamboocss_logger = require("@bamboocss/logger");
4
4
  let _bamboocss_node = require("@bamboocss/node");
5
5
  let _bamboocss_shared = require("@bamboocss/shared");
@@ -57,7 +57,7 @@ const interactive = async (options = {}) => {
57
57
  }),
58
58
  withStrictTokens: () => _clack_prompts.select({
59
59
  message: "How strictly should typescript check style values?",
60
- initialValue: "no",
60
+ initialValue: "unknown-tokens",
61
61
  options: [
62
62
  {
63
63
  value: "no",
@@ -96,10 +96,17 @@ const interactive = async (options = {}) => {
96
96
  gitignore: initFlags.shouldUpdateGitignore === "yes"
97
97
  };
98
98
  };
99
- /** `'yes'` is the historical spelling of `true`; the third mode names itself. */
99
+ /**
100
+ * `'yes'` is the historical spelling of `true`; the third mode names itself.
101
+ *
102
+ * "No" is `false`, not `undefined`. `undefined` now means "nothing was said", which the caller
103
+ * reads as the default — so returning it here would hand the middle mode to someone who had
104
+ * just declined it.
105
+ */
100
106
  const strictTokensFrom = (answer) => {
101
107
  if (answer === "yes") return true;
102
108
  if (answer === "unknown-tokens") return "unknown-tokens";
109
+ return false;
103
110
  };
104
111
  //#endregion
105
112
  //#region src/cli-main.ts
@@ -126,8 +133,28 @@ const OFF = new Set([
126
133
  "0",
127
134
  ""
128
135
  ]);
136
+ /**
137
+ * What a new project gets when nothing says otherwise.
138
+ *
139
+ * `'unknown-tokens'` rather than nothing, because the default is the setting a project keeps.
140
+ * Unchecked, `css({ color: 'mutedd' })` type-checks, builds, and ships `color: mutedd` — which
141
+ * parses, so nothing objects and the browser drops it at compute time. `true` catches that and
142
+ * rejects every raw value with it, which is a 468-error migration on one five-page app, so it is
143
+ * realistically a day-one decision and a project that did not make it then never will.
144
+ *
145
+ * This one costs no migration: every literal value stays writable, and what it rejects is a bare
146
+ * identifier that names neither a token nor a keyword the property enumerates. Run across this
147
+ * repo's own documentation site it reported four, all of them real — `zIndex: 'overlay'` and
148
+ * `'modal'` against a theme with no `zIndex` tokens, and a `transform: 'auto'` that is not css —
149
+ * each shipping a declaration the browser discards.
150
+ *
151
+ * A new project has nothing written yet, so it starts at zero either way. The default only
152
+ * decides whether the check is there when the first typo is.
153
+ */
154
+ const DEFAULT_STRICT_TOKENS = "unknown-tokens";
129
155
  const normalizeStrictTokens = (value) => {
130
- if (value === void 0 || value === false) return void 0;
156
+ if (value === void 0) return DEFAULT_STRICT_TOKENS;
157
+ if (value === false) return void 0;
131
158
  if (value === true) return true;
132
159
  const named = String(value);
133
160
  if (OFF.has(named)) return void 0;
@@ -467,7 +494,7 @@ async function main() {
467
494
  process.exitCode = 1;
468
495
  });
469
496
  cli.command("init-mcp", "Initialize MCP configuration for AI clients").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--client <clients>", "AI clients to configure (claude, cursor, vscode, windsurf, codex)").action(async (mcpInitFlags) => {
470
- const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-DE2MAuvO.cjs"));
497
+ const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-BqBxT287.cjs"));
471
498
  const resolvedCwd = (0, path.resolve)(mcpInitFlags.cwd ?? cwd);
472
499
  let clients;
473
500
  if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
package/dist/cli-main.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-C-ms8o9u.mjs";
1
+ import { t as version } from "./package-D-6EAra1.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
3
  import { BambooContext, analyze, buildInfo, codegen, cssgen, debug, findViteConfig, generate, generatePackageExports, hasUncompilableSources, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, setupPostcss, spec, startProfiling } from "@bamboocss/node";
4
4
  import { BambooError, compact } from "@bamboocss/shared";
@@ -55,7 +55,7 @@ const interactive = async (options = {}) => {
55
55
  }),
56
56
  withStrictTokens: () => p.select({
57
57
  message: "How strictly should typescript check style values?",
58
- initialValue: "no",
58
+ initialValue: "unknown-tokens",
59
59
  options: [
60
60
  {
61
61
  value: "no",
@@ -94,10 +94,17 @@ const interactive = async (options = {}) => {
94
94
  gitignore: initFlags.shouldUpdateGitignore === "yes"
95
95
  };
96
96
  };
97
- /** `'yes'` is the historical spelling of `true`; the third mode names itself. */
97
+ /**
98
+ * `'yes'` is the historical spelling of `true`; the third mode names itself.
99
+ *
100
+ * "No" is `false`, not `undefined`. `undefined` now means "nothing was said", which the caller
101
+ * reads as the default — so returning it here would hand the middle mode to someone who had
102
+ * just declined it.
103
+ */
98
104
  const strictTokensFrom = (answer) => {
99
105
  if (answer === "yes") return true;
100
106
  if (answer === "unknown-tokens") return "unknown-tokens";
107
+ return false;
101
108
  };
102
109
  //#endregion
103
110
  //#region src/cli-main.ts
@@ -124,8 +131,28 @@ const OFF = new Set([
124
131
  "0",
125
132
  ""
126
133
  ]);
134
+ /**
135
+ * What a new project gets when nothing says otherwise.
136
+ *
137
+ * `'unknown-tokens'` rather than nothing, because the default is the setting a project keeps.
138
+ * Unchecked, `css({ color: 'mutedd' })` type-checks, builds, and ships `color: mutedd` — which
139
+ * parses, so nothing objects and the browser drops it at compute time. `true` catches that and
140
+ * rejects every raw value with it, which is a 468-error migration on one five-page app, so it is
141
+ * realistically a day-one decision and a project that did not make it then never will.
142
+ *
143
+ * This one costs no migration: every literal value stays writable, and what it rejects is a bare
144
+ * identifier that names neither a token nor a keyword the property enumerates. Run across this
145
+ * repo's own documentation site it reported four, all of them real — `zIndex: 'overlay'` and
146
+ * `'modal'` against a theme with no `zIndex` tokens, and a `transform: 'auto'` that is not css —
147
+ * each shipping a declaration the browser discards.
148
+ *
149
+ * A new project has nothing written yet, so it starts at zero either way. The default only
150
+ * decides whether the check is there when the first typo is.
151
+ */
152
+ const DEFAULT_STRICT_TOKENS = "unknown-tokens";
127
153
  const normalizeStrictTokens = (value) => {
128
- if (value === void 0 || value === false) return void 0;
154
+ if (value === void 0) return DEFAULT_STRICT_TOKENS;
155
+ if (value === false) return void 0;
129
156
  if (value === true) return true;
130
157
  const named = String(value);
131
158
  if (OFF.has(named)) return void 0;
@@ -465,7 +492,7 @@ async function main() {
465
492
  process.exitCode = 1;
466
493
  });
467
494
  cli.command("init-mcp", "Initialize MCP configuration for AI clients").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--client <clients>", "AI clients to configure (claude, cursor, vscode, windsurf, codex)").action(async (mcpInitFlags) => {
468
- const { initMcpConfig } = await import("./mcp-init-DX5at31x.mjs");
495
+ const { initMcpConfig } = await import("./mcp-init-DTydTp13.mjs");
469
496
  const resolvedCwd = resolve(mcpInitFlags.cwd ?? cwd);
470
497
  let clients;
471
498
  if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
@@ -25,7 +25,7 @@ let _bamboocss_node = require("@bamboocss/node");
25
25
  let _clack_prompts = require("@clack/prompts");
26
26
  _clack_prompts = __toESM(_clack_prompts);
27
27
  //#region package.json
28
- var version = "1.40.0";
28
+ var version = "1.41.0";
29
29
  //#endregion
30
30
  //#region src/interactive.ts
31
31
  /**
@@ -77,7 +77,7 @@ const interactive = async (options = {}) => {
77
77
  }),
78
78
  withStrictTokens: () => _clack_prompts.select({
79
79
  message: "How strictly should typescript check style values?",
80
- initialValue: "no",
80
+ initialValue: "unknown-tokens",
81
81
  options: [
82
82
  {
83
83
  value: "no",
@@ -116,10 +116,17 @@ const interactive = async (options = {}) => {
116
116
  gitignore: initFlags.shouldUpdateGitignore === "yes"
117
117
  };
118
118
  };
119
- /** `'yes'` is the historical spelling of `true`; the third mode names itself. */
119
+ /**
120
+ * `'yes'` is the historical spelling of `true`; the third mode names itself.
121
+ *
122
+ * "No" is `false`, not `undefined`. `undefined` now means "nothing was said", which the caller
123
+ * reads as the default — so returning it here would hand the middle mode to someone who had
124
+ * just declined it.
125
+ */
120
126
  const strictTokensFrom = (answer) => {
121
127
  if (answer === "yes") return true;
122
128
  if (answer === "unknown-tokens") return "unknown-tokens";
129
+ return false;
123
130
  };
124
131
  //#endregion
125
132
  exports.interactive = interactive;
@@ -1,7 +1,7 @@
1
1
  import { findViteConfig, hasUncompilableSources } from "@bamboocss/node";
2
2
  import * as p from "@clack/prompts";
3
3
  //#region package.json
4
- var version = "1.40.0";
4
+ var version = "1.41.0";
5
5
  //#endregion
6
6
  //#region src/interactive.ts
7
7
  /**
@@ -53,7 +53,7 @@ const interactive = async (options = {}) => {
53
53
  }),
54
54
  withStrictTokens: () => p.select({
55
55
  message: "How strictly should typescript check style values?",
56
- initialValue: "no",
56
+ initialValue: "unknown-tokens",
57
57
  options: [
58
58
  {
59
59
  value: "no",
@@ -92,10 +92,17 @@ const interactive = async (options = {}) => {
92
92
  gitignore: initFlags.shouldUpdateGitignore === "yes"
93
93
  };
94
94
  };
95
- /** `'yes'` is the historical spelling of `true`; the third mode names itself. */
95
+ /**
96
+ * `'yes'` is the historical spelling of `true`; the third mode names itself.
97
+ *
98
+ * "No" is `false`, not `undefined`. `undefined` now means "nothing was said", which the caller
99
+ * reads as the default — so returning it here would hand the middle mode to someone who had
100
+ * just declined it.
101
+ */
96
102
  const strictTokensFrom = (answer) => {
97
103
  if (answer === "yes") return true;
98
104
  if (answer === "unknown-tokens") return "unknown-tokens";
105
+ return false;
99
106
  };
100
107
  //#endregion
101
108
  export { interactive, suggestPostcss };
@@ -1,4 +1,4 @@
1
- const require_package = require("./package-C5AGgVpc.cjs");
1
+ const require_package = require("./package-CR5D_P9H.cjs");
2
2
  let _bamboocss_logger = require("@bamboocss/logger");
3
3
  let path = require("path");
4
4
  let _clack_prompts = require("@clack/prompts");
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-C-ms8o9u.mjs";
1
+ import { t as version } from "./package-D-6EAra1.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
3
  import { dirname, resolve } from "path";
4
4
  import * as p from "@clack/prompts";
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  }) : target, mod));
22
22
  //#endregion
23
23
  //#region package.json
24
- var version = "1.40.0";
24
+ var version = "1.41.0";
25
25
  //#endregion
26
26
  Object.defineProperty(exports, "__toESM", {
27
27
  enumerable: true,
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "1.40.0";
2
+ var version = "1.41.0";
3
3
  //#endregion
4
4
  export { version as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/dev",
3
- "version": "1.40.0",
3
+ "version": "1.41.0",
4
4
  "description": "Build-time, type-safe, zero-runtime CSS-in-JS",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -54,14 +54,14 @@
54
54
  "dependencies": {
55
55
  "@clack/prompts": "0.11.0",
56
56
  "cac": "6.7.14",
57
- "@bamboocss/logger": "1.40.0",
58
- "@bamboocss/node": "1.40.0",
59
- "@bamboocss/postcss": "1.40.0",
60
- "@bamboocss/preset-bamboo": "1.40.0",
61
- "@bamboocss/preset-base": "1.40.0",
62
- "@bamboocss/shared": "1.40.0",
63
- "@bamboocss/token-dictionary": "1.40.0",
64
- "@bamboocss/types": "1.40.0"
57
+ "@bamboocss/logger": "1.41.0",
58
+ "@bamboocss/node": "1.41.0",
59
+ "@bamboocss/postcss": "1.41.0",
60
+ "@bamboocss/preset-bamboo": "1.41.0",
61
+ "@bamboocss/preset-base": "1.41.0",
62
+ "@bamboocss/shared": "1.41.0",
63
+ "@bamboocss/token-dictionary": "1.41.0",
64
+ "@bamboocss/types": "1.41.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/update-notifier": "6.0.8",