Skip to content

Commit

Permalink
Version Packages (#2037)
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 24, 2024
1 parent f05f56f commit 02b0c48
Show file tree
Hide file tree
Showing 53 changed files with 766 additions and 211 deletions.
66 changes: 0 additions & 66 deletions .changeset/blue-jokes-destroy.md

This file was deleted.

22 changes: 0 additions & 22 deletions .changeset/cuddly-poems-sort.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/famous-news-search.md

This file was deleted.

55 changes: 0 additions & 55 deletions .changeset/healthy-insects-travel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/large-suits-notice.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/little-falcons-unite.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loud-eagles-leave.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/quiet-fans-matter.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quiet-kangaroos-cheer.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/strong-pans-hammer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/two-plants-jump.md

This file was deleted.

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

## 0.28.0

### Patch Changes

- Updated dependencies [f58f6df2]
- Updated dependencies [f255342f]
- @pandacss/node@0.28.0

## 0.27.3

### 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.27.3",
"version": "0.28.0",
"description": "Vite plugin for Pandacss Studio",
"author": "Segun Adebayo <[email protected]>",
"main": "dist/index.js",
Expand Down
83 changes: 83 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,88 @@
# @pandacss/dev

## 0.28.0

### Minor Changes

- f58f6df2: Refactor `config.hooks` to be much more powerful, you can now:

- Tweak the config after it has been resolved (after presets are loaded and merged), this could be used to dynamically
load all `recipes` from a folder
- Transform a source file's content before parsing it, this could be used to transform the file content to a
`tsx`-friendly syntax so that Panda's parser can parse it.
- Implement your own parser logic and add the extracted results to the classic Panda pipeline, this could be used to
parse style usage from any template language
- Tweak the CSS content for any `@layer` or even right before it's written to disk (if using the CLI) or injected
through the postcss plugin, allowing all kinds of customizations like removing the unused CSS variables, etc.
- React to any config change or after the codegen step (your outdir, the `styled-system` folder) have been generated

See the list of available `config.hooks` here:

```ts
export interface PandaHooks {
/**
* Called when the config is resolved, after all the presets are loaded and merged.
* This is the first hook called, you can use it to tweak the config before the context is created.
*/
'config:resolved': (args: { conf: LoadConfigResult }) => MaybeAsyncReturn
/**
* Called when the Panda context has been created and the API is ready to be used.
*/
'context:created': (args: { ctx: ApiInterface; logger: LoggerInterface }) => void
/**
* Called when the config file or one of its dependencies (imports) has changed.
*/
'config:change': (args: { config: UserConfig }) => MaybeAsyncReturn
/**
* Called after reading the file content but before parsing it.
* You can use this hook to transform the file content to a tsx-friendly syntax so that Panda's parser can parse it.
* You can also use this hook to parse the file's content on your side using a custom parser, in this case you don't have to return anything.
*/
'parser:before': (args: { filePath: string; content: string }) => string | void
/**
* Called after the file styles are extracted and processed into the resulting ParserResult object.
* You can also use this hook to add your own extraction results from your custom parser to the ParserResult object.
*/
'parser:after': (args: { filePath: string; result: ParserResultInterface | undefined }) => void
/**
* Called after the codegen is completed
*/
'codegen:done': () => MaybeAsyncReturn
/**
* Called right before adding the design-system CSS (global, static, preflight, tokens, keyframes) to the final CSS
* Called right before writing/injecting the final CSS (styles.css) that contains the design-system CSS and the parser CSS
* You can use it to tweak the CSS content before it's written to disk or injected through the postcss plugin.
*/
'cssgen:done': (args: {
artifact: 'global' | 'static' | 'reset' | 'tokens' | 'keyframes' | 'styles.css'
content: string
}) => string | void
}
```

### Patch Changes

- f255342f: Add a `--cpu-prof` flag to `panda`, `panda cssgen`, `panda codegen` and `panda debug` commands This is
useful for debugging performance issues in `panda` itself. This will generate a
`panda-{command}-{timestamp}.cpuprofile` file in the current working directory, which can be opened in tools like
[Speedscope](https://www.speedscope.app/)

This is mostly intended for maintainers or can be asked by maintainers to help debug issues.

- Updated dependencies [f58f6df2]
- Updated dependencies [770c7aa4]
- Updated dependencies [f255342f]
- Updated dependencies [d4fa5de9]
- @pandacss/config@0.28.0
- @pandacss/types@0.28.0
- @pandacss/node@0.28.0
- @pandacss/shared@0.28.0
- @pandacss/token-dictionary@0.28.0
- @pandacss/preset-panda@0.28.0
- @pandacss/postcss@0.28.0
- @pandacss/error@0.28.0
- @pandacss/logger@0.28.0

## 0.27.3

### 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.27.3",
"version": "0.28.0",
"description": "The user facing package for panda css",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
71 changes: 71 additions & 0 deletions packages/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,76 @@
# @pandacss/config

## 0.28.0

### Minor Changes

- f58f6df2: Refactor `config.hooks` to be much more powerful, you can now:

- Tweak the config after it has been resolved (after presets are loaded and merged), this could be used to dynamically
load all `recipes` from a folder
- Transform a source file's content before parsing it, this could be used to transform the file content to a
`tsx`-friendly syntax so that Panda's parser can parse it.
- Implement your own parser logic and add the extracted results to the classic Panda pipeline, this could be used to
parse style usage from any template language
- Tweak the CSS content for any `@layer` or even right before it's written to disk (if using the CLI) or injected
through the postcss plugin, allowing all kinds of customizations like removing the unused CSS variables, etc.
- React to any config change or after the codegen step (your outdir, the `styled-system` folder) have been generated

See the list of available `config.hooks` here:

```ts
export interface PandaHooks {
/**
* Called when the config is resolved, after all the presets are loaded and merged.
* This is the first hook called, you can use it to tweak the config before the context is created.
*/
'config:resolved': (args: { conf: LoadConfigResult }) => MaybeAsyncReturn
/**
* Called when the Panda context has been created and the API is ready to be used.
*/
'context:created': (args: { ctx: ApiInterface; logger: LoggerInterface }) => void
/**
* Called when the config file or one of its dependencies (imports) has changed.
*/
'config:change': (args: { config: UserConfig }) => MaybeAsyncReturn
/**
* Called after reading the file content but before parsing it.
* You can use this hook to transform the file content to a tsx-friendly syntax so that Panda's parser can parse it.
* You can also use this hook to parse the file's content on your side using a custom parser, in this case you don't have to return anything.
*/
'parser:before': (args: { filePath: string; content: string }) => string | void
/**
* Called after the file styles are extracted and processed into the resulting ParserResult object.
* You can also use this hook to add your own extraction results from your custom parser to the ParserResult object.
*/
'parser:after': (args: { filePath: string; result: ParserResultInterface | undefined }) => void
/**
* Called after the codegen is completed
*/
'codegen:done': () => MaybeAsyncReturn
/**
* Called right before adding the design-system CSS (global, static, preflight, tokens, keyframes) to the final CSS
* Called right before writing/injecting the final CSS (styles.css) that contains the design-system CSS and the parser CSS
* You can use it to tweak the CSS content before it's written to disk or injected through the postcss plugin.
*/
'cssgen:done': (args: {
artifact: 'global' | 'static' | 'reset' | 'tokens' | 'keyframes' | 'styles.css'
content: string
}) => string | void
}
```

### Patch Changes

- Updated dependencies [f58f6df2]
- Updated dependencies [770c7aa4]
- @pandacss/types@0.28.0
- @pandacss/shared@0.28.0
- @pandacss/preset-base@0.28.0
- @pandacss/preset-panda@0.28.0
- @pandacss/error@0.28.0
- @pandacss/logger@0.28.0

## 0.27.3

### Patch Changes
Expand Down
Loading

0 comments on commit 02b0c48

Please sign in to comment.