Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #10153

Merged
merged 1 commit into from Jul 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/CHANGELOG-6to5.md
Expand Up @@ -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)!

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -850,7 +850,7 @@

## 1.14.10

* Fix let scoping unneccesary override.
* Fix let scoping unnecessary override.

## 1.14.6

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions .github/CHANGELOG-v4.md
Expand Up @@ -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.
Expand All @@ -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`.
Expand Down
13 changes: 6 additions & 7 deletions .github/CHANGELOG-v5.md
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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`.

14 changes: 7 additions & 7 deletions .github/CHANGELOG-v6.md
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -2084,15 +2084,15 @@ 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`
* [#3635](https://github.com/babel/babel/pull/3635) Fix backward-compatibility of babel-preset-es2015. ([@loganfsmyth](https://github.com/loganfsmyth))

## 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:

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions CHANGELOG.md
Expand Up @@ -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).
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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-*`
Expand Down Expand Up @@ -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`
Expand Down
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-core/src/transformation/file/file.js
Expand Up @@ -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}`;

Expand Down
2 changes: 1 addition & 1 deletion packages/babel-generator/src/buffer.js
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-generator/test/index.js
Expand Up @@ -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([
Expand Down
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-node/src/babel-node.js
Expand Up @@ -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)?(.+)/);

Expand Down
6 changes: 3 additions & 3 deletions packages/babel-parser/CHANGELOG.md
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion 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.

Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
Expand Up @@ -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);
6 changes: 3 additions & 3 deletions packages/babel-plugin-transform-duplicate-keys/src/index.js
Expand Up @@ -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);
Expand Down
Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-runtime/src/helpers.js
Expand Up @@ -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}`;

Expand Down
2 changes: 1 addition & 1 deletion 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.
Expand Down