@bamboocss/config 1.32.0 → 1.33.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 +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -867,7 +867,7 @@ const validateRecipes = (options) => {
|
|
|
867
867
|
const REMOVED = {
|
|
868
868
|
pruneUnusedTokens: (value) => value === "strict" ? `\`pruneUnusedTokens: 'strict'\` is now \`prune: { tokens: 'accounted', unresolvedPath: 'error' }\`.` : `\`pruneUnusedTokens\` is now \`prune: { tokens: '${value === false ? "off" : "reachable"}' }\`.`,
|
|
869
869
|
pruneUnusedKeyframes: (value) => `\`pruneUnusedKeyframes\` is now \`prune: { keyframes: ${value === false ? "false" : "true"} }\`.`,
|
|
870
|
-
prunePreflight: (value) => `\`prunePreflight\` is now \`
|
|
870
|
+
prunePreflight: (value) => `\`prunePreflight\` is now \`preflight: { prune: ${value === false ? "false" : "true"} }\`.`,
|
|
871
871
|
globalCss: () => `\`globalCss\` is now \`global: { css }\`.`,
|
|
872
872
|
globalFontface: () => `\`globalFontface\` is now \`global: { fontface }\`.`,
|
|
873
873
|
globalPositionTry: () => `\`globalPositionTry\` is now \`global: { positionTry }\`.`,
|
|
@@ -882,7 +882,10 @@ const RETIRED_VALUES = { validation: { none: `\`validation: 'none'\` is now \`va
|
|
|
882
882
|
/** Removed keys nested one level down, keyed by their parent. */
|
|
883
883
|
const COMPOSITION_MOVED = (old, prop) => () => `\`theme.${old}\` is now \`theme.mixins\`, applied through \`css({ mixin: '…' })\` rather than \`css({ ${prop}: '…' })\`. The three keys ran through one registration and differed only in which properties the value could set — an arbitrary partition that cost a bundle spanning two of them a second key and a second application.`;
|
|
884
884
|
const REMOVED_NESTED = {
|
|
885
|
-
prune: {
|
|
885
|
+
prune: {
|
|
886
|
+
preflight: (value) => `\`prune.preflight\` is now \`preflight: { prune: ${value === false ? "false" : "true"} }\`. It was a second key named \`preflight\` one level away from the one that emits the reset, so a config asked for a reset in one place and reshaped it in another — and pruning a scoped reset already had to read \`preflight.scope\` to work at all.`,
|
|
887
|
+
unresolved: (value) => `\`prune.unresolved\` is now \`prune.unresolvedPath\`, and the accounting pass it used to switch on is now \`prune.tokens: 'accounted'\` — write \`prune: { tokens: 'accounted', unresolvedPath: '${value === "error" ? "error" : "warn"}' }\`. They are separate because \`'off'\` used to mean two things at once: no accounting, and no report.`
|
|
888
|
+
},
|
|
886
889
|
theme: {
|
|
887
890
|
textStyles: COMPOSITION_MOVED("textStyles", "textStyle"),
|
|
888
891
|
layerStyles: COMPOSITION_MOVED("layerStyles", "layerStyle"),
|
package/dist/index.mjs
CHANGED
|
@@ -839,7 +839,7 @@ const validateRecipes = (options) => {
|
|
|
839
839
|
const REMOVED = {
|
|
840
840
|
pruneUnusedTokens: (value) => value === "strict" ? `\`pruneUnusedTokens: 'strict'\` is now \`prune: { tokens: 'accounted', unresolvedPath: 'error' }\`.` : `\`pruneUnusedTokens\` is now \`prune: { tokens: '${value === false ? "off" : "reachable"}' }\`.`,
|
|
841
841
|
pruneUnusedKeyframes: (value) => `\`pruneUnusedKeyframes\` is now \`prune: { keyframes: ${value === false ? "false" : "true"} }\`.`,
|
|
842
|
-
prunePreflight: (value) => `\`prunePreflight\` is now \`
|
|
842
|
+
prunePreflight: (value) => `\`prunePreflight\` is now \`preflight: { prune: ${value === false ? "false" : "true"} }\`.`,
|
|
843
843
|
globalCss: () => `\`globalCss\` is now \`global: { css }\`.`,
|
|
844
844
|
globalFontface: () => `\`globalFontface\` is now \`global: { fontface }\`.`,
|
|
845
845
|
globalPositionTry: () => `\`globalPositionTry\` is now \`global: { positionTry }\`.`,
|
|
@@ -854,7 +854,10 @@ const RETIRED_VALUES = { validation: { none: `\`validation: 'none'\` is now \`va
|
|
|
854
854
|
/** Removed keys nested one level down, keyed by their parent. */
|
|
855
855
|
const COMPOSITION_MOVED = (old, prop) => () => `\`theme.${old}\` is now \`theme.mixins\`, applied through \`css({ mixin: '…' })\` rather than \`css({ ${prop}: '…' })\`. The three keys ran through one registration and differed only in which properties the value could set — an arbitrary partition that cost a bundle spanning two of them a second key and a second application.`;
|
|
856
856
|
const REMOVED_NESTED = {
|
|
857
|
-
prune: {
|
|
857
|
+
prune: {
|
|
858
|
+
preflight: (value) => `\`prune.preflight\` is now \`preflight: { prune: ${value === false ? "false" : "true"} }\`. It was a second key named \`preflight\` one level away from the one that emits the reset, so a config asked for a reset in one place and reshaped it in another — and pruning a scoped reset already had to read \`preflight.scope\` to work at all.`,
|
|
859
|
+
unresolved: (value) => `\`prune.unresolved\` is now \`prune.unresolvedPath\`, and the accounting pass it used to switch on is now \`prune.tokens: 'accounted'\` — write \`prune: { tokens: 'accounted', unresolvedPath: '${value === "error" ? "error" : "warn"}' }\`. They are separate because \`'off'\` used to mean two things at once: no accounting, and no report.`
|
|
860
|
+
},
|
|
858
861
|
theme: {
|
|
859
862
|
textStyles: COMPOSITION_MOVED("textStyles", "textStyle"),
|
|
860
863
|
layerStyles: COMPOSITION_MOVED("layerStyles", "layerStyle"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"description": "Find and load bamboo config",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"escalade": "3.2.0",
|
|
65
65
|
"microdiff": "1.5.0",
|
|
66
66
|
"typescript": "6.0.2",
|
|
67
|
-
"@bamboocss/logger": "1.
|
|
68
|
-
"@bamboocss/preset-bamboo": "1.
|
|
69
|
-
"@bamboocss/preset-base": "1.
|
|
70
|
-
"@bamboocss/shared": "1.
|
|
71
|
-
"@bamboocss/types": "1.
|
|
67
|
+
"@bamboocss/logger": "1.33.0",
|
|
68
|
+
"@bamboocss/preset-bamboo": "1.33.0",
|
|
69
|
+
"@bamboocss/preset-base": "1.33.0",
|
|
70
|
+
"@bamboocss/shared": "1.33.0",
|
|
71
|
+
"@bamboocss/types": "1.33.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"pkg-types": "2.3.0"
|