Skip to content

Commit

Permalink
Merge pull request #15 from khmm12/chore/upgrade-packages
Browse files Browse the repository at this point in the history
chore: upgrade packages
  • Loading branch information
khmm12 authored Nov 19, 2024
2 parents 01dc1cd + 6dafd42 commit 81758c0
Show file tree
Hide file tree
Showing 4 changed files with 1,232 additions and 1,256 deletions.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default tseslint.config(
'@typescript-eslint/no-magic-numbers': 'off', // too many false positives
'@typescript-eslint/init-declarations': 'off', // too many false positives
'@typescript-eslint/no-empty-function': 'off', // useless,
'@typescript-eslint/no-unsafe-type-assertion': 'off', // doesn't allow type assertions where they are necessary
'@typescript-eslint/class-methods-use-this': 'off', // useless,
'@typescript-eslint/no-deprecated': 'off', // false positives, example: chrome namespace
'import/order': [
Expand Down
6 changes: 5 additions & 1 deletion lib/panda/remove-unused-css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function removeUnusedCSS(css: string): string {
const parent = decl.parent
if (parent == null) return

if (parent.type === 'rule' && (parent as postcss.Rule).selector === ':root') {
if (isRule(parent) && parent.selector === ':root') {
return
}

Expand Down Expand Up @@ -105,3 +105,7 @@ export default function removeUnusedCSS(css: string): string {

return root.toString()
}

function isRule(n: postcss.Node): n is postcss.Rule {
return n.type === 'rule'
}
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,54 +24,54 @@
"*.css"
],
"dependencies": {
"@modular-forms/solid": "^0.24.1",
"@modular-forms/solid": "^0.25.0",
"@total-typescript/ts-reset": "^0.6.1",
"date-fns": "^4.1.0",
"focus-trap": "^7.6.0",
"focus-trap": "^7.6.2",
"polished": "^4.3.1",
"remeda": "^2.16.0",
"remeda": "^2.17.3",
"solid-js": "1.9.3",
"solid-transition-group": "^0.2.3",
"type-fest": "^4.26.1",
"valibot": "1.0.0-beta.3"
"type-fest": "^4.27.0",
"valibot": "1.0.0-beta.7"
},
"devDependencies": {
"@pandacss/dev": "^0.47.1",
"@pandacss/dev": "^0.48.0",
"@solidjs/testing-library": "0.8.10",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/user-event": "^14.5.2",
"@tsconfig/node20": "^20.1.4",
"@tsconfig/recommended": "^1.0.8",
"@tsconfig/strictest": "^2.0.5",
"@types/chrome": "^0.0.280",
"@types/chrome": "^0.0.283",
"@types/node": "^20.17.6",
"@vitest/coverage-v8": "^2.1.4",
"@vitest/coverage-v8": "^2.1.5",
"autoprefixer": "^10.4.20",
"browserslist": "^4.24.2",
"browserslist-to-esbuild": "^2.1.1",
"eslint": "9.14.0",
"eslint-config-love": "^97.0.0",
"eslint": "9.15.0",
"eslint-config-love": "^101.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.12.0",
"happy-dom": "^15.10.1",
"happy-dom": "^15.11.6",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.47",
"postcss": "^8.4.49",
"prettier": "^3.3.3",
"redrun": "^11.0.5",
"solid-devtools": "^0.30.1",
"typescript": "^5.6.3",
"typescript-eslint": "^8.13.0",
"vite": "^5.4.10",
"typescript-eslint": "^8.15.0",
"vite": "^5.4.11",
"vite-bundle-visualizer": "^1.2.1",
"vite-plugin-html": "^3.2.2",
"vite-plugin-solid": "2.10.2",
"vite-plugin-static-copy": "^2.0.0",
"vitest": "^2.1.4"
"vite-plugin-static-copy": "^2.1.0",
"vitest": "^2.1.5"
},
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
"packageManager": "pnpm@9.13.2+sha512.88c9c3864450350e65a33587ab801acf946d7c814ed1134da4a924f6df5a2120fd36b46aab68f7cd1d413149112d53c7db3a4136624cfd00ff1846a0c6cef48a",
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
Expand Down
Loading

0 comments on commit 81758c0

Please sign in to comment.