Peach
c20506e594
Fix binding access for plugin-transform-typescript ( #13900 )
2021-10-30 19:54:42 +02:00
Nicolò Ribaudo
45308f3cba
v7.16.0
2021-10-30 01:26:04 +02:00
Sosuke Suzuki
d5ba355867
Support TypeScript 4.5 type-only import/export specifiers ( #13802 )
2021-10-29 01:23:23 +02:00
Nicolò Ribaudo
fb7ddf4d38
[ts] Support private methods overloads ( #13876 )
...
* [parser] Allow private methods overloads when parsing TS
* Add transform tests
* Fix estree
* Fix flow
2021-10-26 07:29:20 +02:00
Nicolò Ribaudo
c7ddb1ae93
Use workspace:^ to specify @babel/ dependencies ( #13772 )
...
* Enforce `workspace:^` to specify `@babel/` dependencies
* `yarn constraints --fix`
* Update lockfile
2021-10-25 07:22:08 +02:00
Mickey Rose
cfe6739dc0
fix: allow enum member without initializer after non-literal member ( #13865 )
2021-10-22 08:52:23 -04:00
Emily Marigold Klassen
fca5c9a501
Don't transform declare class in proposal-class-properties ( #13854 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-10-21 00:30:05 +02:00
Babel Bot
c4b13725aa
v7.15.8
2021-10-06 20:45:15 +00:00
Huáng Jùnliàng
89cab4311c
fix: remove imported types from export ( #13800 )
...
* fix: remove imported types from export
* add onlyRemoveTypeImports testcase
2021-09-28 15:13:37 -04:00
Babel Bot
b2376757d7
v7.15.4
2021-09-02 21:28:31 +00:00
Nicolò Ribaudo
1355d0078c
[ts] Fix transform for nested namespaces shorthand syntax ( #13664 )
2021-08-29 18:27:08 +02:00
Nicolò Ribaudo
6912f968a6
v7.15.0
2021-08-04 23:00:40 +02:00
Yeonju Hwang
0671afcf87
[ts] support optional chain call with generic ( #13513 )
...
* support optional chain call with generic
* Add testcase handling new line
* allow only call if optional chain type parameter
* use exact error message
* add transform-typescript optional-chain call test
* use exact error message
* apply feedbacks
* Fix lint error
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-08-04 17:29:44 +02:00
Nicolò Ribaudo
fc3b09e533
Minor updates after merging 7.15.0 PRs ( #13628 )
2021-08-04 09:38:10 -04:00
Tony Gorez
70c66b3799
Handle typescript function overloading in a default export ( #13605 )
...
* feat(ransform-typescript): add test case
* feat(transform-typescript): avoid calling registerGlobalType if node.id is not defined
2021-08-04 00:37:53 +02:00
Nicolò Ribaudo
b707842dd0
Support TypeScript const enums ( #13324 )
2021-08-03 23:57:09 +02:00
王清雨
0542f0d7da
feat(typescript): implement namespace alias ( #13528 )
...
support `import alias = Namespace`, reject `import alias = require('foo')`
fix #12345
2021-08-03 23:55:56 +02:00
Babel Bot
1774e2aaef
v7.14.6
2021-06-14 21:45:36 +00:00
Sosuke Suzuki
f79e9ffe44
Follow up formatting by Prettier 2.3.1 ( #13463 )
2021-06-14 19:30:32 +02:00
Sosuke Suzuki
ad693cc0a0
Update prettier to 2.3.1 ( #13460 )
2021-06-14 17:33:58 +02:00
Babel Bot
7a2a928398
v7.14.5
2021-06-09 23:03:30 +00:00
Kristoffer K
140ec5aa5c
chore: setup Yarn constraints ( #13363 )
2021-05-31 18:46:03 +02:00
Babel Bot
219fd3ab1f
v7.14.4
2021-05-28 16:50:09 +00:00
Sosuke Suzuki
c6bebfe653
[ts] Remove override modifier ( #13381 )
2021-05-27 09:21:22 -05:00
Will Binns-Smith
b4c798e754
[ts] Insert export {} when necessary to imply ESM ( #13314 )
2021-05-21 00:54:39 +02:00
Babel Bot
1487a46dd5
v7.14.3
2021-05-17 20:26:25 +00:00
Bogdan Savluk
acfff5d7fe
convert @babel/plugin-transform-typescript to typescript ( #13222 )
...
* babel-plugin-transform-typescript flowts rename
* babel-plugin-transform-typescript flowts convert
* babel-plugin-transform-typescript
* babel-plugin-transform-typescript type fixes
* babel-plugin-transform-typescript
* make generate-tsconfig
* yarn install
* babel-plugin-transform-typescript
* babel-plugin-transform-typescript avoid typecast
2021-05-13 14:37:34 -04:00
Nicolò Ribaudo
910b1f266f
Archive @babel/plugin-syntax-class-properties ( #13232 )
...
babel/babel-archive@b95d3626ad
2021-04-29 23:56:03 +02:00
Nicolò Ribaudo
8ad6b75cde
Use function rather than var to compile private methods ( #12990 )
2021-03-11 02:08:31 +01:00
Nicolò Ribaudo
d04842a700
Avoid using CJS globals in internal source files ( #12963 )
...
* Lint against CJS globals in modules
* Use `import.meta.url` instead of `__filename` in `src` files
* Prepare fixtures runner for `import.meta.url`
* Use `import.meta.url` instead of `__filename` in `test/index` files
* Remove `__dirname` from remaining test files
dirname
* Avoid using `module` in `src` files
* Avoid using `require` in `src` files
* Avoid using `require` in `test` files
* Update `@types/node`
* Compile dynamic import in `@babel/node`
* Fix windows
* Use `@babel/plugin-proposal-dynamic-import` from npm
2021-03-05 19:55:36 +01:00
Nicolò Ribaudo
ea6a438315
Enable external-helpers by default in tests ( #12911 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
2021-02-26 23:33:26 +01:00
Nicolò Ribaudo
c827193d9c
v7.13.0
2021-02-22 23:35:18 +01:00
Nicolò Ribaudo
771841f764
Fix _isNativeReflectConstruct helper ( #8461 )
2021-02-22 22:49:44 +01:00
Huáng Jùnliàng
a93bbce867
Enable allowNamespaces in transform-typescript by default ( #12765 )
2021-02-21 17:46:06 +01:00
Nicolò Ribaudo
2f755ef052
v7.12.17
2021-02-18 15:58:43 +01:00
Huáng Jùnliàng
99130bcfdd
Register binding when transforming TSParameterProperty ( #12796 )
2021-02-17 00:42:01 +01:00
Babel Bot
dd5c9f958c
v7.12.16
2021-02-11 22:36:24 +00:00
Huáng Jùnliàng
74ed698c2e
Support destructuring variable declarator within TS namespace ( #12760 )
...
* refactor: extract handleVariableDeclaration
* fix: support general variable declarator under namespace
* fix: support general declarator on export module id duplication check
* refactor: use for-in
2021-02-05 11:52:15 -05:00
Nicolò Ribaudo
d291edbdf1
v7.12.13
2021-02-03 01:59:31 +01:00
Nicolò Ribaudo
50462eb5e4
[babel 8] Enable allowDeclareFields option by default with TS ( #12461 )
2021-01-08 01:28:20 +01:00
Daniel Arthur Gallagher
e8b08523f4
docs: add package-specific documentation links ( #12531 )
...
[skip ci]
2021-01-06 14:11:53 +01:00
Huáng Jùnliàng
eea3065039
Update pathCache in NodePath#_replaceWith ( #12391 )
...
* add tests on regression 12386
* fix: update cache on _replaceWith
* fix: pathCache in replaceWithMultiple could be nullish
* Update packages/babel-traverse/src/path/replacement.js
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
* test: add replaceWith test to traverse
Co-authored-by: Brian Ng <bng412@gmail.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-11-24 15:07:20 -05:00
Álvaro Mondéjar
b649f8d192
Fix packages documentation README links. ( #12289 )
2020-10-30 21:19:21 +01:00
Nicolò Ribaudo
ed498a772b
Use workspace:* for devDependencies (again) ( #12217 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-10-19 18:32:06 +02:00
Nicolò Ribaudo
7f4b83833f
v7.12.1
2020-10-16 00:36:30 +02:00
Huáng Jùnliàng
eec01fe078
chore: use workspace:* for dev deps ( #12186 )
2020-10-15 14:03:50 -04:00
Nicolò Ribaudo
726154c78e
v7.12.0
2020-10-14 21:48:45 +02:00
Huáng Jùnliàng
d0d1fdb921
Add jsxPragmaFrag support to typescript transform ( #11950 )
2020-10-14 20:12:57 +02:00
An Phi
f6bd7493a8
fix transform-typescript logic to remove definite fields ( #12149 )
2020-10-08 12:35:43 -05:00
Иван Плесских
7ad9917793
[transform-typescript] Fix import elision for type exports ( #12122 )
2020-09-29 14:35:57 -05:00