Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add new flow preset (#5288) * Fix PathHoister hoisting JSX member expressions on "this". (#5143) The PathHoister ignored member references on "this", causing it to potentially hoist an expression above its function scope. This patch tells the hoister to watch for "this", and if seen, mark the nearest non-arrow function scope as the upper limit for hoistng. This fixes #4397 and is an alternative to #4787. * Fix PathHoister hoisting before bindings. (#5153) Fixes #5149 and enables a few additional safe hoists. * Fix linting error * feature: Support pure expressions in transform-react-constant-elements (#4812) * Fix loose for-of with label (#5298) * Rewrite Hub as interface #5047 (#5050) * Rewrite Hub as interface #5047 * Update index.js * Avoid adding unnecessary closure for block scoping (#5246) When you write ``` for (const x of l) { setTimeout(() => x); } ``` we need to add a closure because the variable is meant to be block-scoped and recreated each time the block runs. We do this. However, we also add the closure when no loop is present. This isn't necessary, because if no loop is present then each piece of code runs at most once. I changed the transform to only add a closure if a variable is referenced from within a loop. * Add greenkeeperio-bot to mention-bot blacklist (#5301) [skip ci] * Upgrade lerna to current beta. (#5300) * Revert "Upgrade lerna to current beta." (#5303) * Add charset so tests work with convert-source-map@>1.4 (#5302) * Add CHANGELOG for 6.23.0 [skip ci] (#5304) * Update babel-types README from script. * v6.23.0 * Revert change that lerna force-committed. * Revert "Rewrite Hub as interface #5047" (#5306) * v6.23.1 * Revert lerna again
- Loading branch information
Showing
87 changed files
with
828 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/babel-core/test/fixtures/transformation/misc/regression-2364/actual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/babel-core/test/fixtures/transformation/source-maps/inline/expected.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"name": "babel-helper-define-map", | ||
"version": "6.22.0", | ||
"version": "6.23.0", | ||
"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": { | ||
"lodash": "^4.2.0", | ||
"babel-types": "^6.22.0", | ||
"babel-helper-function-name": "^6.22.0" | ||
"babel-types": "^6.23.0", | ||
"babel-helper-function-name": "^6.23.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"name": "babel-helper-function-name", | ||
"version": "6.22.0", | ||
"version": "6.23.0", | ||
"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-types": "^6.22.0", | ||
"babel-traverse": "^6.22.0", | ||
"babel-types": "^6.23.0", | ||
"babel-traverse": "^6.23.0", | ||
"babel-helper-get-function-arity": "^6.22.0", | ||
"babel-template": "^6.22.0" | ||
"babel-template": "^6.23.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"name": "babel-helper-optimise-call-expression", | ||
"version": "6.22.0", | ||
"version": "6.23.0", | ||
"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": "^6.22.0" | ||
"babel-types": "^6.23.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"name": "babel-helper-replace-supers", | ||
"version": "6.22.0", | ||
"version": "6.23.0", | ||
"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-optimise-call-expression": "^6.22.0", | ||
"babel-traverse": "^6.22.0", | ||
"babel-messages": "^6.22.0", | ||
"babel-template": "^6.22.0", | ||
"babel-types": "^6.22.0" | ||
"babel-helper-optimise-call-expression": "^6.23.0", | ||
"babel-traverse": "^6.23.0", | ||
"babel-messages": "^6.23.0", | ||
"babel-template": "^6.23.0", | ||
"babel-types": "^6.23.0" | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
packages/babel-helper-transform-fixture-test-runner/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"name": "babel-helpers", | ||
"version": "6.22.0", | ||
"version": "6.23.0", | ||
"description": "Collection of helper functions used by Babel transforms.", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"homepage": "https://babeljs.io/", | ||
"license": "MIT", | ||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-helpers", | ||
"main": "lib/index.js", | ||
"dependencies": { | ||
"babel-template": "^6.22.0" | ||
"babel-template": "^6.23.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.