200 Commits

Author SHA1 Message Date
Ryan Tsao
39d18679e1 Fix getBindingIdentifiers in babel-types (#5068)
* Added getBindingIdentifier tests

* Added failing test for getBindingIdentifiers

* Fix babel-types getBindingIdentifiers
2017-01-09 09:08:07 -05:00
Henry Zhu
77d9e3e5c4 v6.21.0 2016-12-16 16:55:53 -05:00
Henry Zhu
542e4e9ee1 update babel-types readme [skip ci] 2016-12-16 16:50:41 -05:00
Justin Ridgewell
2bbc36d25e JSXSpreadChildren, throw in transform-react-jsx (#4988) 2016-12-16 15:30:00 -05:00
Henry Zhu
07d49ffabf update readme [skip ci] 2016-12-08 19:33:55 -05:00
Henry Zhu
608e77e389 v6.20.0 2016-12-08 18:25:39 -05:00
Sean Larkin
39c92160f7 Add generator support for Import (#4945) 2016-12-07 18:22:12 -05:00
Sven SAULEAU
2311b5b53a README: remove dollar in sh snippets [skip ci] 2016-11-29 08:39:23 -05:00
Sven SAULEAU
51e8fd1868 Update babel-types README (#4905) [skip ci] 2016-11-28 20:22:59 -05:00
Sven SAULEAU
f98d824ae7 Fix babel-types README (#4899) [skip ci] 2016-11-28 11:09:41 -05:00
Nikolai Tillmann
efefe828f9 Preserve null in babel-types' clone and deepClone. (#4853)
* Preserve null in babel-types' clone and deepClone.
* Also respect undefined when cloning.
* Updating last test to reflect original test case "[,0]"
2016-11-17 08:52:04 -05:00
Henry Zhu
754a6ed8c0 v6.19.0 2016-11-16 11:15:30 -05:00
Henry Zhu
8475b6ec02 fix lint 2016-11-15 14:51:26 -05:00
Henry Zhu
6a6ec8785b Start babel-types tests, add isNodesEquivalent (#3553) 2016-11-15 14:24:20 -05:00
Henry Zhu
12f9cd0826 v6.18.0 2016-10-24 17:18:36 -04:00
Henry Zhu
aae09a27d6 update readme [skip ci] 2016-10-24 16:04:45 -04:00
Moti Zilberman
fd4667e649 Increase test coverage (#4742)
* Add tests for path type inferers

* Add test for babel-types.valueToNode

* Add tests for babel-types.toKeyAlias

* Add tests for babel-types.toStatement

* Add tests for babel-types.toExpression

* Lint fixes in babel-traverse/test/inference
2016-10-23 10:51:09 +02:00
Sam Goldman
15183078e6 Add EmptyTypeAnnotation (#4724)
Added to Flow in facebook/flow#c603505583993aa953904005f91c350f4b65d6bd
Parser support added in babel/babylon#171.
2016-10-14 15:16:02 -04:00
Flavio Corpa
9b02a6d298 Add missing description to all package.json files (#4703) [skip ci] 2016-10-12 10:15:50 -04:00
Henry Zhu
6abc28e532 update types readme [skip ci] 2016-09-29 08:47:24 -04:00
Henry Zhu
6d22f258db v6.16.0 2016-09-28 15:38:45 -04:00
Dan Harper
8709899b42 fix flow-strip-types/flow-comments removing entire ClassProperty (#4587) 2016-09-28 18:25:33 +02:00
zenparsing
26e79c5433 Implement support for async generator functions and for-await statements 2016-09-27 17:37:21 -04:00
Moti Zilberman
03d772c2ec Computed class properties (#4500)
* Support computed class property names (#4499)

** Depends on babel/babylon#121 **

* `babel-types`: Add `computed` field to `ClassProperty`

* `babel-plugin-transform-class-properties`: handle computed property names correctly

* `babel-generator`: add tests for class properties (computed/literal, static/instance)

* doc: Update babel-types with ClassProperty.computed

* chore(package): update babylon to v6.11.0

* babel-types: move ClassProperty.computed to be last builder arg
2016-09-26 17:46:00 +02:00
Daniel Tschinder
1fce4cb42a Fix striping of typeParameters from arrow functions (#4521)
the typeParameters field was missing in the visitors and therefore
never visited by babel-traverse

Fixes #4483
2016-09-17 22:46:45 -04:00
Henry Zhu
6d7417ba1b Update babel-types docs, contributing, babel-cli [skip ci]
Closes gh-3684
2016-09-01 16:15:32 -04:00
Henry Zhu
b3dca4fb5a v6.15.0 2016-09-01 11:03:06 -04:00
Ben Briggs
c94abcc170 Add support for preserving comments in babel-template. (#3689)
* Add support for preserving comments in babel-template.

* Add an API section to babel-template.
2016-09-01 10:50:25 -04:00
Boopathi Rajaa
953dd1df48 Fix toExpression converting arrow functions to function expressions without block body (#3687) 2016-08-31 17:01:59 -04:00
Logan Smyth
a0ca5ed61e Remove the cycle from babel-types/babel-traverse. 2016-08-29 19:13:19 -07:00
Henry Zhu
5ce325c399 v6.14.0 2016-08-24 17:40:46 -06:00
Daniel Tschinder
308de41992 Add support for the new declare module.exports of flow. (#3570) 2016-08-16 16:54:00 +02:00
Henry Zhu
6ab3e35075 v6.13.0 2016-08-04 19:34:51 -04:00
Daniel Tseng
d0c82f0d8a Missing FlowType definition opts.deprecatedAlias (#3628)
Added missing FlowType definition `opts.deprecatedAlias` for `defineType()` in `babel-types/src/definitions/index.js`
2016-08-04 13:40:41 -04:00
Henry Zhu
7b9749233e v6.11.1 2016-06-27 17:19:48 -04:00
Forbes Lindesay
3bc3c9a3ed Babel types docs (#3549)
* Update babel-types documentation

Mostly just re-run generate-babel-types-docs but also update for some
more validator types.

* Rebuild docs as part of "build-dost"

* Include fields not in BUILDER_KEYS in babel-types docs

These fields don’t have a shorthand for you to pass them to the helper
method, but they are still useful to know about.

* Fields not included in BUILDER_KEYS cannot be "required"

We don’t ever type-check fields not in BUILDER_KEYS so they are never
required.
2016-06-27 17:01:58 -04:00
Henry Zhu
bfc90c975d v6.10.2 2016-06-17 17:45:16 -04:00
Daniel Tschinder
d7c0fbdf5b "name" should not be visited for TypeParameter (#3529)
name is a string and does not need to be visited
2016-06-17 17:21:23 -04:00
Henry Zhu
c5ae951f98 v6.10.0 2016-06-11 00:05:21 -04:00
Henry Zhu
63e8313788 add type def 2016-06-08 16:16:22 -04:00
Henry Zhu
77ac82b9f5 v6.9.1 2016-05-29 15:50:04 -04:00
Leonid Nikiforenko
822e8804d5 Make JSXText Immutable (#3510) 2016-05-25 23:30:29 -04:00
Henry Zhu
cf6304a34b v6.9.0 2016-05-17 14:49:17 -04:00
Shuhei Kagawa
be9be86919 Add decorators to argument types (#3470) 2016-05-16 16:48:20 -04:00
Jordan Klassen
dc1f40540d Upgrade to lodash 4 (#3315)
* Upgrade to lodash 4

* Fix incorrect require in babel-runtime/scripts

* Replace cloneDeep with cloneDeepWith where applicable
2016-05-13 17:15:14 -04:00
Logan Smyth
9843c87573 Fix block statement code style. (#3493) 2016-05-02 21:15:37 -04:00
Henry Zhu
bf5de6bcb7 v6.8.1 2016-05-02 20:42:03 -04:00
Henry Zhu
8463dff9d9 Lazy-initialize babel-traverse to avoid circular dep. (#3497) 2016-05-02 20:40:05 -04:00
Henry Zhu
05bf216339 v6.8.0 2016-05-02 19:43:49 -04:00
Henry Zhu
ecd294b55e fix babel-traverse issues 2016-04-25 21:52:51 -04:00