diff --git a/.github/CHANGELOG-6to5.md b/.github/CHANGELOG-6to5.md index 6005a2db3ab0..45afe2368d8d 100644 --- a/.github/CHANGELOG-6to5.md +++ b/.github/CHANGELOG-6to5.md @@ -84,7 +84,7 @@ * More performance improvements. * Parsing is now ~30% faster thanks to [marijnh/acorn@7264bc0178e7e6af7cfe02e9e0c6b26ee0e6007f](https://github.com/marijnh/acorn/commit/7264bc0178e7e6af7cfe02e9e0c6b26ee0e6007f). * **New Feature** - * Optional `es6.blockScopingTDZ` is now completely functional and handles all edgecases. + * Optional `es6.blockScopingTDZ` is now completely functional and handles all edge cases. * `super` in object literals. * Tail call optimisation. Thanks [@RReverser](https://github.com/RReverser)! @@ -474,7 +474,7 @@ * **Polish** * Rest parameters now allocate the array before populating. * **Internal** - * `for...in` loops have been changed to optimized `for` loops - better performance and no enumeration of protoype keys. + * `for...in` loops have been changed to optimized `for` loops - better performance and no enumeration of prototype keys. * Parts of the code generator have now been optimized thanks to [gaearon](https://github.com/gaearon). ## 2.12.3 @@ -643,7 +643,7 @@ * **Bug Fix** * Better handling of number literal property keys. - * Handle `NewExpression` paren insertion edegcases better. + * Handle `NewExpression` paren insertion edge cases better. * **Internal** * Fix incorrect AST node `identifier("this")`. * Better `toIdentifier` method that handles reserved words. @@ -850,7 +850,7 @@ ## 1.14.10 - * Fix let scoping unneccesary override. + * Fix let scoping unnecessary override. ## 1.14.6 @@ -973,7 +973,7 @@ ## 1.12.21 - * Fix unneccesary let scoping replacement. + * Fix unnecessary let scoping replacement. * Add `commonInterop` module formatter. Thanks [@Naddiseo](https://github.com/Naddiseo). * Fix `return` outside of function body bug. Thanks [@brentburg](https://github.com/brentburg). * Add more flexible option types. @@ -1020,7 +1020,7 @@ ## 1.12.12 - * Make scope tracker more reliable to handle all edgecases. + * Make scope tracker more reliable to handle all edge cases. ## 1.12.11 diff --git a/.github/CHANGELOG-v4.md b/.github/CHANGELOG-v4.md index 70ba225ffaef..7a06b2c93eee 100644 --- a/.github/CHANGELOG-v4.md +++ b/.github/CHANGELOG-v4.md @@ -127,7 +127,7 @@ ## 4.6.4 * **Bug Fix** - * Fix `ForOfStatement` not proplery inheriting labels. + * Fix `ForOfStatement` not properly inheriting labels. * When in closure mode in block scoping transformer, properly check for variable shadowing. * **New Feature** * New `utility.inlineEnvironmentVariables` and `utility.inlineExpression` transformers. @@ -153,7 +153,7 @@ * **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. * **Polish** - * Rest parameters that are only refered to via number properties on member expressions are desugared into a direct `arguments` reference. Thanks [@neVERberleRfellerER](https://github.com/neVERberleRfellerER)! + * 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. * **Internal** * Upgrade `browserify`. diff --git a/.github/CHANGELOG-v5.md b/.github/CHANGELOG-v5.md index 04dfb5218d18..64d4999d58df 100644 --- a/.github/CHANGELOG-v5.md +++ b/.github/CHANGELOG-v5.md @@ -262,8 +262,8 @@ Issues with publish process. * Register labels as bindings to fix undeclared variable checks. * **Polish** * Remove unnecessary string binary expressions when transforming template literals. - * Support module live bindings in arbitary positions not in Program statement position. - * Throw error when attemping to replace a `Program` root node with another node not of type `Program`. + * Support module live bindings in arbitrary positions not in Program statement position. + * Throw error when attempting to replace a `Program` root node with another node not of type `Program`. * Optimise rest parameters in spread element position and allocate rest array at the earliest common ancestor of all references. * Generate original number representation when value was not changed. * Check for invalid binding identifiers when generating inferred method names. @@ -543,12 +543,12 @@ Issues with publish process. * **Internal** * Removed native inheritance support from classes. * Added `replaceWithSourceString` path API. - * Split up `es3.propertyLiterals` and `es3.memberExpressionLiterals` transformers to `minfication.propertyLiterals` and `es3.memberExpressionLiterals`. + * Split up `es3.propertyLiterals` and `es3.memberExpressionLiterals` transformers to `minification.propertyLiterals` and `es3.memberExpressionLiterals`. ## 5.2.6 * **Internal** - * Fix transformer aliases being accidently set as deprecated ones. + * Fix transformer aliases being accidentally set as deprecated ones. * Expose `Pipeline` as `TransformerPipeline` instead. ## 5.2.5 @@ -824,10 +824,10 @@ Issues with publish process. * Save register cache on tick instead of `SIGINT`. * Enable strict mode on babel-node eval flag. * **Bug Fixes** - * Add support for live bindings. This change also increases the reliablity of export specifier renaming. + * Add support for live bindings. This change also increases the reliability of export specifier renaming. * Add support for super update and non equals assignment expressions. * Rename shadow constructor binding in classes. - * Seed next iteration bindings with previous fresh bindings when reassinging loop block scoped variables. + * Seed next iteration bindings with previous fresh bindings when reassigning loop block scoped variables. * Fix new expression spread referencing the wrong constructor. * Call `resolveModuleSource` on dynamic imports. * Added `param` to list of duplicate declaration kinds. @@ -836,4 +836,3 @@ Issues with publish process. * ES7 Abstract References have been removed. * Experimental option has been removed in favor of a stage option. * Rename `returnUsedHelpers` to `metadataUsedHelpers`. - \ No newline at end of file diff --git a/.github/CHANGELOG-v6.md b/.github/CHANGELOG-v6.md index bed990b56e9e..92d9173db5b8 100644 --- a/.github/CHANGELOG-v6.md +++ b/.github/CHANGELOG-v6.md @@ -19,7 +19,7 @@ ## 6.26.0 (2017-08-16) -> Backports for some folks (also other's when we accidently merged PRs from both 6.x/master) +> 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 @@ -1767,7 +1767,7 @@ typeof Symbol.prototype === 'object' * [#3456](https://github.com/babel/babel/pull/3456) Use the real sourcemap API and handle input sourcemaps - Fixes [#7259](https://github.com/babel/babel/issues/7259). ([@loganfsmyth](https://github.com/loganfsmyth)) * [#4507](https://github.com/babel/babel/pull/4507) Only set options in cli if different from default. ([@danez](https://github.com/danez)) -Fix an issue with defaults not being overidden. This was causing options like `comments: false` not to work correctly. +Fix an issue with defaults not being overridden. This was causing options like `comments: false` not to work correctly. * [#4508](https://github.com/babel/babel/pull/4508) Support custom ports for V8 --inspect. ([@andykant](https://github.com/andykant)) * [#4562](https://github.com/babel/babel/pull/4562) Fixes [#2299](https://github.com/babel/babel/issues/2299): Prevent REPL from printing implicit 'use strict'. ([@hzoo](https://github.com/hzoo)) @@ -2084,7 +2084,7 @@ Also added more tests and will update Babel to use the new preset options after ## v6.13.1 (2016-08-04) -We had a regression in our new babel-preset-es2015@6.13.0 that made it unexpectedly backward-incompatible. This release introduces a new alternative plugin-options approach that is uglier but supports backward-compatiblity. Ideally new plugins would use the new `module.exports = function(babel, options){ }` approach and simple skip supporting `babel-core@<6.13.x`. +We had a regression in our new babel-preset-es2015@6.13.0 that made it unexpectedly backward-incompatible. This release introduces a new alternative plugin-options approach that is uglier but supports backward-compatibility. Ideally new plugins would use the new `module.exports = function(babel, options){ }` approach and simple skip supporting `babel-core@<6.13.x`. #### Bug Fix * `babel-core`, `babel-preset-es2015` @@ -2092,7 +2092,7 @@ We had a regression in our new babel-preset-es2015@6.13.0 that made it unexpecte ## v6.13.0 (2016-08-04) -> Since the last release we've created https://github.com/babel/notes to track discussions on our slack and high level features/changes that could be added - definetely check it out if you're interested in Babel's development! +> Since the last release we've created https://github.com/babel/notes to track discussions on our slack and high level features/changes that could be added - definitely check it out if you're interested in Babel's development! Some small but very important additions in this release: @@ -3817,7 +3817,7 @@ Thanks to @samwgoldman for all the new flow support! * **New Feature** * Add support for `function.sent`. * **Internal** - * Bump `invariant` depenency version. + * Bump `invariant` dependency version. * **Polish** * Infer filename from the base directory when resolving plugins and presets. * Allow JSX pragma to be specified in line comments. @@ -3887,7 +3887,7 @@ Thanks to @samwgoldman for all the new flow support! ## 6.1.2 * **Bug Fix** - * Fix bug where the parser wouldn't allow typed annotated default parametesr in arrow functions. + * Fix bug where the parser wouldn't allow typed annotated default parameters in arrow functions. * Add existence check to `NodePath#has` to ensure safeness when making comparisons. * Protect against replacing a class expression with a name inferred version that would result in it never being transformed. @@ -3976,7 +3976,7 @@ Thanks to @samwgoldman for all the new flow support! * Fix SystemJS module formatter exporting function parameters. * Ensure that invalid identifier JSX attribute keys are quoted when transforming to calls. * Fix ES3 property literal plugin. - * Fix parameters after defaults in arrow functions refering to the wrong `arguments`. + * Fix parameters after defaults in arrow functions referring to the wrong `arguments`. ## 6.0.13 diff --git a/CHANGELOG.md b/CHANGELOG.md index 93d0ad723968..74831d202d30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -404,7 +404,7 @@ Thanks to @jamesgeorge007 and @armano2 for their first PR! * [#9271](https://github.com/babel/babel/pull/9271) Bump license years for 2019. ([@berlamhenderson](https://github.com/berlamhenderson)) * `babel-helpers` * [#9166](https://github.com/babel/babel/pull/9166) Add mixins support to the _decorate helper. ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo)) - + ## v7.2.5 (2018-12-21) `@babel/polyfill` didn't get published correctly in v7.2.3 (#9227). @@ -435,7 +435,7 @@ Half of the commits in this release are made by first time contributors! Thanks ## v7.2.2 (2018-12-15) -Mostrly bug fixes and internal changes. +Mostly bug fixes and internal changes. Thanks to @paleite, @saschanaz and @joeldenning for their first PRs! #### :bug: Bug Fix @@ -777,7 +777,7 @@ No change from rc.4. Finally released as https://babeljs.io/blog/2018/08/27/7.0. ## v7.0.0-rc.2 (2018-08-21) -A notable change is the addition of https://github.com/babel/babel/pull/8485 which enables https://github.com/babel/babel-loader/pull/660 (automatically doing `modules: false` for `@babel/preset-env` when using `babel-loader`. +A notable change is the addition of https://github.com/babel/babel/pull/8485 which enables https://github.com/babel/babel-loader/pull/660 (automatically doing `modules: false` for `@babel/preset-env` when using `babel-loader`. #### :boom: Breaking Change * `babel-core` @@ -932,7 +932,7 @@ Breaking Change in beta: ## 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) +- (There was an issue with the Stage presets in this release, but it is also deprecated) #### :boom: Breaking Change * `babel-*` @@ -2586,7 +2586,7 @@ Initial release of typescript equivalent of how Babel handles flow with a new `b * `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)) -> Instead of throwing a compile time error when const is violated, Babel should insert a throw statement before the violation. +> Instead of throwing a compile time error when const is violated, Babel should insert a throw statement before the violation. #### :boom: Breaking Change * `babel-plugin-transform-flow-comments` diff --git a/packages/babel-core/src/config/validation/option-assertions.js b/packages/babel-core/src/config/validation/option-assertions.js index 8b0f40899b4d..87244b4f16b3 100644 --- a/packages/babel-core/src/config/validation/option-assertions.js +++ b/packages/babel-core/src/config/validation/option-assertions.js @@ -231,7 +231,7 @@ function assertIgnoreItem(loc: GeneralPath, value: mixed): IgnoreItem { throw new Error( `${msg( loc, - )} must be an array of string/Funtion/RegExp values, or undefined`, + )} must be an array of string/Function/RegExp values, or undefined`, ); } return value; diff --git a/packages/babel-core/src/transformation/file/file.js b/packages/babel-core/src/transformation/file/file.js index bbc28767180e..b6bdda846977 100644 --- a/packages/babel-core/src/transformation/file/file.js +++ b/packages/babel-core/src/transformation/file/file.js @@ -183,7 +183,7 @@ export default class File { // and this fails because a prerelease version can only satisfy a range // if it is a prerelease within the same major/minor/patch range. // - // Note: If this is found to have issues, please also revist the logic in + // Note: If this is found to have issues, please also revisit the logic in // transform-runtime's definitions.js file. if (semver.valid(versionRange)) versionRange = `^${versionRange}`; diff --git a/packages/babel-generator/src/buffer.js b/packages/babel-generator/src/buffer.js index f49bfad8c545..fd64201a921b 100644 --- a/packages/babel-generator/src/buffer.js +++ b/packages/babel-generator/src/buffer.js @@ -235,7 +235,7 @@ export default class Buffer { source(prop: string, loc: Location, force?: boolean): void { if (prop && !loc) return; - // Since this is called extremly often, we re-use the same _sourcePosition + // Since this is called extremely often, we re-use the same _sourcePosition // object for the whole lifetime of the buffer. this._normalizePosition(prop, loc, this._sourcePosition, force); } diff --git a/packages/babel-generator/test/index.js b/packages/babel-generator/test/index.js index 4781339b28ea..80bee85f9eaf 100644 --- a/packages/babel-generator/test/index.js +++ b/packages/babel-generator/test/index.js @@ -427,7 +427,7 @@ describe("programmatic generation", function() { }); }); - describe("typescript generate parantheses if necessary", function() { + describe("typescript generate parentheses if necessary", function() { it("wraps around union for array", () => { const typeStatement = t.TSArrayType( t.TSUnionType([ diff --git a/packages/babel-helper-create-class-features-plugin/src/index.js b/packages/babel-helper-create-class-features-plugin/src/index.js index dc6300736b3a..1ed61a1839c0 100644 --- a/packages/babel-helper-create-class-features-plugin/src/index.js +++ b/packages/babel-helper-create-class-features-plugin/src/index.js @@ -25,7 +25,7 @@ export { FEATURES, injectInitialization }; // Note: Versions are represented as an integer. e.g. 7.1.5 is represented // as 70000100005. This method is easier than using a semver-parsing -// package, but it breaks if we relese x.y.z where x, y or z are +// package, but it breaks if we release x.y.z where x, y or z are // greater than 99_999. const version = pkg.version.split(".").reduce((v, x) => v * 1e5 + +x, 0); const versionKey = "@babel/plugin-class-features/version"; diff --git a/packages/babel-node/src/babel-node.js b/packages/babel-node/src/babel-node.js index c9153b038ca0..d143e4f756b4 100755 --- a/packages/babel-node/src/babel-node.js +++ b/packages/babel-node/src/babel-node.js @@ -28,7 +28,7 @@ if (argSeparator > -1) { * that only the flag is returned. */ function getNormalizedV8Flag(arg) { - // v8 uses the "no" prefix to negate boolean flags (e.g. --nolezy), + // v8 uses the "no" prefix to negate boolean flags (e.g. --nolazy), // but they are not listed by v8flags const matches = arg.match(/--(?:no)?(.+)/); diff --git a/packages/babel-parser/CHANGELOG.md b/packages/babel-parser/CHANGELOG.md index cc96c3f7d128..6ddd17fb8800 100644 --- a/packages/babel-parser/CHANGELOG.md +++ b/packages/babel-parser/CHANGELOG.md @@ -178,7 +178,7 @@ The returned AST will only consist of the expression. The options are the same a Add startLine option ([#346](https://github.com/babel/babylon/pull/346)) (Raphael Mu) -A new option was added to babylon allowing to change the intial linenumber for the first line which is usually `1`. +A new option was added to babylon allowing to change the initial linenumber for the first line which is usually `1`. Changing this for example to `100` will make line `1` of the input source to be marked as line `100`, line `2` as `101`, line `3` as `102`, ... Function predicate declaration ([#103](https://github.com/babel/babylon/pull/103)) (Panagiotis Vekris) @@ -224,7 +224,7 @@ import { a as debugger } from "foo"; Do not allow overwritting of primitive types ([#314](https://github.com/babel/babylon/pull/314)) (Daniel Tschinder) -In flow it is now forbidden to overwrite the primitve types `"any"`, `"mixed"`, `"empty"`, `"bool"`, `"boolean"`, `"number"`, `"string"`, `"void"` and `"null"` with your own type declaration. +In flow it is now forbidden to overwrite the primitive types `"any"`, `"mixed"`, `"empty"`, `"bool"`, `"boolean"`, `"number"`, `"string"`, `"void"` and `"null"` with your own type declaration. Disallow import type { type a } from … ([#305](https://github.com/babel/babylon/pull/305)) (Daniel Tschinder) @@ -628,7 +628,7 @@ Annotate more errors with expected token ([#172](https://github.com/babel/babylo Remove kcheck ([#173](https://github.com/babel/babylon/pull/173))) (Daniel Tschinder) -Also run flow, linting, babel tests on seperate instances (add back node 0.10) +Also run flow, linting, babel tests on separate instances (add back node 0.10) ## v6.11.6 (2016-10-12) diff --git a/packages/babel-plugin-proposal-function-sent/README.md b/packages/babel-plugin-proposal-function-sent/README.md index 98978df840bf..fc9bda8b7e44 100644 --- a/packages/babel-plugin-proposal-function-sent/README.md +++ b/packages/babel-plugin-proposal-function-sent/README.md @@ -1,6 +1,6 @@ # @babel/plugin-proposal-function-sent -> Compile the function.sent meta propety to valid ES2015 code +> Compile the function.sent meta property to valid ES2015 code See our website [@babel/plugin-proposal-function-sent](https://babeljs.io/docs/en/next/babel-plugin-proposal-function-sent.html) for more information. diff --git a/packages/babel-plugin-proposal-function-sent/package.json b/packages/babel-plugin-proposal-function-sent/package.json index fca6fc7df5a5..c32690ddd4ce 100644 --- a/packages/babel-plugin-proposal-function-sent/package.json +++ b/packages/babel-plugin-proposal-function-sent/package.json @@ -1,7 +1,7 @@ { "name": "@babel/plugin-proposal-function-sent", "version": "7.2.0", - "description": "Compile the function.sent meta propety to valid ES2015 code", + "description": "Compile the function.sent meta property to valid ES2015 code", "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-function-sent", "license": "MIT", "publishConfig": { diff --git a/packages/babel-plugin-transform-async-to-generator/test/fixtures/regression/4943/exec.js b/packages/babel-plugin-transform-async-to-generator/test/fixtures/regression/4943/exec.js index 12f604438409..c8839c7358f9 100644 --- a/packages/babel-plugin-transform-async-to-generator/test/fixtures/regression/4943/exec.js +++ b/packages/babel-plugin-transform-async-to-generator/test/fixtures/regression/4943/exec.js @@ -9,5 +9,5 @@ async function foo({ a, b = mandatory("b") } = {}) { } return foo().then(() => { - throw new Error('should not occcur'); + throw new Error('should not occur'); }, () => true); diff --git a/packages/babel-plugin-transform-duplicate-keys/src/index.js b/packages/babel-plugin-transform-duplicate-keys/src/index.js index 003d5e6699b6..6765c4895de3 100644 --- a/packages/babel-plugin-transform-duplicate-keys/src/index.js +++ b/packages/babel-plugin-transform-duplicate-keys/src/index.js @@ -22,11 +22,11 @@ export default declare(api => { ); // A property is a duplicate key if: - // * the property is a data property, and is preceeded by a data, + // * the property is a data property, and is preceded by a data, // getter, or setter property of the same name. - // * the property is a getter property, and is preceeded by a data or + // * the property is a getter property, and is preceded by a data or // getter property of the same name. - // * the property is a setter property, and is preceeded by a data or + // * the property is a setter property, and is preceded by a data or // setter property of the same name. const alreadySeenData = Object.create(null); diff --git a/packages/babel-plugin-transform-react-jsx-source/src/index.js b/packages/babel-plugin-transform-react-jsx-source/src/index.js index ce7d66b1b74e..9c0f99ed41cc 100644 --- a/packages/babel-plugin-transform-react-jsx-source/src/index.js +++ b/packages/babel-plugin-transform-react-jsx-source/src/index.js @@ -48,7 +48,7 @@ export default declare(api => { for (let i = 0; i < attributes.length; i++) { const name = attributes[i].name; if (name && name.name === TRACE_ID) { - // The __source attibute already exists + // The __source attribute already exists return; } } diff --git a/packages/babel-plugin-transform-runtime/src/helpers.js b/packages/babel-plugin-transform-runtime/src/helpers.js index 2a787745051a..f99730dc9498 100644 --- a/packages/babel-plugin-transform-runtime/src/helpers.js +++ b/packages/babel-plugin-transform-runtime/src/helpers.js @@ -22,7 +22,7 @@ export function hasMinVersion(minVersion, runtimeVersion) { // and this fails because a prerelease version can only satisfy a range // if it is a prerelease within the same major/minor/patch range. // - // Note: If this is found to have issues, please also revist the logic in + // Note: If this is found to have issues, please also revisit the logic in // babel-core's availableHelper() API. if (semver.valid(runtimeVersion)) runtimeVersion = `^${runtimeVersion}`; diff --git a/packages/babel-standalone/src/index.js b/packages/babel-standalone/src/index.js index d7ed72afd261..1e7c83d30c6c 100644 --- a/packages/babel-standalone/src/index.js +++ b/packages/babel-standalone/src/index.js @@ -1,6 +1,6 @@ /** * Entry point for @babel/standalone. This wraps Babel's API in a version that's - * friendlier for use in web browers. It removes the automagical detection of + * friendlier for use in web browsers. It removes the automagical detection of * plugins, instead explicitly registering all the available plugins and * presets, and requiring custom ones to be registered through `registerPlugin` * and `registerPreset` respectively. diff --git a/packages/babel-traverse/src/path/introspection.js b/packages/babel-traverse/src/path/introspection.js index 0752bc88574d..626ca307af8c 100644 --- a/packages/babel-traverse/src/path/introspection.js +++ b/packages/babel-traverse/src/path/introspection.js @@ -209,7 +209,7 @@ export function willIMaybeExecuteBefore(target) { /** * Given a `target` check the execution status of it relative to the current path. * - * "Execution status" simply refers to where or not we **think** this will execuete + * "Execution status" simply refers to where or not we **think** this will execute * before or after the input `target` element. */ @@ -305,7 +305,7 @@ export function _guessExecutionStatusRelativeToDifferentFunctions( // verify that all the calls have the same execution status for (const path of referencePaths) { // if a reference is a child of the function we're checking against then we can - // safelty ignore it + // safely ignore it const childOfFunction = !!path.find( path => path.node === targetFuncPath.node, );