(#147) Upgrade to Node 18, Webpack 5, npm audit fixes #151
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(#147) Upgrade to Node 18, Webpack 5, npm audit fixes
Description
Updates node, webpack, and other packages to enable security changes. Upgrades dependencies to webpack 5 compatible versions.
Notable package upgrades
Replaces deprecated (Since March 2020)
babel-eslint
with@babel/eslint-parser
Replace deprecated eslint-loader with eslint-webpack-plugin
In addition, adds the following dev dependencies
Updates node to 18
File(s):
.nvmrc
Extracts jest config to separate file
File(s):
.package.json
jest.config.js
package.json
Updates Webpack to 5
Installl latest webpack,
Updates webpack config to address CRA CommonJS import bug affecting axios/nock/jest combo
File(s):
/config/paths.js
webpack.config.js
jest.config.js
Adds support for cjs/mjs extension
require
a submodule of a package (i.e.my-package/sub-module
) returns a string instead of the module facebook/create-react-app#11889 (comment)jest.config.js
Updates
buildAxiosRequest.test.js
to set the addapter type to httpApp.test.js
to remove the following:Updates webpack config for breaking changes from v4 -> v5
Misc webpack config changes following migration guide: https://webpack.js.org/migrate/5/
File(s):
webpack.config.js
babel.config.js
.eslintrc.js
Updates syntax change for IgnorePlugin in webpack config
ManifestPlugin
to the following:js const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
Updates the webpack hashing function from the insecure
md4
toxxhash64
Resolves the following error:
Adds absoluteRuntime key to
babel.config.js
Replaces deprecated
babe-eslint
with@babel/eslint-parser
Replaces
eslint-loader
with eslint-webpack-plugin in webpack configUpdates loader syntax. Usage of loader notation 'style-loader!css-loader' is deprecated and replaced with
[{loader: ‘style-loader’}, {loader: ‘css-loader’}]
Security Fixes
Linter fixes