diff --git a/CHANGELOG.md b/CHANGELOG.md index fec706d66de25..b5841a5ffd21d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,68 @@ See [CHANGELOG - v4-v6](/.github/CHANGELOG-v4-v6.md) for the v4.x-v6.x changelog See [CHANGELOG - 6to5](/.github/CHANGELOG-6to5.md) for the pre-4.0.0 version changelog. See [Babylon's CHANGELOG](packages/babylon/CHANGELOG.md) for the Babylon pre-7.0.0-beta.29 version changelog. +## v7.0.0-beta.54 (2018-07-16) + +> Regarding https://github.com/babel/babel/issues/8184, we aren't using `micromatch` for paths, just basic `*/**` substitution now. For anything more complicated we will recommend using a regex/`.js` config. +> Fixed a bug in the stage presets (https://github.com/babel/babel/issues/8307), so we just removed the requirements for setting options in the meantime for ease of use. We are removing the Stage presets next release. https://github.com/babel/babel/pull/8293 + +#### :boom: Breaking Change +* `babel-core`, `babel-register`, `babel-traverse` + * [#8327](https://github.com/babel/babel/pull/8327) Treat string ignore/only/test/include/exclude values as paths with only basic pattern matching. ([@loganfsmyth](https://github.com/loganfsmyth)) + +#### :bug: Bug Fix +* `babel-core`, `babel-register`, `babel-traverse` + * [#8327](https://github.com/babel/babel/pull/8327) Treat string ignore/only/test/include/exclude values as paths with only basic pattern matching. ([@loganfsmyth](https://github.com/loganfsmyth)) +* `babel-preset-stage-0`, `babel-preset-stage-1` + * [#8317](https://github.com/babel/babel/pull/8317) Fix stage-0/1 import of pipeline proposals array. ([@mAAdhaTTah](https://github.com/mAAdhaTTah)) +* `babel-helper-module-transforms`, `babel-plugin-transform-modules-commonjs` + * [#8316](https://github.com/babel/babel/pull/8316) Ensure that the wildcard interop is used with re-export + default.. ([@loganfsmyth](https://github.com/loganfsmyth)) +* `babel-core` + * [#8315](https://github.com/babel/babel/pull/8315) Remove option-filtering options from the final options results.. ([@loganfsmyth](https://github.com/loganfsmyth)) + +#### :memo: Documentation +* [#8320](https://github.com/babel/babel/pull/8320) Add link to audio version of song. ([@rugk](https://github.com/rugk)) + +## v7.0.0-beta.53 (2018-07-11) + +- Fix for regression with paths on windows due to micromatch upgrade, remove yearly presets (not published) +- (There was an issue with the Stage presets in this release, but it is also deprecated) + +#### :boom: Breaking Change +* `babel-*` + * [#8274](https://github.com/babel/babel/pull/8274) Remove yearly presets from repo. ([@hzoo](https://github.com/hzoo)) + +#### :rocket: New Feature +* `babel-generator`, `babel-parser`, `babel-plugin-transform-typescript`, `babel-types` + * [#7799](https://github.com/babel/babel/pull/7799) TypeScript: Support type arguments on JSX opening and self-closing tags. ([@andy-ms](https://github.com/andy-ms)) +* `babel-parser` + * [#8291](https://github.com/babel/babel/pull/8291) Support pipeline proposal flag in `@babel/parser`. ([@mAAdhaTTah](https://github.com/mAAdhaTTah)) +* `babel-plugin-proposal-object-rest-spread` + * [#8264](https://github.com/babel/babel/pull/8264) Remove unused bindings when excluding keys with rest in loose mode. ([@Andarist](https://github.com/Andarist)) +* `babel-helpers`, `babel-plugin-proposal-object-rest-spread`, `babel-plugin-transform-destructuring`, `babel-preset-env` + * [#8261](https://github.com/babel/babel/pull/8261) Introduce objectWithoutPropertiesLoose helper. ([@Andarist](https://github.com/Andarist)) + +#### :bug: Bug Fix +* `babel-core` + * [#8281](https://github.com/babel/babel/pull/8281) Revert micromatch upgrade (regression) [skip ci]. ([@hzoo](https://github.com/hzoo)) +* `babel-types` + * [#8165](https://github.com/babel/babel/pull/8165) [babel-types] Fix isNodesEquivalent() behavior for TemplateElements. ([@timkendrick](https://github.com/timkendrick)) + +#### :nail_care: Polish +* `babel-plugin-syntax-pipeline-operator`, `babel-preset-stage-0`, `babel-preset-stage-1` + * [#8279](https://github.com/babel/babel/pull/8279) Improve error messages around pipeline option. ([@mAAdhaTTah](https://github.com/mAAdhaTTah)) + +#### :memo: Documentation +* [#8286](https://github.com/babel/babel/pull/8286) Move v4-v6 changelog to another file and all prerelease 7.0 logs [ski…. ([@hzoo](https://github.com/hzoo)) + +#### :house: Internal +* `babel-preset-env` + * [#8299](https://github.com/babel/babel/pull/8299) Make env preset build-data scripts reproducible. ([@rtsao](https://github.com/rtsao)) +* `babel-plugin-proposal-object-rest-spread` + * [#8287](https://github.com/babel/babel/pull/8287) Fixed fixture tests after merge. ([@Andarist](https://github.com/Andarist)) +* Other + * [#8187](https://github.com/babel/babel/pull/8187) Invoke Jest main file directly. ([@ishitatsuyuki](https://github.com/ishitatsuyuki)) + ## v7.0.0-beta.52 (2018-07-06) Deprecating the yearly/stage presets in v7 (will remove next beta). Ran `npm deprecate` on `@babel/preset-es2015`, `@babel/preset-es2016`, `@babel/preset-es2017`, `@babel/preset-stage-0`, `@babel/preset-stage-1`, `@babel/preset-stage-2`, `@babel/preset-stage-3` only for versions `>v7.0.0-beta.52`. This means this will only break your build if you are using `^` in Babel v7 beta (which we have recommended against each release). (It is unfortunate that the default behavior of npm is to use `^` when using `npm install` though; haven't made an RFC for it yet). diff --git a/README.md b/README.md index ab1fce3734b2f..acaf315ccf852 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ For questions and support please visit join our [Slack Community](https://slack. ### Is there a Babel song? -I'm so glad you asked: [Hallelujah —— In Praise of Babel](SONG.md) by [@angus-c](https://github.com/angus-c). Tweet us your recordings! +I'm so glad you asked: [Hallelujah —— In Praise of Babel](SONG.md) by [@angus-c](https://github.com/angus-c), [audio version](https://youtu.be/40abpedBKK8) by [@swyx](https://twitter.com/@swyx). Tweet us your recordings! ### Where are the docs? diff --git a/SONG.md b/SONG.md index 1ef939df3bc3f..a6939e15af286 100644 --- a/SONG.md +++ b/SONG.md @@ -1,5 +1,7 @@ ## Hallelujah—In Praise of Babel +➤ [🎶 Audio version here!](https://youtu.be/40abpedBKK8) + I heard there was a clever trick That rewrote all your JavaScript But you don’t really care for magic, do you diff --git a/codemods/babel-plugin-codemod-object-assign-to-object-spread/package.json b/codemods/babel-plugin-codemod-object-assign-to-object-spread/package.json index 2ca5dc4cf3469..995d838a5dc33 100644 --- a/codemods/babel-plugin-codemod-object-assign-to-object-spread/package.json +++ b/codemods/babel-plugin-codemod-object-assign-to-object-spread/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-codemod-object-assign-to-object-spread", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Transforms Object.assign into object spread syntax", "repository": "https://github.com/babel/babel/tree/master/codemods/babel-plugin-codemod-object-assign-to-object-spread", "license": "MIT", @@ -10,14 +10,14 @@ "@babel/plugin" ], "dependencies": { - "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.52" + "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" }, "publishConfig": { "access": "public" diff --git a/codemods/babel-plugin-codemod-optional-catch-binding/package.json b/codemods/babel-plugin-codemod-optional-catch-binding/package.json index 53ed7c153d01b..75f382081978e 100644 --- a/codemods/babel-plugin-codemod-optional-catch-binding/package.json +++ b/codemods/babel-plugin-codemod-optional-catch-binding/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-codemod-optional-catch-binding", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Remove unused catch bindings", "repository": "https://github.com/babel/babel/tree/master/codemods/babel-plugin-codemod-remove-unused-catch-binding", "license": "MIT", @@ -10,13 +10,13 @@ "@babel/plugin" ], "dependencies": { - "@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.52" + "@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/lerna.json b/lerna.json index a984283ff0cc5..731f94ef0f5f9 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "lerna": "2.11.0", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "changelog": { "repo": "babel/babel", "cacheDir": ".changelog", diff --git a/package.json b/package.json index 2ef4be29b4407..6efed7ffa43e9 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "@babel/preset-stage-0": "7.0.0-beta.52", "@babel/register": "7.0.0-beta.52", "babel-core": "^7.0.0-0", - "babel-eslint": "^8.2.5", - "babel-jest": "^22.4.1", + "babel-eslint": "^8.2.6", + "babel-jest": "^23.4.0", "babel-loader": "8.0.0-beta.0", "babel-plugin-transform-charcodes": "^0.1.0", "browserify": "^13.1.1", @@ -28,11 +28,11 @@ "charcodes": "^0.1.0", "derequire": "^2.0.2", "enhanced-resolve": "^3.0.0", - "eslint": "^5.0.1", + "eslint": "^5.1.0", "eslint-config-babel": "^7.0.2", - "eslint-plugin-flowtype": "^2.49.3", - "eslint-plugin-prettier": "^2.6.1", - "flow-bin": "^0.75.0", + "eslint-plugin-flowtype": "^2.50.0", + "eslint-plugin-prettier": "^2.6.2", + "flow-bin": "^0.76.0", "graceful-fs": "^4.1.11", "gulp": "^4.0.0", "gulp-babel": "^8.0.0-beta.2", @@ -44,14 +44,14 @@ "gulp-util": "^3.0.7", "gulp-watch": "^5.0.0", "husky": "^0.14.3", - "jest": "^22.4.2", + "jest": "^23.4.1", "lerna": "^2.11.0", "lerna-changelog": "^0.5.0", "lint-staged": "^6.0.1", "lodash": "^4.17.5", "merge-stream": "^1.0.1", "output-file-sync": "^2.0.0", - "prettier": "1.13.2", + "prettier": "^1.13.7", "pump": "^1.0.2", "rimraf": "^2.4.3", "rollup-plugin-babel": "^4.0.0-beta.0", diff --git a/packages/babel-cli/package.json b/packages/babel-cli/package.json index 6c915b1432515..454f5c27d4092 100644 --- a/packages/babel-cli/package.json +++ b/packages/babel-cli/package.json @@ -1,6 +1,6 @@ { "name": "@babel/cli", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel command line.", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -33,8 +33,8 @@ "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-fixtures": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-fixtures": "7.0.0-beta.54" }, "bin": { "babel": "./bin/babel.js", diff --git a/packages/babel-code-frame/package.json b/packages/babel-code-frame/package.json index a11fd7cc54c39..adc943c4b909a 100644 --- a/packages/babel-code-frame/package.json +++ b/packages/babel-code-frame/package.json @@ -1,6 +1,6 @@ { "name": "@babel/code-frame", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Generate errors that contain a code frame that point to source locations.", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -8,7 +8,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-code-frame", "main": "lib/index.js", "dependencies": { - "@babel/highlight": "7.0.0-beta.52" + "@babel/highlight": "7.0.0-beta.54" }, "devDependencies": { "chalk": "^2.0.0", diff --git a/packages/babel-core/package.json b/packages/babel-core/package.json index 7af33ff4afc0b..652cc2931f0f0 100644 --- a/packages/babel-core/package.json +++ b/packages/babel-core/package.json @@ -1,6 +1,6 @@ { "name": "@babel/core", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel compiler core.", "main": "lib/index.js", "author": "Sebastian McKenzie ", @@ -30,24 +30,23 @@ "./lib/transform-file.js": "./lib/transform-file-browser.js" }, "dependencies": { - "@babel/code-frame": "7.0.0-beta.52", - "@babel/generator": "7.0.0-beta.52", - "@babel/helpers": "7.0.0-beta.52", - "@babel/parser": "7.0.0-beta.52", - "@babel/template": "7.0.0-beta.52", - "@babel/traverse": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52", + "@babel/code-frame": "7.0.0-beta.54", + "@babel/generator": "7.0.0-beta.54", + "@babel/helpers": "7.0.0-beta.54", + "@babel/parser": "7.0.0-beta.54", + "@babel/template": "7.0.0-beta.54", + "@babel/traverse": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54", "convert-source-map": "^1.1.0", "debug": "^3.1.0", "json5": "^0.5.0", "lodash": "^4.17.5", - "micromatch": "^2.3.11", "resolve": "^1.3.2", "semver": "^5.4.1", "source-map": "^0.5.0" }, "devDependencies": { - "@babel/helper-transform-fixture-test-runner": "7.0.0-beta.52", - "@babel/register": "7.0.0-beta.52" + "@babel/helper-transform-fixture-test-runner": "7.0.0-beta.54", + "@babel/register": "7.0.0-beta.54" } } diff --git a/packages/babel-core/src/config/config-chain.js b/packages/babel-core/src/config/config-chain.js index d117e7c53802e..f160f8a253578 100644 --- a/packages/babel-core/src/config/config-chain.js +++ b/packages/babel-core/src/config/config-chain.js @@ -1,7 +1,6 @@ // @flow import path from "path"; -import micromatch from "micromatch"; import buildDebug from "debug"; import { validate, @@ -10,6 +9,7 @@ import { type ConfigApplicableTest, type BabelrcSearch, } from "./validation/options"; +import pathPatternToRegex from "./pattern-to-regex"; const debug = buildDebug("babel:config:config-chain"); @@ -52,11 +52,6 @@ export type ConfigContext = { envName: string, }; -type ConfigContextNamed = { - ...ConfigContext, - filename: string, -}; - /** * Build a config chain for a given preset. */ @@ -217,7 +212,7 @@ function babelrcLoadEnabled( const absoluteRoot = context.root; - // Fast path to avoid having to load micromatch if the babelrc is just + // Fast path to avoid having to match patterns if the babelrc is just // loading in the standard root directory. if (babelrcRoots === undefined) { return pkgData.directories.indexOf(absoluteRoot) !== -1; @@ -225,15 +220,23 @@ function babelrcLoadEnabled( let babelrcPatterns = babelrcRoots; if (!Array.isArray(babelrcPatterns)) babelrcPatterns = [babelrcPatterns]; - babelrcPatterns = babelrcPatterns.map(pat => path.resolve(context.cwd, pat)); + babelrcPatterns = babelrcPatterns.map(pat => { + return typeof pat === "string" ? path.resolve(context.cwd, pat) : pat; + }); - // Fast path to avoid having to load micromatch if the babelrc is just + // Fast path to avoid having to match patterns if the babelrc is just // loading in the standard root directory. if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) { return pkgData.directories.indexOf(absoluteRoot) !== -1; } - return micromatch(pkgData.directories, babelrcPatterns).length > 0; + return babelrcPatterns.some(pat => { + if (typeof pat === "string") pat = pathPatternToRegex(pat, context.cwd); + + return pkgData.directories.some(directory => { + return matchPattern(pat, context.cwd, directory); + }); + }); } const validateConfigFile = makeWeakCache( @@ -500,11 +503,15 @@ function normalizeOptions(opts: ValidatedOptions): ValidatedOptions { }; delete options.extends; delete options.env; + delete options.overrides; delete options.plugins; delete options.presets; delete options.passPerPreset; delete options.ignore; delete options.only; + delete options.test; + delete options.include; + delete options.exclude; // "sourceMap" is just aliased to sourceMap, so copy it over as // we merge the options together. @@ -579,20 +586,9 @@ function configFieldIsApplicable( test: ConfigApplicableTest, dirname: string, ): boolean { - if (typeof context.filename !== "string") { - throw new Error( - `Configuration contains explicit test/include/exclude checks, but no filename was passed to Babel`, - ); - } - // $FlowIgnore - Flow refinements aren't quite smart enough for this :( - const ctx: ConfigContextNamed = context; - const patterns = Array.isArray(test) ? test : [test]; - // Disabling negation here because it's a bit buggy from - // https://github.com/babel/babel/issues/6907 and it's not clear that it is - // needed since users can use 'exclude' alongside 'test'/'include'. - return matchesPatterns(ctx, patterns, dirname, false /* allowNegation */); + return matchesPatterns(context, patterns, dirname); } /** @@ -604,43 +600,24 @@ function shouldIgnore( only: ?IgnoreList, dirname: string, ): boolean { - if (ignore) { - if (typeof context.filename !== "string") { - throw new Error( - `Configuration contains ignore checks, but no filename was passed to Babel`, - ); - } - // $FlowIgnore - Flow refinements aren't quite smart enough for this :( - const ctx: ConfigContextNamed = context; - if (matchesPatterns(ctx, ignore, dirname)) { - debug( - "Ignored %o because it matched one of %O from %o", - context.filename, - ignore, - dirname, - ); - return true; - } + if (ignore && matchesPatterns(context, ignore, dirname)) { + debug( + "Ignored %o because it matched one of %O from %o", + context.filename, + ignore, + dirname, + ); + return true; } - if (only) { - if (typeof context.filename !== "string") { - throw new Error( - `Configuration contains ignore checks, but no filename was passed to Babel`, - ); - } - // $FlowIgnore - Flow refinements aren't quite smart enough for this :( - const ctx: ConfigContextNamed = context; - - if (!matchesPatterns(ctx, only, dirname)) { - debug( - "Ignored %o because it failed to match one of %O from %o", - context.filename, - only, - dirname, - ); - return true; - } + if (only && !matchesPatterns(context, only, dirname)) { + debug( + "Ignored %o because it failed to match one of %O from %o", + context.filename, + only, + dirname, + ); + return true; } return false; @@ -651,64 +628,26 @@ function shouldIgnore( * Otherwise returns result of matching pattern Regex with filename. */ function matchesPatterns( - context: ConfigContextNamed, + context: ConfigContext, patterns: IgnoreList, dirname: string, - allowNegation?: boolean = true, ): boolean { - const res = []; - const strings = []; - const fns = []; - - patterns.forEach(pattern => { - if (typeof pattern === "string") strings.push(pattern); - else if (typeof pattern === "function") fns.push(pattern); - else res.push(pattern); - }); - - const filename = context.filename; - if (res.some(re => re.test(context.filename))) return true; - if (fns.some(fn => fn(filename))) return true; - - if (strings.length > 0) { - const possibleDirs = getPossibleDirs(context); - - const absolutePatterns = strings.map(pattern => { - // Preserve the "!" prefix so that micromatch can use it for negation. - const negate = pattern[0] === "!"; - if (negate && !allowNegation) { - throw new Error(`Negation of file paths is not supported.`); - } - if (negate) pattern = pattern.slice(1); - - return (negate ? "!" : "") + path.resolve(dirname, pattern); - }); - - if ( - micromatch(possibleDirs, absolutePatterns, { - nocase: true, - nonegate: !allowNegation, - }).length > 0 - ) { - return true; - } - } - - return false; + return patterns.some(pattern => + matchPattern(pattern, dirname, context.filename), + ); } -const getPossibleDirs = makeWeakCache((context: ConfigContextNamed) => { - let current = context.filename; - if (typeof current !== "string") return []; - - const possibleDirs = [current]; - while (true) { - const previous = current; - current = path.dirname(current); - if (previous === current) break; +function matchPattern(pattern, dirname, pathToTest): boolean { + if (typeof pattern === "function") return !!pattern(pathToTest); - possibleDirs.push(current); + if (typeof pathToTest !== "string") { + throw new Error( + `Configuration contains string/RegExp pattern, but no filename was passed to Babel`, + ); } - return possibleDirs; -}); + if (typeof pattern === "string") { + pattern = pathPatternToRegex(pattern, dirname); + } + return pattern.test(pathToTest); +} diff --git a/packages/babel-core/src/config/files/configuration.js b/packages/babel-core/src/config/files/configuration.js index 4547f5e4ec0f6..66b39cb2c06c7 100644 --- a/packages/babel-core/src/config/files/configuration.js +++ b/packages/babel-core/src/config/files/configuration.js @@ -12,6 +12,7 @@ import { } from "../caching"; import makeAPI from "../helpers/config-api"; import { makeStaticFileCache } from "./utils"; +import pathPatternToRegex from "../pattern-to-regex"; import type { FilePackageData, RelativeConfig, ConfigFile } from "./types"; const debug = buildDebug("babel:config:loading:files:configuration"); @@ -240,15 +241,24 @@ const readConfigJSON5 = makeStaticFileCache((filepath, content) => { }); const readIgnoreConfig = makeStaticFileCache((filepath, content) => { - const ignore = content + const ignoreDir = path.dirname(filepath); + const ignorePatterns = content .split("\n") .map(line => line.replace(/#(.*?)$/, "").trim()) .filter(line => !!line); + for (const pattern of ignorePatterns) { + if (pattern[0] === "!") { + throw new Error(`Negation of file paths is not supported.`); + } + } + return { filepath, dirname: path.dirname(filepath), - ignore, + ignore: ignorePatterns.map(pattern => + pathPatternToRegex(pattern, ignoreDir), + ), }; }); diff --git a/packages/babel-core/src/config/files/types.js b/packages/babel-core/src/config/files/types.js index fa9d96fe5da33..24649d010fc77 100644 --- a/packages/babel-core/src/config/files/types.js +++ b/packages/babel-core/src/config/files/types.js @@ -9,7 +9,7 @@ export type ConfigFile = { export type IgnoreFile = { filepath: string, dirname: string, - ignore: Array, + ignore: Array, }; export type RelativeConfig = { diff --git a/packages/babel-core/src/config/pattern-to-regex.js b/packages/babel-core/src/config/pattern-to-regex.js new file mode 100644 index 0000000000000..d796617f89b4d --- /dev/null +++ b/packages/babel-core/src/config/pattern-to-regex.js @@ -0,0 +1,51 @@ +// @flow +import path from "path"; +import escapeRegExp from "lodash/escapeRegExp"; + +const sep = `\\${path.sep}`; +const endSep = `(?:${sep}|$)`; + +const substitution = `[^${sep}]+`; + +const starPat = `(?:${substitution}${sep})`; +const starPatLast = `(?:${substitution}${endSep})`; + +const starStarPat = `${starPat}*?`; +const starStarPatLast = `${starPat}*?${starPatLast}?`; + +/** + * Implement basic pattern matching that will allow users to do the simple + * tests with * and **. If users want full complex pattern matching, then can + * always use regex matching, or function validation. + */ +export default function pathToPattern( + pattern: string, + dirname: string, +): RegExp { + const parts = path.resolve(dirname, pattern).split(path.sep); + + return new RegExp( + [ + "^", + ...parts.map((part, i) => { + const last = i === parts.length - 1; + + // ** matches 0 or more path parts. + if (part === "**") return last ? starStarPatLast : starStarPat; + + // * matches 1 path part. + if (part === "*") return last ? starPatLast : starPat; + + // *.ext matches a wildcard with an extension. + if (part.indexOf("*.") === 0) { + return ( + substitution + escapeRegExp(part.slice(1)) + (last ? endSep : sep) + ); + } + + // Otherwise match the pattern text. + return escapeRegExp(part) + (last ? endSep : sep); + }), + ].join(""), + ); +} diff --git a/packages/babel-core/src/config/validation/option-assertions.js b/packages/babel-core/src/config/validation/option-assertions.js index a6376517008d9..95fca208b3edf 100644 --- a/packages/babel-core/src/config/validation/option-assertions.js +++ b/packages/babel-core/src/config/validation/option-assertions.js @@ -192,14 +192,14 @@ export function assertBabelrcSearch( if (Array.isArray(value)) { value.forEach((item, i) => { - if (typeof item !== "string") { - throw new Error(`.${key}[${i}] must be a string.`); + if (!checkValidTest(value)) { + throw new Error(`.${key}[${i}] must be a string/Function/RegExp.`); } }); - } else if (typeof value !== "string") { + } else if (!checkValidTest(value)) { throw new Error( - `.${key} must be a undefined, a boolean, a string, ` + - `or an array of strings, got ${JSON.stringify(value)}`, + `.${key} must be a undefined, a boolean, a string/Function/RegExp ` + + `or an array of those, got ${JSON.stringify(value)}`, ); } return (value: any); diff --git a/packages/babel-core/src/config/validation/options.js b/packages/babel-core/src/config/validation/options.js index 25569485780aa..5b4585be02bf4 100644 --- a/packages/babel-core/src/config/validation/options.js +++ b/packages/babel-core/src/config/validation/options.js @@ -242,7 +242,7 @@ export type OverridesList = Array; export type ConfigApplicableTest = IgnoreItem | Array; export type ConfigFileSearch = string | boolean; -export type BabelrcSearch = boolean | string | Array; +export type BabelrcSearch = boolean | IgnoreItem | IgnoreList; export type SourceMapsOption = boolean | "inline" | "both"; export type SourceTypeOption = "module" | "script" | "unambiguous"; export type CompactOption = boolean | "auto"; diff --git a/packages/babel-core/test/api.js b/packages/babel-core/test/api.js index 6ea97ebdd1686..a3b4568a7a873 100644 --- a/packages/babel-core/test/api.js +++ b/packages/babel-core/test/api.js @@ -5,11 +5,11 @@ import Plugin from "../lib/config/plugin"; import generator from "@babel/generator"; function assertIgnored(result) { - expect(result).toBeFalsy(); + expect(result).toBeNull(); } function assertNotIgnored(result) { - expect(result.ignored).toBeFalsy(); + expect(result).not.toBeNull(); } function transform(code, opts) { @@ -36,13 +36,11 @@ function transformFileSync(filename, opts) { }); } -// shim function transformAsync(code, opts) { - return { - then: function(resolve) { - resolve(transform(code, opts)); - }, - }; + return babel.transformAsync(code, { + cwd: __dirname, + ...opts, + }); } describe("parser and generator options", function() { diff --git a/packages/babel-core/test/config-chain.js b/packages/babel-core/test/config-chain.js index dea23e0db236a..849da38cfc026 100644 --- a/packages/babel-core/test/config-chain.js +++ b/packages/babel-core/test/config-chain.js @@ -899,6 +899,23 @@ describe("buildConfigChain", function() { expect(opts.comments).toBe(true); }); + + it("should remove the overrides and filtering fields from the options", () => { + const opts = loadOptions({ + cwd: fixture("nonexistant-fake"), + filename: fixture("nonexistant-fake", "src.js"), + babelrc: false, + overrides: [], + test: /^/, + include: /^/, + exclude: [], + }); + + expect(opts.overrides).toBeUndefined(); + expect(opts.test).toBeUndefined(); + expect(opts.include).toBeUndefined(); + expect(opts.exclude).toBeUndefined(); + }); }); describe("config files", () => { diff --git a/packages/babel-generator/package.json b/packages/babel-generator/package.json index a589c139e6103..2388b88e9970d 100644 --- a/packages/babel-generator/package.json +++ b/packages/babel-generator/package.json @@ -1,6 +1,6 @@ { "name": "@babel/generator", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Turns an AST into code.", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -11,14 +11,14 @@ "lib" ], "dependencies": { - "@babel/types": "7.0.0-beta.52", + "@babel/types": "7.0.0-beta.54", "jsesc": "^2.5.1", "lodash": "^4.17.5", "source-map": "^0.5.0", "trim-right": "^1.0.1" }, "devDependencies": { - "@babel/helper-fixtures": "7.0.0-beta.52", - "@babel/parser": "7.0.0-beta.52" + "@babel/helper-fixtures": "7.0.0-beta.54", + "@babel/parser": "7.0.0-beta.54" } } diff --git a/packages/babel-generator/src/generators/jsx.js b/packages/babel-generator/src/generators/jsx.js index 24865630c0b45..89312add92f13 100644 --- a/packages/babel-generator/src/generators/jsx.js +++ b/packages/babel-generator/src/generators/jsx.js @@ -73,6 +73,7 @@ function spaceSeparator() { export function JSXOpeningElement(node: Object) { this.token("<"); this.print(node.name, node); + this.print(node.typeParameters, node); // TS if (node.attributes.length > 0) { this.space(); this.printJoin(node.attributes, node, { separator: spaceSeparator }); diff --git a/packages/babel-generator/test/fixtures/typescript/type-arguments-tsx/input.js b/packages/babel-generator/test/fixtures/typescript/type-arguments-tsx/input.js new file mode 100644 index 0000000000000..520e35ee90978 --- /dev/null +++ b/packages/babel-generator/test/fixtures/typescript/type-arguments-tsx/input.js @@ -0,0 +1,2 @@ +>; +/>; diff --git a/packages/babel-generator/test/fixtures/typescript/type-arguments-tsx/options.json b/packages/babel-generator/test/fixtures/typescript/type-arguments-tsx/options.json new file mode 100644 index 0000000000000..2993d04859c75 --- /dev/null +++ b/packages/babel-generator/test/fixtures/typescript/type-arguments-tsx/options.json @@ -0,0 +1,4 @@ +{ + "plugins": ["jsx", "typescript"], + "sourceType": "module" +} \ No newline at end of file diff --git a/packages/babel-generator/test/fixtures/typescript/type-arguments-tsx/output.js b/packages/babel-generator/test/fixtures/typescript/type-arguments-tsx/output.js new file mode 100644 index 0000000000000..535f6a651dbf3 --- /dev/null +++ b/packages/babel-generator/test/fixtures/typescript/type-arguments-tsx/output.js @@ -0,0 +1,2 @@ +>; + />; \ No newline at end of file diff --git a/packages/babel-generator/test/index.js b/packages/babel-generator/test/index.js index e2ae1f22c8030..d0bfee2e50586 100644 --- a/packages/babel-generator/test/index.js +++ b/packages/babel-generator/test/index.js @@ -362,36 +362,38 @@ const suites = fixtures(`${__dirname}/fixtures`); suites.forEach(function(testSuite) { describe("generation/" + testSuite.title, function() { testSuite.tests.forEach(function(task) { - it( + const testFn = task.disabled ? it.skip : it; + + testFn( task.title, - !task.disabled && - function() { - const expected = task.expect; - const actual = task.actual; - const actualCode = actual.code; - - if (actualCode) { - const actualAst = parse(actualCode, { - filename: actual.loc, - plugins: task.options.plugins || [], - strictMode: false, - sourceType: "module", - }); - const result = generate(actualAst, task.options, actualCode); - - if ( - !expected.code && - result.code && - fs.statSync(path.dirname(expected.loc)).isDirectory() && - !process.env.CI - ) { - console.log(`New test file created: ${expected.loc}`); - fs.writeFileSync(expected.loc, result.code); - } else { - expect(result.code).toBe(expected.code); - } + + function() { + const expected = task.expect; + const actual = task.actual; + const actualCode = actual.code; + + if (actualCode) { + const actualAst = parse(actualCode, { + filename: actual.loc, + plugins: task.options.plugins || [], + strictMode: false, + sourceType: "module", + }); + const result = generate(actualAst, task.options, actualCode); + + if ( + !expected.code && + result.code && + fs.statSync(path.dirname(expected.loc)).isDirectory() && + !process.env.CI + ) { + console.log(`New test file created: ${expected.loc}`); + fs.writeFileSync(expected.loc, result.code); + } else { + expect(result.code).toBe(expected.code); } - }, + } + }, ); }); }); diff --git a/packages/babel-helper-annotate-as-pure/package.json b/packages/babel-helper-annotate-as-pure/package.json index d5ee863c452d0..7fb16ab0cf06f 100644 --- a/packages/babel-helper-annotate-as-pure/package.json +++ b/packages/babel-helper-annotate-as-pure/package.json @@ -1,11 +1,11 @@ { "name": "@babel/helper-annotate-as-pure", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to annotate paths and nodes with #__PURE__ comment", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-annotate-as-pure", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/types": "7.0.0-beta.52" + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-bindify-decorators/package.json b/packages/babel-helper-bindify-decorators/package.json index bd6fbc2987af1..b0cf40f7e99ee 100644 --- a/packages/babel-helper-bindify-decorators/package.json +++ b/packages/babel-helper-bindify-decorators/package.json @@ -1,12 +1,12 @@ { "name": "@babel/helper-bindify-decorators", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to bindify decorators", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-bindify-decorators", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/traverse": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52" + "@babel/traverse": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-builder-binary-assignment-operator-visitor/package.json b/packages/babel-helper-builder-binary-assignment-operator-visitor/package.json index 5ea220b85c7d9..2434305fd4451 100644 --- a/packages/babel-helper-builder-binary-assignment-operator-visitor/package.json +++ b/packages/babel-helper-builder-binary-assignment-operator-visitor/package.json @@ -1,12 +1,12 @@ { "name": "@babel/helper-builder-binary-assignment-operator-visitor", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to build binary assignment operator visitors", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-builder-binary-assignment-operator-visitor", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-explode-assignable-expression": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52" + "@babel/helper-explode-assignable-expression": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-builder-react-jsx/package.json b/packages/babel-helper-builder-react-jsx/package.json index c94759406f3ee..c617d363bfa8b 100644 --- a/packages/babel-helper-builder-react-jsx/package.json +++ b/packages/babel-helper-builder-react-jsx/package.json @@ -1,12 +1,12 @@ { "name": "@babel/helper-builder-react-jsx", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to build react jsx", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-builder-react-jsx", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/types": "7.0.0-beta.52", + "@babel/types": "7.0.0-beta.54", "esutils": "^2.0.0" } } diff --git a/packages/babel-helper-call-delegate/package.json b/packages/babel-helper-call-delegate/package.json index 10e5827020095..616a8308a2fa4 100644 --- a/packages/babel-helper-call-delegate/package.json +++ b/packages/babel-helper-call-delegate/package.json @@ -1,13 +1,13 @@ { "name": "@babel/helper-call-delegate", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to call delegate", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-call-delegate", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-hoist-variables": "7.0.0-beta.52", - "@babel/traverse": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52" + "@babel/helper-hoist-variables": "7.0.0-beta.54", + "@babel/traverse": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-define-map/package.json b/packages/babel-helper-define-map/package.json index e386a7ecdd929..5d051af9e0a67 100644 --- a/packages/babel-helper-define-map/package.json +++ b/packages/babel-helper-define-map/package.json @@ -1,13 +1,13 @@ { "name": "@babel/helper-define-map", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to define a map", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-define-map", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-function-name": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52", + "@babel/helper-function-name": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54", "lodash": "^4.17.5" } } diff --git a/packages/babel-helper-explode-assignable-expression/package.json b/packages/babel-helper-explode-assignable-expression/package.json index ee2e64f2ed1f0..168596d628046 100644 --- a/packages/babel-helper-explode-assignable-expression/package.json +++ b/packages/babel-helper-explode-assignable-expression/package.json @@ -1,12 +1,12 @@ { "name": "@babel/helper-explode-assignable-expression", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to explode an assignable expression", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-explode-assignable-expression", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/traverse": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52" + "@babel/traverse": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-explode-class/package.json b/packages/babel-helper-explode-class/package.json index a81f8e9907992..78e10bab3c8d4 100644 --- a/packages/babel-helper-explode-class/package.json +++ b/packages/babel-helper-explode-class/package.json @@ -1,13 +1,13 @@ { "name": "@babel/helper-explode-class", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to explode class", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-explode-class", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-bindify-decorators": "7.0.0-beta.52", - "@babel/traverse": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52" + "@babel/helper-bindify-decorators": "7.0.0-beta.54", + "@babel/traverse": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-fixtures/package.json b/packages/babel-helper-fixtures/package.json index 21903185c6129..ec75d4e73d81f 100644 --- a/packages/babel-helper-fixtures/package.json +++ b/packages/babel-helper-fixtures/package.json @@ -1,6 +1,6 @@ { "name": "@babel/helper-fixtures", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to support fixtures", "author": "Sebastian McKenzie ", "license": "MIT", diff --git a/packages/babel-helper-function-name/package.json b/packages/babel-helper-function-name/package.json index 6d170650266ee..78b22f3804d60 100644 --- a/packages/babel-helper-function-name/package.json +++ b/packages/babel-helper-function-name/package.json @@ -1,13 +1,13 @@ { "name": "@babel/helper-function-name", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to change the property 'name' of every function", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-function-name", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-get-function-arity": "7.0.0-beta.52", - "@babel/template": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52" + "@babel/helper-get-function-arity": "7.0.0-beta.54", + "@babel/template": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-get-function-arity/package.json b/packages/babel-helper-get-function-arity/package.json index fbc1373dbdf06..59fee650e9b64 100644 --- a/packages/babel-helper-get-function-arity/package.json +++ b/packages/babel-helper-get-function-arity/package.json @@ -1,11 +1,11 @@ { "name": "@babel/helper-get-function-arity", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to get function arity", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-get-function-arity", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/types": "7.0.0-beta.52" + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-hoist-variables/package.json b/packages/babel-helper-hoist-variables/package.json index 08f38fb22f5f9..8da35e7334191 100644 --- a/packages/babel-helper-hoist-variables/package.json +++ b/packages/babel-helper-hoist-variables/package.json @@ -1,11 +1,11 @@ { "name": "@babel/helper-hoist-variables", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to hoist variables", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-hoist-variables", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/types": "7.0.0-beta.52" + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-member-expression-to-functions/package.json b/packages/babel-helper-member-expression-to-functions/package.json index 862bbed1bebc0..e9f5c3648c072 100644 --- a/packages/babel-helper-member-expression-to-functions/package.json +++ b/packages/babel-helper-member-expression-to-functions/package.json @@ -1,12 +1,12 @@ { "name": "@babel/helper-member-expression-to-functions", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to replace certain member expressions with function calls", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-member-expression-to-functions", "license": "MIT", "main": "lib/index.js", "author": "Justin Ridgewell ", "dependencies": { - "@babel/types": "7.0.0-beta.52" + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-module-imports/package.json b/packages/babel-helper-module-imports/package.json index c6ce4c27c241b..9c48d4171bdf9 100644 --- a/packages/babel-helper-module-imports/package.json +++ b/packages/babel-helper-module-imports/package.json @@ -1,6 +1,6 @@ { "name": "@babel/helper-module-imports", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel helper functions for inserting module loads", "author": "Logan Smyth ", "homepage": "https://babeljs.io/", @@ -8,10 +8,10 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-module-imports", "main": "lib/index.js", "dependencies": { - "@babel/types": "7.0.0-beta.52", + "@babel/types": "7.0.0-beta.54", "lodash": "^4.17.5" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-module-transforms/package.json b/packages/babel-helper-module-transforms/package.json index a790839118b14..b29d63ea07d0a 100644 --- a/packages/babel-helper-module-transforms/package.json +++ b/packages/babel-helper-module-transforms/package.json @@ -1,6 +1,6 @@ { "name": "@babel/helper-module-transforms", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel helper functions for implementing ES6 module transformations", "author": "Logan Smyth ", "homepage": "https://babeljs.io/", @@ -8,11 +8,11 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-module-transforms", "main": "lib/index.js", "dependencies": { - "@babel/helper-module-imports": "7.0.0-beta.52", - "@babel/helper-simple-access": "7.0.0-beta.52", - "@babel/helper-split-export-declaration": "7.0.0-beta.52", - "@babel/template": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52", + "@babel/helper-module-imports": "7.0.0-beta.54", + "@babel/helper-simple-access": "7.0.0-beta.54", + "@babel/helper-split-export-declaration": "7.0.0-beta.54", + "@babel/template": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54", "lodash": "^4.17.5" } } diff --git a/packages/babel-helper-module-transforms/src/normalize-and-load-metadata.js b/packages/babel-helper-module-transforms/src/normalize-and-load-metadata.js index 8ffda284447e3..3f2f86dfdd5a9 100644 --- a/packages/babel-helper-module-transforms/src/normalize-and-load-metadata.js +++ b/packages/babel-helper-module-transforms/src/normalize-and-load-metadata.js @@ -246,12 +246,18 @@ function getModuleMetadata( }); for (const metadata of sourceData.values()) { - if (metadata.importsNamespace.size > 0) { - metadata.interop = "namespace"; - continue; - } let needsDefault = false; let needsNamed = false; + + if (metadata.importsNamespace.size > 0) { + needsDefault = true; + needsNamed = true; + } + + if (metadata.reexportAll) { + needsNamed = true; + } + for (const importName of metadata.imports.values()) { if (importName === "default") needsDefault = true; else needsNamed = true; diff --git a/packages/babel-helper-optimise-call-expression/package.json b/packages/babel-helper-optimise-call-expression/package.json index 1d9f482dc026e..7b27f39621e0e 100644 --- a/packages/babel-helper-optimise-call-expression/package.json +++ b/packages/babel-helper-optimise-call-expression/package.json @@ -1,11 +1,11 @@ { "name": "@babel/helper-optimise-call-expression", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to optimise call expression", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-optimise-call-expression", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/types": "7.0.0-beta.52" + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-plugin-test-runner/package.json b/packages/babel-helper-plugin-test-runner/package.json index 87a85cec193ae..fcd1a360100b0 100644 --- a/packages/babel-helper-plugin-test-runner/package.json +++ b/packages/babel-helper-plugin-test-runner/package.json @@ -1,11 +1,11 @@ { "name": "@babel/helper-plugin-test-runner", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to support test runner", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-plugin-test-runner", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-transform-fixture-test-runner": "7.0.0-beta.52" + "@babel/helper-transform-fixture-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-plugin-utils/package.json b/packages/babel-helper-plugin-utils/package.json index 85af494b503ed..563f553554efc 100644 --- a/packages/babel-helper-plugin-utils/package.json +++ b/packages/babel-helper-plugin-utils/package.json @@ -1,6 +1,6 @@ { "name": "@babel/helper-plugin-utils", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "General utilities for plugins to use", "author": "Logan Smyth ", "homepage": "https://babeljs.io/", diff --git a/packages/babel-helper-regex/package.json b/packages/babel-helper-regex/package.json index 2178b8615edd0..e77cf8411d398 100644 --- a/packages/babel-helper-regex/package.json +++ b/packages/babel-helper-regex/package.json @@ -1,6 +1,6 @@ { "name": "@babel/helper-regex", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to check for literal RegEx", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-regex", "license": "MIT", diff --git a/packages/babel-helper-remap-async-to-generator/package.json b/packages/babel-helper-remap-async-to-generator/package.json index 2cffd38236508..08e2f08a90a88 100644 --- a/packages/babel-helper-remap-async-to-generator/package.json +++ b/packages/babel-helper-remap-async-to-generator/package.json @@ -1,15 +1,15 @@ { "name": "@babel/helper-remap-async-to-generator", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to remap async functions to generators", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-remap-async-to-generator", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-annotate-as-pure": "7.0.0-beta.52", - "@babel/helper-wrap-function": "7.0.0-beta.52", - "@babel/template": "7.0.0-beta.52", - "@babel/traverse": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52" + "@babel/helper-annotate-as-pure": "7.0.0-beta.54", + "@babel/helper-wrap-function": "7.0.0-beta.54", + "@babel/template": "7.0.0-beta.54", + "@babel/traverse": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-replace-supers/package.json b/packages/babel-helper-replace-supers/package.json index 163a64047ad31..738fc0562c3f5 100644 --- a/packages/babel-helper-replace-supers/package.json +++ b/packages/babel-helper-replace-supers/package.json @@ -1,14 +1,14 @@ { "name": "@babel/helper-replace-supers", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper function to replace supers", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-replace-supers", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-member-expression-to-functions": "7.0.0-beta.52", - "@babel/helper-optimise-call-expression": "7.0.0-beta.52", - "@babel/traverse": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52" + "@babel/helper-member-expression-to-functions": "7.0.0-beta.54", + "@babel/helper-optimise-call-expression": "7.0.0-beta.54", + "@babel/traverse": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-simple-access/package.json b/packages/babel-helper-simple-access/package.json index c0280d58324bf..4e3f9a9af0807 100644 --- a/packages/babel-helper-simple-access/package.json +++ b/packages/babel-helper-simple-access/package.json @@ -1,6 +1,6 @@ { "name": "@babel/helper-simple-access", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel helper for ensuring that access to a given value is performed through simple accesses", "author": "Logan Smyth ", "homepage": "https://babeljs.io/", @@ -8,8 +8,8 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-simple-access", "main": "lib/index.js", "dependencies": { - "@babel/template": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52", + "@babel/template": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54", "lodash": "^4.17.5" } } diff --git a/packages/babel-helper-split-export-declaration/package.json b/packages/babel-helper-split-export-declaration/package.json index 18583d85919a4..1437f778c3546 100644 --- a/packages/babel-helper-split-export-declaration/package.json +++ b/packages/babel-helper-split-export-declaration/package.json @@ -1,11 +1,11 @@ { "name": "@babel/helper-split-export-declaration", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-split-export-declaration", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/types": "7.0.0-beta.52" + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helper-transform-fixture-test-runner/package.json b/packages/babel-helper-transform-fixture-test-runner/package.json index 3ea7d8913d251..5ca391a5c2f1d 100644 --- a/packages/babel-helper-transform-fixture-test-runner/package.json +++ b/packages/babel-helper-transform-fixture-test-runner/package.json @@ -1,6 +1,6 @@ { "name": "@babel/helper-transform-fixture-test-runner", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Transform test runner for @babel/helper-fixtures module", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -8,10 +8,10 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-transform-fixture-test-runner", "main": "lib/index.js", "dependencies": { - "@babel/code-frame": "7.0.0-beta.52", - "@babel/core": "7.0.0-beta.52", - "@babel/helper-fixtures": "7.0.0-beta.52", - "@babel/polyfill": "7.0.0-beta.52", + "@babel/code-frame": "7.0.0-beta.54", + "@babel/core": "7.0.0-beta.54", + "@babel/helper-fixtures": "7.0.0-beta.54", + "@babel/polyfill": "7.0.0-beta.54", "jest": "^22.4.2", "jest-diff": "^22.4.0", "lodash": "^4.17.5", diff --git a/packages/babel-helper-transform-fixture-test-runner/src/index.js b/packages/babel-helper-transform-fixture-test-runner/src/index.js index 06b6121ae6284..118d668a0a633 100644 --- a/packages/babel-helper-transform-fixture-test-runner/src/index.js +++ b/packages/babel-helper-transform-fixture-test-runner/src/index.js @@ -345,44 +345,44 @@ export default function( continue; } - it( + const testFn = task.disabled ? it.skip : it; + + testFn( task.title, - !task.disabled && - function() { - function runTask() { - run(task); - } - defaults(task.options, { - sourceMap: !!(task.sourceMappings || task.sourceMap), - }); + function() { + function runTask() { + run(task); + } - extend(task.options, taskOpts); + defaults(task.options, { + sourceMap: !!(task.sourceMappings || task.sourceMap), + }); - if (dynamicOpts) dynamicOpts(task.options, task); + extend(task.options, taskOpts); - const throwMsg = task.options.throws; - if (throwMsg) { - // internal api doesn't have this option but it's best not to pollute - // the options object with useless options - delete task.options.throws; + if (dynamicOpts) dynamicOpts(task.options, task); - assert.throws(runTask, function(err) { - return ( - throwMsg === true || err.message.indexOf(throwMsg) >= 0 - ); - }); - } else { - if (task.exec.code) { - const result = run(task); - if (result && typeof result.then === "function") { - return result; - } - } else { - runTask(); + const throwMsg = task.options.throws; + if (throwMsg) { + // internal api doesn't have this option but it's best not to pollute + // the options object with useless options + delete task.options.throws; + + assert.throws(runTask, function(err) { + return throwMsg === true || err.message.indexOf(throwMsg) >= 0; + }); + } else { + if (task.exec.code) { + const result = run(task); + if (result && typeof result.then === "function") { + return result; } + } else { + runTask(); } - }, + } + }, ); } }); diff --git a/packages/babel-helper-wrap-function/package.json b/packages/babel-helper-wrap-function/package.json index e8d34d685b145..89846cdd23959 100644 --- a/packages/babel-helper-wrap-function/package.json +++ b/packages/babel-helper-wrap-function/package.json @@ -1,14 +1,14 @@ { "name": "@babel/helper-wrap-function", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Helper to wrap functions inside a function call.", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-wrap-function", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-function-name": "7.0.0-beta.52", - "@babel/template": "7.0.0-beta.52", - "@babel/traverse": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52" + "@babel/helper-function-name": "7.0.0-beta.54", + "@babel/template": "7.0.0-beta.54", + "@babel/traverse": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-helpers/package.json b/packages/babel-helpers/package.json index 4034628d876f1..f9b1eb3e26b22 100644 --- a/packages/babel-helpers/package.json +++ b/packages/babel-helpers/package.json @@ -1,6 +1,6 @@ { "name": "@babel/helpers", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Collection of helper functions used by Babel transforms.", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -8,11 +8,11 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helpers", "main": "lib/index.js", "dependencies": { - "@babel/template": "7.0.0-beta.52", - "@babel/traverse": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52" + "@babel/template": "7.0.0-beta.54", + "@babel/traverse": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54" }, "devDependencies": { - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-highlight/package.json b/packages/babel-highlight/package.json index 3a6be5a44fa31..e3dde46ae5540 100644 --- a/packages/babel-highlight/package.json +++ b/packages/babel-highlight/package.json @@ -1,6 +1,6 @@ { "name": "@babel/highlight", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Syntax highlight JavaScript strings for output in terminals.", "author": "suchipi ", "homepage": "https://babeljs.io/", diff --git a/packages/babel-node/package.json b/packages/babel-node/package.json index d29792000de8f..a309125bb56b4 100644 --- a/packages/babel-node/package.json +++ b/packages/babel-node/package.json @@ -1,6 +1,6 @@ { "name": "@babel/node", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel command line", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -16,8 +16,8 @@ "compiler" ], "dependencies": { - "@babel/polyfill": "7.0.0-beta.52", - "@babel/register": "7.0.0-beta.52", + "@babel/polyfill": "7.0.0-beta.54", + "@babel/register": "7.0.0-beta.54", "commander": "^2.8.1", "fs-readdir-recursive": "^1.0.0", "lodash": "^4.17.5", @@ -28,8 +28,8 @@ "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-fixtures": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-fixtures": "7.0.0-beta.54" }, "bin": { "babel-node": "./bin/babel-node.js" diff --git a/packages/babel-parser/package.json b/packages/babel-parser/package.json index 94276658ac84e..f2d02c80562ba 100644 --- a/packages/babel-parser/package.json +++ b/packages/babel-parser/package.json @@ -1,6 +1,6 @@ { "name": "@babel/parser", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "A JavaScript parser", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -23,7 +23,7 @@ "node": ">=6.0.0" }, "devDependencies": { - "@babel/helper-fixtures": "7.0.0-beta.52", + "@babel/helper-fixtures": "7.0.0-beta.54", "charcodes": "0.1.0", "unicode-11.0.0": "^0.7.7" }, diff --git a/packages/babel-parser/src/parser/expression.js b/packages/babel-parser/src/parser/expression.js index 47a34a18eab72..8fce43667b02b 100644 --- a/packages/babel-parser/src/parser/expression.js +++ b/packages/babel-parser/src/parser/expression.js @@ -1037,7 +1037,7 @@ export default class ExpressionParser extends LValParser { } else if (!this.hasPlugin("importMeta")) { this.raise( id.start, - `Dynamic imports require a parameter: import('a.js').then`, + `Dynamic imports require a parameter: import('a.js')`, ); } } diff --git a/packages/babel-parser/src/parser/index.js b/packages/babel-parser/src/parser/index.js index 8042410ff6857..6d6d9cfd8b7b6 100644 --- a/packages/babel-parser/src/parser/index.js +++ b/packages/babel-parser/src/parser/index.js @@ -1,7 +1,7 @@ // @flow import type { Options } from "../options"; -import type { File } from "../types"; +import type { File, JSXOpeningElement } from "../types"; import type { PluginList } from "../plugin-utils"; import { getOptions } from "../options"; import StatementParser from "./statement"; @@ -11,6 +11,11 @@ export type PluginsMap = { }; export default class Parser extends StatementParser { + // Forward-declaration so typescript plugin can override jsx plugin + +jsxParseOpeningElementAfterName: ( + node: JSXOpeningElement, + ) => JSXOpeningElement; + constructor(options: ?Options, input: string) { options = getOptions(options); super(options, input); diff --git a/packages/babel-parser/src/plugins/jsx/index.js b/packages/babel-parser/src/plugins/jsx/index.js index 6ac520437727a..0d32ea98d11f5 100644 --- a/packages/babel-parser/src/plugins/jsx/index.js +++ b/packages/babel-parser/src/plugins/jsx/index.js @@ -358,11 +358,18 @@ export default (superClass: Class): Class => this.expect(tt.jsxTagEnd); return this.finishNode(node, "JSXOpeningFragment"); } - node.attributes = []; node.name = this.jsxParseElementName(); + return this.jsxParseOpeningElementAfterName(node); + } + + jsxParseOpeningElementAfterName( + node: N.JSXOpeningElement, + ): N.JSXOpeningElement { + const attributes: N.JSXAttribute[] = []; while (!this.match(tt.slash) && !this.match(tt.jsxTagEnd)) { - node.attributes.push(this.jsxParseAttribute()); + attributes.push(this.jsxParseAttribute()); } + node.attributes = attributes; node.selfClosing = this.eat(tt.slash); this.expect(tt.jsxTagEnd); return this.finishNode(node, "JSXOpeningElement"); diff --git a/packages/babel-parser/src/plugins/typescript.js b/packages/babel-parser/src/plugins/typescript.js index e9abe7276f221..c1fc563479c2c 100644 --- a/packages/babel-parser/src/plugins/typescript.js +++ b/packages/babel-parser/src/plugins/typescript.js @@ -836,10 +836,12 @@ export default (superClass: Class): Class => return this.finishNode(node, "TSTypeAssertion"); } - tsTryParseTypeArgumentsInExpression(): ?N.TsTypeParameterInstantiation { + tsTryParseTypeArgumentsInExpression( + eatNextToken: boolean, + ): ?N.TsTypeParameterInstantiation { return this.tsTryParseAndCatch(() => { const res = this.tsParseTypeArguments(); - this.expect(tt.parenL); + if (eatNextToken) this.expect(tt.parenL); return res; }); } @@ -887,6 +889,16 @@ export default (superClass: Class): Class => return this.finishNode(node, "TSTypeAliasDeclaration"); } + tsInNoContext(cb: () => T): T { + const oldContext = this.state.context; + this.state.context = [oldContext[0]]; + try { + return cb(); + } finally { + this.state.context = oldContext; + } + } + /** * Runs `cb` in a type context. * This should be called one token *before* the first type token, @@ -1241,13 +1253,19 @@ export default (superClass: Class): Class => tsParseTypeArguments(): N.TsTypeParameterInstantiation { const node = this.startNode(); - node.params = this.tsInType(() => { - this.expectRelational("<"); - return this.tsParseDelimitedList( - "TypeParametersOrArguments", - this.tsParseType.bind(this), - ); - }); + node.params = this.tsInType(() => + // Temporarily remove a JSX parsing context, which makes us scan different tokens. + this.tsInNoContext(() => { + this.expectRelational("<"); + return this.tsParseDelimitedList( + "TypeParametersOrArguments", + this.tsParseType.bind(this), + ); + }), + ); + // This reads the next token after the `>` too, so do this in the enclosing context. + // But be sure not to parse a regex in the jsx expression ` />`, so set exprAllowed = false + this.state.exprAllowed = false; this.expectRelational(">"); return this.finishNode(node, "TSTypeParameterInstantiation"); } @@ -1375,7 +1393,10 @@ export default (superClass: Class): Class => node.callee = base; // May be passing type arguments. But may just be the `<` operator. - const typeArguments = this.tsTryParseTypeArgumentsInExpression(); // Also eats the "(" + // Note: With `/*eatNextToken*/ true` this also eats the `(` following the type arguments + const typeArguments = this.tsTryParseTypeArgumentsInExpression( + /*eatNextToken*/ true, + ); if (typeArguments) { // possibleAsync always false here, because we would have handled it above. // $FlowIgnore (won't be any undefined arguments) @@ -2102,4 +2123,14 @@ export default (superClass: Class): Class => // Avoid unnecessary lookahead in checking for abstract class unless needed! return super.canHaveLeadingDecorator() || this.isAbstractClass(); } + + jsxParseOpeningElementAfterName( + node: N.JSXOpeningElement, + ): N.JSXOpeningElement { + const typeArguments = this.tsTryParseTypeArgumentsInExpression( + /*eatNextToken*/ false, + ); + if (typeArguments) node.typeParameters = typeArguments; + return super.jsxParseOpeningElementAfterName(node); + } }; diff --git a/packages/babel-parser/src/tokenizer/index.js b/packages/babel-parser/src/tokenizer/index.js index 69a845b52533a..9671f3bbcc069 100644 --- a/packages/babel-parser/src/tokenizer/index.js +++ b/packages/babel-parser/src/tokenizer/index.js @@ -460,7 +460,7 @@ export default class Tokenizer extends LocationParser { readToken_slash(): void { // '/' - if (this.state.exprAllowed) { + if (this.state.exprAllowed && !this.state.inType) { ++this.state.pos; this.readRegexp(); return; diff --git a/packages/babel-parser/src/types.js b/packages/babel-parser/src/types.js index b658f7b0d7155..db490dc85aa2a 100644 --- a/packages/babel-parser/src/types.js +++ b/packages/babel-parser/src/types.js @@ -599,7 +599,7 @@ export type TemplateLiteral = NodeBase & { expressions: $ReadOnlyArray, }; -export type TaggedTmplateExpression = NodeBase & { +export type TaggedTemplateExpression = NodeBase & { type: "TaggedTemplateExpression", tag: Expression, quasi: TemplateLiteral, @@ -846,7 +846,13 @@ export type JSXEmptyExpression = Node; export type JSXSpreadChild = Node; export type JSXExpressionContainer = Node; export type JSXAttribute = Node; -export type JSXOpeningElement = Node; +export type JSXOpeningElement = NodeBase & { + type: "JSXOpeningElement", + name: JSXNamespacedName | JSXMemberExpression, + typeParameters?: ?TypeParameterInstantiationBase, // TODO: Not in spec + attributes: $ReadOnlyArray, + selfClosing: boolean, +}; export type JSXClosingElement = Node; export type JSXElement = Node; export type JSXOpeningFragment = Node; diff --git a/packages/babel-parser/test/fixtures/experimental/dynamic-import/direct-calls-only/options.json b/packages/babel-parser/test/fixtures/experimental/dynamic-import/direct-calls-only/options.json index 468132c26a5b8..599298db46143 100644 --- a/packages/babel-parser/test/fixtures/experimental/dynamic-import/direct-calls-only/options.json +++ b/packages/babel-parser/test/fixtures/experimental/dynamic-import/direct-calls-only/options.json @@ -1,3 +1,3 @@ { - "throws": "Dynamic imports require a parameter: import('a.js').then (2:9)" + "throws": "Dynamic imports require a parameter: import('a.js') (2:9)" } diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/input.js b/packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/input.js new file mode 100644 index 0000000000000..520e35ee90978 --- /dev/null +++ b/packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/input.js @@ -0,0 +1,2 @@ +>; +/>; diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/options.json b/packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/options.json new file mode 100644 index 0000000000000..b2578f32c45a4 --- /dev/null +++ b/packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/options.json @@ -0,0 +1,3 @@ +{ + "plugins": ["jsx", "typescript"] +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/output.json b/packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/output.json new file mode 100644 index 0000000000000..15f1e7ebdee19 --- /dev/null +++ b/packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/output.json @@ -0,0 +1,259 @@ +{ + "type": "File", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "sourceType": "module", + "interpreter": null, + "body": [ + { + "type": "ExpressionStatement", + "start": 0, + "end": 16, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 16 + } + }, + "expression": { + "type": "JSXElement", + "start": 0, + "end": 15, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 15 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 0, + "end": 11, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 11 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 1, + "end": 2, + "loc": { + "start": { + "line": 1, + "column": 1 + }, + "end": { + "line": 1, + "column": 2 + } + }, + "name": "C" + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "start": 2, + "end": 10, + "loc": { + "start": { + "line": 1, + "column": 2 + }, + "end": { + "line": 1, + "column": 10 + } + }, + "params": [ + { + "type": "TSNumberKeyword", + "start": 3, + "end": 9, + "loc": { + "start": { + "line": 1, + "column": 3 + }, + "end": { + "line": 1, + "column": 9 + } + } + } + ] + }, + "attributes": [], + "selfClosing": false + }, + "closingElement": { + "type": "JSXClosingElement", + "start": 11, + "end": 15, + "loc": { + "start": { + "line": 1, + "column": 11 + }, + "end": { + "line": 1, + "column": 15 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 13, + "end": 14, + "loc": { + "start": { + "line": 1, + "column": 13 + }, + "end": { + "line": 1, + "column": 14 + } + }, + "name": "C" + } + }, + "children": [] + } + }, + { + "type": "ExpressionStatement", + "start": 17, + "end": 30, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 13 + } + }, + "expression": { + "type": "JSXElement", + "start": 17, + "end": 29, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 12 + } + }, + "openingElement": { + "type": "JSXOpeningElement", + "start": 17, + "end": 29, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 12 + } + }, + "name": { + "type": "JSXIdentifier", + "start": 18, + "end": 19, + "loc": { + "start": { + "line": 2, + "column": 1 + }, + "end": { + "line": 2, + "column": 2 + } + }, + "name": "C" + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "start": 19, + "end": 27, + "loc": { + "start": { + "line": 2, + "column": 2 + }, + "end": { + "line": 2, + "column": 10 + } + }, + "params": [ + { + "type": "TSNumberKeyword", + "start": 20, + "end": 26, + "loc": { + "start": { + "line": 2, + "column": 3 + }, + "end": { + "line": 2, + "column": 9 + } + } + } + ] + }, + "attributes": [], + "selfClosing": true + }, + "closingElement": null, + "children": [] + } + } + ], + "directives": [] + } +} \ No newline at end of file diff --git a/packages/babel-plugin-external-helpers/package.json b/packages/babel-plugin-external-helpers/package.json index bef5a893dcbe7..e80ac8f5fb336 100644 --- a/packages/babel-plugin-external-helpers/package.json +++ b/packages/babel-plugin-external-helpers/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-external-helpers", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "This plugin contains helper functions that’ll be placed at the top of the generated code", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-external-helpers", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-async-generator-functions/package.json b/packages/babel-plugin-proposal-async-generator-functions/package.json index 4dbc2746d25be..93dd4dc7a58f6 100644 --- a/packages/babel-plugin-proposal-async-generator-functions/package.json +++ b/packages/babel-plugin-proposal-async-generator-functions/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-async-generator-functions", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Turn async generator functions into ES2015 generators", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-async-generator-functions", "license": "MIT", @@ -9,15 +9,15 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/helper-remap-async-to-generator": "7.0.0-beta.52", - "@babel/plugin-syntax-async-generators": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/helper-remap-async-to-generator": "7.0.0-beta.54", + "@babel/plugin-syntax-async-generators": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-class-properties/package.json b/packages/babel-plugin-proposal-class-properties/package.json index 42734fef06d68..b6d8bfd18d498 100644 --- a/packages/babel-plugin-proposal-class-properties/package.json +++ b/packages/babel-plugin-proposal-class-properties/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-class-properties", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "This plugin transforms static class properties as well as properties declared with the property initializer syntax", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-class-properties", "license": "MIT", @@ -9,18 +9,18 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-function-name": "7.0.0-beta.52", - "@babel/helper-member-expression-to-functions": "7.0.0-beta.52", - "@babel/helper-optimise-call-expression": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/helper-replace-supers": "7.0.0-beta.52", - "@babel/plugin-syntax-class-properties": "7.0.0-beta.52" + "@babel/helper-function-name": "7.0.0-beta.54", + "@babel/helper-member-expression-to-functions": "7.0.0-beta.54", + "@babel/helper-optimise-call-expression": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/helper-replace-supers": "7.0.0-beta.54", + "@babel/plugin-syntax-class-properties": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-decorators/package.json b/packages/babel-plugin-proposal-decorators/package.json index 99e28fa3202ec..838ae8aba7aa4 100644 --- a/packages/babel-plugin-proposal-decorators/package.json +++ b/packages/babel-plugin-proposal-decorators/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-decorators", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "author": "Logan Smyth ", "license": "MIT", "description": "Compile class and object decorators to ES5", @@ -12,14 +12,14 @@ "decorators" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-decorators": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-decorators": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-do-expressions/package.json b/packages/babel-plugin-proposal-do-expressions/package.json index 0b4f3f7578c20..a378b5fb7ba4f 100644 --- a/packages/babel-plugin-proposal-do-expressions/package.json +++ b/packages/babel-plugin-proposal-do-expressions/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-do-expressions", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile do expressions to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-do-expressions", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-do-expressions": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-do-expressions": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-export-default-from/package.json b/packages/babel-plugin-proposal-export-default-from/package.json index b482927abe20e..4a90b77458876 100644 --- a/packages/babel-plugin-proposal-export-default-from/package.json +++ b/packages/babel-plugin-proposal-export-default-from/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-export-default-from", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile export default to ES2015", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-export-default-from", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-export-default-from": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-export-default-from": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-export-namespace-from/package.json b/packages/babel-plugin-proposal-export-namespace-from/package.json index f1a001008c7af..8e5f5c8a0c39e 100644 --- a/packages/babel-plugin-proposal-export-namespace-from/package.json +++ b/packages/babel-plugin-proposal-export-namespace-from/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-export-namespace-from", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile export namespace to ES2015", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-export-namespace-from", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-export-namespace-from": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-export-namespace-from": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-function-bind/package.json b/packages/babel-plugin-proposal-function-bind/package.json index 12266f06b6240..021c5389cb582 100644 --- a/packages/babel-plugin-proposal-function-bind/package.json +++ b/packages/babel-plugin-proposal-function-bind/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-function-bind", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile function bind operator to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-function-bind", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-function-bind": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-function-bind": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-function-sent/package.json b/packages/babel-plugin-proposal-function-sent/package.json index c170ab6db6dd7..27c13db8fe4c4 100644 --- a/packages/babel-plugin-proposal-function-sent/package.json +++ b/packages/babel-plugin-proposal-function-sent/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-function-sent", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile the function.sent meta propety to valid ES2015 code", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-function-sent", "license": "MIT", @@ -9,15 +9,15 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/helper-wrap-function": "7.0.0-beta.52", - "@babel/plugin-syntax-function-sent": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/helper-wrap-function": "7.0.0-beta.54", + "@babel/plugin-syntax-function-sent": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-json-strings/package.json b/packages/babel-plugin-proposal-json-strings/package.json index 1f161ef256f1a..07683d5df55c9 100644 --- a/packages/babel-plugin-proposal-json-strings/package.json +++ b/packages/babel-plugin-proposal-json-strings/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-json-strings", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Escape U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-json-strings", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-json-strings": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-json-strings": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-logical-assignment-operators/package.json b/packages/babel-plugin-proposal-logical-assignment-operators/package.json index 7c528c028a709..5195dedc1618e 100644 --- a/packages/babel-plugin-proposal-logical-assignment-operators/package.json +++ b/packages/babel-plugin-proposal-logical-assignment-operators/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-logical-assignment-operators", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Transforms logical assignment operators into short-circuited assignments", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-logical-assignment-operators", "license": "MIT", @@ -9,16 +9,16 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-logical-assignment-operators": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-logical-assignment-operators": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52", - "@babel/plugin-proposal-nullish-coalescing-operator": "7.0.0-beta.52", - "@babel/plugin-syntax-nullish-coalescing-operator": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54", + "@babel/plugin-proposal-nullish-coalescing-operator": "7.0.0-beta.54", + "@babel/plugin-syntax-nullish-coalescing-operator": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-nullish-coalescing-operator/package.json b/packages/babel-plugin-proposal-nullish-coalescing-operator/package.json index a54231535c9d6..38d78162b2dd8 100644 --- a/packages/babel-plugin-proposal-nullish-coalescing-operator/package.json +++ b/packages/babel-plugin-proposal-nullish-coalescing-operator/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-nullish-coalescing-operator", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Remove nullish coalescing operator", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-nullish-coalescing-opearator", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-nullish-coalescing-operator": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-nullish-coalescing-operator": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-numeric-separator/package.json b/packages/babel-plugin-proposal-numeric-separator/package.json index 798b411f8cc7c..34432618db464 100644 --- a/packages/babel-plugin-proposal-numeric-separator/package.json +++ b/packages/babel-plugin-proposal-numeric-separator/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-numeric-separator", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Remove numeric separators from Decimal, Binary, Hex and Octal literals", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-numeric-separator", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-numeric-separator": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-numeric-separator": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-object-rest-spread/package.json b/packages/babel-plugin-proposal-object-rest-spread/package.json index b3f061dcd2b1c..2ae127ca2962d 100644 --- a/packages/babel-plugin-proposal-object-rest-spread/package.json +++ b/packages/babel-plugin-proposal-object-rest-spread/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-object-rest-spread", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile object rest and spread to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-object-rest-spread", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-optional-catch-binding/package.json b/packages/babel-plugin-proposal-optional-catch-binding/package.json index abdb9e31f23a4..f6ac349b992ff 100644 --- a/packages/babel-plugin-proposal-optional-catch-binding/package.json +++ b/packages/babel-plugin-proposal-optional-catch-binding/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-optional-catch-binding", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile optional catch bindings", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-optional-catch-binding", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-optional-chaining/package.json b/packages/babel-plugin-proposal-optional-chaining/package.json index c3dd6fb171716..28be4acbb7801 100644 --- a/packages/babel-plugin-proposal-optional-chaining/package.json +++ b/packages/babel-plugin-proposal-optional-chaining/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-optional-chaining", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Transform optional chaining operators into a series of nil checks", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-optional-chaining", "license": "MIT", @@ -9,15 +9,15 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-optional-chaining": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-optional-chaining": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52", - "@babel/plugin-transform-block-scoping": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54", + "@babel/plugin-transform-block-scoping": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-pipeline-operator/package.json b/packages/babel-plugin-proposal-pipeline-operator/package.json index 86b144a3afa96..ff5e3c8b24370 100644 --- a/packages/babel-plugin-proposal-pipeline-operator/package.json +++ b/packages/babel-plugin-proposal-pipeline-operator/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-pipeline-operator", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Transform pipeline operator into call expressions", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-pipeline-operator", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-pipeline-operator": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-pipeline-operator": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-throw-expressions/package.json b/packages/babel-plugin-proposal-throw-expressions/package.json index 85815624cf668..3d90ca82bb8fe 100644 --- a/packages/babel-plugin-proposal-throw-expressions/package.json +++ b/packages/babel-plugin-proposal-throw-expressions/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-throw-expressions", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Wraps Throw Expressions in an IIFE", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-throw-expressions", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-throw-expressions": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-throw-expressions": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-proposal-unicode-property-regex/package.json b/packages/babel-plugin-proposal-unicode-property-regex/package.json index 99bd0217f5c37..638bb812f7e7a 100644 --- a/packages/babel-plugin-proposal-unicode-property-regex/package.json +++ b/packages/babel-plugin-proposal-unicode-property-regex/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-proposal-unicode-property-regex", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile Unicode property escapes in Unicode regular expressions to ES5.", "homepage": "https://babeljs.io/", "license": "MIT", @@ -19,15 +19,15 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-unicode-property-regex", "bugs": "https://github.com/babel/babel/issues", "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/helper-regex": "7.0.0-beta.52", + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/helper-regex": "7.0.0-beta.54", "regexpu-core": "^4.2.0" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-async-generators/package.json b/packages/babel-plugin-syntax-async-generators/package.json index 1d1a42aa17eee..7e1f96e21079e 100644 --- a/packages/babel-plugin-syntax-async-generators/package.json +++ b/packages/babel-plugin-syntax-async-generators/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-async-generators", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of async generator functions", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-async-generators", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-bigint/package.json b/packages/babel-plugin-syntax-bigint/package.json index 5c5ab85e854d5..b608bc977e6f2 100644 --- a/packages/babel-plugin-syntax-bigint/package.json +++ b/packages/babel-plugin-syntax-bigint/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-bigint", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of BigInt literals", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-bigint", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-class-properties/package.json b/packages/babel-plugin-syntax-class-properties/package.json index c9f7e734e46bb..7891569c1e9b3 100644 --- a/packages/babel-plugin-syntax-class-properties/package.json +++ b/packages/babel-plugin-syntax-class-properties/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-class-properties", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of class properties", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-class-properties", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-decorators/package.json b/packages/babel-plugin-syntax-decorators/package.json index 279541a01b2d9..0e54b161f239d 100644 --- a/packages/babel-plugin-syntax-decorators/package.json +++ b/packages/babel-plugin-syntax-decorators/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-decorators", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of decorators", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-decorators", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-do-expressions/package.json b/packages/babel-plugin-syntax-do-expressions/package.json index a0aa1fbd6ab43..94f0b541b33ae 100644 --- a/packages/babel-plugin-syntax-do-expressions/package.json +++ b/packages/babel-plugin-syntax-do-expressions/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-do-expressions", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of do expressions", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-do-expressions", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-dynamic-import/package.json b/packages/babel-plugin-syntax-dynamic-import/package.json index 6f75a7461477e..c6c3c4fe15913 100644 --- a/packages/babel-plugin-syntax-dynamic-import/package.json +++ b/packages/babel-plugin-syntax-dynamic-import/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-dynamic-import", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of import()", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-dynamic-import", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-export-default-from/package.json b/packages/babel-plugin-syntax-export-default-from/package.json index 3777bb5095dbf..cd8cd0fb3ba14 100644 --- a/packages/babel-plugin-syntax-export-default-from/package.json +++ b/packages/babel-plugin-syntax-export-default-from/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-export-default-from", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of export default from", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-export-default-from", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-export-namespace-from/package.json b/packages/babel-plugin-syntax-export-namespace-from/package.json index 82ff0390657eb..badbbd1ccc3af 100644 --- a/packages/babel-plugin-syntax-export-namespace-from/package.json +++ b/packages/babel-plugin-syntax-export-namespace-from/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-export-namespace-from", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of export namespace from", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-export-namespace-from", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-flow/package.json b/packages/babel-plugin-syntax-flow/package.json index 8b8e86432d216..fa2589892d05f 100644 --- a/packages/babel-plugin-syntax-flow/package.json +++ b/packages/babel-plugin-syntax-flow/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-flow", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of the flow syntax", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-flow", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-function-bind/package.json b/packages/babel-plugin-syntax-function-bind/package.json index d1f614488c6c2..d23f30854e3ee 100644 --- a/packages/babel-plugin-syntax-function-bind/package.json +++ b/packages/babel-plugin-syntax-function-bind/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-function-bind", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of function bind", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-function-bind", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-function-sent/package.json b/packages/babel-plugin-syntax-function-sent/package.json index 64de4fe435711..9bcf5b89839b4 100644 --- a/packages/babel-plugin-syntax-function-sent/package.json +++ b/packages/babel-plugin-syntax-function-sent/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-function-sent", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of the function.sent meta property", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-function-sent", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-import-meta/package.json b/packages/babel-plugin-syntax-import-meta/package.json index 79f63e81a53ed..8070111084c62 100644 --- a/packages/babel-plugin-syntax-import-meta/package.json +++ b/packages/babel-plugin-syntax-import-meta/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-import-meta", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of import.meta", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-import-meta", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-json-strings/package.json b/packages/babel-plugin-syntax-json-strings/package.json index 942e71ec4315e..caae047f4e46b 100644 --- a/packages/babel-plugin-syntax-json-strings/package.json +++ b/packages/babel-plugin-syntax-json-strings/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-json-strings", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of the U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-json-strings", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-jsx/package.json b/packages/babel-plugin-syntax-jsx/package.json index 3960863d794fa..7c29b9cf3914b 100644 --- a/packages/babel-plugin-syntax-jsx/package.json +++ b/packages/babel-plugin-syntax-jsx/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-jsx", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of jsx", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-jsx", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-logical-assignment-operators/package.json b/packages/babel-plugin-syntax-logical-assignment-operators/package.json index f4ca6896b66d4..4a2e88151197c 100644 --- a/packages/babel-plugin-syntax-logical-assignment-operators/package.json +++ b/packages/babel-plugin-syntax-logical-assignment-operators/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-logical-assignment-operators", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of the logical assignment operators", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-logical-assignment-operators", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-nullish-coalescing-operator/package.json b/packages/babel-plugin-syntax-nullish-coalescing-operator/package.json index e91c936914dfd..04d8f9432033c 100644 --- a/packages/babel-plugin-syntax-nullish-coalescing-operator/package.json +++ b/packages/babel-plugin-syntax-nullish-coalescing-operator/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-nullish-coalescing-operator", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of the nullish-coalescing operator", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-nullish-coalescing-operator", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-numeric-separator/package.json b/packages/babel-plugin-syntax-numeric-separator/package.json index 4ecc73e6dcf10..9d890a74884e9 100644 --- a/packages/babel-plugin-syntax-numeric-separator/package.json +++ b/packages/babel-plugin-syntax-numeric-separator/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-numeric-separator", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of Decimal, Binary, Hex and Octal literals that contain a Numeric Literal Separator", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-numeric-separator", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-object-rest-spread/package.json b/packages/babel-plugin-syntax-object-rest-spread/package.json index cbe46ecfb8741..6f50878128fe8 100644 --- a/packages/babel-plugin-syntax-object-rest-spread/package.json +++ b/packages/babel-plugin-syntax-object-rest-spread/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-object-rest-spread", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of object rest/spread", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-object-rest-spread", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-optional-catch-binding/package.json b/packages/babel-plugin-syntax-optional-catch-binding/package.json index f890870d08cfb..0d57ddc26e01c 100644 --- a/packages/babel-plugin-syntax-optional-catch-binding/package.json +++ b/packages/babel-plugin-syntax-optional-catch-binding/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-optional-catch-binding", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of optional catch bindings", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-optional-catch-binding", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-optional-chaining/package.json b/packages/babel-plugin-syntax-optional-chaining/package.json index 59d54c8cb848b..a34df051a2b39 100644 --- a/packages/babel-plugin-syntax-optional-chaining/package.json +++ b/packages/babel-plugin-syntax-optional-chaining/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-optional-chaining", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of optional properties", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-optional-chaining", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-pipeline-operator/package.json b/packages/babel-plugin-syntax-pipeline-operator/package.json index 9a70ecec997a8..99a34db1dd538 100644 --- a/packages/babel-plugin-syntax-pipeline-operator/package.json +++ b/packages/babel-plugin-syntax-pipeline-operator/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-pipeline-operator", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of the pipeline operator", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-pipeline-operator", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-throw-expressions/package.json b/packages/babel-plugin-syntax-throw-expressions/package.json index 9eb6db0974f05..e42338af7e0e0 100644 --- a/packages/babel-plugin-syntax-throw-expressions/package.json +++ b/packages/babel-plugin-syntax-throw-expressions/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-throw-expressions", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of Throw Expressions", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-throw-expressions", "license": "MIT", @@ -9,12 +9,12 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-syntax-typescript/package.json b/packages/babel-plugin-syntax-typescript/package.json index 8031d23b8fdd4..1b680494bb677 100644 --- a/packages/babel-plugin-syntax-typescript/package.json +++ b/packages/babel-plugin-syntax-typescript/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-syntax-typescript", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Allow parsing of TypeScript syntax", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-typescript", "license": "MIT", @@ -10,12 +10,12 @@ "typescript" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-arrow-functions/package.json b/packages/babel-plugin-transform-arrow-functions/package.json index a887c4ee0880d..a74be8cb1bd67 100644 --- a/packages/babel-plugin-transform-arrow-functions/package.json +++ b/packages/babel-plugin-transform-arrow-functions/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-arrow-functions", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 arrow functions to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-arrow-functions", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52", - "@babel/traverse": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54", + "@babel/traverse": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-async-to-generator/package.json b/packages/babel-plugin-transform-async-to-generator/package.json index 77a246b1f925e..bda65c222f9a1 100644 --- a/packages/babel-plugin-transform-async-to-generator/package.json +++ b/packages/babel-plugin-transform-async-to-generator/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-async-to-generator", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Turn async functions into ES2015 generators", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-async-to-generator", "license": "MIT", @@ -9,15 +9,15 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-module-imports": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/helper-remap-async-to-generator": "7.0.0-beta.52" + "@babel/helper-module-imports": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/helper-remap-async-to-generator": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-block-scoped-functions/package.json b/packages/babel-plugin-transform-block-scoped-functions/package.json index ac38399a05ef7..4d4c3369a5a9f 100644 --- a/packages/babel-plugin-transform-block-scoped-functions/package.json +++ b/packages/babel-plugin-transform-block-scoped-functions/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-block-scoped-functions", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel plugin to ensure function declarations at the block level are block scoped", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-block-scoped-functions", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-block-scoping/package.json b/packages/babel-plugin-transform-block-scoping/package.json index c9f533b2a9a64..c5c0d1bf77f8c 100644 --- a/packages/babel-plugin-transform-block-scoping/package.json +++ b/packages/babel-plugin-transform-block-scoping/package.json @@ -1,12 +1,12 @@ { "name": "@babel/plugin-transform-block-scoping", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 block scoping (const and let) to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-block-scoping", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", + "@babel/helper-plugin-utils": "7.0.0-beta.54", "lodash": "^4.17.5" }, "keywords": [ @@ -16,7 +16,7 @@ "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-classes/package.json b/packages/babel-plugin-transform-classes/package.json index dab636137ebbe..2406a8ece0973 100644 --- a/packages/babel-plugin-transform-classes/package.json +++ b/packages/babel-plugin-transform-classes/package.json @@ -1,18 +1,18 @@ { "name": "@babel/plugin-transform-classes", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 classes to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-classes", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-annotate-as-pure": "7.0.0-beta.52", - "@babel/helper-define-map": "7.0.0-beta.52", - "@babel/helper-function-name": "7.0.0-beta.52", - "@babel/helper-optimise-call-expression": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/helper-replace-supers": "7.0.0-beta.52", - "@babel/helper-split-export-declaration": "7.0.0-beta.52", + "@babel/helper-annotate-as-pure": "7.0.0-beta.54", + "@babel/helper-define-map": "7.0.0-beta.54", + "@babel/helper-function-name": "7.0.0-beta.54", + "@babel/helper-optimise-call-expression": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/helper-replace-supers": "7.0.0-beta.54", + "@babel/helper-split-export-declaration": "7.0.0-beta.54", "globals": "^11.1.0" }, "keywords": [ @@ -22,7 +22,7 @@ "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-computed-properties/package.json b/packages/babel-plugin-transform-computed-properties/package.json index cb1b3b63e54ef..43eef0396b57f 100644 --- a/packages/babel-plugin-transform-computed-properties/package.json +++ b/packages/babel-plugin-transform-computed-properties/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-computed-properties", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 computed properties to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-computed-properties", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-destructuring/package.json b/packages/babel-plugin-transform-destructuring/package.json index c07d36509ff2a..a595f1e045e31 100644 --- a/packages/babel-plugin-transform-destructuring/package.json +++ b/packages/babel-plugin-transform-destructuring/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-destructuring", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 destructuring to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-destructuring", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-dotall-regex/package.json b/packages/babel-plugin-transform-dotall-regex/package.json index 00678214ed5cc..23a664426fd83 100644 --- a/packages/babel-plugin-transform-dotall-regex/package.json +++ b/packages/babel-plugin-transform-dotall-regex/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-dotall-regex", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile regular expressions using the `s` (`dotAll`) flag to ES5.", "homepage": "https://babeljs.io/", "license": "MIT", @@ -21,15 +21,15 @@ }, "bugs": "https://github.com/babel/babel/issues", "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/helper-regex": "7.0.0-beta.52", + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/helper-regex": "7.0.0-beta.54", "regexpu-core": "^4.1.3" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-duplicate-keys/package.json b/packages/babel-plugin-transform-duplicate-keys/package.json index dee0ad781f706..e5b8f5bb93fbc 100644 --- a/packages/babel-plugin-transform-duplicate-keys/package.json +++ b/packages/babel-plugin-transform-duplicate-keys/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-duplicate-keys", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile objects with duplicate keys to valid strict ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-duplicate-keys", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-exponentiation-operator/package.json b/packages/babel-plugin-transform-exponentiation-operator/package.json index 34e7be92077dd..fcada84971f1c 100644 --- a/packages/babel-plugin-transform-exponentiation-operator/package.json +++ b/packages/babel-plugin-transform-exponentiation-operator/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-exponentiation-operator", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile exponentiation operator to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-exponentiation-operator", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-builder-binary-assignment-operator-visitor": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-flow-comments/package.json b/packages/babel-plugin-transform-flow-comments/package.json index e2d38457ef16b..1da693d69e011 100644 --- a/packages/babel-plugin-transform-flow-comments/package.json +++ b/packages/babel-plugin-transform-flow-comments/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-flow-comments", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Turn flow type annotations into comments", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-flow-comments", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-flow": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-flow": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-flow-strip-types/package.json b/packages/babel-plugin-transform-flow-strip-types/package.json index 10e1129c5d53f..8d6984f3dff14 100644 --- a/packages/babel-plugin-transform-flow-strip-types/package.json +++ b/packages/babel-plugin-transform-flow-strip-types/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-flow-strip-types", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Strip flow type annotations from your output code.", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-flow-strip-types", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-flow": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-flow": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-for-of/package.json b/packages/babel-plugin-transform-for-of/package.json index 59a449f7201ae..9a537f22d0a0e 100644 --- a/packages/babel-plugin-transform-for-of/package.json +++ b/packages/babel-plugin-transform-for-of/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-for-of", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 for...of to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-for-of", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-function-name/package.json b/packages/babel-plugin-transform-function-name/package.json index 4e9e7160e213b..fe1a744500b08 100644 --- a/packages/babel-plugin-transform-function-name/package.json +++ b/packages/babel-plugin-transform-function-name/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-function-name", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Apply ES2015 function.name semantics to all functions", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-function-name", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-function-name": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-function-name": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-instanceof/package.json b/packages/babel-plugin-transform-instanceof/package.json index e3e82b05e93b7..82a346277b48a 100644 --- a/packages/babel-plugin-transform-instanceof/package.json +++ b/packages/babel-plugin-transform-instanceof/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-instanceof", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "This plugin transforms all the ES2015 'instanceof' methods", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-instanceof", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-jscript/package.json b/packages/babel-plugin-transform-jscript/package.json index 1ec9b1d39d643..a7d527550d0dd 100644 --- a/packages/babel-plugin-transform-jscript/package.json +++ b/packages/babel-plugin-transform-jscript/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-jscript", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel plugin to fix buggy JScript named function expressions", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-jscript", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-literals/package.json b/packages/babel-plugin-transform-literals/package.json index 154aa3d0845a0..c91c5e27c1cbd 100644 --- a/packages/babel-plugin-transform-literals/package.json +++ b/packages/babel-plugin-transform-literals/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-literals", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 unicode string and number literals to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-literals", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-member-expression-literals/package.json b/packages/babel-plugin-transform-member-expression-literals/package.json index e3f2490401275..d0fa1bb76f2cd 100644 --- a/packages/babel-plugin-transform-member-expression-literals/package.json +++ b/packages/babel-plugin-transform-member-expression-literals/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-member-expression-literals", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Ensure that reserved words are quoted in property accesses", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-member-expression-literals", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-modules-amd/package.json b/packages/babel-plugin-transform-modules-amd/package.json index c1d5baf415242..62384e1e7b839 100644 --- a/packages/babel-plugin-transform-modules-amd/package.json +++ b/packages/babel-plugin-transform-modules-amd/package.json @@ -1,13 +1,13 @@ { "name": "@babel/plugin-transform-modules-amd", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "This plugin transforms ES2015 modules to AMD", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-modules-amd", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-module-transforms": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-module-transforms": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "keywords": [ "babel-plugin" @@ -16,7 +16,7 @@ "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-modules-commonjs/package.json b/packages/babel-plugin-transform-modules-commonjs/package.json index 88f2feddcc7c6..09b031391f6c2 100644 --- a/packages/babel-plugin-transform-modules-commonjs/package.json +++ b/packages/babel-plugin-transform-modules-commonjs/package.json @@ -1,14 +1,14 @@ { "name": "@babel/plugin-transform-modules-commonjs", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "This plugin transforms ES2015 modules to CommonJS", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-modules-commonjs", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-module-transforms": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/helper-simple-access": "7.0.0-beta.52" + "@babel/helper-module-transforms": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/helper-simple-access": "7.0.0-beta.54" }, "keywords": [ "babel-plugin" @@ -17,8 +17,8 @@ "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52", - "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54", + "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-modules-commonjs/test/fixtures/interop/export-all/input.js b/packages/babel-plugin-transform-modules-commonjs/test/fixtures/interop/export-all/input.js new file mode 100644 index 0000000000000..f419f4c89cb79 --- /dev/null +++ b/packages/babel-plugin-transform-modules-commonjs/test/fixtures/interop/export-all/input.js @@ -0,0 +1,6 @@ +// The fact that this exports both a normal default, and all of the names via +// re-export is an edge case that is important not to miss. See +// https://github.com/babel/babel/issues/8306 as an example. +import _default from 'react'; +export default _default; +export * from 'react'; diff --git a/packages/babel-plugin-transform-modules-commonjs/test/fixtures/interop/export-all/output.js b/packages/babel-plugin-transform-modules-commonjs/test/fixtures/interop/export-all/output.js new file mode 100644 index 0000000000000..95892f7cc67c6 --- /dev/null +++ b/packages/babel-plugin-transform-modules-commonjs/test/fixtures/interop/export-all/output.js @@ -0,0 +1,25 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +var _exportNames = {}; +exports.default = void 0; + +var _react = babelHelpers.interopRequireWildcard(require("react")); + +Object.keys(_react).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _react[key]; + } + }); +}); +// The fact that this exports both a normal default, and all of the names via +// re-export is an edge case that is important not to miss. See +// https://github.com/babel/babel/issues/8306 as an example. +var _default2 = _react.default; +exports.default = _default2; diff --git a/packages/babel-plugin-transform-modules-systemjs/package.json b/packages/babel-plugin-transform-modules-systemjs/package.json index 492516f44a4eb..c7cfb3a617f37 100644 --- a/packages/babel-plugin-transform-modules-systemjs/package.json +++ b/packages/babel-plugin-transform-modules-systemjs/package.json @@ -1,13 +1,13 @@ { "name": "@babel/plugin-transform-modules-systemjs", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "This plugin transforms ES2015 modules to SystemJS", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-modules-systemjs", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-hoist-variables": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-hoist-variables": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "keywords": [ "babel-plugin" @@ -16,8 +16,8 @@ "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52", - "@babel/plugin-syntax-dynamic-import": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54", + "@babel/plugin-syntax-dynamic-import": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-modules-umd/package.json b/packages/babel-plugin-transform-modules-umd/package.json index 72bf8993a1fa7..ccf3ff3270121 100644 --- a/packages/babel-plugin-transform-modules-umd/package.json +++ b/packages/babel-plugin-transform-modules-umd/package.json @@ -1,13 +1,13 @@ { "name": "@babel/plugin-transform-modules-umd", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "This plugin transforms ES2015 modules to UMD", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-modules-umd", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-module-transforms": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-module-transforms": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "keywords": [ "babel-plugin" @@ -16,7 +16,7 @@ "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-new-target/package.json b/packages/babel-plugin-transform-new-target/package.json index d039335bc1206..51ca804ddcc5c 100644 --- a/packages/babel-plugin-transform-new-target/package.json +++ b/packages/babel-plugin-transform-new-target/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-new-target", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Transforms new.target meta property", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-new-target", "license": "MIT", @@ -9,15 +9,15 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52", - "@babel/plugin-proposal-class-properties": "7.0.0-beta.52", - "@babel/plugin-transform-arrow-functions": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54", + "@babel/plugin-proposal-class-properties": "7.0.0-beta.54", + "@babel/plugin-transform-arrow-functions": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-object-assign/package.json b/packages/babel-plugin-transform-object-assign/package.json index 6a67c27779ca7..06f1f68b8f181 100644 --- a/packages/babel-plugin-transform-object-assign/package.json +++ b/packages/babel-plugin-transform-object-assign/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-object-assign", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Replace Object.assign with an inline helper", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-object-assign", "author": "Jed Watson", @@ -10,13 +10,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-object-set-prototype-of-to-assign/package.json b/packages/babel-plugin-transform-object-set-prototype-of-to-assign/package.json index 9e652f57a8d0b..90f94772d7bfc 100644 --- a/packages/babel-plugin-transform-object-set-prototype-of-to-assign/package.json +++ b/packages/babel-plugin-transform-object-set-prototype-of-to-assign/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-object-set-prototype-of-to-assign", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Turn Object.setPrototypeOf to assignments", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-object-set-prototype-of-to-assign", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-object-super/package.json b/packages/babel-plugin-transform-object-super/package.json index 717a368520c83..c79959502cd05 100644 --- a/packages/babel-plugin-transform-object-super/package.json +++ b/packages/babel-plugin-transform-object-super/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-object-super", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 object super to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-object-super", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/helper-replace-supers": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/helper-replace-supers": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-parameters/package.json b/packages/babel-plugin-transform-parameters/package.json index 1a11dd79d066c..6adbb490a53bb 100644 --- a/packages/babel-plugin-transform-parameters/package.json +++ b/packages/babel-plugin-transform-parameters/package.json @@ -1,14 +1,14 @@ { "name": "@babel/plugin-transform-parameters", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 default and rest parameters to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-parameters", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-call-delegate": "7.0.0-beta.52", - "@babel/helper-get-function-arity": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-call-delegate": "7.0.0-beta.54", + "@babel/helper-get-function-arity": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "keywords": [ "babel-plugin" @@ -17,7 +17,7 @@ "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-property-literals/package.json b/packages/babel-plugin-transform-property-literals/package.json index d56080f01b46e..c026d595a9aeb 100644 --- a/packages/babel-plugin-transform-property-literals/package.json +++ b/packages/babel-plugin-transform-property-literals/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-property-literals", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Ensure that reserved words are quoted in object property keys", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-property-literals", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-property-mutators/package.json b/packages/babel-plugin-transform-property-mutators/package.json index e3234ffd9ab57..f4dfd227faad1 100644 --- a/packages/babel-plugin-transform-property-mutators/package.json +++ b/packages/babel-plugin-transform-property-mutators/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-property-mutators", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES5 property mutator shorthand syntax to Object.defineProperty", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-property-mutators", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-define-map": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-define-map": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-proto-to-assign/package.json b/packages/babel-plugin-transform-proto-to-assign/package.json index efbb2c6a3e07f..021a7cfdffbba 100644 --- a/packages/babel-plugin-transform-proto-to-assign/package.json +++ b/packages/babel-plugin-transform-proto-to-assign/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-proto-to-assign", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel plugin for turning __proto__ into a shallow property clone", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-proto-to-assign", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-react-constant-elements/package.json b/packages/babel-plugin-transform-react-constant-elements/package.json index 71b9ba59442cf..011905b0edf73 100644 --- a/packages/babel-plugin-transform-react-constant-elements/package.json +++ b/packages/babel-plugin-transform-react-constant-elements/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-react-constant-elements", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Treat React JSX elements as value types and hoist them to the highest scope", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-constant-elements", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-annotate-as-pure": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-annotate-as-pure": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-react-display-name/package.json b/packages/babel-plugin-transform-react-display-name/package.json index f68883304eb18..930a9539e5edf 100644 --- a/packages/babel-plugin-transform-react-display-name/package.json +++ b/packages/babel-plugin-transform-react-display-name/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-react-display-name", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Add displayName to React.createClass calls", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-display-name", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-react-inline-elements/package.json b/packages/babel-plugin-transform-react-inline-elements/package.json index 9a3bbedcba2bd..77ea78e76c883 100644 --- a/packages/babel-plugin-transform-react-inline-elements/package.json +++ b/packages/babel-plugin-transform-react-inline-elements/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-react-inline-elements", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Turn JSX elements into exploded React objects", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-inline-elements", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-builder-react-jsx": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-builder-react-jsx": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-react-jsx-compat/package.json b/packages/babel-plugin-transform-react-jsx-compat/package.json index aa2c6b84a351d..8fcc3b434b027 100644 --- a/packages/babel-plugin-transform-react-jsx-compat/package.json +++ b/packages/babel-plugin-transform-react-jsx-compat/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-react-jsx-compat", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Turn JSX into React Pre-0.12 function calls", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-jsx-compat", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-builder-react-jsx": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-builder-react-jsx": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-react-jsx-self/package.json b/packages/babel-plugin-transform-react-jsx-self/package.json index 58f1633205cd5..a43088c2a3a44 100644 --- a/packages/babel-plugin-transform-react-jsx-self/package.json +++ b/packages/babel-plugin-transform-react-jsx-self/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-react-jsx-self", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Add a __self prop to all JSX Elements", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-jsx-self", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-jsx": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-jsx": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-react-jsx-source/package.json b/packages/babel-plugin-transform-react-jsx-source/package.json index 55214273c625e..d46723d583fdf 100644 --- a/packages/babel-plugin-transform-react-jsx-source/package.json +++ b/packages/babel-plugin-transform-react-jsx-source/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-react-jsx-source", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Add a __source prop to all JSX Elements", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-jsx-source", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-jsx": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-jsx": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-react-jsx/package.json b/packages/babel-plugin-transform-react-jsx/package.json index f8b0a6d7bd14c..9d288d9a81036 100644 --- a/packages/babel-plugin-transform-react-jsx/package.json +++ b/packages/babel-plugin-transform-react-jsx/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-react-jsx", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Turn JSX into React function calls", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-jsx", "license": "MIT", @@ -9,15 +9,15 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-builder-react-jsx": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-jsx": "7.0.0-beta.52" + "@babel/helper-builder-react-jsx": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-jsx": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-regenerator/package.json b/packages/babel-plugin-transform-regenerator/package.json index d7c9c2eae29b9..1f4257d6130f9 100644 --- a/packages/babel-plugin-transform-regenerator/package.json +++ b/packages/babel-plugin-transform-regenerator/package.json @@ -2,7 +2,7 @@ "name": "@babel/plugin-transform-regenerator", "author": "Ben Newman ", "description": "Explode async and generator functions into a state machine.", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "homepage": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-regenerator", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-regenerator", "main": "lib/index.js", @@ -14,7 +14,7 @@ "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-reserved-words/package.json b/packages/babel-plugin-transform-reserved-words/package.json index dde8e2ee9fe96..ea9c91a0ec2ce 100644 --- a/packages/babel-plugin-transform-reserved-words/package.json +++ b/packages/babel-plugin-transform-reserved-words/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-reserved-words", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Ensure that no reserved words are used.", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-reserved-words", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-runtime/package.json b/packages/babel-plugin-transform-runtime/package.json index 62ceaf9b39520..5cbc3277d59c9 100644 --- a/packages/babel-plugin-transform-runtime/package.json +++ b/packages/babel-plugin-transform-runtime/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-runtime", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-runtime", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-module-imports": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-module-imports": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-shorthand-properties/package.json b/packages/babel-plugin-transform-shorthand-properties/package.json index 150b0e9ec17e6..a6cd31cc32f58 100644 --- a/packages/babel-plugin-transform-shorthand-properties/package.json +++ b/packages/babel-plugin-transform-shorthand-properties/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-shorthand-properties", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 shorthand properties to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-shorthand-properties", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-spread/package.json b/packages/babel-plugin-transform-spread/package.json index 063448ddd4491..f8aae3634f1ca 100644 --- a/packages/babel-plugin-transform-spread/package.json +++ b/packages/babel-plugin-transform-spread/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-spread", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 spread to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-spread", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-sticky-regex/package.json b/packages/babel-plugin-transform-sticky-regex/package.json index 6feb4a5793e80..3ca548099577d 100644 --- a/packages/babel-plugin-transform-sticky-regex/package.json +++ b/packages/babel-plugin-transform-sticky-regex/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-sticky-regex", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 sticky regex to an ES5 RegExp constructor", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-sticky-regex", "license": "MIT", @@ -9,14 +9,14 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/helper-regex": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/helper-regex": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-strict-mode/package.json b/packages/babel-plugin-transform-strict-mode/package.json index 0ecf11aa3eb8e..7982313a0bac7 100644 --- a/packages/babel-plugin-transform-strict-mode/package.json +++ b/packages/babel-plugin-transform-strict-mode/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-strict-mode", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "This plugin places a 'use strict'; directive at the top of all files to enable strict mode", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-strict-mode", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-template-literals/package.json b/packages/babel-plugin-transform-template-literals/package.json index c581103dce01c..37b72a1095533 100644 --- a/packages/babel-plugin-transform-template-literals/package.json +++ b/packages/babel-plugin-transform-template-literals/package.json @@ -1,13 +1,13 @@ { "name": "@babel/plugin-transform-template-literals", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 template literals to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-template-literals", "license": "MIT", "main": "lib/index.js", "dependencies": { - "@babel/helper-annotate-as-pure": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-annotate-as-pure": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "keywords": [ "babel-plugin" @@ -16,7 +16,7 @@ "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-typeof-symbol/package.json b/packages/babel-plugin-transform-typeof-symbol/package.json index 1ca2407ce5e71..3b8b9cadc3db8 100644 --- a/packages/babel-plugin-transform-typeof-symbol/package.json +++ b/packages/babel-plugin-transform-typeof-symbol/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-typeof-symbol", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-typeof-symbol", "license": "MIT", @@ -9,13 +9,13 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-typescript/package.json b/packages/babel-plugin-transform-typescript/package.json index 7b2691bac1fb3..ab14ecadde092 100644 --- a/packages/babel-plugin-transform-typescript/package.json +++ b/packages/babel-plugin-transform-typescript/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-typescript", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Transform TypeScript into ES.next", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-typescript", "license": "MIT", @@ -10,14 +10,14 @@ "typescript" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-syntax-typescript": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-syntax-typescript": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-plugin-transform-typescript/src/index.js b/packages/babel-plugin-transform-typescript/src/index.js index f7f2b304f64b7..220529a773bce 100644 --- a/packages/babel-plugin-transform-typescript/src/index.js +++ b/packages/babel-plugin-transform-typescript/src/index.js @@ -264,6 +264,10 @@ export default declare((api, { jsxPragma = "React" }) => { NewExpression(path) { path.node.typeParameters = null; }, + + JSXOpeningElement(path) { + path.node.typeParameters = null; + }, }, }; diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/input.js new file mode 100644 index 0000000000000..520e35ee90978 --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/input.js @@ -0,0 +1,2 @@ +>; +/>; diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/options.json new file mode 100644 index 0000000000000..2c7aa7bce2946 --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/options.json @@ -0,0 +1,3 @@ +{ + "plugins": [["transform-typescript", { "isTSX": true }]] +} diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/output.js b/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/output.js new file mode 100644 index 0000000000000..c2d492ae05aed --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/output.js @@ -0,0 +1,2 @@ +; +; diff --git a/packages/babel-plugin-transform-unicode-regex/package.json b/packages/babel-plugin-transform-unicode-regex/package.json index 059ef6bae3462..847b219a3a594 100644 --- a/packages/babel-plugin-transform-unicode-regex/package.json +++ b/packages/babel-plugin-transform-unicode-regex/package.json @@ -1,6 +1,6 @@ { "name": "@babel/plugin-transform-unicode-regex", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Compile ES2015 Unicode regex to ES5", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-unicode-regex", "license": "MIT", @@ -9,15 +9,15 @@ "babel-plugin" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/helper-regex": "7.0.0-beta.52", + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/helper-regex": "7.0.0-beta.54", "regexpu-core": "^4.1.3" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-polyfill/package.json b/packages/babel-polyfill/package.json index 70255b8f76643..3c498f319ac34 100644 --- a/packages/babel-polyfill/package.json +++ b/packages/babel-polyfill/package.json @@ -1,6 +1,6 @@ { "name": "@babel/polyfill", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Provides polyfills necessary for a full ES2015+ environment", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", diff --git a/packages/babel-preset-env-standalone/package.json b/packages/babel-preset-env-standalone/package.json index 490ce76a7660b..fdff04d320897 100644 --- a/packages/babel-preset-env-standalone/package.json +++ b/packages/babel-preset-env-standalone/package.json @@ -1,6 +1,6 @@ { "name": "@babel/preset-env-standalone", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Standalone build of babel-prest-env for use in non-Node.js environments.", "main": "babel-preset-env.js", "files": [ @@ -9,9 +9,9 @@ "src" ], "devDependencies": { - "@babel/plugin-transform-new-target": "7.0.0-beta.52", - "@babel/preset-env": "7.0.0-beta.52", - "@babel/standalone": "7.0.0-beta.52" + "@babel/plugin-transform-new-target": "7.0.0-beta.54", + "@babel/preset-env": "7.0.0-beta.54", + "@babel/standalone": "7.0.0-beta.54" }, "keywords": [ "babel", diff --git a/packages/babel-preset-env/package.json b/packages/babel-preset-env/package.json index cc3ed69d64c84..52fc1018c55d3 100644 --- a/packages/babel-preset-env/package.json +++ b/packages/babel-preset-env/package.json @@ -1,6 +1,6 @@ { "name": "@babel/preset-env", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "A Babel preset for each environment.", "author": "Henry Zhu ", "homepage": "https://babeljs.io/", @@ -11,42 +11,42 @@ "build-data": "node ./scripts/build-data.js; node ./scripts/build-modules-support.js" }, "dependencies": { - "@babel/helper-module-imports": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.52", - "@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.52", - "@babel/plugin-proposal-optional-catch-binding": "7.0.0-beta.52", - "@babel/plugin-proposal-unicode-property-regex": "7.0.0-beta.52", - "@babel/plugin-syntax-async-generators": "7.0.0-beta.52", - "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.52", - "@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.52", - "@babel/plugin-transform-arrow-functions": "7.0.0-beta.52", - "@babel/plugin-transform-async-to-generator": "7.0.0-beta.52", - "@babel/plugin-transform-block-scoped-functions": "7.0.0-beta.52", - "@babel/plugin-transform-block-scoping": "7.0.0-beta.52", - "@babel/plugin-transform-classes": "7.0.0-beta.52", - "@babel/plugin-transform-computed-properties": "7.0.0-beta.52", - "@babel/plugin-transform-destructuring": "7.0.0-beta.52", - "@babel/plugin-transform-dotall-regex": "7.0.0-beta.52", - "@babel/plugin-transform-duplicate-keys": "7.0.0-beta.52", - "@babel/plugin-transform-exponentiation-operator": "7.0.0-beta.52", - "@babel/plugin-transform-for-of": "7.0.0-beta.52", - "@babel/plugin-transform-function-name": "7.0.0-beta.52", - "@babel/plugin-transform-literals": "7.0.0-beta.52", - "@babel/plugin-transform-modules-amd": "7.0.0-beta.52", - "@babel/plugin-transform-modules-commonjs": "7.0.0-beta.52", - "@babel/plugin-transform-modules-systemjs": "7.0.0-beta.52", - "@babel/plugin-transform-modules-umd": "7.0.0-beta.52", - "@babel/plugin-transform-new-target": "7.0.0-beta.52", - "@babel/plugin-transform-object-super": "7.0.0-beta.52", - "@babel/plugin-transform-parameters": "7.0.0-beta.52", - "@babel/plugin-transform-regenerator": "7.0.0-beta.52", - "@babel/plugin-transform-shorthand-properties": "7.0.0-beta.52", - "@babel/plugin-transform-spread": "7.0.0-beta.52", - "@babel/plugin-transform-sticky-regex": "7.0.0-beta.52", - "@babel/plugin-transform-template-literals": "7.0.0-beta.52", - "@babel/plugin-transform-typeof-symbol": "7.0.0-beta.52", - "@babel/plugin-transform-unicode-regex": "7.0.0-beta.52", + "@babel/helper-module-imports": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-proposal-async-generator-functions": "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-unicode-property-regex": "7.0.0-beta.54", + "@babel/plugin-syntax-async-generators": "7.0.0-beta.54", + "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.54", + "@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.54", + "@babel/plugin-transform-arrow-functions": "7.0.0-beta.54", + "@babel/plugin-transform-async-to-generator": "7.0.0-beta.54", + "@babel/plugin-transform-block-scoped-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-dotall-regex": "7.0.0-beta.54", + "@babel/plugin-transform-duplicate-keys": "7.0.0-beta.54", + "@babel/plugin-transform-exponentiation-operator": "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-amd": "7.0.0-beta.54", + "@babel/plugin-transform-modules-commonjs": "7.0.0-beta.54", + "@babel/plugin-transform-modules-systemjs": "7.0.0-beta.54", + "@babel/plugin-transform-modules-umd": "7.0.0-beta.54", + "@babel/plugin-transform-new-target": "7.0.0-beta.54", + "@babel/plugin-transform-object-super": "7.0.0-beta.54", + "@babel/plugin-transform-parameters": "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-typeof-symbol": "7.0.0-beta.54", + "@babel/plugin-transform-unicode-regex": "7.0.0-beta.54", "browserslist": "^3.0.0", "invariant": "^2.2.2", "js-levenshtein": "^1.1.3", @@ -56,12 +56,12 @@ "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/cli": "7.0.0-beta.52", - "@babel/core": "7.0.0-beta.52", - "@babel/helper-fixtures": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52", + "@babel/cli": "7.0.0-beta.54", + "@babel/core": "7.0.0-beta.54", + "@babel/helper-fixtures": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54", + "caniuse-db": "1.0.30000851", "compat-table": "kangax/compat-table#90d02e486227d179d2ce9b850dbb3f9846443cab", - "electron-to-chromium": "^1.3.27", - "request": "^2.83.0" + "electron-to-chromium": "1.3.48" } } diff --git a/packages/babel-preset-env/scripts/build-modules-support.js b/packages/babel-preset-env/scripts/build-modules-support.js index edbdd85b8b836..1ce611078c153 100644 --- a/packages/babel-preset-env/scripts/build-modules-support.js +++ b/packages/babel-preset-env/scripts/build-modules-support.js @@ -1,77 +1,37 @@ const path = require("path"); const fs = require("fs"); -const request = require("request"); -// This mapping represents browsers who have shipped ES Modules Support. -// For more information, checkout the specifications: -// * https://www.ecma-international.org/ecma-262/6.0/#sec-modules -// * https://html.spec.whatwg.org/multipage/scripting.html#attr-script-type -const lastKnown = { - chrome: 61, - safari: 10.1, - ios_saf: 10.3, - edge: 16, -}; +const moduleSupport = require("caniuse-db/features-json/es6-module.json"); const acceptedWithCaveats = { safari: true, ios_saf: true, }; -function input() { - return new Promise(function(resolve, reject) { - request( - "https://raw.githubusercontent.com/Fyrd/caniuse/master/features-json/es6-module.json", - function(error, response, body) { - if (error || response.statusCode !== 200) { - return reject( - new Error( - `Error retrieving es6-module.json. ${ - error ? error : `statusCode=${response.statusCode}` - }` - ) - ); - } - - try { - const { stats } = JSON.parse(body); - const allowedBrowsers = {}; - - Object.keys(stats).forEach(browser => { - if (browser !== "and_chr") { - const browserVersions = stats[browser]; - const allowedVersions = Object.keys(browserVersions) - .filter(value => { - return acceptedWithCaveats[browser] - ? browserVersions[value][0] === "a" - : browserVersions[value] === "y"; - }) - .sort((a, b) => a - b); - - if (allowedVersions[0] !== undefined) { - // Handle cases where caniuse specifies version as: "11.0-11.2" - allowedBrowsers[browser] = allowedVersions[0].split("-")[0]; - } - } - }); - - resolve(allowedBrowsers); - } catch (error) { - return reject(new Error(`Error parsing es6-module.json.`)); - } - } - ); - }); -} - -function output(minVersions) { - const dataPath = path.join(__dirname, "../data/built-in-modules.json"); - const data = { - "es6.module": minVersions, - }; - fs.writeFileSync(dataPath, `${JSON.stringify(data, null, 2)}\n`); -} - -Promise.resolve(input()) - .then(minVersions => output(minVersions)) - .catch(output(lastKnown)); +const { stats } = moduleSupport; + +const allowedBrowsers = {}; + +Object.keys(stats).forEach(browser => { + if (browser !== "and_chr") { + const browserVersions = stats[browser]; + const allowedVersions = Object.keys(browserVersions) + .filter(value => { + return acceptedWithCaveats[browser] + ? browserVersions[value][0] === "a" + : browserVersions[value] === "y"; + }) + .sort((a, b) => a - b); + + if (allowedVersions[0] !== undefined) { + // Handle cases where caniuse specifies version as: "11.0-11.2" + allowedBrowsers[browser] = allowedVersions[0].split("-")[0]; + } + } +}); + +const dataPath = path.join(__dirname, "../data/built-in-modules.json"); +const data = { + "es6.module": allowedBrowsers, +}; +fs.writeFileSync(dataPath, `${JSON.stringify(data, null, 2)}\n`); diff --git a/packages/babel-preset-es2015/package.json b/packages/babel-preset-es2015/package.json deleted file mode 100644 index d06c6ca92a88c..0000000000000 --- a/packages/babel-preset-es2015/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "@babel/preset-es2015", - "version": "7.0.0-beta.52", - "description": "Babel preset for all es2015 plugins.", - "author": "Sebastian McKenzie ", - "homepage": "https://babeljs.io/", - "license": "MIT", - "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-es2015", - "main": "lib/index.js", - "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-transform-arrow-functions": "7.0.0-beta.52", - "@babel/plugin-transform-block-scoped-functions": "7.0.0-beta.52", - "@babel/plugin-transform-block-scoping": "7.0.0-beta.52", - "@babel/plugin-transform-classes": "7.0.0-beta.52", - "@babel/plugin-transform-computed-properties": "7.0.0-beta.52", - "@babel/plugin-transform-destructuring": "7.0.0-beta.52", - "@babel/plugin-transform-duplicate-keys": "7.0.0-beta.52", - "@babel/plugin-transform-for-of": "7.0.0-beta.52", - "@babel/plugin-transform-function-name": "7.0.0-beta.52", - "@babel/plugin-transform-instanceof": "7.0.0-beta.52", - "@babel/plugin-transform-literals": "7.0.0-beta.52", - "@babel/plugin-transform-modules-amd": "7.0.0-beta.52", - "@babel/plugin-transform-modules-commonjs": "7.0.0-beta.52", - "@babel/plugin-transform-modules-systemjs": "7.0.0-beta.52", - "@babel/plugin-transform-modules-umd": "7.0.0-beta.52", - "@babel/plugin-transform-object-super": "7.0.0-beta.52", - "@babel/plugin-transform-parameters": "7.0.0-beta.52", - "@babel/plugin-transform-regenerator": "7.0.0-beta.52", - "@babel/plugin-transform-shorthand-properties": "7.0.0-beta.52", - "@babel/plugin-transform-spread": "7.0.0-beta.52", - "@babel/plugin-transform-sticky-regex": "7.0.0-beta.52", - "@babel/plugin-transform-template-literals": "7.0.0-beta.52", - "@babel/plugin-transform-typeof-symbol": "7.0.0-beta.52", - "@babel/plugin-transform-unicode-regex": "7.0.0-beta.52" - }, - "peerDependencies": { - "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" - }, - "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52", - "@babel/helper-transform-fixture-test-runner": "7.0.0-beta.52" - } -} diff --git a/packages/babel-preset-es2016/package.json b/packages/babel-preset-es2016/package.json deleted file mode 100644 index cc1274527335e..0000000000000 --- a/packages/babel-preset-es2016/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "@babel/preset-es2016", - "version": "7.0.0-beta.52", - "description": "Babel preset for all es2016 plugins.", - "author": "Sebastian McKenzie ", - "homepage": "https://babeljs.io/", - "license": "MIT", - "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-es2016", - "main": "lib/index.js", - "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-transform-exponentiation-operator": "7.0.0-beta.52" - }, - "peerDependencies": { - "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" - }, - "devDependencies": { - "@babel/core": "7.0.0-beta.52" - } -} diff --git a/packages/babel-preset-es2017/package.json b/packages/babel-preset-es2017/package.json deleted file mode 100644 index 61335b0f1396b..0000000000000 --- a/packages/babel-preset-es2017/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "@babel/preset-es2017", - "version": "7.0.0-beta.52", - "description": "Babel preset for all es2017 plugins.", - "author": "Sebastian McKenzie ", - "homepage": "https://babeljs.io/", - "license": "MIT", - "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-es2017", - "main": "lib/index.js", - "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-transform-async-to-generator": "7.0.0-beta.52" - }, - "peerDependencies": { - "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" - }, - "devDependencies": { - "@babel/core": "7.0.0-beta.52" - } -} diff --git a/packages/babel-preset-flow/package.json b/packages/babel-preset-flow/package.json index c532b788e1f47..40e2bdbade2e8 100644 --- a/packages/babel-preset-flow/package.json +++ b/packages/babel-preset-flow/package.json @@ -1,6 +1,6 @@ { "name": "@babel/preset-flow", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel preset for all Flow plugins.", "author": "James Kyle ", "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-flow", @@ -13,14 +13,14 @@ "types" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-transform-flow-strip-types": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-transform-flow-strip-types": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-preset-react/package.json b/packages/babel-preset-react/package.json index 1bf0ba3f52d92..76ba43ad5dea4 100644 --- a/packages/babel-preset-react/package.json +++ b/packages/babel-preset-react/package.json @@ -1,6 +1,6 @@ { "name": "@babel/preset-react", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel preset for all React plugins.", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -8,18 +8,18 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-react", "main": "lib/index.js", "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-transform-react-display-name": "7.0.0-beta.52", - "@babel/plugin-transform-react-jsx": "7.0.0-beta.52", - "@babel/plugin-transform-react-jsx-self": "7.0.0-beta.52", - "@babel/plugin-transform-react-jsx-source": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "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-self": "7.0.0-beta.54", + "@babel/plugin-transform-react-jsx-source": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52", - "@babel/helper-transform-fixture-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54", + "@babel/helper-transform-fixture-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-preset-stage-0/package.json b/packages/babel-preset-stage-0/package.json index e8b746216d593..e834e40d8ac50 100644 --- a/packages/babel-preset-stage-0/package.json +++ b/packages/babel-preset-stage-0/package.json @@ -1,6 +1,6 @@ { "name": "@babel/preset-stage-0", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel preset for stage 0 plugins", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -8,14 +8,14 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-0", "main": "lib/index.js", "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-proposal-function-bind": "7.0.0-beta.52", - "@babel/preset-stage-1": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-proposal-function-bind": "7.0.0-beta.54", + "@babel/preset-stage-1": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-preset-stage-0/src/index.js b/packages/babel-preset-stage-0/src/index.js index 28d9dd33cc4c3..84e1a9d3b8866 100644 --- a/packages/babel-preset-stage-0/src/index.js +++ b/packages/babel-preset-stage-0/src/index.js @@ -2,7 +2,6 @@ import { declare } from "@babel/helper-plugin-utils"; import presetStage1 from "@babel/preset-stage-1"; import transformFunctionBind from "@babel/plugin-proposal-function-bind"; -import { proposals } from "@babel/plugin-proposal-pipeline-operator"; export default declare((api, opts = {}) => { api.assertVersion(7); @@ -10,8 +9,8 @@ export default declare((api, opts = {}) => { const { loose = false, useBuiltIns = false, - decoratorsLegacy = false, - pipelineProposal, + decoratorsLegacy = true, + pipelineProposal = "minimal", } = opts; if (typeof loose !== "boolean") { @@ -28,23 +27,6 @@ export default declare((api, opts = {}) => { ); } - if (decoratorsLegacy !== true) { - throw new Error( - "The new decorators proposal is not supported yet." + - ' You must pass the `"decoratorsLegacy": true` option to' + - " @babel/preset-stage-0", - ); - } - - if (typeof pipelineProposal !== "string") { - throw new Error( - "The pipeline operator requires a proposal set." + - " You must pass 'pipelineProposal' option to" + - " @babel/preset-stage-0 whose value must be one of: " + - proposals.join(", "), - ); - } - return { presets: [ [ diff --git a/packages/babel-preset-stage-1/package.json b/packages/babel-preset-stage-1/package.json index b7ea3938aecdd..b34caaa8275e1 100644 --- a/packages/babel-preset-stage-1/package.json +++ b/packages/babel-preset-stage-1/package.json @@ -1,6 +1,6 @@ { "name": "@babel/preset-stage-1", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel preset for stage 1 plugins", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -8,19 +8,19 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-1", "main": "lib/index.js", "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-proposal-do-expressions": "7.0.0-beta.52", - "@babel/plugin-proposal-export-default-from": "7.0.0-beta.52", - "@babel/plugin-proposal-logical-assignment-operators": "7.0.0-beta.52", - "@babel/plugin-proposal-nullish-coalescing-operator": "7.0.0-beta.52", - "@babel/plugin-proposal-optional-chaining": "7.0.0-beta.52", - "@babel/plugin-proposal-pipeline-operator": "7.0.0-beta.52", - "@babel/preset-stage-2": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-proposal-do-expressions": "7.0.0-beta.54", + "@babel/plugin-proposal-export-default-from": "7.0.0-beta.54", + "@babel/plugin-proposal-logical-assignment-operators": "7.0.0-beta.54", + "@babel/plugin-proposal-nullish-coalescing-operator": "7.0.0-beta.54", + "@babel/plugin-proposal-optional-chaining": "7.0.0-beta.54", + "@babel/plugin-proposal-pipeline-operator": "7.0.0-beta.54", + "@babel/preset-stage-2": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-preset-stage-1/src/index.js b/packages/babel-preset-stage-1/src/index.js index 2c50a12fca1fc..6324c7ac2ded2 100644 --- a/packages/babel-preset-stage-1/src/index.js +++ b/packages/babel-preset-stage-1/src/index.js @@ -4,9 +4,7 @@ import presetStage2 from "@babel/preset-stage-2"; import transformExportDefaultFrom from "@babel/plugin-proposal-export-default-from"; import transformLogicalAssignmentOperators from "@babel/plugin-proposal-logical-assignment-operators"; import transformOptionalChaining from "@babel/plugin-proposal-optional-chaining"; -import transformPipelineOperator, { - proposals, -} from "@babel/plugin-proposal-pipeline-operator"; +import transformPipelineOperator from "@babel/plugin-proposal-pipeline-operator"; import transformNullishCoalescingOperator from "@babel/plugin-proposal-nullish-coalescing-operator"; import transformDoExpressions from "@babel/plugin-proposal-do-expressions"; @@ -16,8 +14,8 @@ export default declare((api, opts = {}) => { const { loose = false, useBuiltIns = false, - decoratorsLegacy = false, - pipelineProposal, + decoratorsLegacy = true, + pipelineProposal = "minimal", } = opts; if (typeof loose !== "boolean") { @@ -34,23 +32,6 @@ export default declare((api, opts = {}) => { ); } - if (decoratorsLegacy !== true) { - throw new Error( - "The new decorators proposal is not supported yet." + - ' You must pass the `"decoratorsLegacy": true` option to' + - " @babel/preset-stage-1", - ); - } - - if (typeof pipelineProposal !== "string") { - throw new Error( - "The pipeline operator requires a proposal set." + - " You must pass 'pipelineProposal' option to" + - " @babel/preset-stage-1 whose value must be one of: " + - proposals.join(", "), - ); - } - return { presets: [[presetStage2, { loose, useBuiltIns, decoratorsLegacy }]], plugins: [ diff --git a/packages/babel-preset-stage-2/package.json b/packages/babel-preset-stage-2/package.json index bf6d8ed4f3e95..9b2961ea23fa9 100644 --- a/packages/babel-preset-stage-2/package.json +++ b/packages/babel-preset-stage-2/package.json @@ -1,6 +1,6 @@ { "name": "@babel/preset-stage-2", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel preset for stage 2 plugins", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -8,18 +8,18 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-2", "main": "lib/index.js", "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-proposal-decorators": "7.0.0-beta.52", - "@babel/plugin-proposal-export-namespace-from": "7.0.0-beta.52", - "@babel/plugin-proposal-function-sent": "7.0.0-beta.52", - "@babel/plugin-proposal-numeric-separator": "7.0.0-beta.52", - "@babel/plugin-proposal-throw-expressions": "7.0.0-beta.52", - "@babel/preset-stage-3": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-proposal-decorators": "7.0.0-beta.54", + "@babel/plugin-proposal-export-namespace-from": "7.0.0-beta.54", + "@babel/plugin-proposal-function-sent": "7.0.0-beta.54", + "@babel/plugin-proposal-numeric-separator": "7.0.0-beta.54", + "@babel/plugin-proposal-throw-expressions": "7.0.0-beta.54", + "@babel/preset-stage-3": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-preset-stage-2/src/index.js b/packages/babel-preset-stage-2/src/index.js index f40084eac7a42..8b20233bb9fea 100644 --- a/packages/babel-preset-stage-2/src/index.js +++ b/packages/babel-preset-stage-2/src/index.js @@ -10,7 +10,7 @@ import transformThrowExpressions from "@babel/plugin-proposal-throw-expressions" export default declare((api, opts = {}) => { api.assertVersion(7); - const { loose = false, useBuiltIns = false, decoratorsLegacy = false } = opts; + const { loose = false, useBuiltIns = false, decoratorsLegacy = true } = opts; if (typeof loose !== "boolean") { throw new Error("@babel/preset-stage-2 'loose' option must be a boolean."); @@ -26,14 +26,6 @@ export default declare((api, opts = {}) => { ); } - if (decoratorsLegacy !== true) { - throw new Error( - "The new decorators proposal is not supported yet." + - ' You must pass the `"decoratorsLegacy": true` option to' + - " @babel/preset-stage-2", - ); - } - return { presets: [[presetStage3, { loose, useBuiltIns }]], plugins: [ diff --git a/packages/babel-preset-stage-3/package.json b/packages/babel-preset-stage-3/package.json index d65921839927b..04a0001db0f6f 100644 --- a/packages/babel-preset-stage-3/package.json +++ b/packages/babel-preset-stage-3/package.json @@ -1,6 +1,6 @@ { "name": "@babel/preset-stage-3", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel preset for stage 3 plugins", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -8,20 +8,20 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-3", "main": "lib/index.js", "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.52", - "@babel/plugin-proposal-class-properties": "7.0.0-beta.52", - "@babel/plugin-proposal-json-strings": "7.0.0-beta.52", - "@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.52", - "@babel/plugin-proposal-optional-catch-binding": "7.0.0-beta.52", - "@babel/plugin-proposal-unicode-property-regex": "7.0.0-beta.52", - "@babel/plugin-syntax-dynamic-import": "7.0.0-beta.52", - "@babel/plugin-syntax-import-meta": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.54", + "@babel/plugin-proposal-class-properties": "7.0.0-beta.54", + "@babel/plugin-proposal-json-strings": "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-unicode-property-regex": "7.0.0-beta.54", + "@babel/plugin-syntax-dynamic-import": "7.0.0-beta.54", + "@babel/plugin-syntax-import-meta": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54" } } diff --git a/packages/babel-preset-typescript/package.json b/packages/babel-preset-typescript/package.json index 34cd429c6a395..5c29b54498ed2 100644 --- a/packages/babel-preset-typescript/package.json +++ b/packages/babel-preset-typescript/package.json @@ -1,6 +1,6 @@ { "name": "@babel/preset-typescript", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel preset for TypeScript.", "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-typescript", "license": "MIT", @@ -10,14 +10,14 @@ "typescript" ], "dependencies": { - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-transform-typescript": "7.0.0-beta.52" + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-transform-typescript": "7.0.0-beta.54" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-register/package.json b/packages/babel-register/package.json index 1e37d965f9662..11c373fc46289 100644 --- a/packages/babel-register/package.json +++ b/packages/babel-register/package.json @@ -1,6 +1,6 @@ { "name": "@babel/register", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "babel require hook", "license": "MIT", "repository": "https://github.com/babel/babel/tree/master/packages/babel-register", @@ -15,14 +15,14 @@ "home-or-tmp": "^3.0.0", "lodash": "^4.17.5", "mkdirp": "^0.5.1", - "pirates": "^3.0.1", + "pirates": "^4.0.0", "source-map-support": "^0.4.2" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", + "@babel/core": "7.0.0-beta.54", "default-require-extensions": "^2.0.0" } } diff --git a/packages/babel-register/src/node.js b/packages/babel-register/src/node.js index fe9a46c15dc5c..c73ddef062af0 100644 --- a/packages/babel-register/src/node.js +++ b/packages/babel-register/src/node.js @@ -101,7 +101,6 @@ function hookExtensions(exts) { export function revert() { if (piratesRevert) piratesRevert(); - delete require.cache[require.resolve(__filename)]; } register(); diff --git a/packages/babel-register/test/index.js b/packages/babel-register/test/index.js index 5643bdcf6f5b1..1f54094e9d9a5 100644 --- a/packages/babel-register/test/index.js +++ b/packages/babel-register/test/index.js @@ -52,6 +52,7 @@ describe("@babel/register", function() { function revertRegister() { if (babelRegister) { babelRegister.revert(); + delete require.cache[registerFile]; babelRegister = null; } } diff --git a/packages/babel-runtime/package.json b/packages/babel-runtime/package.json index 679712d0cbb0f..06345ef18286c 100644 --- a/packages/babel-runtime/package.json +++ b/packages/babel-runtime/package.json @@ -1,6 +1,6 @@ { "name": "@babel/runtime", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "babel selfContained runtime", "license": "MIT", "repository": "https://github.com/babel/babel/tree/master/packages/babel-runtime", @@ -10,10 +10,10 @@ "regenerator-runtime": "^0.12.0" }, "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helpers": "7.0.0-beta.52", - "@babel/plugin-transform-runtime": "7.0.0-beta.52", - "@babel/preset-env": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helpers": "7.0.0-beta.54", + "@babel/plugin-transform-runtime": "7.0.0-beta.54", + "@babel/preset-env": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54" } } diff --git a/packages/babel-standalone/package.json b/packages/babel-standalone/package.json index 7b01cdb0edb09..74eb97cb87bc2 100644 --- a/packages/babel-standalone/package.json +++ b/packages/babel-standalone/package.json @@ -1,6 +1,6 @@ { "name": "@babel/standalone", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Standalone build of Babel for use in non-Node.js environments.", "main": "babel.js", "files": [ @@ -9,93 +9,93 @@ "src" ], "devDependencies": { - "@babel/core": "7.0.0-beta.52", - "@babel/helper-plugin-utils": "7.0.0-beta.52", - "@babel/plugin-external-helpers": "7.0.0-beta.52", - "@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.52", - "@babel/plugin-proposal-class-properties": "7.0.0-beta.52", - "@babel/plugin-proposal-decorators": "7.0.0-beta.52", - "@babel/plugin-proposal-do-expressions": "7.0.0-beta.52", - "@babel/plugin-proposal-export-default-from": "7.0.0-beta.52", - "@babel/plugin-proposal-export-namespace-from": "7.0.0-beta.52", - "@babel/plugin-proposal-function-bind": "7.0.0-beta.52", - "@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.52", - "@babel/plugin-proposal-optional-catch-binding": "7.0.0-beta.52", - "@babel/plugin-proposal-pipeline-operator": "7.0.0-beta.52", - "@babel/plugin-proposal-unicode-property-regex": "7.0.0-beta.52", - "@babel/plugin-syntax-async-generators": "7.0.0-beta.52", - "@babel/plugin-syntax-class-properties": "7.0.0-beta.52", - "@babel/plugin-syntax-decorators": "7.0.0-beta.52", - "@babel/plugin-syntax-do-expressions": "7.0.0-beta.52", - "@babel/plugin-syntax-dynamic-import": "7.0.0-beta.52", - "@babel/plugin-syntax-export-default-from": "7.0.0-beta.52", - "@babel/plugin-syntax-export-namespace-from": "7.0.0-beta.52", - "@babel/plugin-syntax-flow": "7.0.0-beta.52", - "@babel/plugin-syntax-function-bind": "7.0.0-beta.52", - "@babel/plugin-syntax-function-sent": "7.0.0-beta.52", - "@babel/plugin-syntax-import-meta": "7.0.0-beta.52", - "@babel/plugin-syntax-jsx": "7.0.0-beta.52", - "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.52", - "@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.52", - "@babel/plugin-syntax-pipeline-operator": "7.0.0-beta.52", - "@babel/plugin-syntax-typescript": "7.0.0-beta.52", - "@babel/plugin-transform-arrow-functions": "7.0.0-beta.52", - "@babel/plugin-transform-async-to-generator": "7.0.0-beta.52", - "@babel/plugin-transform-block-scoped-functions": "7.0.0-beta.52", - "@babel/plugin-transform-block-scoping": "7.0.0-beta.52", - "@babel/plugin-transform-classes": "7.0.0-beta.52", - "@babel/plugin-transform-computed-properties": "7.0.0-beta.52", - "@babel/plugin-transform-destructuring": "7.0.0-beta.52", - "@babel/plugin-transform-dotall-regex": "7.0.0-beta.52", - "@babel/plugin-transform-duplicate-keys": "7.0.0-beta.52", - "@babel/plugin-transform-exponentiation-operator": "7.0.0-beta.52", - "@babel/plugin-transform-flow-comments": "7.0.0-beta.52", - "@babel/plugin-transform-flow-strip-types": "7.0.0-beta.52", - "@babel/plugin-transform-for-of": "7.0.0-beta.52", - "@babel/plugin-transform-function-name": "7.0.0-beta.52", - "@babel/plugin-transform-instanceof": "7.0.0-beta.52", - "@babel/plugin-transform-jscript": "7.0.0-beta.52", - "@babel/plugin-transform-literals": "7.0.0-beta.52", - "@babel/plugin-transform-member-expression-literals": "7.0.0-beta.52", - "@babel/plugin-transform-modules-amd": "7.0.0-beta.52", - "@babel/plugin-transform-modules-commonjs": "7.0.0-beta.52", - "@babel/plugin-transform-modules-systemjs": "7.0.0-beta.52", - "@babel/plugin-transform-modules-umd": "7.0.0-beta.52", - "@babel/plugin-transform-new-target": "7.0.0-beta.52", - "@babel/plugin-transform-object-assign": "7.0.0-beta.52", - "@babel/plugin-transform-object-set-prototype-of-to-assign": "7.0.0-beta.52", - "@babel/plugin-transform-object-super": "7.0.0-beta.52", - "@babel/plugin-transform-parameters": "7.0.0-beta.52", - "@babel/plugin-transform-property-literals": "7.0.0-beta.52", - "@babel/plugin-transform-property-mutators": "7.0.0-beta.52", - "@babel/plugin-transform-proto-to-assign": "7.0.0-beta.52", - "@babel/plugin-transform-react-constant-elements": "7.0.0-beta.52", - "@babel/plugin-transform-react-display-name": "7.0.0-beta.52", - "@babel/plugin-transform-react-inline-elements": "7.0.0-beta.52", - "@babel/plugin-transform-react-jsx": "7.0.0-beta.52", - "@babel/plugin-transform-react-jsx-compat": "7.0.0-beta.52", - "@babel/plugin-transform-react-jsx-self": "7.0.0-beta.52", - "@babel/plugin-transform-react-jsx-source": "7.0.0-beta.52", - "@babel/plugin-transform-regenerator": "7.0.0-beta.52", - "@babel/plugin-transform-runtime": "7.0.0-beta.52", - "@babel/plugin-transform-shorthand-properties": "7.0.0-beta.52", - "@babel/plugin-transform-spread": "7.0.0-beta.52", - "@babel/plugin-transform-sticky-regex": "7.0.0-beta.52", - "@babel/plugin-transform-strict-mode": "7.0.0-beta.52", - "@babel/plugin-transform-template-literals": "7.0.0-beta.52", - "@babel/plugin-transform-typeof-symbol": "7.0.0-beta.52", - "@babel/plugin-transform-typescript": "7.0.0-beta.52", - "@babel/plugin-transform-unicode-regex": "7.0.0-beta.52", - "@babel/preset-es2015": "7.0.0-beta.52", - "@babel/preset-es2016": "7.0.0-beta.52", - "@babel/preset-es2017": "7.0.0-beta.52", - "@babel/preset-flow": "7.0.0-beta.52", - "@babel/preset-react": "7.0.0-beta.52", - "@babel/preset-stage-0": "7.0.0-beta.52", - "@babel/preset-stage-1": "7.0.0-beta.52", - "@babel/preset-stage-2": "7.0.0-beta.52", - "@babel/preset-stage-3": "7.0.0-beta.52", - "@babel/preset-typescript": "7.0.0-beta.52" + "@babel/core": "7.0.0-beta.54", + "@babel/helper-plugin-utils": "7.0.0-beta.54", + "@babel/plugin-external-helpers": "7.0.0-beta.54", + "@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.54", + "@babel/plugin-proposal-class-properties": "7.0.0-beta.54", + "@babel/plugin-proposal-decorators": "7.0.0-beta.54", + "@babel/plugin-proposal-do-expressions": "7.0.0-beta.54", + "@babel/plugin-proposal-export-default-from": "7.0.0-beta.54", + "@babel/plugin-proposal-export-namespace-from": "7.0.0-beta.54", + "@babel/plugin-proposal-function-bind": "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-pipeline-operator": "7.0.0-beta.54", + "@babel/plugin-proposal-unicode-property-regex": "7.0.0-beta.54", + "@babel/plugin-syntax-async-generators": "7.0.0-beta.54", + "@babel/plugin-syntax-class-properties": "7.0.0-beta.54", + "@babel/plugin-syntax-decorators": "7.0.0-beta.54", + "@babel/plugin-syntax-do-expressions": "7.0.0-beta.54", + "@babel/plugin-syntax-dynamic-import": "7.0.0-beta.54", + "@babel/plugin-syntax-export-default-from": "7.0.0-beta.54", + "@babel/plugin-syntax-export-namespace-from": "7.0.0-beta.54", + "@babel/plugin-syntax-flow": "7.0.0-beta.54", + "@babel/plugin-syntax-function-bind": "7.0.0-beta.54", + "@babel/plugin-syntax-function-sent": "7.0.0-beta.54", + "@babel/plugin-syntax-import-meta": "7.0.0-beta.54", + "@babel/plugin-syntax-jsx": "7.0.0-beta.54", + "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.54", + "@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.54", + "@babel/plugin-syntax-pipeline-operator": "7.0.0-beta.54", + "@babel/plugin-syntax-typescript": "7.0.0-beta.54", + "@babel/plugin-transform-arrow-functions": "7.0.0-beta.54", + "@babel/plugin-transform-async-to-generator": "7.0.0-beta.54", + "@babel/plugin-transform-block-scoped-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-dotall-regex": "7.0.0-beta.54", + "@babel/plugin-transform-duplicate-keys": "7.0.0-beta.54", + "@babel/plugin-transform-exponentiation-operator": "7.0.0-beta.54", + "@babel/plugin-transform-flow-comments": "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-instanceof": "7.0.0-beta.54", + "@babel/plugin-transform-jscript": "7.0.0-beta.54", + "@babel/plugin-transform-literals": "7.0.0-beta.54", + "@babel/plugin-transform-member-expression-literals": "7.0.0-beta.54", + "@babel/plugin-transform-modules-amd": "7.0.0-beta.54", + "@babel/plugin-transform-modules-commonjs": "7.0.0-beta.54", + "@babel/plugin-transform-modules-systemjs": "7.0.0-beta.54", + "@babel/plugin-transform-modules-umd": "7.0.0-beta.54", + "@babel/plugin-transform-new-target": "7.0.0-beta.54", + "@babel/plugin-transform-object-assign": "7.0.0-beta.54", + "@babel/plugin-transform-object-set-prototype-of-to-assign": "7.0.0-beta.54", + "@babel/plugin-transform-object-super": "7.0.0-beta.54", + "@babel/plugin-transform-parameters": "7.0.0-beta.54", + "@babel/plugin-transform-property-literals": "7.0.0-beta.54", + "@babel/plugin-transform-property-mutators": "7.0.0-beta.54", + "@babel/plugin-transform-proto-to-assign": "7.0.0-beta.54", + "@babel/plugin-transform-react-constant-elements": "7.0.0-beta.54", + "@babel/plugin-transform-react-display-name": "7.0.0-beta.54", + "@babel/plugin-transform-react-inline-elements": "7.0.0-beta.54", + "@babel/plugin-transform-react-jsx": "7.0.0-beta.54", + "@babel/plugin-transform-react-jsx-compat": "7.0.0-beta.54", + "@babel/plugin-transform-react-jsx-self": "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-runtime": "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-strict-mode": "7.0.0-beta.54", + "@babel/plugin-transform-template-literals": "7.0.0-beta.54", + "@babel/plugin-transform-typeof-symbol": "7.0.0-beta.54", + "@babel/plugin-transform-typescript": "7.0.0-beta.54", + "@babel/plugin-transform-unicode-regex": "7.0.0-beta.54", + "@babel/preset-es2015": "7.0.0-beta.53", + "@babel/preset-es2016": "7.0.0-beta.53", + "@babel/preset-es2017": "7.0.0-beta.53", + "@babel/preset-flow": "7.0.0-beta.54", + "@babel/preset-react": "7.0.0-beta.54", + "@babel/preset-stage-0": "7.0.0-beta.54", + "@babel/preset-stage-1": "7.0.0-beta.54", + "@babel/preset-stage-2": "7.0.0-beta.54", + "@babel/preset-stage-3": "7.0.0-beta.54", + "@babel/preset-typescript": "7.0.0-beta.54" }, "keywords": [ "babel", diff --git a/packages/babel-template/package.json b/packages/babel-template/package.json index 588d654cc26e0..f53c1ea0aa9f8 100644 --- a/packages/babel-template/package.json +++ b/packages/babel-template/package.json @@ -1,6 +1,6 @@ { "name": "@babel/template", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Generate an AST from a string template.", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -8,9 +8,9 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-template", "main": "lib/index.js", "dependencies": { - "@babel/code-frame": "7.0.0-beta.52", - "@babel/parser": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52", + "@babel/code-frame": "7.0.0-beta.54", + "@babel/parser": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54", "lodash": "^4.17.5" } } diff --git a/packages/babel-traverse/package.json b/packages/babel-traverse/package.json index 9928bca3d28b5..2d631cd25aa71 100644 --- a/packages/babel-traverse/package.json +++ b/packages/babel-traverse/package.json @@ -1,6 +1,6 @@ { "name": "@babel/traverse", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -8,18 +8,17 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-traverse", "main": "lib/index.js", "dependencies": { - "@babel/code-frame": "7.0.0-beta.52", - "@babel/generator": "7.0.0-beta.52", - "@babel/helper-function-name": "7.0.0-beta.52", - "@babel/helper-split-export-declaration": "7.0.0-beta.52", - "@babel/parser": "7.0.0-beta.52", - "@babel/types": "7.0.0-beta.52", + "@babel/code-frame": "7.0.0-beta.54", + "@babel/generator": "7.0.0-beta.54", + "@babel/helper-function-name": "7.0.0-beta.54", + "@babel/helper-split-export-declaration": "7.0.0-beta.54", + "@babel/parser": "7.0.0-beta.54", + "@babel/types": "7.0.0-beta.54", "debug": "^3.1.0", "globals": "^11.1.0", - "invariant": "^2.2.0", "lodash": "^4.17.5" }, "devDependencies": { - "@babel/helper-plugin-test-runner": "7.0.0-beta.52" + "@babel/helper-plugin-test-runner": "7.0.0-beta.54" } } diff --git a/packages/babel-traverse/src/path/index.js b/packages/babel-traverse/src/path/index.js index 63c70fecb12fa..dbdc0a08af8db 100644 --- a/packages/babel-traverse/src/path/index.js +++ b/packages/babel-traverse/src/path/index.js @@ -2,7 +2,6 @@ import type Hub from "../hub"; import type TraversalContext from "../context"; import * as virtualTypes from "./lib/virtual-types"; import buildDebug from "debug"; -import invariant from "invariant"; import traverse from "../index"; import Scope from "../scope"; import * as t from "@babel/types"; @@ -76,7 +75,9 @@ export default class NodePath { hub = parentPath.hub; } - invariant(parent, "To get a node path the parent needs to exist"); + if (!parent) { + throw new Error("To get a node path the parent needs to exist"); + } const targetNode = container[key]; diff --git a/packages/babel-types/package.json b/packages/babel-types/package.json index 279ecdd0efee7..e8f25741e9325 100644 --- a/packages/babel-types/package.json +++ b/packages/babel-types/package.json @@ -1,6 +1,6 @@ { "name": "@babel/types", - "version": "7.0.0-beta.52", + "version": "7.0.0-beta.54", "description": "Babel Types is a Lodash-esque utility library for AST nodes", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -14,7 +14,7 @@ "to-fast-properties": "^2.0.0" }, "devDependencies": { - "@babel/generator": "7.0.0-beta.52", - "@babel/parser": "7.0.0-beta.52" + "@babel/generator": "7.0.0-beta.54", + "@babel/parser": "7.0.0-beta.54" } } diff --git a/packages/babel-types/src/definitions/jsx.js b/packages/babel-types/src/definitions/jsx.js index c039450e95353..4404273956034 100644 --- a/packages/babel-types/src/definitions/jsx.js +++ b/packages/babel-types/src/definitions/jsx.js @@ -142,6 +142,13 @@ defineType("JSXOpeningElement", { assertEach(assertNodeType("JSXAttribute", "JSXSpreadAttribute")), ), }, + typeParameters: { + validate: assertNodeType( + "TypeParameterInstantiation", + "TSTypeParameterInstantiation", + ), + optional: true, + }, }, }); diff --git a/yarn.lock b/yarn.lock index bd7851cc15c76..55e107772510d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1222,11 +1222,11 @@ append-buffer@^1.0.2: dependencies: buffer-equal "^1.0.0" -append-transform@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-0.4.0.tgz#d76ebf8ca94d276e247a36bad44a4b74ab611991" +append-transform@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-1.0.0.tgz#046a52ae582a228bd72f58acfbe2967c678759ab" dependencies: - default-require-extensions "^1.0.0" + default-require-extensions "^2.0.0" aproba@^1.0.3: version "1.2.0" @@ -1506,15 +1506,15 @@ babel-core@^7.0.0-0: version "7.0.0-bridge.0" resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" -babel-eslint@^8.2.5: - version "8.2.5" - resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.2.5.tgz#dc2331c259d36782aa189da510c43dedd5adc7a3" +babel-eslint@^8.2.6: + version "8.2.6" + resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.2.6.tgz#6270d0c73205628067c0f7ae1693a9e797acefd9" dependencies: "@babel/code-frame" "7.0.0-beta.44" "@babel/traverse" "7.0.0-beta.44" "@babel/types" "7.0.0-beta.44" babylon "7.0.0-beta.44" - eslint-scope "~3.7.1" + eslint-scope "3.7.1" eslint-visitor-keys "^1.0.0" babel-generator@^6.18.0, babel-generator@^6.26.0: @@ -1537,12 +1537,12 @@ babel-helpers@^6.24.1: babel-runtime "^6.22.0" babel-template "^6.24.1" -babel-jest@^22.4.1: - version "22.4.1" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-22.4.1.tgz#ff53ebca45957347f27ff4666a31499fbb4c4ddd" +babel-jest@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-23.4.0.tgz#22c34c392e2176f6a4c367992a7fcff69d2e8557" dependencies: - babel-plugin-istanbul "^4.1.5" - babel-preset-jest "^22.4.1" + babel-plugin-istanbul "^4.1.6" + babel-preset-jest "^23.2.0" babel-loader@8.0.0-beta.0: version "8.0.0-beta.0" @@ -1558,17 +1558,18 @@ babel-messages@^6.23.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-istanbul@^4.1.5: - version "4.1.5" - resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.5.tgz#6760cdd977f411d3e175bb064f2bc327d99b2b6e" +babel-plugin-istanbul@^4.1.6: + version "4.1.6" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz#36c59b2192efce81c5b378321b74175add1c9a45" dependencies: + babel-plugin-syntax-object-rest-spread "^6.13.0" find-up "^2.1.0" - istanbul-lib-instrument "^1.7.5" - test-exclude "^4.1.1" + istanbul-lib-instrument "^1.10.1" + test-exclude "^4.2.1" -babel-plugin-jest-hoist@^22.4.1: - version "22.4.1" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-22.4.1.tgz#d712fe5da8b6965f3191dacddbefdbdf4fb66d63" +babel-plugin-jest-hoist@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz#e61fae05a1ca8801aadee57a6d66b8cefaf44167" babel-plugin-syntax-object-rest-spread@^6.13.0: version "6.13.0" @@ -1581,11 +1582,11 @@ babel-plugin-transform-charcodes@^0.1.0: "@babel/traverse" "^7.0.0-beta.31" babylon "^7.0.0-beta.31" -babel-preset-jest@^22.4.1: - version "22.4.1" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-22.4.1.tgz#efa2e5f5334242a9457a068452d7d09735db172a" +babel-preset-jest@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz#8ec7a03a138f001a1a8fb1e8113652bf1a55da46" dependencies: - babel-plugin-jest-hoist "^22.4.1" + babel-plugin-jest-hoist "^23.2.0" babel-plugin-syntax-object-rest-spread "^6.13.0" babel-register@^6.26.0: @@ -1617,7 +1618,7 @@ babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0: babylon "^6.18.0" lodash "^4.17.4" -babel-traverse@^6.18.0, babel-traverse@^6.26.0: +babel-traverse@^6.0.0, babel-traverse@^6.18.0, babel-traverse@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" dependencies: @@ -1631,7 +1632,7 @@ babel-traverse@^6.18.0, babel-traverse@^6.26.0: invariant "^2.2.2" lodash "^4.17.4" -babel-types@^6.18.0, babel-types@^6.26.0: +babel-types@^6.0.0, babel-types@^6.18.0, babel-types@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" dependencies: @@ -1803,12 +1804,18 @@ browser-process-hrtime@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.2.tgz#425d68a58d3447f02a04aa894187fce8af8b7b8e" -browser-resolve@^1.11.0, browser-resolve@^1.11.2, browser-resolve@^1.7.0: +browser-resolve@^1.11.0, browser-resolve@^1.7.0: version "1.11.2" resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.2.tgz#8ff09b0a2c421718a1051c260b32e48f442938ce" dependencies: resolve "1.1.7" +browser-resolve@^1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" + dependencies: + resolve "1.1.7" + browser-unpack@^1.1.0: version "1.2.0" resolved "https://registry.yarnpkg.com/browser-unpack/-/browser-unpack-1.2.0.tgz#357aee31fc467831684d063e4355e070a782970d" @@ -1945,6 +1952,10 @@ buffer-equal@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/buffer-equal/-/buffer-equal-1.0.0.tgz#59616b498304d556abd466966b22eeda3eca5fbe" +buffer-from@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.0.tgz#87fcaa3a298358e0ade6e442cfce840740d1ad04" + buffer-xor@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" @@ -2358,6 +2369,10 @@ compare-func@^1.3.1: array-ify "^1.0.0" dot-prop "^3.0.0" +compare-versions@^3.1.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.3.0.tgz#af93ea705a96943f622ab309578b9b90586f39c3" + component-emitter@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" @@ -2800,11 +2815,11 @@ default-compare@^1.0.0: dependencies: kind-of "^5.0.2" -default-require-extensions@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-1.0.0.tgz#f37ea15d3e13ffd9b437d33e1a75b5fb97874cb8" +default-require-extensions@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-2.0.0.tgz#f5f8fbb18a7d6d50b21f641f649ebb522cfe24f7" dependencies: - strip-bom "^2.0.0" + strip-bom "^3.0.0" default-resolution@^2.0.0: version "2.0.0" @@ -3212,40 +3227,44 @@ eslint-config-babel@^7.0.2: version "7.0.2" resolved "https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-7.0.2.tgz#cbde74f61cee087d8cd6e607fcfa087869a02d99" -eslint-plugin-flowtype@^2.49.3: - version "2.49.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.49.3.tgz#ccca6ee5ba2027eb3ed36bc2ec8c9a842feee841" +eslint-plugin-flowtype@^2.50.0: + version "2.50.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.0.tgz#953e262fa9b5d0fa76e178604892cf60dfb916da" dependencies: lodash "^4.17.10" -eslint-plugin-prettier@^2.6.1: - version "2.6.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.1.tgz#de902b4a66b7bca24296429a59a1cc04020ccbbd" +eslint-plugin-prettier@^2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.2.tgz#71998c60aedfa2141f7bfcbf9d1c459bf98b4fad" dependencies: fast-diff "^1.1.1" jest-docblock "^21.0.0" -eslint-scope@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.0.tgz#50bf3071e9338bcdc43331794a0cb533f0136172" +eslint-scope@3.7.1: + version "3.7.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8" dependencies: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-scope@~3.7.1: - version "3.7.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8" +eslint-scope@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.0.tgz#50bf3071e9338bcdc43331794a0cb533f0136172" dependencies: esrecurse "^4.1.0" estraverse "^4.1.1" +eslint-utils@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.3.1.tgz#9a851ba89ee7c460346f97cf8939c7298827e512" + eslint-visitor-keys@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" -eslint@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.0.1.tgz#109b90ab7f7a736f54e0f341c8bb9d09777494c3" +eslint@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.1.0.tgz#2ed611f1ce163c0fb99e1e0cda5af8f662dff645" dependencies: ajv "^6.5.0" babel-code-frame "^6.26.0" @@ -3254,6 +3273,7 @@ eslint@^5.0.1: debug "^3.1.0" doctrine "^2.1.0" eslint-scope "^4.0.0" + eslint-utils "^1.3.1" eslint-visitor-keys "^1.0.0" espree "^4.0.0" esquery "^1.0.1" @@ -3261,7 +3281,7 @@ eslint@^5.0.1: file-entry-cache "^2.0.0" functional-red-black-tree "^1.0.1" glob "^7.1.2" - globals "^11.5.0" + globals "^11.7.0" ignore "^3.3.3" imurmurhash "^0.1.4" inquirer "^5.2.0" @@ -3411,16 +3431,16 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2: dependencies: homedir-polyfill "^1.0.1" -expect@^22.4.0: - version "22.4.0" - resolved "https://registry.yarnpkg.com/expect/-/expect-22.4.0.tgz#371edf1ae15b83b5bf5ec34b42f1584660a36c16" +expect@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-23.4.0.tgz#6da4ecc99c1471253e7288338983ad1ebadb60c3" dependencies: ansi-styles "^3.2.0" - jest-diff "^22.4.0" + jest-diff "^23.2.0" jest-get-type "^22.1.0" - jest-matcher-utils "^22.4.0" - jest-message-util "^22.4.0" - jest-regex-util "^22.1.0" + jest-matcher-utils "^23.2.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" extend-shallow@^1.1.2: version "1.1.4" @@ -3648,9 +3668,9 @@ flat-cache@^1.2.1: graceful-fs "^4.1.2" write "^0.2.1" -flow-bin@^0.75.0: - version "0.75.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.75.0.tgz#b96d1ee99d3b446a3226be66b4013224ce9df260" +flow-bin@^0.76.0: + version "0.76.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.76.0.tgz#eb00036991c3abc106743fcbc7ee321f02aa4faa" flush-write-stream@^1.0.2: version "1.0.3" @@ -3950,7 +3970,7 @@ globals@^11.1.0: version "11.3.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.3.0.tgz#e04fdb7b9796d8adac9c8f64c14837b2313378b0" -globals@^11.5.0: +globals@^11.7.0: version "11.7.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.7.0.tgz#a583faa43055b1aca771914bf68258e2fc125673" @@ -4858,78 +4878,79 @@ isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" -istanbul-api@^1.1.14: - version "1.2.2" - resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.2.2.tgz#e17cd519dd5ec4141197f246fdf380b75487f3b1" +istanbul-api@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.3.1.tgz#4c3b05d18c0016d1022e079b98dc82c40f488954" dependencies: async "^2.1.4" + compare-versions "^3.1.0" fileset "^2.0.2" - istanbul-lib-coverage "^1.1.2" - istanbul-lib-hook "^1.1.0" - istanbul-lib-instrument "^1.9.2" - istanbul-lib-report "^1.1.3" - istanbul-lib-source-maps "^1.2.3" - istanbul-reports "^1.1.4" + istanbul-lib-coverage "^1.2.0" + istanbul-lib-hook "^1.2.0" + istanbul-lib-instrument "^1.10.1" + istanbul-lib-report "^1.1.4" + istanbul-lib-source-maps "^1.2.4" + istanbul-reports "^1.3.0" js-yaml "^3.7.0" mkdirp "^0.5.1" once "^1.4.0" -istanbul-lib-coverage@^1.1.1, istanbul-lib-coverage@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.1.2.tgz#4113c8ff6b7a40a1ef7350b01016331f63afde14" +istanbul-lib-coverage@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.0.tgz#f7d8f2e42b97e37fe796114cb0f9d68b5e3a4341" -istanbul-lib-hook@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.1.0.tgz#8538d970372cb3716d53e55523dd54b557a8d89b" +istanbul-lib-hook@^1.2.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.2.1.tgz#f614ec45287b2a8fc4f07f5660af787575601805" dependencies: - append-transform "^0.4.0" + append-transform "^1.0.0" -istanbul-lib-instrument@^1.7.5, istanbul-lib-instrument@^1.8.0, istanbul-lib-instrument@^1.9.2: - version "1.9.2" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.9.2.tgz#84905bf47f7e0b401d6b840da7bad67086b4aab6" +istanbul-lib-instrument@^1.10.1: + version "1.10.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.1.tgz#724b4b6caceba8692d3f1f9d0727e279c401af7b" dependencies: babel-generator "^6.18.0" babel-template "^6.16.0" babel-traverse "^6.18.0" babel-types "^6.18.0" babylon "^6.18.0" - istanbul-lib-coverage "^1.1.2" + istanbul-lib-coverage "^1.2.0" semver "^5.3.0" -istanbul-lib-report@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.1.3.tgz#2df12188c0fa77990c0d2176d2d0ba3394188259" +istanbul-lib-report@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.1.4.tgz#e886cdf505c4ebbd8e099e4396a90d0a28e2acb5" dependencies: - istanbul-lib-coverage "^1.1.2" + istanbul-lib-coverage "^1.2.0" mkdirp "^0.5.1" path-parse "^1.0.5" supports-color "^3.1.2" -istanbul-lib-source-maps@^1.2.1, istanbul-lib-source-maps@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.3.tgz#20fb54b14e14b3fb6edb6aca3571fd2143db44e6" +istanbul-lib-source-maps@^1.2.4: + version "1.2.5" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.5.tgz#ffe6be4e7ab86d3603e4290d54990b14506fc9b1" dependencies: debug "^3.1.0" - istanbul-lib-coverage "^1.1.2" + istanbul-lib-coverage "^1.2.0" mkdirp "^0.5.1" rimraf "^2.6.1" source-map "^0.5.3" -istanbul-reports@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.1.4.tgz#5ccba5e22b7b5a5d91d5e0a830f89be334bf97bd" +istanbul-reports@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.3.0.tgz#2f322e81e1d9520767597dca3c20a0cce89a3554" dependencies: handlebars "^4.0.3" -jest-changed-files@^22.2.0: - version "22.2.0" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-22.2.0.tgz#517610c4a8ca0925bdc88b0ca53bd678aa8d019e" +jest-changed-files@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-23.4.0.tgz#f1b304f98c235af5d9a31ec524262c5e4de3c6ff" dependencies: throat "^4.0.0" -jest-cli@^22.4.2: - version "22.4.2" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-22.4.2.tgz#e6546dc651e13d164481aa3e76e53ac4f4edab06" +jest-cli@^23.4.1: + version "23.4.1" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-23.4.1.tgz#c1ffd33254caee376990aa2abe2963e0de4ca76b" dependencies: ansi-escapes "^3.0.0" chalk "^2.0.1" @@ -4938,83 +4959,94 @@ jest-cli@^22.4.2: graceful-fs "^4.1.11" import-local "^1.0.0" is-ci "^1.0.10" - istanbul-api "^1.1.14" - istanbul-lib-coverage "^1.1.1" - istanbul-lib-instrument "^1.8.0" - istanbul-lib-source-maps "^1.2.1" - jest-changed-files "^22.2.0" - jest-config "^22.4.2" - jest-environment-jsdom "^22.4.1" + istanbul-api "^1.3.1" + istanbul-lib-coverage "^1.2.0" + istanbul-lib-instrument "^1.10.1" + istanbul-lib-source-maps "^1.2.4" + jest-changed-files "^23.4.0" + jest-config "^23.4.1" + jest-environment-jsdom "^23.4.0" jest-get-type "^22.1.0" - jest-haste-map "^22.4.2" - jest-message-util "^22.4.0" - jest-regex-util "^22.1.0" - jest-resolve-dependencies "^22.1.0" - jest-runner "^22.4.2" - jest-runtime "^22.4.2" - jest-snapshot "^22.4.0" - jest-util "^22.4.1" - jest-validate "^22.4.2" - jest-worker "^22.2.2" + jest-haste-map "^23.4.1" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + jest-resolve-dependencies "^23.4.1" + jest-runner "^23.4.1" + jest-runtime "^23.4.1" + jest-snapshot "^23.4.1" + jest-util "^23.4.0" + jest-validate "^23.4.0" + jest-watcher "^23.4.0" + jest-worker "^23.2.0" micromatch "^2.3.11" node-notifier "^5.2.1" + prompts "^0.1.9" realpath-native "^1.0.0" rimraf "^2.5.4" slash "^1.0.0" string-length "^2.0.0" strip-ansi "^4.0.0" which "^1.2.12" - yargs "^10.0.3" + yargs "^11.0.0" -jest-config@^22.4.2: - version "22.4.2" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-22.4.2.tgz#580ba5819bf81a5e48f4fd470e8b81834f45c855" +jest-config@^23.4.1: + version "23.4.1" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-23.4.1.tgz#3172fa21f0507d7f8a088ed1dbe4157057f201e9" dependencies: + babel-core "^6.0.0" + babel-jest "^23.4.0" chalk "^2.0.1" glob "^7.1.1" - jest-environment-jsdom "^22.4.1" - jest-environment-node "^22.4.1" + jest-environment-jsdom "^23.4.0" + jest-environment-node "^23.4.0" jest-get-type "^22.1.0" - jest-jasmine2 "^22.4.2" - jest-regex-util "^22.1.0" - jest-resolve "^22.4.2" - jest-util "^22.4.1" - jest-validate "^22.4.2" - pretty-format "^22.4.0" + jest-jasmine2 "^23.4.1" + jest-regex-util "^23.3.0" + jest-resolve "^23.4.1" + jest-util "^23.4.0" + jest-validate "^23.4.0" + pretty-format "^23.2.0" -jest-diff@^22.4.0: - version "22.4.0" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-22.4.0.tgz#384c2b78519ca44ca126382df53f134289232525" +jest-diff@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-23.2.0.tgz#9f2cf4b51e12c791550200abc16b47130af1062a" dependencies: chalk "^2.0.1" diff "^3.2.0" jest-get-type "^22.1.0" - pretty-format "^22.4.0" + pretty-format "^23.2.0" jest-docblock@^21.0.0: version "21.2.0" resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-21.2.0.tgz#51529c3b30d5fd159da60c27ceedc195faf8d414" -jest-docblock@^22.4.0: - version "22.4.0" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-22.4.0.tgz#dbf1877e2550070cfc4d9b07a55775a0483159b8" +jest-docblock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-23.2.0.tgz#f085e1f18548d99fdd69b20207e6fd55d91383a7" dependencies: detect-newline "^2.1.0" -jest-environment-jsdom@^22.4.1: - version "22.4.1" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-22.4.1.tgz#754f408872441740100d3917e5ec40c74de6447f" +jest-each@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-23.4.0.tgz#2fa9edd89daa1a4edc9ff9bf6062a36b71345143" + dependencies: + chalk "^2.0.1" + pretty-format "^23.2.0" + +jest-environment-jsdom@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-23.4.0.tgz#056a7952b3fea513ac62a140a2c368c79d9e6023" dependencies: - jest-mock "^22.2.0" - jest-util "^22.4.1" + jest-mock "^23.2.0" + jest-util "^23.4.0" jsdom "^11.5.1" -jest-environment-node@^22.4.1: - version "22.4.1" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-22.4.1.tgz#418850eb654596b8d6e36c2021cbedbc23df8e16" +jest-environment-node@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-23.4.0.tgz#57e80ed0841dea303167cce8cd79521debafde10" dependencies: - jest-mock "^22.2.0" - jest-util "^22.4.1" + jest-mock "^23.2.0" + jest-util "^23.4.0" jest-get-type@^21.2.0: version "21.2.0" @@ -5024,51 +5056,51 @@ jest-get-type@^22.1.0: version "22.1.0" resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.1.0.tgz#4e90af298ed6181edc85d2da500dbd2753e0d5a9" -jest-haste-map@^22.4.2: - version "22.4.2" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-22.4.2.tgz#a90178e66146d4378bb076345a949071f3b015b4" +jest-haste-map@^23.4.1: + version "23.4.1" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-23.4.1.tgz#43a174ba7ac079ae1dd74eaf5a5fe78989474dd2" dependencies: fb-watchman "^2.0.0" graceful-fs "^4.1.11" - jest-docblock "^22.4.0" - jest-serializer "^22.4.0" - jest-worker "^22.2.2" + jest-docblock "^23.2.0" + jest-serializer "^23.0.1" + jest-worker "^23.2.0" micromatch "^2.3.11" sane "^2.0.0" -jest-jasmine2@^22.4.2: - version "22.4.2" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-22.4.2.tgz#dfd3d259579ed6f52510d8f1ab692808f0d40691" +jest-jasmine2@^23.4.1: + version "23.4.1" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-23.4.1.tgz#fa192262430d418e827636e4a98423e5e7ff0fce" dependencies: chalk "^2.0.1" co "^4.6.0" - expect "^22.4.0" - graceful-fs "^4.1.11" + expect "^23.4.0" is-generator-fn "^1.0.0" - jest-diff "^22.4.0" - jest-matcher-utils "^22.4.0" - jest-message-util "^22.4.0" - jest-snapshot "^22.4.0" - jest-util "^22.4.1" - source-map-support "^0.5.0" + jest-diff "^23.2.0" + jest-each "^23.4.0" + jest-matcher-utils "^23.2.0" + jest-message-util "^23.4.0" + jest-snapshot "^23.4.1" + jest-util "^23.4.0" + pretty-format "^23.2.0" -jest-leak-detector@^22.4.0: - version "22.4.0" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-22.4.0.tgz#64da77f05b001c96d2062226e079f89989c4aa2f" +jest-leak-detector@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-23.2.0.tgz#c289d961dc638f14357d4ef96e0431ecc1aa377d" dependencies: - pretty-format "^22.4.0" + pretty-format "^23.2.0" -jest-matcher-utils@^22.4.0: - version "22.4.0" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-22.4.0.tgz#d55f5faf2270462736bdf7c7485ee931c9d4b6a1" +jest-matcher-utils@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-23.2.0.tgz#4d4981f23213e939e3cedf23dc34c747b5ae1913" dependencies: chalk "^2.0.1" jest-get-type "^22.1.0" - pretty-format "^22.4.0" + pretty-format "^23.2.0" -jest-message-util@^22.4.0: - version "22.4.0" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-22.4.0.tgz#e3d861df16d2fee60cb2bc8feac2188a42579642" +jest-message-util@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-23.4.0.tgz#17610c50942349508d01a3d1e0bda2c079086a9f" dependencies: "@babel/code-frame" "^7.0.0-beta.35" chalk "^2.0.1" @@ -5076,93 +5108,104 @@ jest-message-util@^22.4.0: slash "^1.0.0" stack-utils "^1.0.1" -jest-mock@^22.2.0: - version "22.2.0" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-22.2.0.tgz#444b3f9488a7473adae09bc8a77294afded397a7" +jest-mock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-23.2.0.tgz#ad1c60f29e8719d47c26e1138098b6d18b261134" -jest-regex-util@^22.1.0: - version "22.1.0" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-22.1.0.tgz#5daf2fe270074b6da63e5d85f1c9acc866768f53" +jest-regex-util@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-23.3.0.tgz#5f86729547c2785c4002ceaa8f849fe8ca471bc5" -jest-resolve-dependencies@^22.1.0: - version "22.1.0" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-22.1.0.tgz#340e4139fb13315cd43abc054e6c06136be51e31" +jest-resolve-dependencies@^23.4.1: + version "23.4.1" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-23.4.1.tgz#a1d85247e2963f8b3859f6b0ec61b741b359378e" dependencies: - jest-regex-util "^22.1.0" + jest-regex-util "^23.3.0" + jest-snapshot "^23.4.1" -jest-resolve@^22.4.2: - version "22.4.2" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-22.4.2.tgz#25d88aa4147462c9c1c6a1ba16250d3794c24d00" +jest-resolve@^23.4.1: + version "23.4.1" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-23.4.1.tgz#7f3c17104732a2c0c940a01256025ed745814982" dependencies: - browser-resolve "^1.11.2" + browser-resolve "^1.11.3" chalk "^2.0.1" + realpath-native "^1.0.0" -jest-runner@^22.4.2: - version "22.4.2" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-22.4.2.tgz#19390ea9d99f768973e16f95a1efa351c0017e87" +jest-runner@^23.4.1: + version "23.4.1" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-23.4.1.tgz#d41fd1459b95d35d6df685f1468c09e617c8c260" dependencies: exit "^0.1.2" - jest-config "^22.4.2" - jest-docblock "^22.4.0" - jest-haste-map "^22.4.2" - jest-jasmine2 "^22.4.2" - jest-leak-detector "^22.4.0" - jest-message-util "^22.4.0" - jest-runtime "^22.4.2" - jest-util "^22.4.1" - jest-worker "^22.2.2" + graceful-fs "^4.1.11" + jest-config "^23.4.1" + jest-docblock "^23.2.0" + jest-haste-map "^23.4.1" + jest-jasmine2 "^23.4.1" + jest-leak-detector "^23.2.0" + jest-message-util "^23.4.0" + jest-runtime "^23.4.1" + jest-util "^23.4.0" + jest-worker "^23.2.0" + source-map-support "^0.5.6" throat "^4.0.0" -jest-runtime@^22.4.2: - version "22.4.2" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-22.4.2.tgz#0de0444f65ce15ee4f2e0055133fc7c17b9168f3" +jest-runtime@^23.4.1: + version "23.4.1" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-23.4.1.tgz#c1822eba5eb19294debe6b25b2760d0a8c532fd1" dependencies: babel-core "^6.0.0" - babel-jest "^22.4.1" - babel-plugin-istanbul "^4.1.5" + babel-plugin-istanbul "^4.1.6" chalk "^2.0.1" convert-source-map "^1.4.0" exit "^0.1.2" + fast-json-stable-stringify "^2.0.0" graceful-fs "^4.1.11" - jest-config "^22.4.2" - jest-haste-map "^22.4.2" - jest-regex-util "^22.1.0" - jest-resolve "^22.4.2" - jest-util "^22.4.1" - jest-validate "^22.4.2" - json-stable-stringify "^1.0.1" + jest-config "^23.4.1" + jest-haste-map "^23.4.1" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.4.1" + jest-snapshot "^23.4.1" + jest-util "^23.4.0" + jest-validate "^23.4.0" micromatch "^2.3.11" realpath-native "^1.0.0" slash "^1.0.0" strip-bom "3.0.0" write-file-atomic "^2.1.0" - yargs "^10.0.3" + yargs "^11.0.0" -jest-serializer@^22.4.0: - version "22.4.0" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-22.4.0.tgz#b5d145b98c4b0d2c20ab686609adbb81fe23b566" +jest-serializer@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-23.0.1.tgz#a3776aeb311e90fe83fab9e533e85102bd164165" -jest-snapshot@^22.4.0: - version "22.4.0" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-22.4.0.tgz#03d3ce63f8fa7352388afc6a3c8b5ccc3a180ed7" +jest-snapshot@^23.4.1: + version "23.4.1" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-23.4.1.tgz#090de9acae927f6a3af3005bda40d912b83e9c96" dependencies: + babel-traverse "^6.0.0" + babel-types "^6.0.0" chalk "^2.0.1" - jest-diff "^22.4.0" - jest-matcher-utils "^22.4.0" + jest-diff "^23.2.0" + jest-matcher-utils "^23.2.0" + jest-message-util "^23.4.0" + jest-resolve "^23.4.1" mkdirp "^0.5.1" natural-compare "^1.4.0" - pretty-format "^22.4.0" + pretty-format "^23.2.0" + semver "^5.5.0" -jest-util@^22.4.1: - version "22.4.1" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-22.4.1.tgz#dd17c3bdb067f8e90591563ec0c42bf847dc249f" +jest-util@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-23.4.0.tgz#4d063cb927baf0a23831ff61bec2cbbf49793561" dependencies: callsites "^2.0.0" chalk "^2.0.1" graceful-fs "^4.1.11" is-ci "^1.0.10" - jest-message-util "^22.4.0" + jest-message-util "^23.4.0" mkdirp "^0.5.1" + slash "^1.0.0" source-map "^0.6.0" jest-validate@^21.1.0: @@ -5174,28 +5217,35 @@ jest-validate@^21.1.0: leven "^2.1.0" pretty-format "^21.2.1" -jest-validate@^22.4.2: - version "22.4.2" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-22.4.2.tgz#e789a4e056173bf97fe797a2df2d52105c57d4f4" +jest-validate@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-23.4.0.tgz#d96eede01ef03ac909c009e9c8e455197d48c201" dependencies: chalk "^2.0.1" - jest-config "^22.4.2" jest-get-type "^22.1.0" leven "^2.1.0" - pretty-format "^22.4.0" + pretty-format "^23.2.0" -jest-worker@^22.2.2: - version "22.2.2" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-22.2.2.tgz#c1f5dc39976884b81f68ec50cb8532b2cbab3390" +jest-watcher@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-23.4.0.tgz#d2e28ce74f8dad6c6afc922b92cabef6ed05c91c" + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.1" + string-length "^2.0.0" + +jest-worker@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-23.2.0.tgz#faf706a8da36fae60eb26957257fa7b5d8ea02b9" dependencies: merge-stream "^1.0.1" -jest@^22.4.2: - version "22.4.2" - resolved "https://registry.yarnpkg.com/jest/-/jest-22.4.2.tgz#34012834a49bf1bdd3bc783850ab44e4499afc20" +jest@^23.4.1: + version "23.4.1" + resolved "https://registry.yarnpkg.com/jest/-/jest-23.4.1.tgz#39550c72f3237f63ae1b434d8d122cdf6fa007b6" dependencies: import-local "^1.0.0" - jest-cli "^22.4.2" + jest-cli "^23.4.1" js-levenshtein@^1.1.3: version "1.1.3" @@ -5371,6 +5421,10 @@ klaw@^2.1.0: dependencies: graceful-fs "^4.1.9" +kleur@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-1.0.2.tgz#637f126d3cda40a423b1297da88cf753bd04ebdd" + labeled-stream-splicer@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/labeled-stream-splicer/-/labeled-stream-splicer-2.0.0.tgz#a52e1d138024c00b86b1c0c91f677918b8ae0a59" @@ -5945,7 +5999,7 @@ micromatch@^3.0.4, micromatch@^3.1.4: snapdragon "^0.8.1" to-regex "^3.0.1" -micromatch@^3.1.10: +micromatch@^3.1.10, micromatch@^3.1.8: version "3.1.10" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" dependencies: @@ -6778,9 +6832,9 @@ preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" -prettier@1.13.2: - version "1.13.2" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.2.tgz#412b87bc561cb11074d2877a33a38f78c2303cda" +prettier@^1.13.7: + version "1.13.7" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.7.tgz#850f3b8af784a49a6ea2d2eaa7ed1428a34b7281" pretty-format@^21.2.1: version "21.2.1" @@ -6789,9 +6843,9 @@ pretty-format@^21.2.1: ansi-regex "^3.0.0" ansi-styles "^3.2.0" -pretty-format@^22.4.0: - version "22.4.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-22.4.0.tgz#237b1f7e1c50ed03bc65c03ccc29d7c8bb7beb94" +pretty-format@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.2.0.tgz#3b0aaa63c018a53583373c1cb3a5d96cc5e83017" dependencies: ansi-regex "^3.0.0" ansi-styles "^3.2.0" @@ -6824,6 +6878,13 @@ progress@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f" +prompts@^0.1.9: + version "0.1.12" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-0.1.12.tgz#39dc42de7d2f0ec3e2af76bf40713fcb8726090d" + dependencies: + kleur "^1.0.0" + sisteransi "^0.1.1" + prr@~1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" @@ -7594,6 +7655,10 @@ signal-exit@^3.0.0, signal-exit@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" +sisteransi@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-0.1.1.tgz#5431447d5f7d1675aac667ccd0b865a4994cb3ce" + slash@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" @@ -7673,10 +7738,11 @@ source-map-support@^0.4.15, source-map-support@^0.4.2: dependencies: source-map "^0.5.6" -source-map-support@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.3.tgz#2b3d5fff298cfa4d1afd7d4352d569e9a0158e76" +source-map-support@^0.5.6: + version "0.5.6" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.6.tgz#4435cee46b1aab62b8e8610ce60f788091c51c13" dependencies: + buffer-from "^1.0.0" source-map "^0.6.0" source-map-url@^0.4.0: @@ -8081,12 +8147,12 @@ tempfile@^1.1.1: os-tmpdir "^1.0.0" uuid "^2.0.1" -test-exclude@^4.1.1: - version "4.2.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-4.2.0.tgz#07e3613609a362c74516a717515e13322ab45b3c" +test-exclude@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-4.2.1.tgz#dfa222f03480bca69207ca728b37d74b45f724fa" dependencies: arrify "^1.0.1" - micromatch "^2.3.11" + micromatch "^3.1.8" object-assign "^4.1.0" read-pkg-up "^1.0.1" require-main-filename "^1.0.1" @@ -8840,15 +8906,15 @@ yargs-parser@^7.0.0: dependencies: camelcase "^4.1.0" -yargs-parser@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-8.1.0.tgz#f1376a33b6629a5d063782944da732631e966950" +yargs-parser@^9.0.2: + version "9.0.2" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-9.0.2.tgz#9ccf6a43460fe4ed40a9bb68f48d43b8a68cc077" dependencies: camelcase "^4.1.0" -yargs@^10.0.3: - version "10.1.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-10.1.2.tgz#454d074c2b16a51a43e2fb7807e4f9de69ccb5c5" +yargs@^11.0.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.1.0.tgz#90b869934ed6e871115ea2ff58b03f4724ed2d77" dependencies: cliui "^4.0.0" decamelize "^1.1.1" @@ -8861,7 +8927,7 @@ yargs@^10.0.3: string-width "^2.0.0" which-module "^2.0.0" y18n "^3.2.1" - yargs-parser "^8.1.0" + yargs-parser "^9.0.2" yargs@^6.5.0, yargs@^6.6.0: version "6.6.0"