Huáng Jùnliàng
0988c471e9
Parse type imports in TSImportEqualsDeclaration ( #12962 )
2021-03-14 23:34:49 +01:00
Huáng Jùnliàng
1a05b81387
Support multiple static blocks ( #12738 )
2021-03-12 23:29:55 +01:00
Nicolò Ribaudo
05fa18e652
Run e2e tests on GH actions ( #12517 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2021-03-12 22:33:40 +01:00
Huáng Jùnliàng
71417bbfcf
Fix esmodule: "intersect" on iOS versions ( #12996 )
2021-03-12 22:14:00 +01:00
Babel Bot
bc856e03c2
chore: update test262 to 31126581e7290f9233c29cefd93f66c6ac78f1c9 ( #12993 )
2021-03-12 10:12:10 -05:00
Nicolò Ribaudo
8ad6b75cde
Use function rather than var to compile private methods ( #12990 )
2021-03-11 02:08:31 +01:00
Babel Bot
b3e2bcda73
Add v7.13.10 to CHANGELOG.md [skip ci]
2021-03-08 22:36:59 +00:00
Babel Bot
d1d404b9a3
v7.13.10
2021-03-08 22:23:36 +00:00
MrBrain295
4bd24a92ae
Capitalize design docs headings ( #12974 )
...
[skip ci]
2021-03-08 23:20:47 +01:00
Justin Ridgewell
49a9b70cb1
Optionally enable external-helpers in tests ( #12982 )
...
* Optionally enable external-helpers in tests
https://github.com/babel/babel/pull/12911 was a breaking change that now requires you to keep `babel-plugin-external-helpers` in your `package.json`. It'll will probably be unnoticeable for most, because another dependency could transitively depend on it, but AMP recently hit it when cleaning up our deps.
* Cast to boolean
* Fix package name
2021-03-08 16:58:30 -05:00
Nicolò Ribaudo
c702895256
Update min Babel version for #12917 ( #12977 )
2021-03-07 21:09:05 +01:00
Nicolò Ribaudo
8dacf85859
Lazily initialize and cache constant JSX elements ( #12967 )
...
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2021-03-06 17:33:43 +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
Babel Bot
ea620e822e
Update test262 ( #12968 )
2021-03-05 01:27:02 +01:00
Nicolò Ribaudo
6e551ae882
Suggest using babel.config.json when linting dependencies ( #12956 )
2021-03-04 21:13:19 +01:00
Nicolò Ribaudo
5f60bf0d14
Regenerate @babel/runtime-* package.json ( #12964 )
2021-03-04 19:18:57 +01:00
Nicolò Ribaudo
d9ebfab07f
[internal] Use the Node.js behavior for default imports ( #12795 )
2021-03-04 13:55:15 +01:00
Huáng Jùnliàng
ac758f7d70
Ensure static private method init run before static property ( #12918 )
2021-03-04 00:02:23 +01:00
Huáng Jùnliàng
bdb207cb75
Class static private field destructure set ( #12917 )
...
* fix: support static private field destructure set ([C.#p] = [0])
* 🚧
* fix: add compatibility warning for older @babel/helper versions
* refactor: extract common routines among classPrivateFiled helpers
* More 🚧
2021-03-03 16:38:16 -05:00
Huáng Jùnliàng
70c77e550c
check descriptor before private field access ( #12910 )
...
* fix: check descriptor before private field access
* add test cases
2021-03-03 15:06:38 -05:00
Nicolò Ribaudo
b12a4de457
Update @babel/helper-create-class-features-plugin ( #12944 )
2021-03-02 16:28:14 +01:00
Nicolò Ribaudo
42752a430e
Don't show warning from spied console.warn ( #12946 )
2021-03-02 15:22:20 +01:00
Nicolò Ribaudo
8574aa33d5
Remove accidentally commited file ( #12947 )
2021-03-02 08:34:23 -05:00
Sosuke Suzuki
b416847b61
(ts) Raise syntax error for abstract methods with a body ( #12687 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-03-02 11:57:58 +01:00
Nicolò Ribaudo
0d9ad433b4
Fix esmodules: true without specified browsers ( #12908 )
...
* Fix `esmodules: true` without specified browsers
* fix
2021-03-02 08:16:25 +01:00
Huáng Jùnliàng
82e089c7dd
Evaluate object and initializer when setting a private method ( #12707 )
...
* fix: evaluate initializer when a private method is set as a field
* make legacy node happy
* add accessor test cases
* fix: evaluate object before RHS
* fix: evaluate object before throwing writeOnlyError
2021-03-01 17:49:59 -05:00
Babel Bot
78d1950aed
Add v7.13.9 to CHANGELOG.md [skip ci]
2021-03-01 21:44:41 +00:00
Babel Bot
2c0e8d0008
v7.13.9
2021-03-01 21:33:11 +00:00
Nicolò Ribaudo
c155caf1e8
Load .browserslistrc when using old @babel/core versions ( #12934 )
2021-03-01 20:46:02 +01:00
Huáng Jùnliàng
efdca01409
fix: add tokens when tokens: true is passed to parseExpression ( #12939 )
2021-03-01 14:09:56 -05:00
Nicolò Ribaudo
9844eeee84
Put back ESM helpers in a folder where we can use .js ( #12919 )
2021-03-01 17:31:12 +01:00
Bogdan Savluk
a653b9c08e
Convert @babel/helper-fixtures to typescript ( #12922 )
2021-03-01 16:44:23 +01:00
Michael サイトー 中村 Bashurov
d05fdbc3c7
Fix invalid print output when empty array is passed to t.tsInterfaceDeclaration ( #12921 )
...
If you pass an empty array as `extends` in `t.tsInterfaceDeclaration` you'll get an invalid code printed
```ts
t.tsInterfaceDeclaration(
t.identifier('x'),
undefined,
[],
t.tsInterfaceBody([])
)
```
You will get
```ts
interface A extends {}
```
Which is an invalid TS, this PR fixes that
2021-03-01 10:43:24 -05:00
Michael サイトー 中村 Bashurov
4c343ac853
Allow nullish extends in interfaceish ( #12920 )
...
* Allow nullish extends in interfaceish
Otherwise code such as
```ts
t.interfaceDeclaration(
t.identifier('id'),
undefined,
undefined,
t.objectTypeAnnotation([])
)
```
Will fail when priting with ` TypeError: unknown: Cannot read property 'length' of null`
Despite nullish values being allowed in `t.interfaceDeclaration` definitions
* Update packages/babel-generator/src/generators/flow.ts
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-03-01 10:42:40 -05:00
Sosuke Suzuki
b62fc3d44f
babel-parser(flow): Set this property to null for FunctionTypeAnnotation without parens ( #12930 )
...
* Add null property to FunctionTypeAnnotation without parens
* Update tests
* Update tests
2021-03-01 09:15:43 -05:00
Babel Bot
265424d43f
Add v7.13.8 to CHANGELOG.md [skip ci]
2021-02-26 23:40:48 +00:00
Babel Bot
e2abc19c4c
v7.13.8
2021-02-26 23:28:19 +00: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
Huáng Jùnliàng
bfd30b9445
chore: do not provide polyfills on bundling @babel/standalone ( #12909 )
...
* chore: do not provide polyfills on bundling @babel/standalone
* review from Nicolò
* chore: update @babel/helper-define-polyfill-provider
2021-02-26 17:10:10 -05:00
Babel Bot
cf7860ffa2
chore: update test262 to 0d922ddc97f7a9ad9a3636cb578bbf03604cd9d6 ( #12912 )
2021-02-26 09:00:23 -05:00
Alan Lu - 川古
6a0394634f
Don't inject invalid core-js@2 polyfills ( #12901 )
2021-02-25 21:52:21 +01:00
Nicolò Ribaudo
962d81483e
Skip _extends helper for {…x} with modern targets ( #12899 )
2021-02-25 21:16:56 +01:00
Nicolò Ribaudo
9a1b59f1f9
Do not warn for loose of class features in preset-env ( #12898 )
2021-02-25 21:15:48 +01:00
Nicolò Ribaudo
b17231e1af
[internal] Keep the .cjs extension when compiling source files ( #12820 )
...
* [internal] Keep the .cjs extension when compiling
* yarn
2021-02-25 18:03:05 +01:00
Nicolò Ribaudo
74db827c0a
Workaround yarn bug with self-referencing packages ( #12906 )
2021-02-25 17:33:15 +01:00
Nicolò Ribaudo
bb558aaf28
Allow require() of runtime helpers in Node.js 13.2-13.6 ( #12893 )
2021-02-25 12:28:50 +01:00
Nicolò Ribaudo
039eb2710d
Update all the @babel/* dependencies ( #12897 )
2021-02-25 02:46:56 +01:00
Bogdan Savluk
0a4dc05806
convert @babel/highlight to typescript ( #12432 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-02-25 01:38:47 +01:00
Huáng Jùnliàng
4fa7a72874
chore: pin typescript to 4.1 ( #12894 )
2021-02-24 22:07:44 +01:00
Huáng Jùnliàng
227f881f35
fix(eslint-parser): merge input estree options ( #12891 )
...
Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
2021-02-24 20:13:47 +01:00