Skip to content

Commit

Permalink
Version Packages (#1993)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Jan 14, 2024
1 parent dce0b3b commit 2e09e19
Show file tree
Hide file tree
Showing 47 changed files with 828 additions and 182 deletions.
5 changes: 0 additions & 5 deletions .changeset/curly-olives-fly.md

This file was deleted.

41 changes: 0 additions & 41 deletions .changeset/old-pumpkins-do.md

This file was deleted.

45 changes: 0 additions & 45 deletions .changeset/polite-buttons-lick.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/spicy-pears-love.md

This file was deleted.

60 changes: 0 additions & 60 deletions .changeset/yellow-foxes-hope.md

This file was deleted.

28 changes: 28 additions & 0 deletions packages/astro-plugin-studio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @pandacss/astro-plugin-studio

## 0.27.0

### Minor Changes

- 84304901: Improve performance, mostly for the CSS generation by removing a lot of `postcss` usage (and plugins).

## Public changes:

- 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.

## Internal changes:

- `markImportant` fn from JS instead of walking through postcss AST nodes
- use a fork of `stitches` `stringify` function instead of `postcss-css-in-js` to write the CSS string from a JS
object
- only compute once `TokenDictionary` properties
- refactor `serializeStyle` to use the same code path as the rest of the pipeline with `StyleEncoder` / `StyleDecoder`
and rename it to `transformStyles` to better convey what it does

### Patch Changes

- Updated dependencies [84304901]
- @pandacss/node@0.27.0

## 0.26.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/astro-plugin-studio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pandacss/astro-plugin-studio",
"version": "0.26.2",
"version": "0.27.0",
"description": "Vite plugin for Pandacss Studio",
"author": "Segun Adebayo <[email protected]>",
"main": "dist/index.js",
Expand Down
39 changes: 39 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# @pandacss/dev

## 0.27.0

### Minor Changes

- 84304901: Improve performance, mostly for the CSS generation by removing a lot of `postcss` usage (and plugins).

## Public changes:

- 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.

## Internal changes:

- `markImportant` fn from JS instead of walking through postcss AST nodes
- use a fork of `stitches` `stringify` function instead of `postcss-css-in-js` to write the CSS string from a JS
object
- only compute once `TokenDictionary` properties
- refactor `serializeStyle` to use the same code path as the rest of the pipeline with `StyleEncoder` / `StyleDecoder`
and rename it to `transformStyles` to better convey what it does

### Patch Changes

- Updated dependencies [84304901]
- Updated dependencies [bee3ec85]
- Updated dependencies [74ac0d9d]
- Updated dependencies [c9195a4e]
- @pandacss/token-dictionary@0.27.0
- @pandacss/preset-panda@0.27.0
- @pandacss/postcss@0.27.0
- @pandacss/config@0.27.0
- @pandacss/logger@0.27.0
- @pandacss/shared@0.27.0
- @pandacss/error@0.27.0
- @pandacss/types@0.27.0
- @pandacss/node@0.27.0

## 0.26.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pandacss/dev",
"version": "0.26.2",
"version": "0.27.0",
"description": "The user facing package for panda css",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
92 changes: 92 additions & 0 deletions packages/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,97 @@
# @pandacss/config

## 0.27.0

### Minor Changes

- 84304901: Improve performance, mostly for the CSS generation by removing a lot of `postcss` usage (and plugins).

## Public changes:

- 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.

## Internal changes:

- `markImportant` fn from JS instead of walking through postcss AST nodes
- use a fork of `stitches` `stringify` function instead of `postcss-css-in-js` to write the CSS string from a JS
object
- only compute once `TokenDictionary` properties
- refactor `serializeStyle` to use the same code path as the rest of the pipeline with `StyleEncoder` / `StyleDecoder`
and rename it to `transformStyles` to better convey what it does

### Patch Changes

- c9195a4e: ## Change

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

```ts
// 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.

```jsonc
{
"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.

```jsonc
// 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"
}
// ...
}
}
```

- Updated dependencies [84304901]
- Updated dependencies [bee3ec85]
- Updated dependencies [74ac0d9d]
- @pandacss/preset-panda@0.27.0
- @pandacss/preset-base@0.27.0
- @pandacss/logger@0.27.0
- @pandacss/shared@0.27.0
- @pandacss/error@0.27.0
- @pandacss/types@0.27.0

## 0.26.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pandacss/config",
"version": "0.26.2",
"version": "0.27.0",
"description": "Find and load panda config",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
Loading

1 comment on commit 2e09e19

@vercel
Copy link

@vercel vercel bot commented on 2e09e19 Jan 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.