Skip to content

Commit

Permalink
Remove all traces of Preact from the repository
Browse files Browse the repository at this point in the history
  • Loading branch information
srmagura committed Jun 2, 2022
1 parent 5b3f4d7 commit 773ecb1
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 85 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-buses-collect.md
@@ -0,0 +1,5 @@
---
'@emotion/is-prop-valid': patch
---

The `for`, `class`, and `autofocus` props are no longer considered valid. This was only for compatibility with Preact.
1 change: 0 additions & 1 deletion .flowconfig
Expand Up @@ -6,7 +6,6 @@
.*/node_modules/styled-components/.*
.*/node_modules/graphql/.*
.*/node_modules/metro.*
.*/node_modules/preact/.*
.*/node_modules/@parcel/.*

[untyped]
Expand Down
1 change: 0 additions & 1 deletion .flowconfig-ci
Expand Up @@ -6,7 +6,6 @@
.*/node_modules/styled-components/.*
.*/node_modules/graphql/.*
.*/node_modules/metro.*
.*/node_modules/preact/.*
.*/node_modules/@parcel/.*


Expand Down
6 changes: 1 addition & 5 deletions packages/is-prop-valid/src/props.js
Expand Up @@ -480,11 +480,7 @@ const props = {
y2: true,
yChannelSelector: true,
z: true,
zoomAndPan: true,
// preact
for: true,
class: true,
autofocus: true
zoomAndPan: true
}
// eslint-disable-next-line import/no-commonjs
module.exports = `/^((${Object.keys(props).join(
Expand Down
2 changes: 0 additions & 2 deletions packages/jest/package.json
Expand Up @@ -41,8 +41,6 @@
"@types/jest": "^27.0.3",
"dtslint": "^4.2.1",
"enzyme-to-json": "^3.6.1",
"preact": "^8.2.9",
"preact-render-to-json": "^3.6.6",
"pretty-format": "^22.4.3",
"react": "16.14.0",
"react-dom": "16.14.0",
Expand Down
21 changes: 0 additions & 21 deletions packages/jest/test/__snapshots__/preact.test.js.snap

This file was deleted.

44 changes: 0 additions & 44 deletions packages/jest/test/preact.test.js

This file was deleted.

Expand Up @@ -102,7 +102,6 @@ exports[`prop filtering on composed styled components that are string tags 1`] =
aria-label="some label"
className="emotion-0 emotion-1"
data-wow="value"
for="other reasons"
href="link"
is={true}
kind={true}
Expand Down
10 changes: 0 additions & 10 deletions yarn.lock
Expand Up @@ -24725,16 +24725,6 @@ potrace@^2.1.8:
dependencies:
jimp "^0.14.0"

preact-render-to-json@^3.6.6:
version "3.6.6"
resolved "https://registry.npmjs.org/preact-render-to-json/-/preact-render-to-json-3.6.6.tgz#f67f48581912ac53fc9f4873bc6d7ce342f71c20"
integrity sha1-9n9IWBkSrFP8n0hzvG1840L3HCA=

preact@^8.2.9:
version "8.5.0"
resolved "https://registry.npmjs.org/preact/-/preact-8.5.0.tgz#05690de3af035cd8ad393e8b4057b8ab29aedee1"
integrity sha512-S2OOz+lRjfbqDbV5LOIcJ6yfYvshDtKvvsMwaFW84wuw4HtFUYH67T+hnWhdCDYtW8BfmyIg9utz16s6U80HbA==

prebuild-install@^6.0.1:
version "6.1.4"
resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-6.1.4.tgz#ae3c0142ad611d58570b89af4986088a4937e00f"
Expand Down

0 comments on commit 773ecb1

Please sign in to comment.