Skip to content

Commit 6678107

Browse files
authored
Use @adobe/css-tools (maintained) instead of css (unmaintained) (#416)
1 parent 4b07fde commit 6678107

File tree

4 files changed

+9
-21
lines changed

4 files changed

+9
-21
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"styled-components": "^5.0.0"
5454
},
5555
"dependencies": {
56-
"css": "^3.0.0"
56+
"@adobe/css-tools": "^4.0.1"
5757
},
5858
"peerDependencies": {
5959
"styled-components": ">= 5"

src/styleSheetSerializer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const css = require('css');
1+
const css = require('@adobe/css-tools');
22
const { getCSS, getHashes } = require('./utils');
33

44
let cache = new WeakSet();

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const css = require('css');
1+
const css = require('@adobe/css-tools');
22
const { ServerStyleSheet, __PRIVATE__ } = require('styled-components');
33

44
if (!__PRIVATE__) {

yarn.lock

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# yarn lockfile v1
33

44

5+
"@adobe/css-tools@^4.0.1":
6+
version "4.0.1"
7+
resolved "https://artifactory.corp.adobe.com/artifactory/api/npm/npm-adobe-release/@adobe/css-tools/-/css-tools-4.0.1.tgz#b38b444ad3aa5fedbb15f2f746dcd934226a12dd"
8+
integrity sha512-+u76oB43nOHrF4DDWRLWDCtci7f3QJoEBigemIdIeTi1ODqjx6Tad9NCVnPRwewWlKkVab5PlK8DCtPTyX7S8g==
9+
510
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.0":
611
version "7.16.0"
712
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.0.tgz#0dfc80309beec8411e65e706461c408b0bb9b431"
@@ -2861,15 +2866,6 @@ css-what@^5.0.0, css-what@^5.0.1:
28612866
resolved "https://registry.yarnpkg.com/css-what/-/css-what-5.1.0.tgz#3f7b707aadf633baf62c2ceb8579b545bb40f7fe"
28622867
integrity sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==
28632868

2864-
css@^3.0.0:
2865-
version "3.0.0"
2866-
resolved "https://registry.yarnpkg.com/css/-/css-3.0.0.tgz#4447a4d58fdd03367c516ca9f64ae365cee4aa5d"
2867-
integrity sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==
2868-
dependencies:
2869-
inherits "^2.0.4"
2870-
source-map "^0.6.1"
2871-
source-map-resolve "^0.6.0"
2872-
28732869
cssom@^0.4.4:
28742870
version "0.4.4"
28752871
resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10"
@@ -4045,7 +4041,7 @@ inflight@^1.0.4:
40454041
once "^1.3.0"
40464042
wrappy "1"
40474043

4048-
inherits@2, inherits@2.0.4, inherits@^2.0.4, inherits@~2.0.3:
4044+
inherits@2, inherits@2.0.4, inherits@~2.0.3:
40494045
version "2.0.4"
40504046
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
40514047
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
@@ -6909,14 +6905,6 @@ source-map-resolve@^0.5.0:
69096905
source-map-url "^0.4.0"
69106906
urix "^0.1.0"
69116907

6912-
source-map-resolve@^0.6.0:
6913-
version "0.6.0"
6914-
resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.6.0.tgz#3d9df87e236b53f16d01e58150fc7711138e5ed2"
6915-
integrity sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==
6916-
dependencies:
6917-
atob "^2.1.2"
6918-
decode-uri-component "^0.2.0"
6919-
69206908
source-map-support@^0.5.16, source-map-support@^0.5.6:
69216909
version "0.5.20"
69226910
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.20.tgz#12166089f8f5e5e8c56926b377633392dd2cb6c9"

0 commit comments

Comments
 (0)