From dc83befd13efddd538a13dc6fa18c8a2d252ae97 Mon Sep 17 00:00:00 2001 From: anubra266 Date: Tue, 23 Jan 2024 08:37:27 -0600 Subject: [PATCH] settle deps and tests --- fixture/CHANGELOG.md | 547 ------------------------------------------- plugin/package.json | 21 +- plugin/test-utils.ts | 7 - pnpm-lock.yaml | 56 +---- tests-setup.ts | 4 + vitest.config.ts | 9 + 6 files changed, 22 insertions(+), 622 deletions(-) delete mode 100644 fixture/CHANGELOG.md create mode 100644 tests-setup.ts create mode 100644 vitest.config.ts diff --git a/fixture/CHANGELOG.md b/fixture/CHANGELOG.md deleted file mode 100644 index ae0b942..0000000 --- a/fixture/CHANGELOG.md +++ /dev/null @@ -1,547 +0,0 @@ -# @pandacss/fixture - -## 0.27.3 - -## 0.27.2 - -## 0.27.1 - -## 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 - -## 0.26.2 - -## 0.26.1 - -## 0.26.0 - -## 0.25.0 - -## 0.24.2 - -## 0.24.1 - -## 0.24.0 - -## 0.23.0 - -## 0.22.1 - -### Patch Changes - -- Updated dependencies [8f4ce97c] - - @pandacss/types@0.22.1 - - @pandacss/preset-base@0.22.1 - - @pandacss/preset-panda@0.22.1 - -## 0.22.0 - -### Patch Changes - -- Updated dependencies [526c6e34] -- Updated dependencies [1cc8fcff] - - @pandacss/types@0.22.0 - - @pandacss/preset-base@0.22.0 - - @pandacss/preset-panda@0.22.0 - -## 0.21.0 - -### Patch Changes - -- Updated dependencies [5b061615] -- Updated dependencies [105f74ce] - - @pandacss/types@0.21.0 - - @pandacss/preset-base@0.21.0 - - @pandacss/preset-panda@0.21.0 - -## 0.20.1 - -### Patch Changes - -- Updated dependencies [428e5401] - - @pandacss/preset-base@0.20.1 - - @pandacss/preset-panda@0.20.1 - - @pandacss/types@0.20.1 - -## 0.20.0 - -### Patch Changes - -- Updated dependencies [24ee49a5] -- Updated dependencies [904aec7b] - - @pandacss/types@0.20.0 - - @pandacss/preset-base@0.20.0 - - @pandacss/preset-panda@0.20.0 - -## 0.19.0 - -### Patch Changes - -- Updated dependencies [61831040] -- Updated dependencies [89f86923] - - @pandacss/types@0.19.0 - - @pandacss/preset-base@0.19.0 - - @pandacss/preset-panda@0.19.0 - -## 0.18.3 - -### Patch Changes - -- @pandacss/preset-base@0.18.3 -- @pandacss/preset-panda@0.18.3 -- @pandacss/types@0.18.3 - -## 0.18.2 - -### Patch Changes - -- Updated dependencies [3e1ea626] - - @pandacss/preset-base@0.18.2 - - @pandacss/preset-panda@0.18.2 - - @pandacss/types@0.18.2 - -## 0.18.1 - -### Patch Changes - -- Updated dependencies [ce34ea45] -- Updated dependencies [aac7b379] - - @pandacss/preset-base@0.18.1 - - @pandacss/preset-panda@0.18.1 - - @pandacss/types@0.18.1 - -## 0.18.0 - -### Patch Changes - -- @pandacss/types@0.18.0 -- @pandacss/preset-base@0.18.0 -- @pandacss/preset-panda@0.18.0 - -## 0.17.5 - -### Patch Changes - -- @pandacss/preset-base@0.17.5 -- @pandacss/preset-panda@0.17.5 -- @pandacss/types@0.17.5 - -## 0.17.4 - -### Patch Changes - -- Updated dependencies [fa77080a] - - @pandacss/types@0.17.4 - - @pandacss/preset-base@0.17.4 - - @pandacss/preset-panda@0.17.4 - -## 0.17.3 - -### Patch Changes - -- Updated dependencies [529a262e] - - @pandacss/types@0.17.3 - - @pandacss/preset-base@0.17.3 - - @pandacss/preset-panda@0.17.3 - -## 0.17.2 - -### Patch Changes - -- @pandacss/preset-base@0.17.2 -- @pandacss/preset-panda@0.17.2 -- @pandacss/types@0.17.2 - -## 0.17.1 - -### Patch Changes - -- @pandacss/types@0.17.1 -- @pandacss/preset-base@0.17.1 -- @pandacss/preset-panda@0.17.1 - -## 0.17.0 - -### Patch Changes - -- Updated dependencies [fc4688e6] - - @pandacss/types@0.17.0 - - @pandacss/preset-base@0.17.0 - - @pandacss/preset-panda@0.17.0 - -## 0.16.0 - -### Patch Changes - -- Updated dependencies [0f3bede5] - - @pandacss/preset-base@0.16.0 - - @pandacss/preset-panda@0.16.0 - - @pandacss/types@0.16.0 - -## 0.15.5 - -### Patch Changes - -- @pandacss/preset-base@0.15.5 -- @pandacss/preset-panda@0.15.5 -- @pandacss/types@0.15.5 - -## 0.15.4 - -### Patch Changes - -- @pandacss/types@0.15.4 -- @pandacss/preset-base@0.15.4 -- @pandacss/preset-panda@0.15.4 - -## 0.15.3 - -### Patch Changes - -- Updated dependencies [1ac2011b] -- Updated dependencies [58743bc4] - - @pandacss/types@0.15.3 - - @pandacss/preset-base@0.15.3 - - @pandacss/preset-panda@0.15.3 - -## 0.15.2 - -### Patch Changes - -- Updated dependencies [26a788c0] - - @pandacss/types@0.15.2 - - @pandacss/preset-base@0.15.2 - - @pandacss/preset-panda@0.15.2 - -## 0.15.1 - -### Patch Changes - -- @pandacss/types@0.15.1 -- @pandacss/preset-base@0.15.1 -- @pandacss/preset-panda@0.15.1 - -## 0.15.0 - -### Patch Changes - -- Updated dependencies [4bc515ea] -- Updated dependencies [39298609] - - @pandacss/types@0.15.0 - - @pandacss/preset-base@0.15.0 - - @pandacss/preset-panda@0.15.0 - -## 0.14.0 - -### Patch Changes - -- Updated dependencies [8106b411] -- Updated dependencies [e6459a59] -- Updated dependencies [6f7ee198] - - @pandacss/types@0.14.0 - - @pandacss/preset-base@0.14.0 - - @pandacss/preset-panda@0.14.0 - -## 0.13.1 - -### Patch Changes - -- @pandacss/preset-base@0.13.1 -- @pandacss/preset-panda@0.13.1 -- @pandacss/types@0.13.1 - -## 0.13.0 - -### Patch Changes - -- @pandacss/preset-base@0.13.0 -- @pandacss/preset-panda@0.13.0 -- @pandacss/types@0.13.0 - -## 0.12.2 - -### Patch Changes - -- @pandacss/preset-base@0.12.2 -- @pandacss/preset-panda@0.12.2 -- @pandacss/types@0.12.2 - -## 0.12.1 - -### Patch Changes - -- @pandacss/preset-base@0.12.1 -- @pandacss/preset-panda@0.12.1 -- @pandacss/types@0.12.1 - -## 0.12.0 - -### Patch Changes - -- Updated dependencies [bf2ff391] - - @pandacss/preset-base@0.12.0 - - @pandacss/preset-panda@0.12.0 - - @pandacss/types@0.12.0 - -## 0.11.1 - -### Patch Changes - -- Updated dependencies [23b516f4] - - @pandacss/types@0.11.1 - - @pandacss/preset-base@0.11.1 - - @pandacss/preset-panda@0.11.1 - -## 0.11.0 - -### Patch Changes - -- Updated dependencies [5b95caf5] -- Updated dependencies [811f4fb1] - - @pandacss/types@0.11.0 - - @pandacss/preset-base@0.11.0 - - @pandacss/preset-panda@0.11.0 - -## 0.10.0 - -### Minor Changes - -- a669f4d5: Introduce new slot recipe features. - - Slot recipes are useful for styling composite or multi-part components easily. - - - `sva`: the slot recipe version of `cva` - - `defineSlotRecipe`: the slot recipe version of `defineRecipe` - - **Definition** - - ```jsx - import { sva } from 'styled-system/css' - - const button = sva({ - slots: ['label', 'icon'], - base: { - label: { color: 'red', textDecoration: 'underline' }, - }, - variants: { - rounded: { - true: {}, - }, - size: { - sm: { - label: { fontSize: 'sm' }, - icon: { fontSize: 'sm' }, - }, - lg: { - label: { fontSize: 'lg' }, - icon: { fontSize: 'lg', color: 'pink' }, - }, - }, - }, - defaultVariants: { - size: 'sm', - }, - }) - ``` - - **Usage** - - ```jsx - export function App() { - const btnClass = button({ size: 'lg', rounded: true }) - - return ( - - ) - } - ``` - -### Patch Changes - -- Updated dependencies [24e783b3] -- Updated dependencies [00d11a8b] -- Updated dependencies [1972b4fa] -- Updated dependencies [386e5098] -- Updated dependencies [a669f4d5] - - @pandacss/types@0.10.0 - - @pandacss/preset-base@0.10.0 - - @pandacss/preset-panda@0.10.0 - -## 0.9.0 - -### Minor Changes - -- c08de87f: ### Breaking - - - Renamed the `name` property of a config recipe to `className`. This is to ensure API consistency and express the - intent of the property more clearly. - - ```diff - export const buttonRecipe = defineRecipe({ - - name: 'button', - + className: 'button', - // ... - }) - ``` - - - Renamed the `jsx` property of a pattern to `jsxName`. - - ```diff - const hstack = definePattern({ - - jsx: 'HStack', - + jsxName: 'HStack', - // ... - }) - ``` - - ### Feature - - Update the `jsx` property to be used for advanced tracking of custom pattern components. - - ```jsx - import { Circle } from 'styled-system/jsx' - const CustomCircle = ({ children, ...props }) => { - return {children} - } - ``` - - To track the `CustomCircle` component, you can now use the `jsx` property. - - ```js - import { defineConfig } from '@pandacss/dev' - - export default defineConfig({ - patterns: { - extend: { - circle: { - jsx: ['CustomCircle'], - }, - }, - }, - }) - ``` - -### Patch Changes - -- Updated dependencies [c08de87f] - - @pandacss/preset-base@0.9.0 - - @pandacss/types@0.9.0 - - @pandacss/preset-panda@0.9.0 - -## 0.8.0 - -### Patch Changes - -- Updated dependencies [be0ad578] - - @pandacss/preset-base@0.8.0 - - @pandacss/types@0.8.0 - - @pandacss/preset-panda@0.8.0 - -## 0.7.0 - -### Patch Changes - -- Updated dependencies [60a77841] -- Updated dependencies [a9c189b7] -- Updated dependencies [d9eeba60] - - @pandacss/preset-base@0.7.0 - - @pandacss/types@0.7.0 - - @pandacss/preset-panda@0.7.0 - -## 0.6.0 - -### Patch Changes - -- Updated dependencies [97fbe63f] -- Updated dependencies [08d33e0f] -- Updated dependencies [f7aff8eb] - - @pandacss/preset-base@0.6.0 - - @pandacss/types@0.6.0 - - @pandacss/preset-panda@0.6.0 - -## 0.5.1 - -### Patch Changes - -- Updated dependencies [8c670d60] -- Updated dependencies [1ed239cd] -- Updated dependencies [78ed6ed4] - - @pandacss/types@0.5.1 - - @pandacss/preset-base@0.5.1 - - @pandacss/preset-panda@0.5.1 - -## 0.5.0 - -### Patch Changes - -- Updated dependencies [ead9eaa3] -- Updated dependencies [3a87cff8] - - @pandacss/types@0.5.0 - - @pandacss/preset-panda@0.5.0 - - @pandacss/preset-base@0.5.0 - -## 0.4.0 - -### Patch Changes - -- Updated dependencies [e8024347] -- Updated dependencies [d00eb17c] -- Updated dependencies [9156c1c6] -- Updated dependencies [54a8913c] -- Updated dependencies [0f36ebad] -- Updated dependencies [c7b42325] -- Updated dependencies [5b344b9c] - - @pandacss/preset-base@0.4.0 - - @pandacss/types@0.4.0 - - @pandacss/preset-panda@0.4.0 - -## 0.3.2 - -### Patch Changes - -- @pandacss/preset-base@0.3.2 -- @pandacss/preset-panda@0.3.2 -- @pandacss/types@0.3.2 - -## 0.3.1 - -### Patch Changes - -- efd79d83: Baseline release for the launch -- Updated dependencies [efd79d83] - - @pandacss/preset-base@0.3.1 - - @pandacss/preset-panda@0.3.1 - - @pandacss/types@0.3.1 - -## 0.3.0 - -### Patch Changes - -- Updated dependencies [bd5c049b] -- Updated dependencies [6d81ee9e] - - @pandacss/preset-base@0.3.0 - - @pandacss/preset-panda@0.3.0 - - @pandacss/types@0.3.0 diff --git a/plugin/package.json b/plugin/package.json index adc6d9e..0922415 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -26,7 +26,6 @@ "prepare": "pnpm build", "build": "tsup", "dev": "tsup --watch", - "test": "vitest run", "lint": "eslint . --ext .ts", "prettier": "prettier --check packages", "prettier-fix": "prettier --write packages", @@ -36,31 +35,15 @@ "dist" ], "dependencies": { - "@changesets/changelog-github": "^0.5.0", - "@changesets/cli": "^2.27.1", "@pandacss/config": "^0.27.3", "@pandacss/generator": "^0.27.3", "@pandacss/node": "^0.27.3", - "@pandacss/preset-base": "^0.27.3", - "@pandacss/preset-panda": "^0.27.3", "@pandacss/shared": "^0.27.3", - "@pandacss/types": "^0.27.3", "@typescript-eslint/utils": "^6.19.1", "hookable": "^5.5.3", - "synckit": "^0.9.0", - "tsup": "^8.0.1", - "typescript": "^5.3.3" + "synckit": "^0.9.0" }, "peerDependencies": { "eslint": "*" - }, - "devDependencies": { - "@types/eslint": "^8.56.2", - "@types/node": "^20.11.5", - "@typescript-eslint/eslint-plugin": "^6.19.1", - "@typescript-eslint/parser": "^6.19.1", - "@typescript-eslint/rule-tester": "^6.19.1", - "eslint": "^8.56.0", - "prettier": "^3.2.4" } -} +} \ No newline at end of file diff --git a/plugin/test-utils.ts b/plugin/test-utils.ts index 1767f1e..8e583fe 100644 --- a/plugin/test-utils.ts +++ b/plugin/test-utils.ts @@ -1,11 +1,4 @@ import { RuleTester, type RuleTesterConfig } from '@typescript-eslint/rule-tester' -import * as vitest from 'vitest' - -RuleTester.afterAll = vitest.afterAll - -RuleTester.it = vitest.it -RuleTester.itOnly = vitest.it.only -RuleTester.describe = vitest.describe const baseTesterConfig: RuleTesterConfig = { parser: '@typescript-eslint/parser', diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d33259f..7622226 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,7 +19,7 @@ importers: version: 6.19.1(eslint@8.56.0)(typescript@5.3.3) tsup: specifier: ^8.0.1 - version: 8.0.1(postcss@8.4.33)(typescript@5.3.3) + version: 8.0.1(typescript@5.3.3) typescript: specifier: ^5.3.3 version: 5.3.3 @@ -88,12 +88,6 @@ importers: plugin: dependencies: - '@changesets/changelog-github': - specifier: ^0.5.0 - version: 0.5.0 - '@changesets/cli': - specifier: ^2.27.1 - version: 2.27.1 '@pandacss/config': specifier: ^0.27.3 version: 0.27.3 @@ -103,55 +97,21 @@ importers: '@pandacss/node': specifier: ^0.27.3 version: 0.27.3(typescript@5.3.3) - '@pandacss/preset-base': - specifier: ^0.27.3 - version: 0.27.3 - '@pandacss/preset-panda': - specifier: ^0.27.3 - version: 0.27.3 '@pandacss/shared': specifier: ^0.27.3 version: 0.27.3 - '@pandacss/types': - specifier: ^0.27.3 - version: 0.27.3 '@typescript-eslint/utils': specifier: ^6.19.1 version: 6.19.1(eslint@8.56.0)(typescript@5.3.3) + eslint: + specifier: '*' + version: 8.56.0 hookable: specifier: ^5.5.3 version: 5.5.3 synckit: specifier: ^0.9.0 version: 0.9.0 - tsup: - specifier: ^8.0.1 - version: 8.0.1(postcss@8.4.33)(typescript@5.3.3) - typescript: - specifier: ^5.3.3 - version: 5.3.3 - devDependencies: - '@types/eslint': - specifier: ^8.56.2 - version: 8.56.2 - '@types/node': - specifier: ^20.11.5 - version: 20.11.5 - '@typescript-eslint/eslint-plugin': - specifier: ^6.19.1 - version: 6.19.1(@typescript-eslint/parser@6.19.1)(eslint@8.56.0)(typescript@5.3.3) - '@typescript-eslint/parser': - specifier: ^6.19.1 - version: 6.19.1(eslint@8.56.0)(typescript@5.3.3) - '@typescript-eslint/rule-tester': - specifier: ^6.19.1 - version: 6.19.1(@eslint/eslintrc@3.0.0)(eslint@8.56.0)(typescript@5.3.3) - eslint: - specifier: ^8.56.0 - version: 8.56.0 - prettier: - specifier: ^3.2.4 - version: 3.2.4 sandbox: dependencies: @@ -3893,7 +3853,7 @@ packages: dependencies: postcss: 8.4.33 - /postcss-load-config@4.0.2(postcss@8.4.33): + /postcss-load-config@4.0.2: resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==} engines: {node: '>= 14'} peerDependencies: @@ -3906,7 +3866,6 @@ packages: optional: true dependencies: lilconfig: 3.0.0 - postcss: 8.4.33 yaml: 2.3.4 dev: false @@ -4610,7 +4569,7 @@ packages: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} dev: false - /tsup@8.0.1(postcss@8.4.33)(typescript@5.3.3): + /tsup@8.0.1(typescript@5.3.3): resolution: {integrity: sha512-hvW7gUSG96j53ZTSlT4j/KL0q1Q2l6TqGBFc6/mu/L46IoNWqLLUzLRLP1R8Q7xrJTmkDxxDoojV5uCVs1sVOg==} engines: {node: '>=18'} hasBin: true @@ -4637,8 +4596,7 @@ packages: execa: 5.1.1 globby: 11.1.0 joycon: 3.1.1 - postcss: 8.4.33 - postcss-load-config: 4.0.2(postcss@8.4.33) + postcss-load-config: 4.0.2 resolve-from: 5.0.0 rollup: 4.9.6 source-map: 0.8.0-beta.0 diff --git a/tests-setup.ts b/tests-setup.ts new file mode 100644 index 0000000..36f8808 --- /dev/null +++ b/tests-setup.ts @@ -0,0 +1,4 @@ +import { afterAll } from 'vitest' +import { RuleTester } from '@typescript-eslint/rule-tester' + +RuleTester.afterAll = afterAll diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..450ec42 --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,9 @@ +import { defineConfig } from 'vitest/config' + +export default defineConfig({ + test: { + globals: true, + setupFiles: ['tests-setup.ts'], + isolate: false, + }, +})