Anna Henningsen
d1f908924c
Fix completion record for variable declarations ( #13596 )
2021-07-27 23:50:47 +02:00
王清雨
e0dc925bbe
feat(traverse): specific return type for virtual types' validators ( #13578 )
...
* feat(traverse): specific return type for virtual types' validators
update generator script to use virtualType.types[0] as it's type
fix #13576
* fix: remove unused ts-expect-error
so glad that it works
* feat: use VirtualTypeAliases to generate validators for virtual types
* fix: return boolean when it doesn't have any alias
* fix: use type only import and simplify condition
2021-07-27 10:02:09 -04:00
Andy Edwards
1d48bb0d8c
add 12 missing NODE_FIELDS ( #13577 )
...
* test: add fields test
* fix(babel-types): add missing NODE_FIELDS and tests
fix #13558
fix #13563
* chore: avoid using fs-extra
* chore: code cleanup
* chore: avoid util.promisify
* fix: remove bad ts-expect-error suppressions
2021-07-23 09:36:08 -04:00
Babel Bot
e591780244
v7.14.8
2021-07-20 17:51:55 +00:00
Nitin Kumar
bc1b9537b0
Fix arrow transformation when arguments is defined as variable ( #12344 )
...
* fix: arrow-fn transformation when 'arguments' is defined as var
* fix: tests
* refactor: code
* Review by @nicolo-ribaudo
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-07-06 13:59:24 -04:00
Colin Wang
a5a63e3033
fix: accept duplicated import/variable in different module ( #13527 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-07-06 19:18:12 +02:00
Babel Bot
268e4ca0de
v7.14.7
2021-06-21 21:44:55 +00:00
Huáng Jùnliàng
dddb4133d2
fix: remove traverse trap on NODE_ENV == "test" ( #13475 )
2021-06-17 16:29:56 +02:00
Babel Bot
7a2a928398
v7.14.5
2021-06-09 23:03:30 +00:00
Huáng Jùnliàng
4eda1c8605
chore: bump eslint and its plugins ( #13412 )
2021-06-03 23:42:32 -04:00
Huáng Jùnliàng
8720919665
fix: hoist variable declaration within do block ( #13122 )
...
* fix: hoist variable declaration within do block
* test: add input for variable-declaration-start
* test: actually write a test for this issue
* make prettier happy
2021-06-03 21:39:19 -04:00
Kristoffer K
140ec5aa5c
chore: setup Yarn constraints ( #13363 )
2021-05-31 18:46:03 +02:00
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