metro-react-native-babel-preset
Advanced tools
Comparing version 0.42.1 to 0.42.2
{ | ||
"name": "metro-react-native-babel-preset", | ||
"version": "0.42.1", | ||
"version": "0.42.2", | ||
"description": "Babel preset for React Native applications", | ||
@@ -21,30 +21,32 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"@babel/plugin-proposal-class-properties": "7.0.0-beta.47", | ||
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.47", | ||
"@babel/plugin-proposal-optional-chaining": "7.0.0-beta.47", | ||
"@babel/plugin-transform-arrow-functions": "7.0.0-beta.47", | ||
"@babel/plugin-transform-block-scoping": "7.0.0-beta.47", | ||
"@babel/plugin-transform-classes": "7.0.0-beta.47", | ||
"@babel/plugin-transform-computed-properties": "7.0.0-beta.47", | ||
"@babel/plugin-transform-destructuring": "7.0.0-beta.47", | ||
"@babel/plugin-transform-exponentiation-operator": "7.0.0-beta.47", | ||
"@babel/plugin-transform-flow-strip-types": "7.0.0-beta.47", | ||
"@babel/plugin-transform-for-of": "7.0.0-beta.47", | ||
"@babel/plugin-transform-function-name": "7.0.0-beta.47", | ||
"@babel/plugin-transform-literals": "7.0.0-beta.47", | ||
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.47", | ||
"@babel/plugin-transform-object-assign": "7.0.0-beta.47", | ||
"@babel/plugin-transform-parameters": "7.0.0-beta.47", | ||
"@babel/plugin-transform-react-display-name": "7.0.0-beta.47", | ||
"@babel/plugin-transform-react-jsx": "7.0.0-beta.47", | ||
"@babel/plugin-transform-react-jsx-source": "7.0.0-beta.47", | ||
"@babel/plugin-transform-regenerator": "7.0.0-beta.47", | ||
"@babel/plugin-transform-shorthand-properties": "7.0.0-beta.47", | ||
"@babel/plugin-transform-spread": "7.0.0-beta.47", | ||
"@babel/plugin-transform-sticky-regex": "7.0.0-beta.47", | ||
"@babel/plugin-transform-template-literals": "7.0.0-beta.47", | ||
"@babel/plugin-transform-unicode-regex": "7.0.0-beta.47", | ||
"@babel/template": "7.0.0-beta.47", | ||
"metro-babel7-plugin-react-transform": "0.42.1" | ||
"@babel/plugin-proposal-class-properties": "7.0.0-beta.54", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "7.0.0-beta.54", | ||
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.54", | ||
"@babel/plugin-proposal-optional-catch-binding": "7.0.0-beta.54", | ||
"@babel/plugin-proposal-optional-chaining": "7.0.0-beta.54", | ||
"@babel/plugin-transform-arrow-functions": "7.0.0-beta.54", | ||
"@babel/plugin-transform-block-scoping": "7.0.0-beta.54", | ||
"@babel/plugin-transform-classes": "7.0.0-beta.54", | ||
"@babel/plugin-transform-computed-properties": "7.0.0-beta.54", | ||
"@babel/plugin-transform-destructuring": "7.0.0-beta.54", | ||
"@babel/plugin-transform-exponentiation-operator": "7.0.0-beta.54", | ||
"@babel/plugin-transform-flow-strip-types": "7.0.0-beta.54", | ||
"@babel/plugin-transform-for-of": "7.0.0-beta.54", | ||
"@babel/plugin-transform-function-name": "7.0.0-beta.54", | ||
"@babel/plugin-transform-literals": "7.0.0-beta.54", | ||
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.54", | ||
"@babel/plugin-transform-object-assign": "7.0.0-beta.54", | ||
"@babel/plugin-transform-parameters": "7.0.0-beta.54", | ||
"@babel/plugin-transform-react-display-name": "7.0.0-beta.54", | ||
"@babel/plugin-transform-react-jsx": "7.0.0-beta.54", | ||
"@babel/plugin-transform-react-jsx-source": "7.0.0-beta.54", | ||
"@babel/plugin-transform-regenerator": "7.0.0-beta.54", | ||
"@babel/plugin-transform-shorthand-properties": "7.0.0-beta.54", | ||
"@babel/plugin-transform-spread": "7.0.0-beta.54", | ||
"@babel/plugin-transform-sticky-regex": "7.0.0-beta.54", | ||
"@babel/plugin-transform-template-literals": "7.0.0-beta.54", | ||
"@babel/plugin-transform-unicode-regex": "7.0.0-beta.54", | ||
"@babel/template": "7.0.0-beta.54", | ||
"metro-babel7-plugin-react-transform": "0.42.2" | ||
} | ||
} |
@@ -13,2 +13,3 @@ /** | ||
const defaultPlugins = [ | ||
[require('@babel/plugin-proposal-optional-catch-binding')], | ||
[require('@babel/plugin-transform-block-scoping')], | ||
@@ -58,3 +59,10 @@ // the flow strip types plugin must go BEFORE class properties! | ||
const objectRestSpread = [require('@babel/plugin-proposal-object-rest-spread')]; | ||
const optionalChaining = [require('@babel/plugin-proposal-optional-chaining')]; | ||
const nullishCoalescingOperator = [ | ||
require('@babel/plugin-proposal-nullish-coalescing-operator'), | ||
{loose: true}, | ||
]; | ||
const optionalChaining = [ | ||
require('@babel/plugin-proposal-optional-chaining'), | ||
{loose: true}, | ||
]; | ||
const reactDisplayName = [ | ||
@@ -109,2 +117,5 @@ require('@babel/plugin-transform-react-display-name'), | ||
} | ||
if (isNull || src.indexOf('??') !== -1) { | ||
extraPlugins.push(nullishCoalescingOperator); | ||
} | ||
@@ -111,0 +122,0 @@ if (options && options.dev) { |
@@ -13,2 +13,3 @@ /** | ||
const defaultPlugins = [ | ||
[require('@babel/plugin-proposal-optional-catch-binding')], | ||
[require('@babel/plugin-transform-block-scoping')], | ||
@@ -58,3 +59,10 @@ // the flow strip types plugin must go BEFORE class properties! | ||
const objectRestSpread = [require('@babel/plugin-proposal-object-rest-spread')]; | ||
const optionalChaining = [require('@babel/plugin-proposal-optional-chaining')]; | ||
const nullishCoalescingOperator = [ | ||
require('@babel/plugin-proposal-nullish-coalescing-operator'), | ||
{ loose: true }]; | ||
const optionalChaining = [ | ||
require('@babel/plugin-proposal-optional-chaining'), | ||
{ loose: true }]; | ||
const reactDisplayName = [ | ||
@@ -109,2 +117,5 @@ require('@babel/plugin-transform-react-display-name')]; | ||
} | ||
if (isNull || src.indexOf('??') !== -1) { | ||
extraPlugins.push(nullishCoalescingOperator); | ||
} | ||
@@ -111,0 +122,0 @@ if (options && options.dev) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28493
595
0
29
+ Added@babel/plugin-proposal-nullish-coalescing-operator@7.0.0-beta.54
+ Added@babel/plugin-proposal-optional-catch-binding@7.0.0-beta.54
+ Added@babel/code-frame@7.0.0-beta.56(transitive)
+ Added@babel/core@7.0.0-beta.56(transitive)
+ Added@babel/generator@7.0.0-beta.56(transitive)
+ Added@babel/helper-annotate-as-pure@7.0.0-beta.54(transitive)
+ Added@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-beta.54(transitive)
+ Added@babel/helper-builder-react-jsx@7.0.0-beta.54(transitive)
+ Added@babel/helper-call-delegate@7.0.0-beta.54(transitive)
+ Added@babel/helper-define-map@7.0.0-beta.54(transitive)
+ Added@babel/helper-explode-assignable-expression@7.0.0-beta.54(transitive)
+ Added@babel/helper-function-name@7.0.0-beta.54(transitive)
+ Added@babel/helper-get-function-arity@7.0.0-beta.54(transitive)
+ Added@babel/helper-hoist-variables@7.0.0-beta.54(transitive)
+ Added@babel/helper-member-expression-to-functions@7.0.0-beta.54(transitive)
+ Added@babel/helper-module-imports@7.0.0-beta.54(transitive)
+ Added@babel/helper-module-transforms@7.0.0-beta.54(transitive)
+ Added@babel/helper-optimise-call-expression@7.0.0-beta.54(transitive)
+ Added@babel/helper-plugin-utils@7.0.0-beta.54(transitive)
+ Added@babel/helper-regex@7.0.0-beta.54(transitive)
+ Added@babel/helper-replace-supers@7.0.0-beta.54(transitive)
+ Added@babel/helper-simple-access@7.0.0-beta.54(transitive)
+ Added@babel/helper-split-export-declaration@7.0.0-beta.54(transitive)
+ Added@babel/helpers@7.0.0-beta.56(transitive)
+ Added@babel/highlight@7.0.0-beta.56(transitive)
+ Added@babel/parser@7.0.0-beta.56(transitive)
+ Added@babel/plugin-proposal-class-properties@7.0.0-beta.54(transitive)
+ Added@babel/plugin-proposal-nullish-coalescing-operator@7.0.0-beta.54(transitive)
+ Added@babel/plugin-proposal-object-rest-spread@7.0.0-beta.54(transitive)
+ Added@babel/plugin-proposal-optional-catch-binding@7.0.0-beta.54(transitive)
+ Added@babel/plugin-proposal-optional-chaining@7.0.0-beta.54(transitive)
+ Added@babel/plugin-syntax-class-properties@7.0.0-beta.54(transitive)
+ Added@babel/plugin-syntax-flow@7.0.0-beta.54(transitive)
+ Added@babel/plugin-syntax-jsx@7.0.0-beta.54(transitive)
+ Added@babel/plugin-syntax-nullish-coalescing-operator@7.0.0-beta.54(transitive)
+ Added@babel/plugin-syntax-object-rest-spread@7.0.0-beta.54(transitive)
+ Added@babel/plugin-syntax-optional-catch-binding@7.0.0-beta.54(transitive)
+ Added@babel/plugin-syntax-optional-chaining@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-arrow-functions@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-block-scoping@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-classes@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-computed-properties@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-destructuring@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-exponentiation-operator@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-flow-strip-types@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-for-of@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-function-name@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-literals@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-modules-commonjs@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-object-assign@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-parameters@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-react-display-name@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-react-jsx@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-react-jsx-source@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-regenerator@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-shorthand-properties@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-spread@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-sticky-regex@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-template-literals@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-unicode-regex@7.0.0-beta.54(transitive)
+ Added@babel/template@7.0.0-beta.54(transitive)
+ Added@babel/traverse@7.0.0-beta.56(transitive)
+ Added@babel/types@7.0.0-beta.56(transitive)
+ Addedmetro-babel7-plugin-react-transform@0.42.2(transitive)
+ Addedregenerator-transform@0.13.4(transitive)
- Removed@babel/code-frame@7.0.0-beta.47(transitive)
- Removed@babel/core@7.0.0-beta.47(transitive)
- Removed@babel/generator@7.0.0-beta.47(transitive)
- Removed@babel/helper-annotate-as-pure@7.0.0-beta.47(transitive)
- Removed@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-beta.47(transitive)
- Removed@babel/helper-builder-react-jsx@7.0.0-beta.47(transitive)
- Removed@babel/helper-call-delegate@7.0.0-beta.47(transitive)
- Removed@babel/helper-define-map@7.0.0-beta.47(transitive)
- Removed@babel/helper-explode-assignable-expression@7.0.0-beta.47(transitive)
- Removed@babel/helper-function-name@7.0.0-beta.47(transitive)
- Removed@babel/helper-get-function-arity@7.0.0-beta.47(transitive)
- Removed@babel/helper-hoist-variables@7.0.0-beta.47(transitive)
- Removed@babel/helper-member-expression-to-functions@7.0.0-beta.47(transitive)
- Removed@babel/helper-module-imports@7.0.0-beta.47(transitive)
- Removed@babel/helper-module-transforms@7.0.0-beta.47(transitive)
- Removed@babel/helper-optimise-call-expression@7.0.0-beta.47(transitive)
- Removed@babel/helper-plugin-utils@7.0.0-beta.47(transitive)
- Removed@babel/helper-regex@7.0.0-beta.47(transitive)
- Removed@babel/helper-replace-supers@7.0.0-beta.47(transitive)
- Removed@babel/helper-simple-access@7.0.0-beta.47(transitive)
- Removed@babel/helper-split-export-declaration@7.0.0-beta.47(transitive)
- Removed@babel/helpers@7.0.0-beta.47(transitive)
- Removed@babel/highlight@7.0.0-beta.47(transitive)
- Removed@babel/plugin-proposal-class-properties@7.0.0-beta.47(transitive)
- Removed@babel/plugin-proposal-object-rest-spread@7.0.0-beta.47(transitive)
- Removed@babel/plugin-proposal-optional-chaining@7.0.0-beta.47(transitive)
- Removed@babel/plugin-syntax-class-properties@7.0.0-beta.47(transitive)
- Removed@babel/plugin-syntax-flow@7.0.0-beta.47(transitive)
- Removed@babel/plugin-syntax-jsx@7.0.0-beta.47(transitive)
- Removed@babel/plugin-syntax-object-rest-spread@7.0.0-beta.47(transitive)
- Removed@babel/plugin-syntax-optional-chaining@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-arrow-functions@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-block-scoping@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-classes@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-computed-properties@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-destructuring@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-exponentiation-operator@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-flow-strip-types@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-for-of@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-function-name@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-literals@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-modules-commonjs@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-object-assign@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-parameters@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-react-display-name@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-react-jsx@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-react-jsx-source@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-regenerator@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-shorthand-properties@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-spread@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-sticky-regex@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-template-literals@7.0.0-beta.47(transitive)
- Removed@babel/plugin-transform-unicode-regex@7.0.0-beta.47(transitive)
- Removed@babel/template@7.0.0-beta.47(transitive)
- Removed@babel/traverse@7.0.0-beta.47(transitive)
- Removed@babel/types@7.0.0-beta.47(transitive)
- Removedarr-diff@2.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarray-unique@0.2.1(transitive)
- Removedbabylon@7.0.0-beta.47(transitive)
- Removedbraces@1.8.5(transitive)
- Removedexpand-brackets@0.1.5(transitive)
- Removedexpand-range@1.8.2(transitive)
- Removedextglob@0.3.2(transitive)
- Removedfilename-regex@2.0.1(transitive)
- Removedfill-range@2.2.4(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfor-own@0.1.5(transitive)
- Removedglob-base@0.3.0(transitive)
- Removedglob-parent@2.0.0(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-dotfile@1.0.3(transitive)
- Removedis-equal-shallow@0.1.3(transitive)
- Removedis-extendable@0.1.1(transitive)
- Removedis-extglob@1.0.0(transitive)
- Removedis-glob@2.0.1(transitive)
- Removedis-number@2.1.04.0.0(transitive)
- Removedis-posix-bracket@0.1.1(transitive)
- Removedis-primitive@2.0.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisobject@2.1.0(transitive)
- Removedkind-of@3.2.26.0.3(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedmath-random@1.0.4(transitive)
- Removedmetro-babel7-plugin-react-transform@0.42.1(transitive)
- Removedmicromatch@2.3.11(transitive)
- Removednormalize-path@2.1.1(transitive)
- Removedobject.omit@2.0.1(transitive)
- Removedparse-glob@3.0.4(transitive)
- Removedpreserve@0.2.0(transitive)
- Removedrandomatic@3.1.1(transitive)
- Removedregenerator-transform@0.12.4(transitive)
- Removedregex-cache@0.4.4(transitive)
- Removedremove-trailing-separator@1.1.0(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
Updated@babel/plugin-proposal-class-properties@7.0.0-beta.54
Updated@babel/plugin-proposal-object-rest-spread@7.0.0-beta.54
Updated@babel/plugin-proposal-optional-chaining@7.0.0-beta.54
Updated@babel/plugin-transform-arrow-functions@7.0.0-beta.54
Updated@babel/plugin-transform-computed-properties@7.0.0-beta.54
Updated@babel/plugin-transform-exponentiation-operator@7.0.0-beta.54
Updated@babel/plugin-transform-flow-strip-types@7.0.0-beta.54
Updated@babel/plugin-transform-modules-commonjs@7.0.0-beta.54
Updated@babel/plugin-transform-react-display-name@7.0.0-beta.54
Updated@babel/plugin-transform-react-jsx-source@7.0.0-beta.54
Updated@babel/plugin-transform-shorthand-properties@7.0.0-beta.54
Updated@babel/plugin-transform-template-literals@7.0.0-beta.54