Skip to content

Commit

Permalink
chore: update deps (#2216)
Browse files Browse the repository at this point in the history
* chore: update deps

* chore: fix versions

* fix: ark recipes

* fix: segment group

* fix: playground

* chore: update recipes

* test: skip solid for now

* chore: update

* fix: website

* chore: resolve playground

* docs: update

* fix: playground

* test: fix solid codegen

* docs: update
  • Loading branch information
segunadebayo authored Feb 17, 2024
1 parent 7e70b6b commit ba67381
Show file tree
Hide file tree
Showing 87 changed files with 8,579 additions and 9,605 deletions.
5 changes: 5 additions & 0 deletions .changeset/early-hounds-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@pandacss/dev': patch
---

Fix issue in `defineParts` where it silently fails if a part not defined is used. It now errors with a helpful message
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

36 changes: 0 additions & 36 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -1,36 +0,0 @@
#!/usr/bin/env sh
if [ -z "$husky_skip_init" ]; then
debug () {
if [ "$HUSKY_DEBUG" = "1" ]; then
echo "husky (debug) - $1"
fi
}

readonly hook_name="$(basename -- "$0")"
debug "starting $hook_name..."

if [ "$HUSKY" = "0" ]; then
debug "HUSKY env variable is set to 0, skipping hook"
exit 0
fi

if [ -f ~/.huskyrc ]; then
debug "sourcing ~/.huskyrc"
. ~/.huskyrc
fi

readonly husky_skip_init=1
export husky_skip_init
sh -e "$0" "$@"
exitCode="$?"

if [ $exitCode != 0 ]; then
echo "husky - $hook_name hook exited with code $exitCode (error)"
fi

if [ $exitCode = 127 ]; then
echo "husky - command not found in PATH=$PATH"
fi

exit $exitCode
fi
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"playground": "pnpm --filter=./playground",
"build:playground": "pnpm --filter {./playground}... build",
"prepare": "husky install && pnpm build-fast",
"prepare": "husky && pnpm build-fast",
"dev": "pnpm --parallel --filter=./packages/** dev",
"build-fast": "pnpm -r --parallel --filter=./packages/** build-fast",
"build": "pnpm -r --filter=./packages/** build",
Expand Down Expand Up @@ -34,31 +34,31 @@
"author": "Segun Adebayo <joseshegs@gmail.com>",
"license": "MIT",
"dependencies": {
"@changesets/changelog-github": "0.4.8",
"@changesets/cli": "2.26.2",
"chokidar": "^3.5.3",
"concurrently": "^8.2.0",
"cross-env": "^7.0.3",
"happy-dom": "^12.1.6",
"husky": "8.0.3",
"lint-staged": "13.2.3",
"mdx-local-link-checker": "^2.1.1",
"rimraf": "^5.0.1",
"ts-morph": "19.0.0",
"tsup": "8.0.1",
"tsx": "3.12.10",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.1",
"chokidar": "3.6.0",
"concurrently": "8.2.2",
"cross-env": "7.0.3",
"happy-dom": "13.3.8",
"husky": "9.0.11",
"lint-staged": "15.2.2",
"mdx-local-link-checker": "2.1.1",
"rimraf": "5.0.5",
"ts-morph": "20.0.0",
"tsup": "8.0.2",
"tsx": "4.7.1",
"typescript": "5.3.3",
"vite-tsconfig-paths": "4.3.1",
"vitest": "1.2.2"
"vitest": "1.3.0"
},
"devDependencies": {
"@types/eslint": "8.44.1",
"@types/node": "20.4.5",
"@typescript-eslint/eslint-plugin": "6.2.1",
"@typescript-eslint/parser": "6.2.1",
"eslint": "^8.54.0",
"eslint-config-prettier": "^8.9.0",
"prettier": "^2.8.8"
"@types/eslint": "8.56.2",
"@types/node": "20.11.19",
"@typescript-eslint/eslint-plugin": "7.0.1",
"@typescript-eslint/parser": "7.0.1",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"prettier": "2.8.8"
},
"lint-staged": {
"packages/**/*.{ts,tsx}": [
Expand Down
4 changes: 2 additions & 2 deletions packages/astro-plugin-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"javascript-stringify": "2.1.0"
},
"devDependencies": {
"astro": "4.2.6",
"vite": "5.0.12"
"astro": "4.4.0",
"vite": "5.1.3"
},
"peerDependencies": {
"astro": ">=4"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/__tests__/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('CLI', () => {

// init with --force
const output3 = execSync(cmd + ' --force --postcss --logfile="./panda.log"', { cwd: testsCwd }).toString()
expect(output3.includes('Thanks for choosing Panda to write your css.')).toBe(true)
expect(output3.includes('Panda initialized')).toBe(true)

// Check if the postcss config file was created
const postcssConfigFileExists = await fs.access(paths.postcssConfig)
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"postcss.js"
],
"dependencies": {
"@clack/prompts": "^0.6.3",
"@clack/prompts": "0.7.0",
"@pandacss/config": "workspace:*",
"@pandacss/logger": "workspace:*",
"@pandacss/node": "workspace:*",
Expand All @@ -70,6 +70,6 @@
"devDependencies": {
"@types/update-notifier": "6.0.8",
"kleur": "4.1.5",
"update-notifier": "6.0.2"
"update-notifier": "7.0.0"
}
}
12 changes: 11 additions & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,17 @@ export function defineSlotRecipe<S extends string, T extends SlotRecipeVariantRe

export function defineParts<T extends Parts>(parts: T) {
return function (config: Partial<Record<keyof T, SystemStyleObject>>): Partial<Record<keyof T, SystemStyleObject>> {
return Object.fromEntries(Object.entries(config).map(([key, value]) => [parts[key].selector, value])) as any
return Object.fromEntries(
Object.entries(config).map(([key, value]) => {
const part = parts[key]
if (part == null) {
throw new Error(
`Part "${key}" does not exist in the anatomy. Available parts: ${Object.keys(parts).join(', ')}`,
)
}
return [part.selector, value]
}),
) as any
}
}

Expand Down
26 changes: 13 additions & 13 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,29 @@
"access": "public"
},
"dependencies": {
"@csstools/postcss-cascade-layers": "^4.0.2",
"@csstools/postcss-cascade-layers": "4.0.2",
"@pandacss/is-valid-prop": "workspace:^",
"@pandacss/logger": "workspace:*",
"@pandacss/shared": "workspace:*",
"@pandacss/token-dictionary": "workspace:*",
"@pandacss/types": "workspace:*",
"autoprefixer": "10.4.17",
"browserslist": "^4.22.2",
"browserslist": "4.23.0",
"hookable": "5.5.3",
"lightningcss": "^1.22.1",
"lightningcss": "1.23.0",
"lodash.merge": "4.6.2",
"outdent": " ^0.8.0",
"postcss": "^8.4.35",
"postcss-discard-duplicates": "^6.0.0",
"postcss-discard-empty": "^6.0.0",
"postcss-merge-rules": "^6.0.1",
"postcss-minify-selectors": "^6.0.0",
"outdent": "0.8.0",
"postcss": "8.4.35",
"postcss-discard-duplicates": "6.0.1",
"postcss-discard-empty": "6.0.1",
"postcss-merge-rules": "6.0.1",
"postcss-minify-selectors": "6.0.2",
"postcss-nested": "6.0.1",
"postcss-normalize-whitespace": "^6.0.0",
"postcss-selector-parser": "^6.0.13",
"ts-pattern": "5.0.5"
"postcss-normalize-whitespace": "6.0.1",
"postcss-selector-parser": "6.0.15",
"ts-pattern": "5.0.8"
},
"devDependencies": {
"@types/lodash.merge": "4.6.8"
"@types/lodash.merge": "4.6.9"
}
}
4 changes: 2 additions & 2 deletions packages/extractor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
],
"dependencies": {
"@pandacss/shared": "workspace:*",
"ts-evaluator": "^1.1.0",
"ts-morph": "19.0.0"
"ts-evaluator": "1.2.0",
"ts-morph": "20.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/extractor/src/evaluate-node.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { evaluate } from 'ts-evaluator'
import type { Expression } from 'ts-morph'
import { Node, ts } from 'ts-morph'
import type { Expression, Node } from 'ts-morph'
import { ts } from 'ts-morph'
import type { BoxContext } from './types'

const TsEvalError = Symbol('EvalError')
Expand Down
2 changes: 1 addition & 1 deletion packages/fixture/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"@pandacss/shared": "workspace:^",
"@pandacss/token-dictionary": "workspace:^",
"@pandacss/types": "workspace:*",
"postcss": "^8.4.35"
"postcss": "8.4.35"
}
}
4 changes: 2 additions & 2 deletions packages/generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"javascript-stringify": "2.1.0",
"outdent": " ^0.8.0",
"pluralize": "8.0.0",
"postcss": "^8.4.35",
"ts-pattern": "5.0.5"
"postcss": "8.4.35",
"ts-pattern": "5.0.8"
},
"devDependencies": {
"@types/pluralize": "0.0.33"
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/is-valid-prop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"dist"
],
"devDependencies": {
"mdn-data": "^2.0.32"
"mdn-data": "2.4.0"
}
}
Loading

0 comments on commit ba67381

Please sign in to comment.