Babel Bot
7512095c84
v7.14.2
2021-05-12 16:58:57 +00:00
Huáng Jùnliàng
875fc8e693
[babel 8] Do not skip requeued paths ( #13291 )
2021-05-11 23:55:23 +02:00
Sosuke Suzuki
b2d9156cc6
Update to Prettier 2.3 ( #13288 )
2021-05-10 15:34:13 +02:00
Nicolò Ribaudo
3c0152a217
v7.14.0
2021-04-29 21:59:57 +02:00
George Zahariev
8433cd0c05
Support parsing Flow's Optional Indexed Access Types ( #13224 )
2021-04-28 18:21:31 +02:00
Nicolò Ribaudo
57daba85aa
Parse string export names by default (moduleStringNames) ( #13195 )
...
* Parse string epxort names by default (`moduleStringNames`)
* Remove remaining references
2021-04-28 18:21:31 +02:00
Sosuke Suzuki
f8aa32f767
Support parsing Flow's Indexed Access Types ( #13053 )
2021-04-28 18:21:31 +02:00
Babel Bot
006e2c9393
v7.13.17
2021-04-20 23:05:58 +00:00
Anna Henningsen
b971e00eb0
Fix completion record for labeled statement ( #13084 )
...
`{labelAlthoughIMeantItToBeAKey: value}` strikes again :)
2021-04-20 11:08:46 -04:00
Babel Bot
e50f6f7eef
v7.13.15
2021-04-08 15:40:57 +00:00
Tan Li Hau
6b57145d38
Support yield in do expression ( #10101 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-04-06 17:09:14 +02:00
Huáng Jùnliàng
b577e44d16
Refactor switch support in NodePath#getCompletionRecords ( #13030 )
2021-04-02 13:36:05 -04:00
Babel Bot
2f8203f190
v7.13.13
2021-03-26 21:09:38 +00:00
Justin Ridgewell
73dcd06293
Remove some lodash/cloneDeep calls ( #13032 )
2021-03-25 18:01:19 +01:00
Anna Henningsen
1ef78ca55b
Expand type definitions for path.{get,set}Data to cover symbols ( #13044 )
2021-03-24 14:04:13 +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
c827193d9c
v7.13.0
2021-02-22 23:35:18 +01:00
Sosuke Suzuki
9c567baa9b
Parse JS Module Blocks proposal ( #12469 )
2021-02-21 20:08:20 +01:00
Tim Seckinger
774c526390
referencesImport: support named exports accessed via * imports ( #12603 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-02-21 17:54:43 +01:00
Nicolò Ribaudo
6ef7b51a11
Implement assumptions defined in the babel/rfcs#5 RFC
...
- `mutableTemplateObject` and `ignoreToPrimitiveHint` (#12408 )
- `setClassMethods` (#12407 )
- `setComputedProperties` (#12490 )
- `ignoreFunctionLength` (#12491 )
- `noDocumentAll` (#12481 )
- `iterableIsArray` and `arrayLikeIsIterable` (#12489 )
- `pureGetters` (#12504 )
- `skipForOfIteratorClosing` (#12496 )
- `objectRestNoSymbols`, `setSpreadProperties` and `pureGetters` (#12505 )
- `noNewArrows` (#12613 , #12793 )
- `setPublicClassFields` and `privateFieldsAsProperties` (#12497 )
- `constantReexports` and `enumerableModuleMeta` (#12618 )
- `constantSuper`, `superIsCallableConstructor` and `noClassCalls` (#12726 )
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
Co-authored-by: Huáng Jùnliàng <JLHwung@users.noreply.github.com>
2021-02-21 17:09:45 +01:00
Federico Ciardi
8316cdaa8a
typo: correct variable name ( #12837 )
2021-02-20 22:03:24 +01:00
overlookmotel
792672ec60
Fix scope of computed method keys ( #12812 )
...
* Fix scope of computed method keys
* Test for nested computed keys
* Fix scope.rename with computed method keys
* Optional chaining tests
2021-02-19 02:36:34 +01:00
Nicolò Ribaudo
2f755ef052
v7.12.17
2021-02-18 15:58:43 +01:00
Huáng Jùnliàng
4462eeae6b
Clean up traverse scope ( #12797 )
2021-02-16 23:23:34 +01:00
Nicolò Ribaudo
d291edbdf1
v7.12.13
2021-02-03 01:59:31 +01:00
Nicolò Ribaudo
bab5c62f90
Fix class fields when super() is in a default param ( #12729 )
...
* Fix class fields when `super()` is in a default param
* Use assertion instead of type cast
2021-02-02 15:38:07 +01:00
Karan Sapolia
b63be942ce
Use native ESM for dev scripts ( #12296 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-01-30 18:36:21 +01:00
Bogdan Savluk
d98418efbe
Convert @babel/traverse to TypeScript ( #12488 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-01-24 01:33:09 +01:00
Nicolò Ribaudo
f795fff1e4
[babel 8] Update globals, find-cache-dir and slash ( #12656 )
2021-01-22 17:57:07 +01:00
Brian Ng
fec4a132ad
Bump prettier@2.2.1 ( #12633 )
2021-01-14 14:10:47 -05:00
Daniel Arthur Gallagher
e8b08523f4
docs: add package-specific documentation links ( #12531 )
...
[skip ci]
2021-01-06 14:11:53 +01:00
Nicolò Ribaudo
d88c60cea9
v7.12.12
2020-12-23 14:55:59 +01:00
Zen
e08f68bf61
Skip discriminant when renaming starting from SwitchStatement ( #12530 )
2020-12-22 03:10:43 +01:00
Nicolò Ribaudo
e901454096
v7.12.10
2020-12-09 23:44:59 +01:00
Nicolò Ribaudo
b5b95f81dc
Add @babel/traverse tests for re-exported bindings ( #12429 )
2020-12-06 19:33:21 +01:00
Nicolò Ribaudo
695abb8dfc
Set correct path.context un push/unshiftContainer ( #12394 )
2020-11-25 16:51:58 +01:00
Nicolò Ribaudo
e334a88884
v7.12.9
2020-11-24 21:59:33 +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
Nicolò Ribaudo
16184887ab
v7.12.8
2020-11-23 23:26:07 +01:00
Nicolò Ribaudo
4f9ad5cc3a
Avoid infinite loops in type inference logic ( #12390 )
2020-11-23 17:03:01 +01:00
Nicolò Ribaudo
7d2a14b856
Initialize NodePath context when using getSibling ( #12387 )
2020-11-23 16:03:11 +01:00
Nicolò Ribaudo
23226d93d4
v7.12.7
2020-11-20 22:02:43 +01:00
Nicolò Ribaudo
2984f0cb88
Use the correct context when re-using a cached NodePath ( #12331 )
2020-11-10 15:03:21 +01:00
Huáng Jùnliàng
0641a15030
Reduce linear search on list traversing ( #12302 )
...
* perf: reduce linear search on list traversing
* fix: remove parent cache when replacing node
2020-11-04 20:14:51 -05:00
Huáng Jùnliàng
6cb6f9f5ea
test: add tests about behaviour of replaceWithMultiple ( #12309 )
...
* test: add tests about behaviour of replaceWithMultiple
* add more tests
2020-11-04 14:46:53 -05:00
Nicolò Ribaudo
dd5a977048
Revert "Mark ThisExpression and Super as Purish" ( #12307 )
2020-11-04 11:50:46 +01:00
Nicolò Ribaudo
a41da05ce9
v7.12.5
2020-11-03 23:30:17 +01:00
Álvaro Mondéjar
b649f8d192
Fix packages documentation README links. ( #12289 )
2020-10-30 21:19:21 +01:00
Huáng Jùnliàng
ea2892fefc
add declare to class properties type annotations ( #12257 )
...
* add declare to class properties type annotations
* chore: use preset-flow
2020-10-27 10:05:01 -04:00
Nicolò Ribaudo
df908fc63b
Mark ThisExpression and Super as Purish ( #12251 )
...
* Mark `ThisExpression` as `Purish`
The other purish types are functions and literals, so I
guess it means "it doesn't have side effects"
* Super & tests
* Fix tests
2020-10-27 13:12:49 +01:00