Skip to content

Commit

Permalink
Replace deprecated dependencies (#522)
Browse files Browse the repository at this point in the history
Both @babel/plugin-proposal-class-properties and
@babel/plugin-proposal-object-rest-spread are now deprecated.

Fixes #518

See:
https://www.npmjs.com/package/@babel/plugin-proposal-class-properties
https://www.npmjs.com/package/@babel/plugin-proposal-object-rest-spread
  • Loading branch information
BeniRupp authored Mar 13, 2024
1 parent c47b64a commit 3467ea3
Show file tree
Hide file tree
Showing 3 changed files with 249 additions and 24 deletions.
4 changes: 2 additions & 2 deletions packages/babel-preset-fbjs/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = function(options) {
require('@babel/plugin-transform-function-name'),
require('@babel/plugin-transform-arrow-functions'),
require('@babel/plugin-transform-block-scoped-functions'),
require('@babel/plugin-proposal-class-properties'),
require('@babel/plugin-transform-class-properties'),
[require('@babel/plugin-transform-classes'), {loose: true}],
require('@babel/plugin-transform-object-super'),
require('@babel/plugin-transform-shorthand-properties'),
Expand All @@ -74,7 +74,7 @@ module.exports = function(options) {
require('@babel/plugin-transform-member-expression-literals'),
require('@babel/plugin-transform-property-literals'),
require('@babel/plugin-transform-flow-strip-types'),
require('@babel/plugin-proposal-object-rest-spread'),
require('@babel/plugin-transform-object-rest-spread'),
require('@babel/plugin-transform-react-display-name'),
require('@babel/plugin-transform-react-jsx'),
// Don't enable this plugin unless we're compiling JS, even if the option is true

Check warning on line 80 in packages/babel-preset-fbjs/configure.js

View workflow job for this annotation

GitHub Actions / ci (14, lint)

This line has a length of 87. Maximum allowed is 80

Check warning on line 80 in packages/babel-preset-fbjs/configure.js

View workflow job for this annotation

GitHub Actions / ci (16, lint)

This line has a length of 87. Maximum allowed is 80

Check warning on line 80 in packages/babel-preset-fbjs/configure.js

View workflow job for this annotation

GitHub Actions / ci (17, lint)

This line has a length of 87. Maximum allowed is 80
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-preset-fbjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"test": "NODE_ENV=test jest"
},
"dependencies": {
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-transform-class-properties": "^7.0.0",
"@babel/plugin-transform-object-rest-spread": "^7.0.0",
"@babel/plugin-syntax-class-properties": "^7.0.0",
"@babel/plugin-syntax-flow": "^7.0.0",
"@babel/plugin-syntax-jsx": "^7.0.0",
Expand Down
Loading

0 comments on commit 3467ea3

Please sign in to comment.