Skip to content

Commit

Permalink
Upgrade Stylis to a version with parsing fix for & in nested functi…
Browse files Browse the repository at this point in the history
…ons (#3025)
  • Loading branch information
Andarist committed Apr 28, 2023
1 parent 149194e commit 6bd1342
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .changeset/early-mice-change.md
@@ -0,0 +1,7 @@
---
'@emotion/babel-plugin': patch
'@emotion/css-prettifier': patch
'@emotion/jest': patch
---

Updated the underlying parser ([stylis](https://github.com/thysultan/stylis)) to 4.1.4
8 changes: 8 additions & 0 deletions .changeset/seven-bags-shave.md
@@ -0,0 +1,8 @@
---
'@emotion/cache': patch
'@emotion/css': patch
'@emotion/react': patch
'@emotion/styled': patch
---

Fixed a parsing issue with `&` within nested functions in declaration values by updating the underlying parser ([stylis](https://github.com/thysultan/stylis)).
2 changes: 1 addition & 1 deletion packages/babel-plugin/package.json
Expand Up @@ -27,7 +27,7 @@
"escape-string-regexp": "^4.0.0",
"find-root": "^1.1.0",
"source-map": "^0.5.7",
"stylis": "4.1.3"
"stylis": "4.1.4"
},
"devDependencies": {
"@babel/core": "^7.18.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/cache/package.json
Expand Up @@ -29,7 +29,7 @@
"@emotion/sheet": "^1.2.1",
"@emotion/utils": "^1.2.0",
"@emotion/weak-memoize": "^0.3.0",
"stylis": "4.1.3"
"stylis": "4.1.4"
},
"devDependencies": {
"@definitelytyped/dtslint": "0.0.112",
Expand Down
2 changes: 1 addition & 1 deletion packages/css-prettifier/package.json
Expand Up @@ -20,7 +20,7 @@
"repository": "https://github.com/emotion-js/emotion/tree/main/packages/css-prettifier",
"dependencies": {
"@emotion/memoize": "^0.8.0",
"stylis": "4.1.3"
"stylis": "4.1.4"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest/package.json
Expand Up @@ -40,7 +40,7 @@
"@emotion/css-prettifier": "^1.1.1",
"chalk": "^4.1.0",
"specificity": "^0.4.1",
"stylis": "4.1.3"
"stylis": "4.1.4"
},
"peerDependencies": {
"@types/jest": "^26.0.14 || ^27.0.0 || ^28.0.0 || ^29.0.0",
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Expand Up @@ -2360,7 +2360,7 @@ __metadata:
escape-string-regexp: ^4.0.0
find-root: ^1.1.0
source-map: ^0.5.7
stylis: 4.1.3
stylis: 4.1.4
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -2388,7 +2388,7 @@ __metadata:
"@emotion/sheet": ^1.2.1
"@emotion/utils": ^1.2.0
"@emotion/weak-memoize": ^0.3.0
stylis: 4.1.3
stylis: 4.1.4
typescript: ^4.5.5
languageName: unknown
linkType: soft
Expand All @@ -2398,7 +2398,7 @@ __metadata:
resolution: "@emotion/css-prettifier@workspace:packages/css-prettifier"
dependencies:
"@emotion/memoize": ^0.8.0
stylis: 4.1.3
stylis: 4.1.4
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -2470,7 +2470,7 @@ __metadata:
react: 16.14.0
react-dom: 16.14.0
specificity: ^0.4.1
stylis: 4.1.3
stylis: 4.1.4
typescript: ^4.5.5
peerDependencies:
"@types/jest": ^26.0.14 || ^27.0.0 || ^28.0.0 || ^29.0.0
Expand Down Expand Up @@ -28305,10 +28305,10 @@ __metadata:
languageName: node
linkType: hard

"stylis@npm:4.1.3":
version: 4.1.3
resolution: "stylis@npm:4.1.3"
checksum: d04dbffcb9bf2c5ca8d8dc09534203c75df3bf711d33973ea22038a99cc475412a350b661ebd99cbc01daa50d7eedcf0d130d121800eb7318759a197023442a6
"stylis@npm:4.1.4":
version: 4.1.4
resolution: "stylis@npm:4.1.4"
checksum: cd929bd89709def13b47e6c16b11317bf996a09b4e987fc45a235549c3adf49d41531e017d7df511daa095bc9468c923ae9094a934fe9c62440b7351874dafb7
languageName: node
linkType: hard

Expand Down

0 comments on commit 6bd1342

Please sign in to comment.