Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update panda-css monorepo to v0.45.1 #86

Merged
merged 1 commit into from
Aug 17, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 17, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@pandacss/dev (source) 0.41.0 -> 0.45.1 age adoption passing confidence
@pandacss/types (source) 0.41.0 -> 0.45.1 age adoption passing confidence

Release Notes

chakra-ui/panda (@​pandacss/dev)

v0.45.1

Compare Source

Patch Changes

v0.45.0

Compare Source

Patch Changes

v0.44.0

Compare Source

Patch Changes

v0.43.0

Compare Source

Patch Changes

v0.42.0

Compare Source

Patch Changes
chakra-ui/panda (@​pandacss/types)

v0.45.1

Compare Source

v0.45.0

Compare Source

Minor Changes
  • dcc9053: Remove base from css or pattern style objects. The base keyword is only supported in recipes or
    conditional styles.

    Before

    hstack({
      // ❌ doesn't work
      base: {
        background: 'red.400',
        p: '11',
      },
      display: 'flex',
      flexDirection: 'column',
    })

    After

    hstack({
      // ✅ works
      background: 'red.400',
      p: '11',
      display: 'flex',
      flexDirection: 'column',
    })

v0.44.0

Compare Source

Minor Changes
  • c99cb75: Add a name mandatory key in Preset to make it easy to target one specifically

v0.43.0

Compare Source

Minor Changes
  • e952f82: Add support for defining global font face in config and preset

    // pandacss.config.js
    export default defineConfig({
      globalFontface: {
        Roboto: {
          src: 'url(/fonts/roboto.woff2) format("woff2")',
          fontWeight: '400',
          fontStyle: 'normal',
        },
      },
    })

    You can also add multiple font src for the same weight

    // pandacss.config.js
    
    export default defineConfig({
      globalFontface: {
        Roboto: {
          // multiple src
          src: ['url(/fonts/roboto.woff2) format("woff2")', 'url(/fonts/roboto.woff) format("woff")'],
          fontWeight: '400',
          fontStyle: 'normal',
        },
      },
    })

    You can also define multiple font weights

    // pandacss.config.js
    
    export default defineConfig({
      globalFontface: {
        // multiple font weights
        Roboto: [
          {
            src: 'url(/fonts/roboto.woff2) format("woff2")',
            fontWeight: '400',
            fontStyle: 'normal',
          },
          {
            src: 'url(/fonts/roboto-bold.woff2) format("woff2")',
            fontWeight: '700',
            fontStyle: 'normal',
          },
        ],
      },
    })

v0.42.0

Compare Source

Minor Changes
  • e157dd1: - Ensure classnames are unique across utilities to prevent potential clash

    • Add support for 4xl border radius token
  • f00ff88: BREAKING: Remove emitPackage config option,

    tldr: use importMap instead for absolute paths (e.g can be used for component libraries)

    emitPackage is deprecated, it's known for causing several issues:

    • bundlers sometimes eagerly cache the node_modules, leading to panda codegen updates to the styled-system not
      visible in the browser
    • auto-imports are not suggested in your IDE.
    • in some IDE the typings are not always reflected properly

    As alternatives, you can use:

    • relative paths instead of absolute paths (e.g. ../styled-system/css instead of styled-system/css)
    • use package.json #imports and/or tsconfig path aliases (prefer package.json#imports when possible, TS 5.4 supports
      them by default) like #styled-system/css instead of styled-system/css
      https://nodejs.org/api/packages.html#subpath-imports
    • for a component library, use a dedicated workspace package (e.g. @acme/styled-system) and use
      importMap: "@​acme/styled-system" so that Panda knows which entrypoint to extract, e.g.
      import { css } from '@​acme/styled-system/css' https://panda-css.com/docs/guides/component-library
Patch Changes
  • 19c3a2c: Minor changes to the format of the panda analyze --output coverage.json file
  • 17a1932: [BREAKING] Removed the legacy config.optimize option because it was redundant. Now, we always optimize the
    generated CSS where possible.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/panda-css-monorepo branch from 4aae1a0 to 374f1d9 Compare August 17, 2024 19:14
@jonambas jonambas merged commit 12e76c2 into main Aug 17, 2024
2 checks passed
@jonambas jonambas deleted the renovate/panda-css-monorepo branch August 17, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant