Skip to content

Commit f759d09

Browse files
committed
chore: clean up stale devDependencies and dead code
Remove babel-plugin-styled-components (no longer in babel config), @types/styled-components (SC 6+ ships own types), and react-is (never imported). Add @babel/plugin-transform-flow-strip-types as an explicit devDependency (used in babel.config.json for RN tests). Remove dead getKeyframeHashes wrapper from utils.js (collectHashes is used directly).
1 parent d64a346 commit f759d09

3 files changed

Lines changed: 4 additions & 57 deletions

File tree

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@
4242
"@changesets/changelog-git": "^0.2.1",
4343
"@changesets/cli": "^2.30.0",
4444
"@testing-library/react": "^12.1.2",
45-
"@types/styled-components": "^5.1.15",
45+
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
4646
"@cfaester/enzyme-adapter-react-18": "^0.8.0",
4747
"babel-jest": "^27.3.1",
48-
"babel-plugin-styled-components": "^2.0.1",
4948
"enzyme": "^3.6.0",
5049
"enzyme-adapter-preact-pure": "^3.3.0",
5150
"enzyme-to-json": "^3.3.1",
@@ -59,7 +58,6 @@
5958
"publint": "^0.3.18",
6059
"react": "18.2.0",
6160
"react-dom": "18.2.0",
62-
"react-is": "^18.2.0",
6361
"react-native": "~0.71",
6462
"react-test-renderer": "18.2.0",
6563
"styled-components": "^6.0.9"

pnpm-lock.yaml

Lines changed: 3 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ const collectHashes = () => {
232232
};
233233

234234
const getHashes = () => collectHashes().all;
235-
const getKeyframeHashes = () => collectHashes().keyframes;
236235

237236
const buildReturnMessage = (utils, pass, property, received, expected) => () =>
238237
`${utils.printReceived(
@@ -302,7 +301,6 @@ module.exports = {
302301
getCSSForMatcher,
303302
collectHashes,
304303
getHashes,
305-
getKeyframeHashes,
306304
buildReturnMessage,
307305
matcherTest,
308306
};

0 commit comments

Comments
 (0)