diff --git a/.github/CHANGELOG-6to5.md b/.github/CHANGELOG-6to5.md index 45afe2368d8d..88016f402214 100644 --- a/.github/CHANGELOG-6to5.md +++ b/.github/CHANGELOG-6to5.md @@ -122,7 +122,7 @@ * Restructure transformers so they're only ran if the AST contains nodes that they need to worry about. Improves transpilation speed significantly. * **Bug Fix** * Fix source maps not tracking end of node locations. - * **Spec Compliancy** + * **Spec Compliance** * Use static super references as the home object is actually done at definition time. * **Polish** * Force the `es6.destructuring` transformer to be whitelisted when the `es7.objectSpread` transformer is. @@ -479,7 +479,7 @@ ## 2.12.3 - * **Spec Compliancy** + * **Spec Compliance** * Optional `typeof` transformer checks for `undefined` before passing it to the helper. * Class methods are now named. @@ -551,7 +551,7 @@ * Add `classesFastSuper` optional transformer that doesn't support parent getters and prototype changing. * Add `forOfFast` transformer that speeds up `for...of` on arrays but produces more code. * Add `--react-compat` to `bin/6to5`. - * **Spec Compliancy** + * **Spec Compliance** * Disallow setters without a single parameter. * Add `configurable` and `writable` to defined properties. * Use define instead of assignment for class methods. @@ -619,7 +619,7 @@ ## 2.7.0 - * **Spec Compliancy** + * **Spec Compliance** * Disallow reassignments of imports. * **New Feature** * `reactCompat` option to enable pre-v0.12 react components. @@ -662,7 +662,7 @@ * **Polish** * Move `"use strict";` to inside module bodies instead of at the top of the file. * Better handling of dynamic imports. - * **Spec Compliancy** + * **Spec Compliance** * Class inheritance now has a `function` or `null` type check. * Add `interopRequireWildcard` around wildcard imports and exports to handle non-object exports. diff --git a/.github/CHANGELOG-v4.md b/.github/CHANGELOG-v4.md index 7a06b2c93eee..ea6c1d496f50 100644 --- a/.github/CHANGELOG-v4.md +++ b/.github/CHANGELOG-v4.md @@ -110,7 +110,7 @@ * Throw an error on different `babel` and `babel-runtime` versions. * Replicate module environment for `babel-node` eval. * Clean up classes output. - * **Spec Compliancy** + * **Spec Compliance** * Make it illegal to use a rest parameter on a setter. ## 4.6.6 @@ -150,8 +150,8 @@ * **New Feature** * Desugar sticky regexes to a new constructor expression so it can be handled by a polyfill. - * **Spec Compliancy** - * `for...of` now outputs in a lengthy `try...catch` this is to ensure spec compliancy in regards to iterator returns and abrupt completions. See [google/traceur-compiler#1773](https://github.com/google/traceur-compiler/issues/1773) and [babel/babel/#838](https://github.com/babel/babel/issues/838) for more information. + * **Spec Compliance** + * `for...of` now outputs in a lengthy `try...catch` this is to ensure spec compliance in regards to iterator returns and abrupt completions. See [google/traceur-compiler#1773](https://github.com/google/traceur-compiler/issues/1773) and [babel/babel/#838](https://github.com/babel/babel/issues/838) for more information. * **Polish** * Rest parameters that are only referred to via number properties on member expressions are desugared into a direct `arguments` reference. Thanks [@neVERberleRfellerER](https://github.com/neVERberleRfellerER)! * `$ babel` no longer exits on syntax errors. diff --git a/.github/CHANGELOG-v5.md b/.github/CHANGELOG-v5.md index 64d4999d58df..30d9f2d051ff 100644 --- a/.github/CHANGELOG-v5.md +++ b/.github/CHANGELOG-v5.md @@ -12,7 +12,7 @@ ## 5.8.24 - * **Spec Compliancy** + * **Spec Compliance** * Updated `optimisation.react.inlineElements` transformer to React 0.14 output. Thanks [@spicyj](https://github.com/spicyj)! * **Polish** * Add support for evaluating more static nodes. Thanks [@hzoo](https://github.com/hzoo)! @@ -451,7 +451,7 @@ Issues with publish process. ![gifs lol](https://31.media.tumblr.com/568205a0e37ae15eca510fa639589a59/tumblr_n8kw8kpcSb1sg6cg8o1_500.gif) - * **Spec Compliancy** + * **Spec Compliance** * Allow trailing param commas for methods when using the `es7.trailingCommas` transformer. * **Bug Fix** * Fix `es6.blockScoping` transformer not properly ignoring `break` in `SwitchCase`. @@ -481,7 +481,7 @@ Issues with publish process. * Fix correct function scope being passed to `nameMethod.property` when inferring the function name for class methods. * Fix incorrect extensions reference causing weird issues when using the Babel CLI. * Fix destructuring param reference replacements not inheriting from their original param. - * **Spec Compliancy** + * **Spec Compliance** * Fix order that method decorators are ran in. ## 5.2.15 @@ -616,7 +616,7 @@ Issues with publish process. * Fix `externalHelpers` option being incorrectly listed as type `string`. * **Internal** * Upgrade `core-js` to `0.9.0`. - * **Spec Compliancy** + * **Spec Compliance** * Fix object decorators not using the `initializer` pattern. * Remove property initializer descriptor reflection. diff --git a/.github/CHANGELOG-v6.md b/.github/CHANGELOG-v6.md index 92d9173db5b8..4094b38395a1 100644 --- a/.github/CHANGELOG-v6.md +++ b/.github/CHANGELOG-v6.md @@ -22,7 +22,7 @@ > Backports for some folks (also other's when we accidentally merged PRs from both 6.x/master) > Lesson learned: just use `master` and backport on another branch. -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-core`, `babel-generator`, `babel-plugin-transform-flow-comments`, `babel-plugin-transform-flow-strip-types`, `babel-traverse`, `babel-types` * [#6081](https://github.com/babel/babel/pull/6081) Flow opaque type 6.x backport. ([@jbrown215](https://github.com/jbrown215)) @@ -1468,7 +1468,7 @@ It's a one-time use tool (helpful after the initial release when upgrading from ## v6.17.0 (2016-10-01) -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-preset-stage-2`, `babel-preset-stage-3` * [#4617](https://github.com/babel/babel/pull/4617) Move async-generators to stage-3. ([@hzoo](https://github.com/hzoo)) @@ -1476,7 +1476,7 @@ It's a one-time use tool (helpful after the initial release when upgrading from Specification repo: https://github.com/tc39/proposal-async-iteration -Asynchronous Iteration was already added in [6.16.0](http://babeljs.io/blog/2016/09/28/6.16.0#spec-compliancy) under stage-2 but it was moved to stage-3 at the [latest TC-39 meeting](https://github.com/tc39/agendas/blob/master/2016/09.md#agenda-for-the-54th-meeting-of-ecma-tc39). +Asynchronous Iteration was already added in [6.16.0](http://babeljs.io/blog/2016/09/28/6.16.0#spec-compliance) under stage-2 but it was moved to stage-3 at the [latest TC-39 meeting](https://github.com/tc39/agendas/blob/master/2016/09.md#agenda-for-the-54th-meeting-of-ecma-tc39). ```js // async generator syntax @@ -1569,7 +1569,7 @@ First PR! Babel 6.16: Happy 2nd Birthday 🎂! -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-core`, `babel-generator`, `babel-helper-remap-async-to-generator`, `babel-helpers`, `babel-plugin-transform-async-generator-functions`, `babel-types`, `babel-preset-stage-2`, ... * [#3473](https://github.com/babel/babel/pull/3473) via [#4576](https://github.com/babel/babel/pull/4576) Implement support for async generator functions and for-await statements. ([@zenparsing](https://github.com/zenparsing)) @@ -2036,7 +2036,7 @@ It's also a lot folk's first PR (or first code PR)! * `babel-generator`, `babel-types` * [#3570](https://github.com/babel/babel/pull/3570) Add support for the new declare module.exports of flow. ([@danez](https://github.com/danez)) -#### Spec Compliancy +#### Spec Compliance * `babel-plugin-transform-es2015-modules-amd`, `babel-plugin-transform-es2015-modules-commonjs`, `babel-plugin-transform-es2015-modules-umd` * [#3518](https://github.com/babel/babel/pull/3518) Throw error for multiple exports default. ([@kaicataldo](https://github.com/kaicataldo)) @@ -2332,7 +2332,7 @@ Length: The number of characters in the output code * `babel-plugin-transform-react-jsx-self`, `babel-preset-react` * [#3540](https://github.com/babel/babel/pull/3540) Added jsx-self babel transform plugin. ([@jimfb](https://github.com/jimfb)) -#### Spec Compliancy +#### Spec Compliance * `babel-plugin-transform-es2015-unicode-regex` * [#3338](https://github.com/babel/babel/pull/3338) Update to `regexpu-core@2.0.0` for ES2016 compliance. ([@mathiasbynens](https://github.com/mathiasbynens)) @@ -3206,7 +3206,7 @@ Changes to note: - Reverting the class properties semicolon parser error. - Fix regression with plugin ordering with `babel-register`. -#### Spec Compliancy +#### Spec Compliance * `babel-plugin-transform-class-properties`, `babylon` * [#3332](https://github.com/babel/babel/pull/3332) Revert to standard ASI behavior for class properties. ([@loganfsmyth](https://github.com/loganfsmyth)) @@ -3628,7 +3628,7 @@ Thanks to @samwgoldman for all the new flow support! * `babel-plugin-transform-es2015-parameters`: [#3191](https://github.com/babel/babel/pull/3191) Fix the order of arguments initialization (fixes [T6809](http://phabricator.babeljs.io/T6809)) * `babel-traverse`: [#3198](https://github.com/babel/babel/pull/3198) In `evaluate()`, it should not mistake lack of confidence for falsy -* **Spec Compliancy** +* **Spec Compliance** * `babylon`, `babel-generator`, `babel-plugin-transform-regenerator`: [#3190](https://github.com/babel/babel/pull/3190): Remove `await *` from `babylon` and raise an error for that syntax since it was removed from the proposal and was causing an issue at runtime but not at compile time (fixes [T6688](http://phabricator.babeljs.io/T6688)). * **Internal** @@ -3863,7 +3863,7 @@ Thanks to @samwgoldman for all the new flow support! * Move `children` prop pushing to after props to ensure correct order in the react inline elements plugin. * Fix `buildExternalHelpers` script ignoring non-underscored helpers. * Fix exported classes with static class properties. - * **Spec Compliancy** + * **Spec Compliance** * Add support for computed mutators in `babel-plugin-transform-es2015-computed-properties`. * **Polish** * Make interop for plugins with the `__esModule` work for all plugins no matter how they're imported/specified. @@ -3904,7 +3904,7 @@ Thanks to @samwgoldman for all the new flow support! * **Polish** * Add npm 3 check to `babel-doctor`. * Autoclear the `babel/register` cache when it gets too big to be serialised. - * **Spec Compliancy** + * **Spec Compliance** * Add support for flow existential type parameters. ## 6.1.1 @@ -3969,7 +3969,7 @@ Thanks to @samwgoldman for all the new flow support! ## 6.0.14 - * **Spec Compliancy** + * **Spec Compliance** * Update exponentiation operator precedence. * Fix parser bug where arrow functions have a higher precedence than they should. * **Bug Fix** diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e3ff912fbc1..d51eaca1b7d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ > **Tags:** > - :boom: [Breaking Change] -> - :eyeglasses: [Spec Compliancy] +> - :eyeglasses: [Spec Compliance] > - :rocket: [New Feature] > - :bug: [Bug Fix] > - :memo: [Documentation] @@ -484,7 +484,7 @@ See [Babylon's CHANGELOG](packages/babylon/CHANGELOG.md) for the Babylon pre-7.0 ## v7.3.3 (2019-02-15) -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-generator` * [#9501](https://github.com/babel/babel/pull/9501) Correctly output escapes in directives ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo)) @@ -506,11 +506,11 @@ See [Babylon's CHANGELOG](packages/babylon/CHANGELOG.md) for the Babylon pre-7.0 * [#9491](https://github.com/babel/babel/pull/9491) Better error output in parser tests ([@danez](https://github.com/danez)) ## v7.3.2 (2019-02-04) -Various spec compliancy fixes and better support for smart pipelines and private methods. +Various spec compliance fixes and better support for smart pipelines and private methods. Thanks @gverni, @naffiq, @spondbob and @dstaley for their first PRs! -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-parser` * [#9403](https://github.com/babel/babel/pull/9403) Fix line continuation with Unicode line terminators. ([@danez](https://github.com/danez)) * [#9400](https://github.com/babel/babel/pull/9400) Make yield a contextual keyword. ([@danez](https://github.com/danez)) @@ -558,7 +558,7 @@ This release fixes some regressions introduced in v7.3.0 Thanks to @jamesgeorge007 and @armano2 for their first PR! -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-parser` * [#9314](https://github.com/babel/babel/pull/9314) Disallow async functions as loop body. ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo)) * [#9315](https://github.com/babel/babel/pull/9315) Parse class heritage as strict mode code. ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo)) @@ -779,7 +779,7 @@ You can read more about this release at https://babeljs.io/blog/2018/12/03/7.2.0 ## v7.1.5 (2018-11-06) -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-parser`, `babylon` * [#7727](https://github.com/babel/babel/pull/7727) Fix await in function name and parameters. ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo)) @@ -1242,7 +1242,7 @@ Fixed a peerDep issue Mostly bug fixes and some decorator updates -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-plugin-proposal-unicode-property-regex` * [#8127](https://github.com/babel/babel/pull/8127) Update plugin-proposal-unicode-property-regex for Unicode v11. ([@mathiasbynens](https://github.com/mathiasbynens)) * `babel-parser` @@ -1342,7 +1342,7 @@ Mostly bugfix release for a regression in decorators, and a quick fix for some n - Fix IE10 class regression - Various fixes, many TS fixes -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-parser`, `babel-plugin-proposal-json-strings`, `babel-plugin-syntax-json-strings`, `babel-preset-stage-3` * [#7985](https://github.com/babel/babel/pull/7985) Subsume json. ([@jridgewell](https://github.com/jridgewell)) @@ -1532,7 +1532,7 @@ Mostly bugfix release for a regression in decorators, and a quick fix for some n * `babel-generator`, `babel-helper-define-map`, `babel-plugin-syntax-class-properties`, `babel-plugin-transform-parameters`, `babel-plugin-transform-react-constant-elements`, `babel-traverse`, `babel-types` * [#7666](https://github.com/babel/babel/pull/7666) Private Properties phase 1. ([@jridgewell](https://github.com/jridgewell)) -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-helper-simple-access`, `babel-plugin-transform-modules-commonjs`, `babel-plugin-transform-modules-systemjs` * [#7766](https://github.com/babel/babel/pull/7766) Correct update expression Number coercion. ([@jridgewell](https://github.com/jridgewell)) * `babel-core`, `babel-generator`, `babel-plugin-proposal-decorators`, `babel-types`, `babylon` @@ -1620,7 +1620,7 @@ Mostly bugfix release for a regression in decorators, and a quick fix for some n Various fixes, also lazy-load `@babel/core` dependencies (should make config lookup and other API methods fast for other projects to use). -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-plugin-proposal-logical-assignment-operators` * [#7604](https://github.com/babel/babel/pull/7604) Logical Assignment: ensure computed key isn't recomputed. ([@jridgewell](https://github.com/jridgewell)) @@ -1719,7 +1719,7 @@ We'll need to update tooling for this ^. Also published `gulp-babel@8.0.0-beta.2 * `babel-register` * [#7416](https://github.com/babel/babel/pull/7416) Replace instead of merging babel-register options, and resolve cwd up front. ([@loganfsmyth](https://github.com/loganfsmyth)) -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babylon` * [#7503](https://github.com/babel/babel/pull/7503) Update test262 test script and a few keyword escape fixes. ([@existentialism](https://github.com/existentialism)) * [#7498](https://github.com/babel/babel/pull/7498) Disallow setters to have RestElement. ([@danez](https://github.com/danez)) @@ -1867,7 +1867,7 @@ We'll need to update tooling for this ^. Also published `gulp-babel@8.0.0-beta.2 ## v7.0.0-beta.39 (2018-01-30) -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-plugin-proposal-optional-chaining` * [#6345](https://github.com/babel/babel/pull/6345) Remove old optional chain features. ([@jridgewell](https://github.com/jridgewell)) @@ -2080,7 +2080,7 @@ Fixes + [overrides](https://github.com/babel/babel/pull/7091) config feature Various bug fixes, first version of Babel to use the MIT version of `regenerator` -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babylon` * [#6986](https://github.com/babel/babel/pull/6986) Fix destructuring assignment spec violation. ([@ksashikumar](https://github.com/ksashikumar)) * `babel-helper-replace-supers`, `babel-helpers`, `babel-plugin-proposal-class-properties`, `babel-plugin-transform-classes`, `babel-plugin-transform-parameters` @@ -2133,7 +2133,7 @@ Various bug fixes, first version of Babel to use the MIT version of `regenerator * `babel-preset-stage-1`, `babel-preset-stage-2` * [#6949](https://github.com/babel/babel/pull/6949) Fix stage refs to exportNamespaceFrom and exportDefaultFrom. ([@existentialism](https://github.com/existentialism)) -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-preset-stage-0`, `babel-preset-stage-1` * [#6943](https://github.com/babel/babel/pull/6943) Moving Do expression to stage 1. ([@rajzshkr](https://github.com/rajzshkr)) @@ -2147,7 +2147,7 @@ Various bug fixes, first version of Babel to use the MIT version of `regenerator ## v7.0.0-beta.33 (2017-12-01) -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-generator`, `babel-plugin-proposal-export-default-from`, `babel-plugin-proposal-export-default`, `babel-plugin-proposal-export-namespace-from`, `babel-plugin-proposal-export-namespace`, `babel-plugin-syntax-export-default-from`, `babel-plugin-syntax-export-extensions`, `babel-plugin-syntax-export-namespace-from`, `babel-standalone`, `babylon` * [#6920](https://github.com/babel/babel/pull/6920) Split exportExtensions into exportDefault and exportNamespace plugins…. ([@existentialism](https://github.com/existentialism)) * `babylon` @@ -2332,7 +2332,7 @@ Various bug fixes, first version of Babel to use the MIT version of `regenerator > Note: don't use ^ in your dependencies when using a beta. It can still break between (we should try not to do it but it can), so pin all the packages like `"@babel/cli" : "7.0.0-beta.4"` -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-plugin-transform-optional-chaining` * [#6525](https://github.com/babel/babel/pull/6525) Optional Chaining: Account for document.all. ([@azz](https://github.com/azz)) * `babel-preset-env`, `babel-helper-remap-async-to-generator`, `babel-helpers`, `babel-plugin-transform-async-generator-functions`, `babel-plugin-transform-async-to-generator`, `babel-plugin-transform-function-sent` @@ -2612,7 +2612,7 @@ let {...{}} = {}; let {...[]} = {}; - Add `--config-file` CLI flag to explicitly pass a config location - Move `babel-standalone` into the repo (another form of this used to be `babel-browser`) -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-plugin-transform-async-to-generator`, `babel-*` * [#6094](https://github.com/babel/babel/pull/6094) Spec compatibility for iteratorClose condition.. ([@yavorsky](https://github.com/yavorsky)) * `babel-helpers`, `babel-plugin-transform-es2015-computed-properties` @@ -2748,7 +2748,7 @@ Initial release of typescript equivalent of how Babel handles flow with a new `b ## v7.0.0-alpha.18 (2017-08-03) -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-generator`, `babel-plugin-transform-flow-comments`, `babel-plugin-transform-flow-strip-types`, `babel-types` * [#5990](https://github.com/babel/babel/pull/5990) Flow opaque type aliases. ([@jbrown215](https://github.com/jbrown215)) * `babel-preset-stage-3` @@ -2797,9 +2797,9 @@ Initial release of typescript equivalent of how Babel handles flow with a new `b - Optional catch binding `try {} catch {}`: `babel-plugin-transform-optional-catch-binding` - es2015-parameters `loose` mode that doesn't use `arguments` -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-plugin-check-es2015-constants` - * [#5930](https://github.com/babel/babel/pull/5930) Spec compliancy of check-es2015-constants plugin. ([@maurobringolf](https://github.com/maurobringolf)) + * [#5930](https://github.com/babel/babel/pull/5930) Spec compliance of check-es2015-constants plugin. ([@maurobringolf](https://github.com/maurobringolf)) > Instead of throwing a compile time error when const is violated, Babel should insert a throw statement before the violation. @@ -3104,7 +3104,7 @@ var A = function A() { ## v7.0.0-alpha.12 (2017-05-31) -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-core`, `babel-generator`, `babel-plugin-syntax-numeric-separator`, `babel-plugin-transform-numeric-separator`, `babel-preset-stage-1`, `babel-template`, `babel-traverse`, `babel-types` * [#5793](https://github.com/babel/babel/pull/5793) Support for NumericLiteralSeparator, Stage 1 feature. ([@rwaldron](https://github.com/rwaldron)) @@ -3145,7 +3145,7 @@ var A = function A() { Update Babylon: https://github.com/babel/babylon/releases/tag/v7.0.0-beta.9, https://github.com/babel/babylon/releases/tag/v7.0.0-beta.10 -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-generator`, `babel-plugin-transform-flow-strip-types`, `babel-types` * [#5525](https://github.com/babel/babel/pull/5525) Add support for object type spread. ([@conartist6](https://github.com/conartist6)) @@ -3219,7 +3219,7 @@ Update Babylon: https://github.com/babel/babylon/releases/tag/v7.0.0-beta.9, htt ## v7.0.0-alpha.8 (2017-04-17) -#### :eyeglasses: Spec Compliancy +#### :eyeglasses: Spec Compliance * `babel-preset-stage-2`, `babel-preset-stage-3` * [#5610](https://github.com/babel/babel/pull/5610) Move syntax-dynamic-import to stage-3. ([@dkaoster](https://github.com/dkaoster)) diff --git a/packages/babel-helpers/src/helpers.js b/packages/babel-helpers/src/helpers.js index 37485fdf705d..e54dd6444558 100644 --- a/packages/babel-helpers/src/helpers.js +++ b/packages/babel-helpers/src/helpers.js @@ -936,7 +936,7 @@ helpers.iterableToArrayLimit = helper("7.0.0-beta.0")` export default function _iterableToArrayLimit(arr, i) { // this is an expanded form of \`for...of\` that properly supports abrupt completions of // iterators etc. variable names have been minimised to reduce the size of this massive - // helper. sometimes spec compliancy is annoying :( + // helper. sometimes spec compliance is annoying :( // // _n = _iteratorNormalCompletion // _d = _didIteratorError diff --git a/packages/babel-parser/CHANGELOG.md b/packages/babel-parser/CHANGELOG.md index 6ddd17fb8800..8a43406dd600 100644 --- a/packages/babel-parser/CHANGELOG.md +++ b/packages/babel-parser/CHANGELOG.md @@ -2,7 +2,7 @@ > **Tags:** > - :boom: [Breaking Change] -> - :eyeglasses: [Spec Compliancy] +> - :eyeglasses: [Spec Compliance] > - :rocket: [New Feature] > - :bug: [Bug Fix] > - :memo: [Documentation] @@ -56,7 +56,7 @@ See the [Babel Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.m ## 7.0.0-beta.7 (2017-03-22) -### Spec Compliancy +### Spec Compliance * Remove babylon plugin for template revision since it's stage-4 (#426) (Henry Zhu) ### Bug Fix @@ -200,7 +200,7 @@ declare module "C" { } ``` -### :eyeglasses: Spec Compliancy +### :eyeglasses: Spec Compliance Forbid semicolons after decorators in classes ([#352](https://github.com/babel/babylon/pull/352)) (Kevin Gibbons) @@ -305,7 +305,7 @@ AST spec: fix casing of `RegExpLiteral` ([#318](https://github.com/babel/babylon ## 6.15.0 (2017-01-10) -### :eyeglasses: Spec Compliancy +### :eyeglasses: Spec Compliance Add support for Flow shorthand import type ([#267](https://github.com/babel/babylon/pull/267)) (Jeff Morrison) @@ -411,7 +411,7 @@ Will include all parser plugins instead of specifying each one individually. Use ## 6.14.0 (2016-11-16) -### :eyeglasses: Spec Compliancy +### :eyeglasses: Spec Compliance Throw error for reserved words `enum` and `await` ([#195](https://github.com/babel/babylon/pull/195)) (Kai Cataldo) @@ -491,7 +491,7 @@ With that test case, there was a ~95ms savings by removing the need for node to ## v6.13.0 (2016-10-21) -### :eyeglasses: Spec Compliancy +### :eyeglasses: Spec Compliance Property variance type annotations for Flow plugin ([#161](https://github.com/babel/babylon/pull/161)) (Sam Goldman) @@ -549,7 +549,7 @@ Fixes two tests that are failing after the merge of #172 ([#177](https://github. ## v6.12.0 (2016-10-14) -### :eyeglasses: Spec Compliancy +### :eyeglasses: Spec Compliance Implement import() syntax ([#163](https://github.com/babel/babylon/pull/163)) (Jordan Gensler) @@ -643,7 +643,7 @@ export const { foo: [ ,, qux7 ] } = bar; ## v6.11.5 (2016-10-12) -### :eyeglasses: Spec Compliancy +### :eyeglasses: Spec Compliance Fix: Check for duplicate named exports in exported destructuring assignments ([#144](https://github.com/babel/babylon/pull/144)) (Kai Cataldo) @@ -689,7 +689,7 @@ Temporary rollback for erroring on trailing comma with spread (#154) (Henry Zhu) ## v6.11.3 (2016-10-01) -### :eyeglasses: Spec Compliancy +### :eyeglasses: Spec Compliance Add static errors for object rest (#149) ([@danez](https://github.com/danez)) @@ -782,7 +782,7 @@ export toString from './toString'; ## 6.11.0 (2016-09-22) -### Spec Compliancy (will break CI) +### Spec Compliance (will break CI) - Disallow duplicate named exports ([#107](https://github.com/babel/babylon/pull/107)) @kaicataldo @@ -862,9 +862,9 @@ for (+i in {}); ## 6.10.0 (2016-09-19) -> We plan to include some spec compliancy bugs in patch versions. An example was the multiple default exports issue. +> We plan to include some spec compliance bugs in patch versions. An example was the multiple default exports issue. -### Spec Compliancy +### Spec Compliance * Implement ES2016 check for simple parameter list in strict mode ([#106](https://github.com/babel/babylon/pull/106)) (Timothy Gu) @@ -1023,7 +1023,7 @@ declare module "foo" { - The existential type `*` is not a valid type parameter. - The existential type `*` is a primary type -### Spec Compliancy +### Spec Compliance - The param list for type parameter declarations now consists of `TypeParameter` nodes - New `TypeParameter` AST Node (replaces using the `Identifier` node before)