@foxford/babel-preset-react-app
Advanced tools
Comparing version 1.3.1-beta-d5df9ee-20230316 to 2.0.0-beta-576dc87-20231016
@@ -103,4 +103,2 @@ /** | ||
isTypeScriptEnabled && [require('@babel/preset-typescript').default], | ||
].filter(Boolean), | ||
plugins: [ | ||
// Strip flow types before any other transform, emulating the behavior | ||
@@ -112,3 +110,6 @@ // order as-if the browser supported all of the succeeding features | ||
// https://github.com/facebook/create-react-app/issues/5741 | ||
isFlowEnabled && [require('@babel/plugin-transform-flow-strip-types').default, false], | ||
isFlowEnabled && [require('@babel/preset-flow').default, false], | ||
].filter(Boolean), | ||
plugins: [ | ||
isFlowEnabled && [require('babel-plugin-syntax-hermes-parser').default], | ||
// Disabled as it's handled automatically by preset-env, and `selectiveLoose` isn't | ||
@@ -142,3 +143,26 @@ // yet merged into babel: https://github.com/babel/babel/pull/9486 | ||
// See discussion in https://github.com/facebook/create-react-app/issues/4263 | ||
[require('@babel/plugin-proposal-class-properties').default], | ||
// Note: | ||
// 'loose' mode configuration must be the same for | ||
// * @babel/plugin-proposal-class-properties | ||
// * @babel/plugin-proposal-private-methods | ||
// * @babel/plugin-proposal-private-property-in-object | ||
// (when they are enabled) | ||
[ | ||
require('@babel/plugin-proposal-class-properties').default, | ||
{ | ||
loose: true, | ||
}, | ||
], | ||
[ | ||
require('@babel/plugin-proposal-private-methods').default, | ||
{ | ||
loose: true, | ||
}, | ||
], | ||
[ | ||
require('@babel/plugin-proposal-private-property-in-object').default, | ||
{ | ||
loose: true, | ||
}, | ||
], | ||
// Adds Numeric Separators | ||
@@ -145,0 +169,0 @@ require('@babel/plugin-proposal-numeric-separator').default, |
{ | ||
"name": "@foxford/babel-preset-react-app", | ||
"version": "1.3.1-beta-d5df9ee-20230316", | ||
"version": "2.0.0-beta-576dc87-20231016", | ||
"description": "Preset babel for foxford js apps", | ||
@@ -35,24 +35,28 @@ "main": "index.js", | ||
"dependencies": { | ||
"@babel/core": "7.21.3", | ||
"@babel/core": "7.23.2", | ||
"@babel/plugin-proposal-class-properties": "7.18.6", | ||
"@babel/plugin-proposal-decorators": "7.21.0", | ||
"@babel/plugin-proposal-export-default-from": "7.18.10", | ||
"@babel/plugin-proposal-decorators": "7.23.2", | ||
"@babel/plugin-proposal-export-default-from": "7.22.17", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6", | ||
"@babel/plugin-proposal-numeric-separator": "7.18.6", | ||
"@babel/plugin-proposal-optional-chaining": "7.21.0", | ||
"@babel/plugin-transform-flow-strip-types": "7.21.0", | ||
"@babel/plugin-transform-react-display-name": "7.18.6", | ||
"@babel/plugin-transform-runtime": "7.21.0", | ||
"@babel/preset-env": "7.20.2", | ||
"@babel/preset-react": "7.18.6", | ||
"@babel/preset-typescript": "7.21.0", | ||
"@babel/runtime": "7.21.0", | ||
"@babel/plugin-proposal-private-methods": "7.18.6", | ||
"@babel/plugin-proposal-private-property-in-object": "7.21.0", | ||
"@babel/plugin-transform-flow-strip-types": "7.22.5", | ||
"@babel/plugin-transform-react-display-name": "7.22.5", | ||
"@babel/plugin-transform-runtime": "7.23.2", | ||
"@babel/preset-env": "7.23.2", | ||
"@babel/preset-flow": "7.22.15", | ||
"@babel/preset-react": "7.22.15", | ||
"@babel/preset-typescript": "7.23.2", | ||
"@babel/runtime": "7.23.2", | ||
"babel-plugin-syntax-hermes-parser": "^0.16.0", | ||
"babel-plugin-transform-react-remove-prop-types": "0.4.24" | ||
}, | ||
"devDependencies": { | ||
"eslint": "8.36.0", | ||
"eslint-config-prettier": "8.7.0", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"prettier": "2.8.4", | ||
"zx": "7.2.0" | ||
"eslint": "8.51.0", | ||
"eslint-config-prettier": "9.0.0", | ||
"eslint-plugin-prettier": "5.0.1", | ||
"prettier": "3.0.3", | ||
"zx": "7.2.3" | ||
}, | ||
@@ -59,0 +63,0 @@ "homepage": "https://github.com/foxford/babel-preset-react-app#readme" |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
19931
380
19
1
+ Added@babel/plugin-proposal-private-property-in-object@7.21.0
+ Added@babel/preset-flow@7.22.15
+ Added@babel/core@7.23.2(transitive)
+ Added@babel/helper-define-polyfill-provider@0.4.40.5.00.6.3(transitive)
+ Added@babel/plugin-proposal-decorators@7.23.2(transitive)
+ Added@babel/plugin-proposal-export-default-from@7.22.17(transitive)
+ Added@babel/plugin-proposal-private-property-in-object@7.21.0(transitive)
+ Added@babel/plugin-syntax-import-attributes@7.26.0(transitive)
+ Added@babel/plugin-syntax-import-meta@7.10.4(transitive)
+ Added@babel/plugin-syntax-unicode-sets-regex@7.18.6(transitive)
+ Added@babel/plugin-transform-async-generator-functions@7.25.9(transitive)
+ Added@babel/plugin-transform-class-properties@7.25.9(transitive)
+ Added@babel/plugin-transform-class-static-block@7.26.0(transitive)
+ Added@babel/plugin-transform-dynamic-import@7.25.9(transitive)
+ Added@babel/plugin-transform-export-namespace-from@7.25.9(transitive)
+ Added@babel/plugin-transform-flow-strip-types@7.22.5(transitive)
+ Added@babel/plugin-transform-json-strings@7.25.9(transitive)
+ Added@babel/plugin-transform-logical-assignment-operators@7.25.9(transitive)
+ Added@babel/plugin-transform-nullish-coalescing-operator@7.26.6(transitive)
+ Added@babel/plugin-transform-numeric-separator@7.25.9(transitive)
+ Added@babel/plugin-transform-object-rest-spread@7.25.9(transitive)
+ Added@babel/plugin-transform-optional-catch-binding@7.25.9(transitive)
+ Added@babel/plugin-transform-private-methods@7.25.9(transitive)
+ Added@babel/plugin-transform-private-property-in-object@7.25.9(transitive)
+ Added@babel/plugin-transform-react-display-name@7.22.5(transitive)
+ Added@babel/plugin-transform-runtime@7.23.2(transitive)
+ Added@babel/plugin-transform-unicode-property-regex@7.25.9(transitive)
+ Added@babel/plugin-transform-unicode-sets-regex@7.25.9(transitive)
+ Added@babel/preset-env@7.23.2(transitive)
+ Added@babel/preset-flow@7.22.15(transitive)
+ Added@babel/preset-modules@0.1.6-no-external-plugins(transitive)
+ Added@babel/preset-react@7.22.15(transitive)
+ Added@babel/preset-typescript@7.23.2(transitive)
+ Added@babel/runtime@7.23.2(transitive)
+ Addedbabel-plugin-polyfill-corejs2@0.4.12(transitive)
+ Addedbabel-plugin-polyfill-corejs3@0.8.7(transitive)
+ Addedbabel-plugin-polyfill-regenerator@0.5.5(transitive)
+ Addedbabel-plugin-syntax-hermes-parser@0.16.0(transitive)
+ Addedconvert-source-map@2.0.0(transitive)
+ Addedhermes-estree@0.16.0(transitive)
+ Addedhermes-parser@0.16.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
- Removed@babel/core@7.21.3(transitive)
- Removed@babel/helper-define-polyfill-provider@0.3.3(transitive)
- Removed@babel/helper-environment-visitor@7.24.7(transitive)
- Removed@babel/plugin-proposal-async-generator-functions@7.20.7(transitive)
- Removed@babel/plugin-proposal-class-static-block@7.21.0(transitive)
- Removed@babel/plugin-proposal-decorators@7.21.0(transitive)
- Removed@babel/plugin-proposal-dynamic-import@7.18.6(transitive)
- Removed@babel/plugin-proposal-export-default-from@7.18.10(transitive)
- Removed@babel/plugin-proposal-export-namespace-from@7.18.9(transitive)
- Removed@babel/plugin-proposal-json-strings@7.18.6(transitive)
- Removed@babel/plugin-proposal-logical-assignment-operators@7.20.7(transitive)
- Removed@babel/plugin-proposal-object-rest-spread@7.20.7(transitive)
- Removed@babel/plugin-proposal-optional-catch-binding@7.18.6(transitive)
- Removed@babel/plugin-proposal-private-property-in-object@7.21.11(transitive)
- Removed@babel/plugin-proposal-unicode-property-regex@7.18.6(transitive)
- Removed@babel/plugin-transform-flow-strip-types@7.21.0(transitive)
- Removed@babel/plugin-transform-react-display-name@7.18.6(transitive)
- Removed@babel/plugin-transform-runtime@7.21.0(transitive)
- Removed@babel/preset-env@7.20.2(transitive)
- Removed@babel/preset-modules@0.1.6(transitive)
- Removed@babel/preset-react@7.18.6(transitive)
- Removed@babel/preset-typescript@7.21.0(transitive)
- Removed@babel/runtime@7.21.0(transitive)
- Removedbabel-plugin-polyfill-corejs2@0.3.3(transitive)
- Removedbabel-plugin-polyfill-corejs3@0.6.0(transitive)
- Removedbabel-plugin-polyfill-regenerator@0.4.1(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedregenerator-runtime@0.13.11(transitive)
Updated@babel/core@7.23.2
Updated@babel/preset-env@7.23.2
Updated@babel/preset-react@7.22.15
Updated@babel/runtime@7.23.2