a8619469bf
v7.7.4-csx.1
2019-11-24 18:50:06 +01:00
9a80ee7950
v7.7.4-csx.0 in packages
2019-11-24 18:48:01 +01:00
9c9f830ac0
Initializer and version-coercion fixes. (Also updated the tests and the makefile)
2019-11-24 18:39:49 +01:00
Nicolò Ribaudo
75767d87cb
v7.7.4
2019-11-23 00:05:58 +01:00
Nicolò Ribaudo
1b4cfc21d9
Add support for native esm to @babel/runtime ( #10748 )
...
* Add support for native esm to @babel/runtime
* Test
* Do not remove new package.json files
* Remove git diff
2019-11-22 23:59:30 +01:00
Huáng Jùnliàng
683adcbb70
Reduce standalone build size ( #10668 )
...
* infra: build standalone against src
* infra: add absoluteRuntime
# Conflicts:
# babel.config.js
* chore: remove `process.env` replace
* add $ to signify exact match
credits to Nicolò
2019-11-21 14:31:38 +01:00
Brian Ng
83fc3f2623
Update preset-env mappings ( #10742 )
2019-11-20 18:48:38 -05:00
George Zahariev
01d6d6dd3b
Flow enums: fix enum body location ( #10737 )
2019-11-19 22:46:08 -06:00
Huáng Jùnliàng
6ba113197f
fix: add missing available plugins to babel-preset-env-standalone ( #10732 )
...
* fix: add missing available plugins to babel-preset-env-standalone
* skip available-plugins test in CI coverage test
2019-11-18 14:29:18 -05:00
Brian Ng
a502d88043
Fix some incorrect typeof parsing in flow ( #10657 )
2019-11-18 19:22:27 +01:00
gr
10213655bc
[parser] Allow optional async methods ( #10582 )
...
* Add parsePostMemberNameModifiers to aync method
* Add test
2019-11-18 19:18:36 +01:00
Huáng Jùnliàng
cfd26fdbf2
register ImportEqualsSpecifier to scope ( #10710 )
...
Co-authored-by: <jaejoon.choi>
2019-11-18 13:04:34 -05:00
Brian Ng
c37361ba2e
Bump prettier@1.19.1 ( #10728 )
2019-11-16 16:05:40 +01:00
Kai Cataldo
a6d134804a
Unify build step for ESLint packages ( #10723 )
2019-11-16 10:15:15 +01:00
Arun Kumar Mohan
1b75fe3cba
chore: fix typo: prest -> preset ( #10726 ) [ci-skip]
2019-11-15 23:56:59 -05:00
Huáng Jùnliàng
3846d2a7fa
chore: fix typo ( #10725 )
2019-11-15 20:56:32 -06:00
Huáng Jùnliàng
6c7f8291d4
polish: skip creating extra reference for safely re-used node ( #10720 )
...
* polish: skip creating extra reference for safely re-used node
* reimplement using scope.maybeGenerateMemoised
2019-11-16 01:11:03 +01:00
Huáng Jùnliàng
e1839e5ec9
Circumvent typeof transform for umd build template ( #10701 )
...
* add test case
* fix: circumvent typeof transform
* chore: update test fixtures
2019-11-13 22:47:56 +01:00
ZYSzys
1d1101eb7c
Add missing flow type to babel-cli for consistency ( #10692 )
2019-11-13 17:39:19 +01:00
Huáng Jùnliàng
7633f09479
Babel should not silently remove unknown options after command… ( #10698 )
...
* chore: add test case
* chore: bump commander to 4.0.1
* fix: let commander.js throw on unknown options after args
2019-11-13 00:25:24 +01:00
Shriram Balaji
ecad667dda
Fix optional method chaining in derived classes ( #10694 )
2019-11-12 10:28:40 -06:00
4geru koichi uchinishi
d9fd07929a
chore: add missing new line to fixture ( #10697 )
2019-11-12 11:08:35 -05:00
Huáng Jùnliàng
d413a3078c
Add asserts this [is type] parsing support ( #10677 )
2019-11-11 16:36:10 -06:00
Sakibul Mowla
4cb5e0a013
Allow TypeScript type assertions in array destructuring ( #10592 )
...
* Add test
* Add fix
* Fix test, destructure with as assertion
* Add angle-bracket assertion case
* Use isBinding to make typeCastToParameter decision
2019-11-11 22:38:13 +01:00
Benjamin Blackwood
b2767c7d8a
Add funding field to package.json ( #10687 ) [ci-skip]
2019-11-11 08:08:18 -05:00
Mohammad Ahmadi
8e5f2dc929
corrected the grammar of an option description ( #10691 )
...
* grammar correction of an option description
(missed in #10589 )
* changed description to be consistent with others
Co-Authored-By: Huáng Jùnliàng <jlhwung@gmail.com>
* ran prettier
2019-11-11 12:39:36 +03:00
Kenza Houmani
2b082601a7
Fix parentheses on replaceWithMultiple for JSX ( #10598 )
...
* Closes #9851 Fix parentheses on replaceWithMultiple for JSX
* Rename test
* Use generate(ast) directly
2019-11-11 12:36:17 +03:00
chrishinrichs
70c0ed512a
Fix: Don't call Object.keys on non-objects (babel#10482) ( #10683 )
2019-11-08 21:31:46 -06:00
Nicolò Ribaudo
e315d65a7a
v7.7.3
2019-11-08 23:45:00 +03:00
Nicolò Ribaudo
0287c0f02f
Don't recover from "adjacent jsx elements" parser error ( #10682 )
2019-11-08 23:23:04 +03:00
Nicolò Ribaudo
35f4d12763
v7.7.2
2019-11-07 02:20:52 +03:00
Nicolò Ribaudo
9082e68d6f
Parse arrows with params annotations in conditional expressions ( #10669 )
2019-11-07 02:18:36 +03:00
Vojtech Miksu
bdb4318f47
chore: update convert-source-map dep ( #10667 )
2019-11-06 14:30:32 -06:00
Maksim Ryzhikov
3ab035bab6
fix: Use the recommended property to specify repository URL ( #10665 ) [ci-skip]
...
Use recommended by npm property to specify repository URL
https://docs.npmjs.com/files/package.json#repository
Otherwise, it breaks some tools which relay on this convention for example "nlf" package
https://github.com/iandotkelly/nlf/blob/master/lib/nlf.js#L284-L285
2019-11-06 07:34:09 -05:00
Leonid Shevtsov
2cd5ad0c80
fix typo: identifer -> identifier ( #10647 )
2019-11-06 09:13:08 +01:00
Huáng Jùnliàng
2640e5a27c
fix: remove accessibility of constructor ( #10658 )
2019-11-05 13:52:57 -06:00
Huáng Jùnliàng
0f949990c3
fix: add inList setter for compatibility with babel-minify ( #10656 )
2019-11-05 12:28:16 -05:00
njlr
f544753bb8
code style: consistent spacing ( #10643 ) [ci-skip]
...
Makes spacing consistent
2019-11-05 09:40:57 -05:00
Nicolò Ribaudo
42c8e0fb2f
v7.7.1
2019-11-05 14:44:00 +01:00
Nicolò Ribaudo
bf48fca6a0
Revert "throw a TypeError if identifier validation fails (#106… ( #10650 )
...
This reverts commit c7d8b8a37752f42163128cf4d5e8b54c2637cec4.
2019-11-05 14:43:23 +01:00
Archer
f8eb290da1
Fix(babel-preset-env): check api.caller is a function to avoid… ( #10649 )
2019-11-05 14:39:14 +01:00
Nicolò Ribaudo
97faa83953
v7.7.0
2019-11-05 11:27:14 +01:00
Huáng Jùnliàng
b114486bc1
Traverse performance ( #10480 )
...
* perf: remove this.inList assignment
* perf: convert NodePath.parentKey into accessor function
* perf: compress shouldSkip/shouldStop/removed traverse flags
* perf: lazy initialize this.skipKeys
* perf: lazily initialize NodePath.data
* add code comments before bit operations
* remove unused typeAnnotation property
# Conflicts:
# packages/babel-traverse/src/path/index.js
* early return when visitor keys are empty
2019-11-05 11:11:58 +01:00
Nicolò Ribaudo
e9c1bce50f
Add support for TS declare modifier on fields ( #10545 )
...
* [parser] Add support for TS declare modifier on fields (#10484 )
* [parser] Add support for TS declare modifier on fields
* Use Object.create(null)
* Comment
* Add support for TS declare types to types and generator (#10544 )
* Transform TypeScript "declare" fields (#10546 )
* Transform TypeScript "declare" fields
* Remove multiple spaces
* declareFields -> allowDeclareFields
* Update after rebase
2019-11-05 10:56:57 +01:00
Nicolò Ribaudo
87feda7c2a
@babel/parser error recovery ( #10363 )
...
* Add error recovery support to @babel/parser
* Update @babel/parser tests to always recover from errors
* Update this.raise usage in @babel/parser:
- expression.js
- lval.js
- statement.js
- estree.js
- flow.js
- jsx/index.js
- tokenizer/index.js
* Update @babel/parser fixtures with recovered errors
* Fix tests out of @babel/parser
* Do not use try/catch for control flow
* Update invalid fixtures
* Do not report invalid lhs in toAssignable
* Do not validate function id multiple times
* Dedupe reserved await errors
* Remove duplicate errors about strict reserved bindings
* Remove duplicated error about yield/await inside params
* Don't error twice for methods in object patterns
* Don't report invalid super() twice
* Remove dup error about reserved param for expr arrows
* Remove double escapes in migrated tests
* Dedupe errors about invalid escapes in identifiers
* Remove duplicated error about decorated constructor
* Remove duplicated error about spread in flow class
* Don't throw for invalid super usage
* Don't fail for object decorators with stage 2
* Fix flow inexact type errors
* Fix flow
* Fix errors about escapes in keywords (ref: #10455 )
* Update after rebase
* Fix todo
* Remove duplicated error when using += for defaults
* Remove unnecessary throw
* Nit: use ??
2019-11-05 10:15:00 +01:00
Nicolò Ribaudo
d25262ec4b
Correctly delegate .return() in async generator ( #10422 )
...
* Correctly delegate .return() in async generator
* Add catch param
* minNodeVersion
* Add another test
2019-11-05 00:35:40 +01:00
Nicolò Ribaudo
861844761f
[preset-env] Don't use async-to-generator when already using re… ( #9481 )
...
* [preset-env] Don't use async-to-generator when already using regenerator
* Add tests
* Update fixtures
2019-11-04 22:53:53 +01:00
Nicolò Ribaudo
43aa7e262c
Don't throw when destructuring into a var named as an import ( #10628 )
2019-11-04 22:50:36 +01:00
Huáng Jùnliàng
5e24016623
fix: remove ExportNamedDeclaration when the specifier is empty ( #10638 )
2019-11-04 21:51:24 +01:00
Nicolò Ribaudo
d023e105b7
[TS] Parse calls with type args in optional chains ( #10631 )
...
* [TS] Parse calls with type args in optional chains
* Test output
2019-11-04 13:25:15 -05:00