Skip to content

@pandacss/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Jan 19:46
· 539 commits to main since this release
ef6ac10

Minor Changes

  • a2fb5cc: - Add support for explicitly specifying config related files that should trigger a context reload on change.

    We automatically track the config file and (transitive) files imported by the config file as much as possible, but
    sometimes we might miss some. You can use this option as a workaround for those edge cases.

    Set the dependencies option in panda.config.ts to a glob or list of files.

    export default defineConfig({
      // ...
      dependencies: ['path/to/files/**.ts'],
    })
    • Invoke config:change hook in more situations (when the --watch flag is passed to panda codegen,
      panda cssgen, panda ship)

    • Watch for more config options paths changes, so that the related artifacts will be regenerated a bit more reliably
      (ex: updating the config.hooks will now trigger a full regeneration of styled-system)

Patch Changes

  • ea3f554: Add config validation:

    • Check for duplicate between token & semanticTokens names
    • Check for duplicate between recipes/patterns/slots names
    • Check for token / semanticTokens paths (must end/contain 'value')
    • Check for self/circular token references
    • Check for missing tokens references
    • Check for conditions selectors (must contain '&')
    • Check for breakpoints units (must be the same)

    You can set validate: 'warn' in your config to only warn about errors or set it to none to disable validation
    entirely.

  • Updated dependencies [5fcdeb7]

  • Updated dependencies [250b4d1]

  • Updated dependencies [f778d3e]

  • Updated dependencies [a2fb5cc]