Skip to content

Commit

Permalink
fix(core): bump stylis for proper @layer support (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored May 17, 2023
1 parent 72065bb commit 31bb221
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: bump stylis",
"packageName": "@griffel/babel-preset",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: bump stylis for proper @layer support",
"packageName": "@griffel/core",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: bump stylis",
"packageName": "@griffel/webpack-extraction-plugin",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"enhanced-resolve": "^5.8.2",
"rtl-css-js": "^1.16.1",
"source-map-js": "1.0.2",
"stylis": "^4.0.13",
"stylis": "^4.2.0",
"tslib": "^2.1.0"
},
"resolutions": {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@linaria/babel-preset": "^3.0.0-beta.23",
"@linaria/shaker": "^3.0.0-beta.22",
"ajv": "^8.4.0",
"stylis": "^4.0.13",
"stylis": "^4.2.0",
"tslib": "^2.1.0"
}
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@emotion/hash": "^0.9.0",
"csstype": "^3.1.2",
"rtl-css-js": "^1.16.1",
"stylis": "^4.0.13",
"stylis": "^4.2.0",
"tslib": "^2.1.0"
}
}
6 changes: 4 additions & 2 deletions packages/core/src/runtime/resolveResetStyleRules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@ describe('resolveResetStyleRules', () => {

expect(result).toMatchInlineSnapshot(`
@layer utilities {
color: orange;
:focus {
.rvhnavh {
color: orange;
}
.rvhnavh:focus {
color: yellow;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-extraction-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@babel/helper-module-imports": "^7.12.13",
"@babel/helper-plugin-utils": "^7.12.13",
"@griffel/core": "^1.11.0",
"stylis": "^4.0.13",
"stylis": "^4.2.0",
"tslib": "^2.1.0"
},
"peerDependencies": {
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14267,7 +14267,7 @@ __metadata:
simple-git-hooks: 2.7.0
source-map-js: 1.0.2
styled-components: ^5.3.6
stylis: ^4.0.13
stylis: ^4.2.0
syncpack: 8.5.14
tmp: 0.2.1
ts-jest: 28.0.8
Expand Down Expand Up @@ -23617,6 +23617,13 @@ __metadata:
languageName: node
linkType: hard

"stylis@npm:^4.2.0":
version: 4.2.0
resolution: "stylis@npm:4.2.0"
checksum: 0eb6cc1b866dc17a6037d0a82ac7fa877eba6a757443e79e7c4f35bacedbf6421fadcab4363b39667b43355cbaaa570a3cde850f776498e5450f32ed2f9b7584
languageName: node
linkType: hard

"stylus-loader@npm:^7.1.0":
version: 7.1.0
resolution: "stylus-loader@npm:7.1.0"
Expand Down

0 comments on commit 31bb221

Please sign in to comment.