Skip to content

Commit 055e69c

Browse files
committed
fix: pin @csstools/postcss-cascade-layers to 5.0.2
v6.0.0 dropped the CJS export and raised engines.node to >=20.19.0, which broke `panda codegen` on Node 18 and 20.0-20.18 with ERR_REQUIRE_ESM (issue #3518). @pandacss/core ships a CJS build that requires the package, so we stay on the last dual-published v5 release. The two versions are functionally equivalent. Adds a Renovate rule restricting this dep to <6 so the bump doesn't get reapplied automatically.
1 parent b567ae6 commit 055e69c

4 files changed

Lines changed: 18 additions & 25 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@pandacss/core': patch
3+
---
4+
5+
Pin `@csstools/postcss-cascade-layers` back to `5.0.2`.
6+
7+
Version `6.0.0` dropped the CommonJS export and raised the engine requirement to Node `>=20.19.0`,
8+
which broke `panda codegen` on Node 20.0–20.18 and Node 18 with `ERR_REQUIRE_ESM` (issue #3518).
9+
Since `@pandacss/core` ships a CJS build that requires the package, we stay on the last
10+
dual-published version. The two releases are functionally equivalent — v6 only removed CJS support.

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"access": "public"
3939
},
4040
"dependencies": {
41-
"@csstools/postcss-cascade-layers": "6.0.0",
41+
"@csstools/postcss-cascade-layers": "5.0.2",
4242
"@pandacss/is-valid-prop": "workspace:^",
4343
"@pandacss/logger": "workspace:*",
4444
"@pandacss/shared": "workspace:*",

pnpm-lock.yaml

Lines changed: 2 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renovate.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
"automerge": true,
1717
"groupName": "all non-major dependencies",
1818
"groupSlug": "all-minor-patch"
19+
},
20+
{
21+
"matchPackageNames": ["@csstools/postcss-cascade-layers"],
22+
"allowedVersions": "<6",
23+
"description": "v6 drops CommonJS and requires Node >=20.19.0; pin to v5 until we drop CJS or raise engines."
1924
}
2025
]
2126
}

0 commit comments

Comments
 (0)