From d01d795db13ba4df0f4b9d6690991442b1d21e05 Mon Sep 17 00:00:00 2001 From: Matt Cliff Date: Sat, 9 Nov 2024 05:10:20 +0000 Subject: [PATCH] cleanups --- package-lock.json | 26 +++++++++++++++++++++++--- package.json | 1 + src/App.test.js | 9 ++++++--- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index a2b66d7..d7b0018 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "reactstrap": "^9.2.1" }, "devDependencies": { + "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "eslint": "^8.57.1", "eslint-plugin-react": "^7.37.2", "globals": "^15.12.0", @@ -662,10 +663,17 @@ } }, "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "version": "7.21.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz", + "integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.", "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, "engines": { "node": ">=6.9.0" }, @@ -1981,6 +1989,18 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/preset-env/node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/preset-env/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", diff --git a/package.json b/package.json index 567aaad..1263c50 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ ] }, "devDependencies": { + "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "eslint": "^8.57.1", "eslint-plugin-react": "^7.37.2", "globals": "^15.12.0", diff --git a/src/App.test.js b/src/App.test.js index 65d4fab..8fd70d2 100644 --- a/src/App.test.js +++ b/src/App.test.js @@ -1,9 +1,12 @@ import React from 'react'; -import ReactDOM from 'react-dom'; -//import App from './App'; +//import ReactDOM from 'react-dom'; +import App from './App'; it('renders without crashing', () => { const div = document.createElement('div'); //ReactDOM.render(, div); - ReactDOM.unmountComponentAtNode(div); + const root = createRoot(div); + root.render(); + //ReactDOM.unmountComponentAtNode(div); + root.unmount(); });