Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pandacss/error

Package Overview
Dependencies
Maintainers
1
Versions
922
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pandacss/error - npm Package Versions

1
93

0.0.0-dev-20240119193256

Diff

segunadebayo
published 0.0.0-dev-20240119182338 •

segunadebayo
published 0.27.3 •

Changelog

Source

[0.27.3] - 2024-01-18

Fixed

  • Fix issue where HMR doesn't work when tsconfig paths is used.
  • Fix prettier parser warning in panda config setup.
segunadebayo
published 0.0.0-dev-20240118234354 •

segunadebayo
published 0.0.0-dev-20240117205052 •

segunadebayo
published 0.27.2 •

Changelog

Source

[0.27.2] - 2024-01-17

Fixed

Switch back to node:path from pathe to resolve issues with windows path in PostCSS + Webpack set up

segunadebayo
published 0.0.0-dev-20240116191815 •

segunadebayo
published 0.27.1 •

Changelog

Source

[0.27.1] - 2024-01-15

Fixed

Fix issue in windows environments where HMR doesn't work in webpack projects.

segunadebayo
published 0.0.0-dev-20240115155433 •

segunadebayo
published 0.27.0 •

Changelog

Source

[0.27.0] - 2024-01-14

Added

  • Introduce a new config.lightningcss option to use lightningcss (currently disabled by default) instead of postcss.
  • Add a new config.browserslist option to configure the browserslist used by lightningcss.
  • Add a --lightningcss flag to the panda and panda cssgen command to use lightningcss instead of postcss for this run.
  • Add support for aspect ratio tokens in the panda config or preset. Aspect ratio tokens are used to define the aspect ratio of an element.
export default defineConfig({
  // ...
  theme: {
    extend: {
      // add aspect ratio tokens
      tokens: {
        aspectRatios: {
          '1:1': '1',
          '16:9': '16/9',
        },
      },
    },
  },
})

Here's what the default aspect ratio tokens in the base preset looks like:

{
  "square": { "value": "1 / 1" },
  "landscape": { "value": "4 / 3" },
  "portrait": { "value": "3 / 4" },
  "wide": { "value": "16 / 9" },
  "ultrawide": { "value": "18 / 5" },
  "golden": { "value": "1.618 / 1" }
}

Breaking Change

The built-in token values has been removed from the aspectRatio utility to the @pandacss/preset-base as a token.

For most users, this change should be a drop-in replacement. However, if you used a custom preset in the config, you might need to update it to include the new aspect ratio tokens.

Changed

  • Enhance splitCssProps typings
  • Improve the performance of the runtime transform functions by caching their results (css, cva, sva, recipe/slot recipe, patterns)

See detailed breakdown of the performance improvements here based on the React Profiler.

  • Change the config dependencies (files that are transitively imported) detection a bit more permissive to make it work by default in more scenarios.

Context

This helps when you're in a monorepo and you have a workspace package for your preset, and you want to see the HMR reflecting changes in your app.

Currently, we only traverse files with the .ts extension, this change makes it traverse all files ending with .ts, meaning that it will also traverse .d.ts, .d.mts, .mts, etc.

Example

// apps/storybook/panda.config.ts
import { defineConfig } from '@pandacss/dev'
import preset from '@acme/preset'

export default defineConfig({
  // ...
})

This would not work before, but now it does.

{
  "name": "@acme/preset",
  "types": "./dist/index.d.mts", // we only looked into `.ts` files, so we didnt check this
  "main": "./dist/index.js",
  "module": "./dist/index.mjs",
}

Notes This would have been fine before that change.

// packages/preset/package.json
{
  "name": "@acme/preset",
  "types": "./src/index.ts", // this was fine
  "main": "./dist/index.js",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.mjs",
      "require": "./dist/index.js",
    },
    // ...
  },
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc