Skip to content

Commit 013ffbd

Browse files
authored
v1.3.0 — fix react version, fix event leak, bump most things (#28)
* Fixes #27 - support v19 and light bump. * Fix console warning about v18. * Fixes #26 - fix component leak and bump everything. * New version number.
1 parent 88bc58d commit 013ffbd

File tree

8 files changed

+8782
-20667
lines changed

8 files changed

+8782
-20667
lines changed

.eslintrc

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
32
"env": {
43
"browser": true,
54
"es6": true,
@@ -19,11 +18,17 @@
1918
"sinon": true
2019
},
2120

22-
"parser": "babel-eslint",
23-
24-
"plugins": [
21+
"parser": "@babel/eslint-parser",
22+
"parserOptions": {
23+
"requireConfigFile": false,
24+
"babelOptions": {
25+
"presets": ["@babel/preset-react"]
26+
},
27+
"ecmaVersion": "latest",
28+
"sourceType": "module"
29+
},
2530

26-
],
31+
"plugins": [],
2732

2833
"rules": {
2934
"block-scoped-var": 2,
@@ -45,10 +50,10 @@
4550
"func-style": 0,
4651
"generator-star-spacing": [2, "both"],
4752
"guard-for-in": 0,
48-
"handle-callback-err": [2, "^(err|error|anySpecificError)$" ],
53+
"handle-callback-err": [2, "^(err|error|anySpecificError)$"],
4954
"indent": [2, 2, { "SwitchCase": 1 }],
5055
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
51-
"keyword-spacing": [2, {"before": true, "after": true}],
56+
"keyword-spacing": [2, { "before": true, "after": true }],
5257
"linebreak-style": 0,
5358
"max-depth": 0,
5459
"max-len": [0, 120, 4],
@@ -144,7 +149,10 @@
144149
"no-unneeded-ternary": 2,
145150
"no-unreachable": 2,
146151
"no-unused-expressions": 0,
147-
"no-unused-vars": [2, { "vars": "all", "varsIgnorePattern": "[Rr]eact", "args": "after-used" }],
152+
"no-unused-vars": [
153+
2,
154+
{ "vars": "all", "varsIgnorePattern": "[Rr]eact", "args": "after-used" }
155+
],
148156
"no-use-before-define": 0,
149157
"no-var": 0,
150158
"no-void": 0,
@@ -161,7 +169,10 @@
161169
"semi-spacing": 0,
162170
"sort-vars": 0,
163171
"space-before-blocks": [2, "always"],
164-
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
172+
"space-before-function-paren": [
173+
2,
174+
{ "anonymous": "always", "named": "never" }
175+
],
165176
"space-in-brackets": 0,
166177
"space-in-parens": [2, "never"],
167178
"space-infix-ops": 2,

example/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"license": "MIT",
66
"private": true,
77
"dependencies": {
8-
"prop-types": "^15.6.2",
8+
"prop-types": "^15.8.1",
99
"react": "link:../node_modules/react",
1010
"react-dom": "link:../node_modules/react-dom",
1111
"react-middle-ellipsis": "link:..",
12-
"react-scripts": "^4.0.3"
12+
"react-scripts": "^5.0.1"
1313
},
1414
"scripts": {
15-
"start": "react-scripts start",
16-
"build": "react-scripts build",
15+
"start": "NODE_OPTIONS='--openssl-legacy-provider' react-scripts start",
16+
"build": "NODE_OPTIONS='--openssl-legacy-provider' react-scripts build",
1717
"test": "react-scripts test --env=jsdom",
1818
"eject": "react-scripts eject"
1919
},

example/src/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import React from "react";
2-
import ReactDOM from "react-dom";
2+
import { createRoot } from "react-dom/client";
33

44
import App from "./App";
55

6-
ReactDOM.render(<App />, document.getElementById("root"));
6+
const container = document.getElementById("root");
7+
const root = createRoot(container);
8+
9+
root.render(<App />);

0 commit comments

Comments
 (0)