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
[pull] master from babel:master #270
Commits on Jan 16, 2020
-
Re-generate plugins compat data
They are now alphabetically ordered, but the data is the same
-
Re-generate preset-env fixtures (#11016)
* Fix plugin ordering in preset-env * Update stdout fixtures * Comments [skip ci]
-
Commits on Jan 17, 2020
-
chore: replace yarn-upgrade by bump-babel-dependencies in e2e tests (#…
…11021) * chore: pin yarn version in e2e vue tests * fix: replace yarn-upgrade by bump-babel-dependencies * chore: update e2e-cra test
-
-
Update coalesce precedence (#11017)
* refactor: reimplement nullish coalescing precedence tracking Co-authored-by: Toru Nagashima <public@mysticatea.dev> * fix: Coalesce has same precedence with LogicalOR * fix flow errors Co-authored-by: Toru Nagashima <public@mysticatea.dev>
-
add AST for the module attribute proposal (#11015)
Introduce a `ImportAttribute` structure and add an `attributes` key on the `ImportDeclaration` node. [skip ci]
-
Fix rest parameters indexing with TypeScript 'this parameter' (#9714)
* Fix rest parameters indexing with TypeScript 'this parameter' The TypeScript [this parameter][0] is a fake parameter and should not be taken into account when counting the function parameters. This patch skips it by using the condition taken from the `transform-typescript` plugin. Note: since the `transform-typescript` plugin is removing this kind of parameter, including it before the `transform-parameters` plugin solves the issue. This patch fixes the issue in other cases. [0]: https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters * nit: improve the 'this parameter' detection condition * improve performance by checking the parameter list length before accessing it * simplify the test a bit by using the `isIdentifier` second parameter
Commits on Jan 19, 2020
-
fix: properly parse member expression after property initializ… (#11031)
Fixes issue 10989 where the only the identifier in a member expression that is the value of an object property would be parsed. Removing checkExpressionErrors in parseExprSubscripts results in the subscript also being parsed.
-
Commits on Jan 20, 2020
-
update compat-data related docs/config [skip ci] (#11030)
* ignore compat-data build * ignore CONTRIBUTING.md when publishing preset-env * docs: update preset-env CONTRIBUTING.md
-
Fix missing ClassDeclaration references after scope#crawl (#11011)
* Bug replication test * Simplify test * Fixes #10896 * Merge path.crawl `ClassDeclaration` and `Declaration` visitors Merged to avoid subtle assumption that `Declaration` is called before `ClassDeclaration` * Move registartion of class id in crawl to BlockScoped * Add some assertions to crawl test
-
fix(babel-parser): avoid state.clone() to clone the whole token store (…
…#11029) * fix(babel-parser): avoid state.clone() to clone the whole token store Fixed the performance issue on large input when turned on option {tokens: true} and typescript plugin which uses quite a few state.clone(). * test(babel-parser): turn on 2 typescript tests with tokens:true The output.json is generated by old master to make sure no regression. * fix(babel-parser): avoid duplicated tokens trapped by mainly typescript/flow plugins * test(babel-parser): update output.json to latest master result * chore(babel-parser): improve performance by storing tokensLength in state
-
refactor: simplify toAssignable routine (#11032)
* refactor: remove isBinding parameter * remove unused contextDescription * refactor: remove unnecessary nullish check * refactor: simplify toAssignable on ParenthesizedExpression * tests: categorize createParenthesizedExpression tests
-
polish: throw human-friendly error when item-option pair is in… (#10969)
* polish: throw human-friendly error when item-option pair is incorrectly unwrapped * add testcase for plugin * fix: exclude false positive * fix: validate should support plugin optionsSourceKind * Revert "fix: validate should support plugin optionsSourceKind" * fix: validate plugin object in assertNoUnwrappedItemOptionPairs * fix flow error * update test fixtures * refactor: move to loadDescriptor catch clause * chore: throw Error instead of builtin ReferenceError * fix flow errors * chore: add more test cases
Commits on Jan 21, 2020
Commits on Jan 24, 2020
-
chore: map mobile browser data to their desktop version (#10814)
* chore: map mobile browser data to their desktop version * chore: skip android until upstream support is resolved * Revert "chore: skip android until upstream support is resolved" This reverts commit 436e9af. * Update fixtures Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
-
Delete duplicated file in
@babel/compat-data
(#11041)This file is the same as `native-modules.json`, which is exported in package.json
-
Commits on Jan 27, 2020
-
-
Avoid compiling the _typeof helper with itself (#11049)
* Avoid compiling the typeof helper with itself * Update fixtures
-
* Fix compat-data build script * Update compat table * Update mappings for transform-parameters compat-table/compat-table#1570 * Update unrelated fixture * Update
Commits on Jan 28, 2020
Commits on Jan 29, 2020
Commits on Jan 30, 2020
-
[@babel/cli] Copy ignored files by default (#11063)
This commit restores the pre-7.8.0 behavior of the --copy-files option, by making --copy-ignored default to true when --copy-files is enabled.
-
-
-
-
-
Commits on Jan 31, 2020
Commits on Feb 4, 2020
-
-
Only download compat-table if it's not already downloaded (#11081)
* Only download compat-table if it's not already downloaded * Use git rev-parse
-
Fix Async Generic After Await Parsing Error (#11092)
* test: add test case * fix: reset awaitPos before parsing generic arrow fn * fix: maybeInArrowParameters reset to true
-
Commits on Feb 5, 2020
-
Make
isReferenced
return false for method parameter name (#11089)* Change isReferenced to return false for object/class method parameter names. * use indexOf instead of for-of loop * replace `.indexOf` check with `.includes` and assume `parent.params` exists Co-Authored-By: Justin Ridgewell <justin@ridgewell.name> * check .params within case block for ClassMethod/ClassPrivateMethod/ObjectMethod only * add comment clarifying that case clause fall-through is intentional Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
Commits on Feb 6, 2020
-
Archive @babel/preset-env-standalone (#10993)
* Move @babel/preset-env-standalone to babel-archive babel/babel-archive@a1fadd2 * Move tests to @babel/standalone * Remove references in build scripts * Update lockfile * Delete duplicated test file. It's already in babel-standalone/test/babel.js
-
Remove stage presets from the monorepo (#11101)
babel/babel-archive already includes the last working version of these presets (v7.0.0-beta.52), and they have been throwing since 7.0.0
Commits on Feb 7, 2020
-
Turn on no-fallthrough rule (#11093)
* chore: turn on no-fallthrough * chore: fix no-fallthrough errors
Commits on Feb 8, 2020
-
Centralize @babel/eslint-* tests (#11106)
* Centralize @babel/eslint-* tests * Enable linting of @babel/eslint-* test files * Add missing sourceType
Commits on Feb 9, 2020
-
Fix export bindings not updated by 'for...in' and 'for...of' (#11074)
* Correctly transpile export bindings for some for-of loops * Correctly transform non-destructured for of loops to update exported variables * Add tests * Don't replace entire for of loop * Correctly transform destructured for-of/for-in exports * Update exported variables in array pattern and more fixes * Refresh test output * Update tests and rebase on master * Refactor ForOf|ForIn visitor * Don't transform re-declared exported vars * Generate better name for loop id Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * Idiomatically generate UidIdentifier * Update scope after replacing loop declaration Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
-
Wrap type-only class fields in flow comments (#11096)
* Wrap type-only class fields in flow comments * Fix
-
Refactor await/yield production parameter tracking (#10956)
* test: add test fixtures * refactor: track AWAIT and YIELD in separate handler * fix flow errors * add flow type annotation to production-parameter * address review comments * refactor: track [Return] parameter
Commits on Feb 10, 2020
-
chore: use npm install in babel-test262-runner setup (#11113)
* chore: use npm i on babel-test262-runner * chore: use npm ci
-
-
Add eslint-plugin-jest (#11119)
* chore: add eslint-plugin-jest * chore: update test sources * chore: suppress preset-env debug log when linting
Commits on Feb 11, 2020
-
-
-
Fix typing of ReplaceSupers options (#11121)
* Fix type opts.getObjetRef to opts.getObjectRef * Added // @flow to possibly catch for more errors. * tweaks Co-authored-by: InsignificantReasons <41794038+InsignificantReasons@users.noreply.github.com>
Commits on Feb 12, 2020
-
Fix classNameTDZError in computed prototype methods with class fields (…
…#11068) * Draft fix for TDZError in computed prototype methods * Added tests for loose:false and also extracted handleClassTDZ * Added state parameter to handleClassTDZ function * Extracted the state object to a variable * Added helper comments for environmentVisitor * Added else condition to traverse computed Path * Cached computed path key into a variable
-
Fix rewriteThis in helper-module-transforms for computed class… (#11109)
* Fix rewriteThis in helper-module-transforms for computed class elements * Added test file and corrected the visitor * Revert .gitignore * Using skipAllButComputedKey method from plugin-replace-supers * added tests for class methods * Added tests for both class properties and methods and fixed skipping computed key for methods * Fixed condition for class methods * revised the conditions for class methods * Added more tests and used else-if in classmethod condition * Update packages/babel-helper-replace-supers/src/index.js Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Commits on Feb 13, 2020
-
Skip newlines around inline
#__PURE__
annotations (#11133)* Skip newlines around #__PURE__ annotations * Update tests
Commits on Feb 14, 2020
Commits on Feb 17, 2020
-
Update preset-env builtin-definitions (#10929)
* chore: build corejs3-proposals.json from core-js-compat * fix: include finished proposals by default * update test fixtures * update test fixtures * chore: rename scripts * fix: add standarized entries for finished proposals * refactor: remove unused finished proposals json * revert test fixtures update * test against corejs 3.6 * fix: move corejs builtin definitions to babel/compat-data
Commits on Feb 20, 2020
-
Breaking: align babel-eslint-parser & espree (#11137)
* Chore: align babel-eslint-parser & espree * Start program at beginning of comment when no tokens exist * Import correct version of Espree for tests * Remove hasOwnProperty guard
Commits on Feb 21, 2020
-
Parse declare modifier around accessibility modifiers (#11146)
* fix: parse declare modifiers around accessibility modifiers * test: add tests * fix: check duplicate modifiers in modified nodes * fix flow error
-
-
Commits on Feb 22, 2020
-
chore: migrate lock threads to github actions (#11163)
Co-Authored-By: Armin Sebastian <hi@armin.dev> Co-authored-by: Armin Sebastian <github@armin.dev>
Commits on Feb 24, 2020
-
-
fix: search for browserslist if esmodules is falsy (#11124)
* fix: search for browserslist if esmodules is falsy closes #11123 * fix: delete falsy targets.esmodules * style: fix code style * fix: remove esmodules after being consumed
Commits on Feb 25, 2020
-
Enable more eslint recommended rules (#11168)
* chore: enable no-constant-condition * chore: enable no-empty rule * chore: enable no-unreachable * chore: enable no-cond-assign * chore: enable no-inner-declarations * chore: remove disabled rules that are not in eslint:recommended * fix: oops
-
Commits on Feb 26, 2020
-
replace
gulp-watch
bygulp.watch
(#11175)* chore: remove gulp-watch * chore: update lock file
Commits on Feb 27, 2020
-
-
-
TypeScript: Preserve decorated definite class properties (#11129)
* test: update fixture with decorated definite class property * fix: don't remove decorated definite class properties
-
Commits on Feb 28, 2020
Commits on Mar 1, 2020
-
Fix scope of function body when var redeclares param (#11158)
* Fix scope of function body when var redeclares param * Fix empty var declarations * Apply suggestions
Commits on Mar 2, 2020
Commits on Mar 3, 2020
-
fix(babel-parser): chain off optionally chained keys named cla… (#11198)
* fix(babel-parser): chain off optionally chained keys named class and function Fixes #11197 * Extract override as variable to satisfy typechecker Flow did not trust that curContext.override would be defined
-
Pass URLs to import() rather than paths (#11193)
* Pass URLs to import() rather than paths * Make tests pass * (╯°□°)╯︵ ┻━┻ * (╯°□°)╯︵ ┻━┻ (╯°□°)╯︵ ┻━┻ (╯°□°)╯︵ ┻━┻
-
Refactor: add parser message template (#11192)
* refactor: add raiseWithData method * refactor: error message template * fix missing plugin error structure * fix flow errors * refactor: use error message template in eslint plugin * refacotr: use error message template in flow plugin * refactor: use error message template in typescript plugin * refactor: use error message template in jsx plugin * address review comments * Update packages/babel-parser/src/parser/location.js Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Commits on Mar 4, 2020
Commits on Mar 5, 2020
-
Allow using
preset-env
with newer versions ofcompat-data
(#11201)* Use ~ for preset-env's @babel/compat-data dependency * Revert "Use ~ for preset-env's @babel/compat-data dependency" This reverts commit e7d57c7. * Allow using `preset-env` with newer versions of `compat-data`
-
-
-
update: preset-env-fixtures (#11218)
Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
-
fix: non-directive "use strict" should not enable parsing in strict m…
…ode (#11188) * fix: non-directive "use strict" should not enable parsing in strict mode * Remove dead code * Add stricter type annotations * set oldStrict explicitly to null * Fix error * label callback argument * update comment * Address feedback * Remove this.state.octalPosition * Add additional tests * Revert "Remove this.state.octalPosition" This reverts commit bcc78c9. * Remove containsOctal * Report multiple octal literals in single token * Fix comments * remove Array.prototype.flat()
Commits on Mar 10, 2020
Commits on Mar 11, 2020
-
-
Archive @babel/plugin-syntax-export-namespace-from (#11236)
* Archive @babel/plugin-syntax-export-namespace-from Enabled by default in #10521 babel/babel-archive@5ccc77e * Fix tests
-
Add support for Unicode 13 in regexps (update
regexpu-core
) (#11244)* Update regexpu-core * Add tests
Commits on Mar 12, 2020
-
-
fix: preserve shadowed for-loop declarators (#11242)
* fix: do not remove for-loop declarators * fix: do not remove uninitialized var declarators in for init
-
-
Commits on Mar 13, 2020
-
Fix printing edge cases in Nullish Coalescing and Optional Ch… (#11255)
This is a mix of changes, most importantly: - Always print parens when mixing nullish coalescing and another logical - Fixes assignment in the callee of an optional chain, which now blocks #11248 Also, cleans up a bit of code, and removes an unnecessary parens around `class A extends new B {}`
Commits on Mar 14, 2020
-
-
Support more node types in generateUidBasedOnNode (#11260)
* Support more node types in generateUidBasedOnNode * More nodes
Commits on Mar 15, 2020
Commits on Mar 16, 2020
-
Update Purish aliases (#11267)
* Update Purish aliases - Adds `Purish` to `RegexLiteral`, since it can't cause any side-effects. - Removes `Purish` from `ClassExpression` and `ClassDeclaration`, since they can be impure with static class fields. * Update types
-
-
-
Add
import type
andexport type
support to TypeScript (#11171)* Add support for type only imports in TS (#11053) * Implement "export type {}" (#11122) * Add "exportKind: type" when needed with TS (#11157) * Add `onlyRemoveTypeImports` option to `transform-typescript` (#11173) * Add onlyRemoveTypeImports to preset-typescript (#11179) Co-authored-by: Brian Ng <bng412@gmail.com> Co-authored-by: Raja Sekar <rajasekarm.dev@gmail.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Kai Cataldo <kai@kaicataldo.com> Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> Co-authored-by: Henry Zhu <smiley.we@gmail.com> Co-authored-by: Siddhant N Trivedi <sidntrivedi012@gmail.com>
-
feat(react-jsx-source): add columnNumber property (#11139)
* feat(react-jsx-source): add column property This will be useful to tools that consume the injected `__source` prop, allowing precise source locations to be displayed. * Rename column -> columnNumber, make 1-based
-
-
-
Added jsescOptions to Numeric Literals (#11028)
* Added jsescOptions to Numeric Literals * Added tests and hexadecimal opts to NumericLiterals * Fixed the bug of every numeric literal being coverted to hex * Added conditions when jsesc should be applied * Removed numbers and lowercaseHex from format object * Added newline to test of jsonEscape (to exclude the change) * Modified conditions to apply jsesc * Made the required changes. * Using node.value instead of value
-
Add cloneDeepWithoutLoc (#10680)
* feat: add cloneDeepWithoutLoc * fix: sort functions alphabetically * doc: add documentation for the withoutLoc parameter * test: add a test for shallow cloneWithoutLoc * test: add loc object to node and fix test * fix: set loc object on deeper node * test: check loc on deeper node is null * doc: adjust withoutLoc documentation * fix: add withoutLoc param to deep clones * fix: apply cloneIfNodeOrArray for leadingComments, innerComments and trailingComments * test: add test for leadingComments, innerComments and trailingComments * Cleanup PR Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
-
Implement support for
declare
on class fields with Flow (#11178)* Add parser support for Flow declare fields * Add generator test * Add "allowDeclareFields" option to flow-strip-types * Add test * Update error messages * More tests
-
Add numeric separator to
shippedProposals
(#10971)* add plugins * add plugin description * run build-data * set shipped proposals true * update test fixtures * corejs.proposals should not imply shipped proposals * fix eslint errors Please enter the commit message for your changes. Lines starting * create new object in packages/babel-compat-data/scripts/data/plugin-features.js
-
Added support for record and tuple syntax. (#10865)
* Added support for record and tuple syntax. This commit adds support for both the hash #{} and bar {||} syntaxes to babel-parser, as well as adds the supporting babel-plugin-syntax-record-and-tuple plugin to enable support for the syntax. Does not include any transform for records and tuples. * typo * added check to ensure recordAndTuple in babel-parser * switched to syntaxType option instead of explicit entries for each record and tuple type * switched to using recordAndTupleSyntaxType for generator options instead of adding to node * added tests for generator option recordAndTupleSyntaxType * added test for record and tuple bar syntax with flow typings * added tests for invalid/missing recordAndTuple syntaxType parser option * fixed flowcheck errors * fix merge with class privates in tokenizer * Update packages/babel-parser/src/types.js Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * improved recordAndTuple generator error message, added tests for invalid,missing options * updated error messages for invalid parser syntaxType option * updated error message * added better error messages for when the recordAndTuple syntaxType is doesn't match the syntax used * updated record and tuple support to use new error message templates * added recordAndTuple to missing plugin helpers * Fix linting Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
-
Allow defining the moduleIds-related option in the transform p… (#11194)
* Update "moduleIds" tests * Allow defining the moduleIds related options in the transform plugins - moduleIds - moduleId - getModuleId - moduleRoot * Sort deps
-
-
Include preset modules (#11083)
* Prepare preset-env and compat-data for preset-modules * Add transform-edge-default-parameters from preset-modules * AUtomatically generate data from compat-table * Add compat data for other plugins * Updates after rebase * Add more bugfixes to preset-env * Update tests * Add bugfix/transform-safari-for-shadowing * Fix build script * bugfix/transform-safari-block-shadowing * Fix flow * Include changes from 7127330 * Fix check-compat-data
-
Extract for-of iterator handling to a helper (#11262)
* Extract for-of iterator handling to a helper Dis greatly recudes the code size when for-of is used multiple times across the codebase. Also, makes it easier to read what's happening in a compiled loop. * Unify spec and loose code * Legacy implementation fallback * Update tmp var name * Updates from review and after rebase
Commits on Mar 17, 2020
-
Add stricter Optional Chain node validation (#11250)
* Add stricter Optional Chain node validation Optional chains cannot start with `optional: false`. Somewhere in the `object`/`callee` tree, there must be an optional with `optional: true`. * Print current node's type when finding an error.
-
Rephrase parser error message (#11208)
* refactor: rephrase some parser error messages * update test fixtures * Update packages/babel-parser/src/parser/location.js Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * address review comments * Update packages/babel-parser/src/parser/location.js Co-Authored-By: Brian Ng <bng412@gmail.com> * update test fixtures Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Brian Ng <bng412@gmail.com>
-
Allow rest/spread on polyfilled or builtin iterables without
Symbol
…… support (#11268) * Allow rest/spread on polyfilled or builtin iterables when `Symbol` unsupported Currently, when `Symbol` is not supported, we allow using rest/spread with: - arrays - strings - arguments With this PR, it will be also possible to use it with - maps - sets - binary arrays While in old browsers es6 builtins would still need to be polyfilled, it's way easier to polyfill them because `Symbol` cannot be reliably polyfilled. I didn't use `instanceof` becase: - it doesn't work with polyfills not attatched to the global scope - when using Babel to load polyfills, it would force the inclusion of `Map` and `Set` polyfills even if they are not used Downside: the current approach of relying on `toString || construcor.name` doesn't work with subclasses. * Don't use Array.from for array-like objects
-
Add experimental version of the `babel-plugin-transform-react-… (#11154)
* add next option for babel-plugin-transform-react-jsx * address review comments * chore: update test fixtures * Update fixture * Add "columnNumber" to the new React transform * Update windows fixtures * Delete unused output.js * Update windows tests * Fix windows again * fix comments Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Moti Zilberman <motiz88@gmail.com>
-
Create File class for babel helpers (#10575)
* add test * fix: pass File to helper traverser * pass babel.File to helpers.ensure
Commits on Mar 18, 2020
-
chore: bump json5 and minimist (#11276)
* chore: bump json5 and minimist * update mkdirp to version 0.5.3
-
-
-
-
Commits on Mar 19, 2020
-
Add for-of fallback for arrays in browsers without symbol supp… (#11263)
* Add for-of fallback for arrays in browsers without symbol support * Update after rebase * Re-throw error when iterating array * Update fixture
-
Mark transpiled JSX elements as pure (#11126)
* Mark transpiled JSX elements as pure * Avoid duble annotation * Add "pure" option to the React preset * Fix generator indentation * Update tests * Add tests for the "pure" option * Update windows fixtures
-
Move
object-rest-spread
aftertransform-parameters
(#11280)* fix: move proposal-object-rest-spread after transform-parameters * update test fixtures * fix: update plugin-features.js
-
Use the correct
this
in__self
for JSX elements in arrows (#11288)* Inject `__source` and `__self` in JSX elements earlier This fixes an issue where `this` was not correct inside arrow functions, similar to https://astexplorer.net/#/gist/86638d64cd21c496e7fecaea46313d95/906f8be24d7d99f3f5cd5a956a48355e1864f4b1 * Add test * Remove try-catch * Update error * Update fixtures * Update windows fixtures
Commits on Mar 20, 2020
-
Memoize call expressions in optional chains in loose mode (#11261)
* Memoize in loose mode when callee is a CallExpression * Handle more complex OptionalCallExpressions where memoization is needed * Convert calls to Function#call when member needs memoization * Only update call context for member expressions
-
Add @babel/helper-validator-identifier (#11289)
* refactor: replace esutils.keywords.isIdentifierNameES6 by helper-validator-identifier * refactor: replace esutils isReservedWordES6 by isKeyword || isReservedWord * address review comments * chore: specify both “main” and “exports” * build helper-validator-identifier before babel-types
-
-
-
Consider jsxFrag as set when it's set to the default value (#11295)
* Consider jsxFrag as set when it's set to the default value * Test #11294
-
-
-
Transform cwd in string literal on win32 (#11297)
* chore: replace win32 cwd in string literal by <CWD> * chore: update test fixtures
Commits on Mar 21, 2020
-
fix: parse value imports named type as values (#11296)
* fix: parse value imports named type as values * Address feedback * Add plugin tests * Add isContextual() check * Remove importKind: value from extraneous nodes * Ensure importKind is correct for more nodes * Add additional test * Address feedback * Revert formatting * Fix tests
-
-
Manually inline the createSuper helper on older Babel versions (#11298)
* Manually inline the createSuper helper on older Babel versions * Forgot to commit this * Add comments [skip ci]
-
-
-
fix: async arrow functions should not be allowed after binary… (#11284)
* Forbid async arrow functions after binary operator. This commit makes Babel throw an error when parsing code like "3 + async() => 2". * Make atPossibleAsync more accurate * Change atPossibleAsync to atPossibleAsyncArrow Add an extra test to atPossibleAsync and refactor it to atPossibleAsyncArrow. This also fixes a bug in the Typescript plugin, so a new test has been added. * Add test for async arrow after unary operator
-
Commits on Mar 22, 2020
-
Define default value for vars shadowing params (#11307)
* Define default value for vars shadowing params * Remove from package.json * Only convert traverse the params if needed This prevents this plugin from running after the destructuring transform, which causes #11256 * Review * Review * Update packages/babel-plugin-transform-parameters/src/params.js [skip ci] Co-Authored-By: Brian Ng <bng412@gmail.com> Co-authored-by: Brian Ng <bng412@gmail.com>
-
-
Commits on Mar 23, 2020
-
Add regression tests for regenerator (#10223)
* Add regression tests for regenerator * Update tests
-
Test Babel compiled using an old version of
@babel/core
(#11319)* Test Babel compiled using an old version of @babel/core This should catch regressions where we use a new helper without a fallback for older versions, or when we use a new @babel/traverse method. * Enable the test
Commits on Mar 24, 2020
-
Compact parser fixture loc info (#11322)
* chore: compact loc information in parser fixtures * chore: update test fixtures
-
-
Commits on Mar 25, 2020
Commits on Mar 26, 2020
Commits on Mar 28, 2020
-
Ignore abstract methods when decorating class (#11345)
* Ignore abstract methods when decorating class * Address Nico's feedback * Add input/output test * Update test output to account for _nonIterableRest changes
Commits on Mar 29, 2020
-
Set correct async/generator in IIFE for params (#11346)
* Set correct async/generator in IIFE for params * Reject in async params * Skip async test on node 6 (it doesn't support async fns)
Commits on Mar 30, 2020
-
Fix e2e publish test when branching from an older version (#11347)
* Fix e2e publish test when branching from an older version * Fix * Fix * Fix
Commits on Apr 1, 2020
-
Don't call
createSuper
in loose mode (it was unused) (#11358)* Don't call `createSuper` in loose mode (it was unused) * Update fixtures
-
Commits on Apr 2, 2020
-
Fix createSuper in Babel <7.5.5 (#11341)
* Fix createSuper in Babel <7.5.5 In Babel <7.5.5, addHelper only throws when called for the first time. This was fixed by #10208, but since we are already adding a workaround for <7.9.0, we may as well fix <7.5.5 * Use 7.0.0 in "babel-old-version" test
Commits on Apr 3, 2020
-
Fixed useBuiltIns and modules validation when using 'false' as option (…
…#11373) * Fixed useBuiltIns and modules validation when using 'false' as option * Added tests for 'validateUseBuiltInsOptions' and for 'validateModulesOption' when input is 'false' Co-authored-by: Jovica Markoski <jovica@upshiftwork.com>
-
-
Commits on Apr 5, 2020
-
Don't check type annotations when deciding params scope (#11349)
* Don't check type annotations when deciding params scope * Also type params
Commits on Apr 6, 2020
-
Remove unnecessary test file (#11383)
bigInts are enabled by default