b2bb97f001
Merge of 2022-01-19 babel decorators. Disabling new-version-checklist as this is intended for a private publish for testing
2022-01-19 01:52:05 +01:00
Chris Hewell Garrett
1eb2e68c7b
Fix interop between class and static decorators
2022-01-16 13:24:27 -05:00
Huáng Jùnliàng
aa4d6e2525
use legacy visitor when version is "legacy"
2022-01-16 10:25:33 -05:00
Chris Hewell Garrett
938ce50695
Object.create(null) -> standard object
2022-01-16 09:41:22 -05:00
Nicolò Ribaudo
0876e7a160
Fallback to Symbol.for("Symbol.metadata")
2022-01-16 15:02:57 +01:00
Huáng Jùnliàng
2fc8ad9539
fix TS errors
2022-01-16 14:15:10 +01:00
Huáng Jùnliàng
351f1585b7
fix test errors
2022-01-16 14:15:10 +01:00
Huáng Jùnliàng
e9f56f3c2a
remove noop parser plugin
...
babel-parser 7.17 has materalized classStaticBlock
2022-01-16 14:15:10 +01:00
Huáng Jùnliàng
be798df427
refactor: centralize option validation in syntax-decorators
2022-01-16 14:15:10 +01:00
Huáng Jùnliàng
e52f1dc4b2
fix init
2022-01-16 14:15:10 +01:00
Huáng Jùnliàng
e67b698cbd
fix: throw when legacy and version are both specified
...
also fix decoratorsBeforeExport error when version: "legacy" is specified
2022-01-16 14:15:10 +01:00
Huáng Jùnliàng
62acebe844
add decoratorsVersion support to babel-standalone
2022-01-16 14:15:10 +01:00
Nicolò Ribaudo
9ecadfd8d2
Fix test
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
9a876a2a64
Simplify _initProto injection for existing super()
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
5ba1365f9a
Fix _initProto injection
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
faf44db9d9
Add test for _initProto with existing constructor
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
f23bcbc28b
Minor code update
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
0e745e50c9
undefined -> void 0 in helper
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
9ce9c7b861
Update makefile
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
e1c0086fe0
Install static fields and private methods on the correct class
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
910e1a782a
Rename tests
2022-01-16 14:15:08 +01:00
Chris Hewell Garrett
46c54fbbf6
Allow version: "legacy", use built-in Identifier generation, simplify private UID code
2022-01-16 14:15:08 +01:00
Chris Hewell Garrett
ab6d74a9cc
Ensure private UID generation takes into account all referenced private names
2022-01-16 14:15:08 +01:00
Chris Hewell Garrett
3f7644823d
Adds the 2021-12 transform for decorators
...
Implements the 2021-12 transform for the decorators proposal, with
support for the `accessor` keyword.
2022-01-16 14:15:08 +01:00
Chris Garrett
3f3ce5f668
Add the decoratorsAutoAccessors parser plugin ( #13681 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2022-01-16 14:14:19 +01:00
renovate[bot]
dc5f419fa9
chore(deps): update yarn to v3.1.1 ( #14158 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-15 18:14:19 +01:00
Nicolò Ribaudo
8035ad90f9
Disable "Reentrant plugin detected" error in async mode ( #14153 )
2022-01-14 23:58:29 +01:00
Huáng Jùnliàng
ab2c578f98
test: add prettier e2e test ( #14058 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2022-01-13 18:38:45 +01:00
Babel Bot
4ac8f7704c
Add v7.16.9 to CHANGELOG.md [skip ci]
2022-01-11 23:14:39 +00:00
Babel Bot
fd0e37ea3e
v7.16.9
2022-01-11 23:07:22 +00:00
Nicolò Ribaudo
928f06ca99
Follow up to #14136 ( #14137 )
2022-01-11 23:53:06 +01:00
Nicolò Ribaudo
db08d945d0
Restore @babel/register compat with @babel/core@7.5.x ( #14136 )
2022-01-11 23:26:07 +01:00
Babel Bot
6870e7f10f
Add v7.16.8 to CHANGELOG.md [skip ci]
2022-01-10 21:19:19 +00:00
Babel Bot
bc0d1ef860
v7.16.8
2022-01-10 21:11:46 +00:00
Sosuke Suzuki
69246b6212
[babel 8] fix properties name for function-like TS nodes ( #13709 )
...
* Align AST
* Add tests for parser
* Generator
* Add babel-types support
* Address review
* Address review
2022-01-10 17:35:03 +01:00
Arthur
335622f75d
Delete useless check for variable redeclaration ( #14129 )
2022-01-10 15:39:52 +01:00
Sosuke Suzuki
04f3f17556
test: Add importAssertions to TS tests and update TS tests ( #14127 )
2022-01-10 15:38:01 +01:00
Ozan H
1c32b670ce
Print trailing comma after a single TS generic in arrow fns ( #14113 )
2022-01-10 15:37:05 +01:00
Nicolò Ribaudo
72e63b9ef7
Fix test
2022-01-09 01:24:27 +01:00
Nicolò Ribaudo
82612add5c
Simplify _initProto injection for existing super()
2022-01-09 00:46:37 +01:00
Nicolò Ribaudo
0f7463e77d
Fix _initProto injection
2022-01-09 00:30:41 +01:00
Nicolò Ribaudo
b7dfda8209
Add test for _initProto with existing constructor
2022-01-09 00:24:01 +01:00
Nicolò Ribaudo
0a99902cc0
Minor code update
2022-01-09 00:15:20 +01:00
Nicolò Ribaudo
b86c25a800
undefined -> void 0 in helper
2022-01-09 00:10:05 +01:00
Nicolò Ribaudo
9cd2c7886e
Update makefile
2022-01-08 23:54:08 +01:00
Nicolò Ribaudo
00f94dc88a
Install static fields and private methods on the correct class
2022-01-08 23:54:08 +01:00
Nicolò Ribaudo
a6d77d07b4
[babel 8] Remove @babel/runtime@<=7.13.0 compat check ( #14120 )
2022-01-08 21:06:40 +01:00
magic-akari
910ece5e2a
Optimize transform-async-to-generator output ( #14122 )
...
* Optimize `transform-async-to-generator` output
- remove wrapper if the function length is zero.
- remove wrapper if the `assumptions.ignoreFunctionLength` is `true`.
* chore: update test case and code style
* chore: add test
2022-01-08 21:01:20 +01:00
Nicolò Ribaudo
213397be99
Always use the plugin/preset name in fixtures options ( #14118 )
2022-01-08 18:32:15 +01:00
Nicolò Ribaudo
393d5d74d8
[babel 8] Remove @nicolo-ribaudo/chokidar-2 fallback ( #14119 )
2022-01-08 16:50:37 +01:00