Skip to content

Commit 6bd1342

Browse files
authoredApr 28, 2023
Upgrade Stylis to a version with parsing fix for & in nested functions (#3025)
1 parent 149194e commit 6bd1342

File tree

7 files changed

+27
-12
lines changed

7 files changed

+27
-12
lines changed
 

‎.changeset/early-mice-change.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@emotion/babel-plugin': patch
3+
'@emotion/css-prettifier': patch
4+
'@emotion/jest': patch
5+
---
6+
7+
Updated the underlying parser ([stylis](https://github.com/thysultan/stylis)) to 4.1.4

‎.changeset/seven-bags-shave.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@emotion/cache': patch
3+
'@emotion/css': patch
4+
'@emotion/react': patch
5+
'@emotion/styled': patch
6+
---
7+
8+
Fixed a parsing issue with `&` within nested functions in declaration values by updating the underlying parser ([stylis](https://github.com/thysultan/stylis)).

‎packages/babel-plugin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"escape-string-regexp": "^4.0.0",
2828
"find-root": "^1.1.0",
2929
"source-map": "^0.5.7",
30-
"stylis": "4.1.3"
30+
"stylis": "4.1.4"
3131
},
3232
"devDependencies": {
3333
"@babel/core": "^7.18.5",

‎packages/cache/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@emotion/sheet": "^1.2.1",
3030
"@emotion/utils": "^1.2.0",
3131
"@emotion/weak-memoize": "^0.3.0",
32-
"stylis": "4.1.3"
32+
"stylis": "4.1.4"
3333
},
3434
"devDependencies": {
3535
"@definitelytyped/dtslint": "0.0.112",

‎packages/css-prettifier/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"repository": "https://github.com/emotion-js/emotion/tree/main/packages/css-prettifier",
2121
"dependencies": {
2222
"@emotion/memoize": "^0.8.0",
23-
"stylis": "4.1.3"
23+
"stylis": "4.1.4"
2424
},
2525
"publishConfig": {
2626
"access": "public"

‎packages/jest/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@emotion/css-prettifier": "^1.1.1",
4141
"chalk": "^4.1.0",
4242
"specificity": "^0.4.1",
43-
"stylis": "4.1.3"
43+
"stylis": "4.1.4"
4444
},
4545
"peerDependencies": {
4646
"@types/jest": "^26.0.14 || ^27.0.0 || ^28.0.0 || ^29.0.0",

‎yarn.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -2360,7 +2360,7 @@ __metadata:
23602360
escape-string-regexp: ^4.0.0
23612361
find-root: ^1.1.0
23622362
source-map: ^0.5.7
2363-
stylis: 4.1.3
2363+
stylis: 4.1.4
23642364
languageName: unknown
23652365
linkType: soft
23662366

@@ -2388,7 +2388,7 @@ __metadata:
23882388
"@emotion/sheet": ^1.2.1
23892389
"@emotion/utils": ^1.2.0
23902390
"@emotion/weak-memoize": ^0.3.0
2391-
stylis: 4.1.3
2391+
stylis: 4.1.4
23922392
typescript: ^4.5.5
23932393
languageName: unknown
23942394
linkType: soft
@@ -2398,7 +2398,7 @@ __metadata:
23982398
resolution: "@emotion/css-prettifier@workspace:packages/css-prettifier"
23992399
dependencies:
24002400
"@emotion/memoize": ^0.8.0
2401-
stylis: 4.1.3
2401+
stylis: 4.1.4
24022402
languageName: unknown
24032403
linkType: soft
24042404

@@ -2470,7 +2470,7 @@ __metadata:
24702470
react: 16.14.0
24712471
react-dom: 16.14.0
24722472
specificity: ^0.4.1
2473-
stylis: 4.1.3
2473+
stylis: 4.1.4
24742474
typescript: ^4.5.5
24752475
peerDependencies:
24762476
"@types/jest": ^26.0.14 || ^27.0.0 || ^28.0.0 || ^29.0.0
@@ -28305,10 +28305,10 @@ __metadata:
2830528305
languageName: node
2830628306
linkType: hard
2830728307

28308-
"stylis@npm:4.1.3":
28309-
version: 4.1.3
28310-
resolution: "stylis@npm:4.1.3"
28311-
checksum: d04dbffcb9bf2c5ca8d8dc09534203c75df3bf711d33973ea22038a99cc475412a350b661ebd99cbc01daa50d7eedcf0d130d121800eb7318759a197023442a6
28308+
"stylis@npm:4.1.4":
28309+
version: 4.1.4
28310+
resolution: "stylis@npm:4.1.4"
28311+
checksum: cd929bd89709def13b47e6c16b11317bf996a09b4e987fc45a235549c3adf49d41531e017d7df511daa095bc9468c923ae9094a934fe9c62440b7351874dafb7
2831228312
languageName: node
2831328313
linkType: hard
2831428314

0 commit comments

Comments
 (0)
Please sign in to comment.