Nicolò Ribaudo
3c3f5205c9
Fix right precedence of Hack pipes ( #13668 )
2021-09-08 17:38:07 +02:00
TagawaHirotaka
8c061f0848
Use @types/node for vm module ( #13738 )
2021-09-08 15:56:25 +02:00
Daniel Kezerashvili
40e43f5a14
fix: Duplicate function call in variable destructuring ( #13711 )
...
* Add test case demonstrating invalid behavior
* Add conditional check for child properties so RHS is not duplicated
* Add recursive check to find any nested non single-property case
* Add case for array destructuring
* Add test case for a nested rest element
* More safely recurse through array destructuring
* Traverse assignment and nested rest operations
* Refactor to be more clear which case statement we are executing against
* Update missed snapshots
* Update packages/babel-plugin-proposal-object-rest-spread/src/index.js
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* Filter null array elements, add early return, remove optional chaining
* Use stronger type assertions
* Update fall through to be false; add early return to RestElement case
* Move hasMoreThanOneBinding to its own file with distinct tests
* Rename testing helper to more appropriately match business logic
* Yarn Dedup & rename hasMoreThanOneBinding to shouldStoreRHSInTemporaryVariable
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-09-07 17:27:52 -04:00
Huáng Jùnliàng
d87a3d9e13
id in import attributes should not be referenced ( #13733 )
2021-09-07 08:29:15 -04:00
Yvan Zhu
1ebc5b7f7b
Remove duplicate dependency and devDependency in preset-env ( #13737 )
...
Co-authored-by: zhuyunfeng <ext.zhuyunfeng1@jd.com>
2021-09-07 14:27:03 +02:00
Sosuke Suzuki
c25ec3e069
[babel-parser] add tests for static blocks with line breaks ( #13734 )
2021-09-04 16:27:38 +02:00
Sosuke Suzuki
62e42a3f60
fix(babel-parser): Fix end of range of SequenceExpression ( #13731 )
2021-09-04 12:01:20 +02:00
Babel Bot
0d5ca876fd
Add v7.15.5 to CHANGELOG.md [skip ci]
2021-09-04 08:59:16 +00:00
Babel Bot
e82e43ca33
v7.15.5
2021-09-04 08:50:23 +00:00
Nicolò Ribaudo
44388e6e81
Disallow #a in #b in c and similar expressions ( #13727 )
...
* Disallow `#a in #b in c` and similar expressions
* Update packages/babel-parser/src/parser/expression.js
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* Add test for `await #x in`
* Flow
* Update flow allowlist
* Flow
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-09-04 10:05:09 +02:00
Babel Bot
5a361fedb4
Update test262 ( #13729 )
2021-09-04 09:40:42 +02:00
Federico Ciardi
66cadea103
Revert "fix: non breaking align options naming" ( #13732 )
...
This reverts commit 51a0caa8a2dac2651856035760413d76fb422d77.
2021-09-04 09:34:41 +02:00
Babel Bot
5fcf876c57
Add v7.15.4 to CHANGELOG.md [skip ci]
2021-09-02 23:45:22 +02:00
Babel Bot
b2376757d7
v7.15.4
2021-09-02 21:28:31 +00:00
Huáng Jùnliàng
51c6a99c8e
getBindingIdentifiers should return params for private methods (#13723 )
...
* docs: add comments on binding kind
* refactor: simplify For collector visitor
* getBinding does not return falsy values
* chore: table style tests
* add more test cases
* fix: return params for private methods
2021-09-02 21:55:39 +02:00
Nicolò Ribaudo
b335dcc67f
Don't manually update npm in CRA test on CircleCI ( #13725 )
2021-09-02 19:24:30 +02:00
Nicolò Ribaudo
fce0cffc30
Use npm@7 for CRA e2e test ( #13724 )
2021-09-02 08:16:20 -05:00
Huáng Jùnliàng
1f79784a99
archive stage 4 parser plugins ( #13717 )
...
* archive stage 4 parser plugins
* use npm protocol for archived plugins
* fix: get module.exports from archived plugins
* remove syntax-top-level-await from test options
* use npm syntax-class-static-block
2021-09-01 15:35:24 -04:00
Nicolò Ribaudo
804a94f829
Use import.meta.url instead of __dirname ( #13721 )
2021-09-01 15:57:55 +02:00
Nicolò Ribaudo
4ffbcc4bb2
Don't load top-level config in internal test ( #13720 )
2021-09-01 15:57:41 +02:00
Huáng Jùnliàng
6436733d7d
fix: stricter rest element check ( #13715 )
2021-08-31 09:31:21 -04:00
Felipe Armoni
fdfe97879e
Disallow reinitializing private elements ( #13601 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2021-08-30 12:44:38 +02:00
meskill
cb3ebde8ce
fix: pass browserslistEnv to resolveTargets ( #13697 )
2021-08-30 12:35:19 +02:00
fisker Cheung
c1f5ca6676
[eslint] Allow "latest" as ecmaVersion ( #13638 )
2021-08-30 12:05:37 +02:00
王清雨
313ecb579d
fix: fix static private field shadowed by local variable ( #13656 )
...
* fix: fix static private field shadowed by local variable
currently throw an error, maybe we could generate correct code
fix #12960
* feat: rename local variable and add test cases
* feat: add unshadow to privateIn visitor
also add test cases
* test: add reference to shadowed variable
* refactor: apply suggested changes
simplify logic and add comments
2021-08-30 12:03:47 +02:00
Sosuke Suzuki
a54f041440
test(parser): add no_plugin tests for module blocks ( #13714 )
2021-08-30 09:09:05 +02:00
Nicolò Ribaudo
1355d0078c
[ts] Fix transform for nested namespaces shorthand syntax ( #13664 )
2021-08-29 18:27:08 +02:00
Sosuke Suzuki
64d116bd6a
fix(parser): [Babel8] Align error codes between Flow and TypeScript ( #13294 )
...
* Align error codes between Flow and TypeScript
* Implement compat fallback in makeErrorTemplates
* Add tests
2021-08-28 22:41:54 +09:00
Babel Bot
38d70e2da9
chore: update test262 to 836111dc3cca6345563dbf86a2dbc108a7e2939c ( #13705 )
2021-08-27 12:13:04 +02:00
Sosuke Suzuki
b141c85b17
fix(babel-parser): delete static property from class static block for TS ( #13680 )
...
* Delete static modifier from static blocks node
* Update tests
* Address review
* Address review
* Add tests from review
* Add tests
2021-08-25 14:19:04 -04:00
Dijun Liu
1d4bd31950
add missing ExportNamespaceSpecifier in spec.md ( #13691 )
...
* add missing ExportNamespaceSpecifier in spec.md
* add constrain note in ExportNamedDeclaration
Co-authored-by: 刘地军 <dijun.ldj@antgroup.com>
2021-08-20 11:43:16 -04:00
Babel Bot
8ae4159940
chore: update test262 to 2c4f2665ec86f01bff7e42d3a5b54c9a09f9a362 ( #13696 )
2021-08-20 07:06:34 -04:00
Huáng Jùnliàng
976bfbbf69
fix: assure left bracket is not consumed after dot ( #13695 )
...
* fix: assure left bracket is not consumed after dot
* address review comments
2021-08-20 11:29:44 +02:00
Mickey Rose
e0c3969a24
convert @babel/helper-skip-transparent-expression-wrappers to typescript ( #13686 )
2021-08-20 11:08:05 +02:00
Federico Ciardi
51a0caa8a2
fix: set parserOpts.sourceFilename from root sourceFileName ( #13532 )
...
* Partial #13518
* Update tests
2021-08-19 15:54:53 -04:00
Huáng Jùnliàng
614b486780
Use named imports for babel types ( #13685 )
...
* migrate to named babel types imports
* perf: transform babel types import to destructuring
* fix merge errors
* apply plugin to itself
2021-08-18 10:28:40 -04:00
Nicolò Ribaudo
fc66d4dd05
Workaround for hanging e2e-breaking Babel test ( #13623 )
...
* Workaround for hanging e2e-breaking Babel test
* Maybe this
* Update scripts/integration-tests/e2e-babel.sh
* Update scripts/integration-tests/e2e-babel.sh
2021-08-17 20:37:34 +02:00
王清雨
b00bd94ad8
convert @babel/helpers to typescript ( #13679 )
...
Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
2021-08-16 22:39:30 +02:00
Federico Ciardi
10640b2aad
perf: partially replace .concat with .push ( #13609 )
2021-08-14 16:57:06 +02:00
Babel Bot
6a651e4641
chore: update test262 to 45a913c057892bdd26f7bc06a59a0c7420f2d3ec ( #13673 )
2021-08-13 09:32:30 +02:00
Babel Bot
936fe405e0
Add v7.15.3 to CHANGELOG.md [skip ci]
2021-08-11 07:20:03 +00:00
Babel Bot
a5624ea457
v7.15.3
2021-08-11 07:11:36 +00:00
Nicolò Ribaudo
9188e9575c
Build the initial React Native project in e2e tests ( #13642 )
2021-08-10 21:40:10 +02:00
Nicolò Ribaudo
9286cdb072
Re-enable disabled flow parser test ( #13661 )
2021-08-10 20:57:27 +02:00
doing-art
1229336fea
Fix parse error when using named import "as" with flow parser ( #13659 )
2021-08-10 20:55:21 +02:00
Bogdan Savluk
d48a5cb55c
convert @babel/plugin-transform-block-scoping to typescript ( #13219 )
2021-08-10 20:53:18 +02:00
Nicolò Ribaudo
e721f61110
[flow] Fix parsing of arrows in conditional exprs in parens ( #13655 )
2021-08-10 20:46:38 +02:00
Nicolò Ribaudo
9d0aa1ec9d
Disallow <T>(a => b) when parsing Flow ( #13645 )
2021-08-10 19:09:23 +02:00
Nicolò Ribaudo
b15ec33146
Lock core-js-compat version used for dev&tests ( #13660 )
2021-08-10 11:12:26 +02:00
dhrubesh
23d4f8c563
Derived constructors should not be allowed to return primitives ( #13571 )
...
Closes gh-13571
2021-08-09 22:47:46 +02:00