Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296225

Update core JavaScript dependencies listed in package.json

$
0
0

Problem/Motivation

We should update all of core's remaining JavaScript dependencies prior to 9.0.0-beta1, including any major version updates that may be available. This includes dependencies listed in package.json.

Proposed resolution

Here's a table of all core JavaScript dependencies in the package.json that yarn outdated reports as having available updates - this includes the recommended and latest and the latest versions of the packages.

Major

PackageCurrentWantedLatestURL
babel-core (now named @babel/core)6.26.37.8.37.8.3https://babeljs.io/docs/en/index.htmlMigrating from Babel 6 to 7
babel-preset-env (now named @babel/preset-env)1.7.07.8.37.8.3https://babeljs.io/docs/en/index.html
chalk2.4.22.4.23.0.0https://github.com/chalk/chalk#readme
chokidar2.1.62.1.83.3.1https://github.com/paulmillr/chokidar
chromedriver75.1.075.1.079.0.0https://github.com/giggio/node-chromedriver
cross-env5.2.05.2.16.0.3https://github.com/kentcdodds/cross-env#readme
dotenv-safe5.0.15.0.18.2.0https://github.com/rolodato/dotenv-safe#readme
eslint4.19.14.19.16.8.0https://eslint.org
eslint-config-airbnb17.1.117.1.118.0.1https://github.com/airbnb/javascript
eslint-config-prettier2.10.02.10.06.9.0https://github.com/prettier/eslint-config-prettier#readme
eslint-plugin-prettier2.7.02.7.03.1.2https://github.com/prettier/eslint-plugin-prettier#readme
eslint-plugin-react-hooks1.7.01.7.02.3.0https://reactjs.org/
stylelint9.10.19.10.113.0.0 (updated to 12.0.0 until #3107918: [PP-1] Drop support for Node.js 8 has been resolved)https://stylelint.io
stylelint-config-standard18.3.018.3.019.0.0https://github.com/stylelint/stylelint-config-standard#readme
stylelint-order2.2.12.2.14.0.0https://github.com/hudochenkov/stylelint-order
terser4.4.34.6.34.6.3https://terser.org

Minor

PackageCurrentWantedLatestURL
autoprefixer9.6.19.7.49.7.4https://github.com/postcss/autoprefixer#readme
eslint-plugin-import2.18.22.20.02.20.0https://github.com/benmosher/eslint-plugin-import
eslint-plugin-react7.14.37.18.07.18.0https://github.com/yannickcr/eslint-plugin-react
nightwatch1.2.11.3.21.3.2http://nightwatchjs.org
prettier1.18.21.19.11.19.1https://prettier.io

Patch

PackageCurrentWantedLatestURL
glob7.1.47.1.67.1.6https://github.com/isaacs/node-glob#readme
postcss7.0.187.0.267.0.26https://postcss.org/

Impacts

Six .es6.js files are formatted differently by prettier. The changes were reviewed and verified as ones that don't impact functionality, but rather better enforcing of eslint rules.

Many .js files are compile differently due to the Babel update. All have been reviewed to be changes that don't impact functionality. The changes can be categorized as:
- Declaring an undefined variable no longer assigns void 0
- Even single item object literals have a line break separating open and close brackets.
- Variable insertion in template literals have changed from using the plus operator to concat()
- Some newlines added, others removed.

Remaining tasks


Viewing all articles
Browse latest Browse all 296225

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>