New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pandacss/logger

Package Overview
Dependencies
Maintainers
1
Versions
1154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pandacss/logger - npm Package Versions

1
116

0.0.0-dev-20240301001057

Diff

segunadebayo
published 0.0.0-dev-20240228135438 •

segunadebayo
published 0.33.0 •

Changelog

Source

[0.33.0] - 2024-02-27

Fixed

  • Fix an issue with recipes that lead to in-memory duplication the resulting CSS, which would increase the time taken to output the CSS after each extraction in the same HMR session (by a few ms).
  • Fix svg token asset quotes
  • Fix conditions accessing Cannot read properties of undefined (reading 'raw')

Added

  • Allow dynamically recording profiling session by pressing the p key in your terminal when using the --cpu-prof flag for long-running sessions (with -w or --watch for panda / panda cssgen / panda codegen).
  • Add definePlugin config functions for type-safety around plugins, add missing plugins in config dependencies to trigger a config reload on plugins change
  • Add a group to every utility in the @pandacss/preset-base, this helps Panda tooling organize utilities.
  • Add support for element level css reset via preflight.level. Learn more here.

Setting preflight.level to 'element' applies the reset directly to the individual elements that have the scope class assigned.

import { defineConfig } from '@pandacss/dev'

export default defineConfig({
  preflight: {
    scope: '.my-scope',
    level: 'element', // 'element' | 'parent (default)'
  },
  // ...
})

This will generate CSS that looks like:

button.my-scope {
}

img.my-scope {
}

This approach allows for more flexibility, enabling selective application of CSS resets either to an entire parent container or to specific elements within a container.

Changed

  • Unify the token path syntax when using formatTokenName

Example with the following config:

import { defineConfig } from '@pandacss/dev'

export default defineConfig({
  hooks: {
    'tokens:created': ({ configure }) => {
      configure({
        formatTokenName: (path: string[]) => '$' + path.join('-'),
      })
    },
  },
})

Will now allow you to use the following syntax for token path:

- css({ boxShadow: '10px 10px 10px {colors.$primary}' })
+ css({ boxShadow: '10px 10px 10px {$colors-primary}' })

- token.var('colors.$primary')
+ token.var('$colors-black')
segunadebayo
published 0.0.0-dev-20240227214335 •

segunadebayo
published 0.0.0-dev-20240227162118 •

segunadebayo
published 0.0.0-dev-20240227110217 •

segunadebayo
published 0.0.0-dev-20240227104754 •

segunadebayo
published 0.0.0-dev-20240227001356 •

segunadebayo
published 0.0.0-dev-20240226232256 •

segunadebayo
published 0.0.0-dev-20240226215512 •

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