|
1 | 1 | # @pandacss/compiler |
2 | 2 |
|
| 3 | +## 2.0.0-beta.4 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- 9521059: Add a `--include` flag to the scanning commands (`panda`, `build`, `dev`, `check`, `cssgen`, `debug`, `info`, |
| 8 | + `buildinfo`) to override the config's `include` globs for a single run. The flag is repeatable and accepts |
| 9 | + comma-separated values, and replaces (does not merge with) the configured globs — useful for scanning a subset of |
| 10 | + files in CI or one-off builds. |
| 11 | + |
| 12 | +### Patch Changes |
| 13 | + |
| 14 | +- 74dab7b: `styled-system/types/index` now re-exports `./jsx` for all JSX frameworks, not just React. Solid, Vue, |
| 15 | + Preact, and Qwik generated `types/jsx` but never re-exported it, which could cause "inferred type cannot be named" |
| 16 | + TypeScript errors. |
| 17 | +- 0202dba: Fix `globalCss` and token-reference parity with extracted styles. |
| 18 | + |
| 19 | + - Expand composition props and nested utility transforms in `globalCss`. |
| 20 | + - Resolve token references in raw at-rule conditions. |
| 21 | + - Preserve `token(path, fallback)` fallbacks in emitted CSS variables. |
| 22 | + |
| 23 | +- 23580df: Expose lint-friendly inspection data from `inspectFileSource`, including extracted calls, JSX entries, token |
| 24 | + references, component entries, and style entries with safe local key/value spans. Style entries cover every |
| 25 | + style-writing form — `css()` (including the `css(a, b)` multi-argument merge), style props, responsive arrays, |
| 26 | + per-prop conditions, JSX `css` props (object **and** `css={[...]}` array forms), and recipe styles in `cva` / `sva` / |
| 27 | + `styled('div', { ... })` (`base`, `variants`, `compoundVariants`) — and carry per-leaf value spans so tooling can |
| 28 | + offer precise fixes everywhere. Each style entry also carries an `owner` (the enclosing call/JSX element) so tooling |
| 29 | + can group sibling properties from the same style block. |
| 30 | + |
| 31 | + `compiler.spec()` now reports deprecation richer: `tokens.deprecated` and `utilities.deprecated` are maps of name → |
| 32 | + deprecation (`true`, or the author's `deprecated: 'use X instead'` message), recipe definitions carry a `deprecated` |
| 33 | + flag, and recipes/slotRecipes are exposed as top-level `spec.recipes` / `spec.slotRecipes` (previously nested under |
| 34 | + `spec.recipes.recipes`). |
| 35 | + |
| 36 | + Add `compiler.suggestToken(prop, value)` — given a hardcoded value, returns the token to use (semantic tokens |
| 37 | + preferred over the primitives they reference, with hex and px/rem normalization), or `null`. Token references in |
| 38 | + inspection results also carry `isVar` (whether the call was `token.var(...)`). |
| 39 | + |
| 40 | +- 5316642: Fix slot recipe inference to include slots that appear only in `compoundVariants`. Previously, when `slots` |
| 41 | + was omitted from an `sva` call, a slot used solely inside a compound variant's `css` was dropped and its styles never |
| 42 | + emitted. |
| 43 | +- 1378d4a: Complete the SVG asset color-name shortening table (full parity with v1's 55 named colors) and fix a hex |
| 44 | + substring-match bug where values like `#fff000` were incorrectly shortened to `white000`. |
| 45 | +- Updated dependencies [23580df] |
| 46 | + - @pandacss/compiler-shared@2.0.0-beta.4 |
| 47 | + - @pandacss/config@2.0.0-beta.4 |
| 48 | + |
3 | 49 | ## 2.0.0-beta.3 |
4 | 50 |
|
5 | 51 | ### Patch Changes |
|
0 commit comments