Skip to content

Commit

Permalink
update @types/stylis
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Dec 3, 2024
1 parent 85aa6c2 commit 3e72e8c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"devDependencies": {
"@definitelytyped/dtslint": "0.0.112",
"@emotion/hash": "*",
"@types/stylis": "^4.2.6",
"@types/stylis": "^4.2.7",
"typescript": "^5.4.5"
},
"files": [
Expand Down
5 changes: 1 addition & 4 deletions packages/cache/src/prefixer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {
charat,
combine,
copy as _copy,
copy,
DECLARATION,
hash,
indexof,
Expand All @@ -20,9 +20,6 @@ import {
Middleware
} from 'stylis'

// `@types/stylis` are inaccurate, so we temporarily cast to our own definitions until fix lands: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/71310
const copy: (root: Element, props: Partial<Element>) => Element = _copy as any

// this is a copy of stylis@4.0.13 prefixer, the latter version introduced grid prefixing which we don't want

function prefix(value: string, length: number): string {
Expand Down
2 changes: 1 addition & 1 deletion packages/css-prettifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"stylis": "4.2.0"
},
"devDependencies": {
"@types/stylis": "^4.2.6"
"@types/stylis": "^4.2.7"
},
"publishConfig": {
"access": "public"
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2714,7 +2714,7 @@ __metadata:
"@emotion/sheet": ^1.4.0
"@emotion/utils": ^1.4.2
"@emotion/weak-memoize": ^0.4.0
"@types/stylis": ^4.2.6
"@types/stylis": ^4.2.7
stylis: 4.2.0
typescript: ^5.4.5
languageName: unknown
Expand All @@ -2725,7 +2725,7 @@ __metadata:
resolution: "@emotion/css-prettifier@workspace:packages/css-prettifier"
dependencies:
"@emotion/memoize": ^0.9.0
"@types/stylis": ^4.2.6
"@types/stylis": ^4.2.7
stylis: 4.2.0
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -6469,10 +6469,10 @@ __metadata:
languageName: node
linkType: hard

"@types/stylis@npm:^4.2.6":
version: 4.2.6
resolution: "@types/stylis@npm:4.2.6"
checksum: 3a1685f2b465eb943805252b5b2934fc8054fe8706f76e3e28544f69532296f42c042d0b402fadc486ef8e86cc3d8a2c66d2345241e0af8e07974dd36d85a79c
"@types/stylis@npm:^4.2.7":
version: 4.2.7
resolution: "@types/stylis@npm:4.2.7"
checksum: 5f2c8c07d4d5c3c8624d44d026b726295c5a68164087e3cd86f2694660c592ab36264ae49dec38126cf5580f0901266aa24f1c476a622bb83210eabdf7a464e8
languageName: node
linkType: hard

Expand Down

0 comments on commit 3e72e8c

Please sign in to comment.