Claudio Procida
ce420ba51c
Fixes React isCompatTag validator accepting leading dash character ( #7164 )
2018-01-09 09:42:05 +01:00
Henry Zhu
7c99f4653f
v7.0.0-beta.37
2018-01-08 11:02:14 -05:00
Boris Cherny
4208099f5b
Add validators for Flow AST node fields ( #7107 )
2017-12-30 15:26:01 -06:00
Henry Zhu
7d798952d2
v7.0.0-beta.36
2017-12-25 14:04:08 -05:00
Francisco Ryan Tolmasky I
f0e46772a6
babel-types lists JSXIdentifier as an Expression ( #6960 )
...
Currently, Babel is treating JSXIdentifier, JSXMemberExpression, and JSXEmptyExpression as expressions as well, which means Babel will for example incorrectly allow you to place these anywhere an expression is wanted.
Closes #6851 .
2017-12-18 09:27:43 -06:00
Henry Zhu
8a4124b2ff
v7.0.0-beta.35
2017-12-14 16:47:27 -05:00
Brian Ng
42f66782be
Improve error message in types assert ( #7001 )
2017-12-11 09:31:56 -06:00
Daniel Poindexter
12ac1bccd7
Fix type definitions to fully support Typescript ( #6939 )
2017-12-08 17:03:01 -06:00
Brian Ng
c7980b2b90
Bump prettier ( #6991 )
2017-12-07 17:36:49 -05:00
Nicolò Ribaudo
a2aabbd33d
Generate better builder names for JSX* and TS* ( #6967 )
...
e.g. JSXIdentifier -> jsxIdentifier.
The jSXIdentifier alias isn't removed, so this commit doesn't introduce breaking changes.
2017-12-07 12:17:40 +01:00
Henry Zhu
a7c9264c79
v7.0.0-beta.34
2017-12-02 09:38:52 -05:00
Daniel Tschinder
8270903ba2
Refactor @babel/types to be 100% ES-module ( #6741 )
...
This generates the dynamic functions at buildtime and also
splits the package into smaller files to avoid dependency circles.
2017-12-02 12:20:10 +01:00
Henry Zhu
413aa79711
v7.0.0-beta.33
2017-12-01 09:27:57 -05:00
Brian Ng
ccd7c25174
Regen babel-types docsdocs and interfaces [skip ci]
2017-11-22 08:53:16 -06:00
Daniel Tschinder
7064b298d7
Make SpreadProperty and RestProperty a deprecatedAlias ( #6853 )
...
instead of hardcoding backwards compatiblity.
This way we get deprecation warnings and also builders will work.
2017-11-18 21:54:24 +01:00
Daniel Tschinder
f3004d0d4d
Fix validation of WithStatement and enable flow in definitions ( #6852 )
...
Fixes also flow errors after activating flow
2017-11-18 18:17:31 +01:00
Henry Zhu
4e6cd298c7
v7.0.0-beta.32
2017-11-12 08:32:53 -05:00
Henry Zhu
f76ac0b197
v7.0.0-beta.31
2017-11-03 16:03:01 -04:00
Clement Hoang
1a7194a22f
Add JSX Fragment syntax support ( #6552 )
...
* Add JSX Fragments to babel-types
* Support JSX fragments in the transform-react-jsx plugin
* Add tests JSX fragments
* Update helper-builder and transform plugin documentations for jsx fragment
* Add generator for jsx fragments
* Add test for jsx fragment generator
* Split jsx transform example into normal and fragment examples
* Remove unnecessary fields from ElementState in babel-helper-builder-react-jsx
* inline [skip ci]
2017-11-03 10:43:48 -04:00
Henry Zhu
690d6465d8
v7.0.0-beta.5
2017-10-30 16:55:46 -04:00
Henry Zhu
38f984f956
v7.0.0-beta.4
2017-10-30 14:33:56 -04:00
Henry Zhu
96c380899b
update types [skip ci]
2017-10-30 12:35:08 -04:00
Jakub Beneš
04d2c030be
Add a 'throwIfNamespace' option for JSX transform ( #6563 )
...
* Added tests for ifThrowNamespace flag
* JSX transformator could work with XMLNamespaces (ifThrowNamespace flag)
* Use template literal instead
* Attempt to reword the message
* Added docs
* Reworded docs
* Reworded docs
* Fixed missing space in error message
2017-10-28 20:44:15 -04:00
Henry Zhu
962128c0f0
Update to babylon v7 beta.30 ( #6587 )
2017-10-28 20:01:52 -04:00
Mauro Bringolf
2311ddbe67
Add transform to rename variables that are ES3 reserved words ( #6479 )
...
* Initial version
* Replace .includes with .indexOf and better node set to visit
* Alphabetically sort es3 reserved words and make difference helper for readability
* Fix second Array.include error that was not polyfilled
* Move es3 keywords into separate babel-types helper and use in all es3 transforms
* Reference local plugin build directly for tests
* Try relative import for babel-types
* Update to scoped package name and beta 3
* Fix unscoped package import
* Replace local plugin reference with proper plugin name
2017-10-18 15:00:58 -07:00
Logan Smyth
191624d800
Add a new utility for traversing the AST.
2017-10-18 13:55:14 -07:00
Brian Ng
72d1a72122
Update babel-types docs and lib/types [skip ci]
2017-10-18 09:43:54 -05:00
Lucas Azzola
99be60b53d
Implement transform for nullish-coalescing operator ( #6483 )
...
* Implement transform for nullish-coalescing operator
* Update example output
* Switch from BinaryExpression to LogicalExpression
* Address review comments
- Use generateUidIdentifierBasedOnNode
- Inline "??"
- Clone ref node
- Move "??" to LogicalExpression in babel-types
* Fix reference to @babel/helper-plugin-test-runner
* Fix reference to @babel/plugin-syntax-nullish-coalescing-operator
* Don't use parent scope
* Remove .vscode from .gitignore, change 'lib/index.js' to 'lib'
* Ensure `document.all ?? 0 === document.all`
* Fix note and copy to an inline comment
2017-10-18 03:10:05 -04:00
Mateusz Burzyński
859ea4b175
Scoped: updated numerous docs with scoped packages change [skip ci]
2017-10-16 22:49:57 -04:00
Henry Zhu
c0a958098f
Scoped: update readme headers to @babel/ [skip ci]
2017-10-16 22:49:57 -04:00
Brian Ng
645bf56838
Scoped: rename installation instructions for presets [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
691f90a774
Scoped: change test imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
cde0054227
Scoped: change src imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
8e5e27577a
Scoped: update package.json dependencies to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
1cd564bd16
Scoped: rename package names to @babel/ [skip ci]
2017-10-16 22:49:01 -04:00
Henry Zhu
279f55cd9b
update to babylon beta.29
2017-10-16 20:10:55 -05:00
Henry Zhu
94da889ab7
v7.0.0-beta.3
2017-10-15 09:12:00 -04:00
Logan Smyth
7d6b15bba9
Regenerate types with scripts.
2017-10-08 22:31:31 -04:00
Gilbert
81496ab7b1
Pipeline operator
2017-09-29 19:01:18 -04:00
Justin Ridgewell
23f98a753a
Add throw expressions ( #6325 )
...
* Add throw expressions
Stage 2 proposal: https://github.com/tc39/proposal-throw-expressions
* Update babylon
* Add to stage 2
2017-09-27 16:15:44 -04:00
Henry Zhu
70547efcc1
v7.0.0-beta.2
2017-09-26 11:14:41 -04:00
Henry Zhu
195745f25f
update types readme [skip ci]
2017-09-26 11:06:03 -04:00
Henry Zhu
314bd31b85
update generator/babel-types printing, babylon ( #6306 )
...
* update generator printing, babylon [skip ci]
* Update babel-types for TS node types
2017-09-26 10:01:55 -04:00
Mateusz Burzyński
413ffe6639
Extracted babel-helper-annotate-as-pure ( #6267 )
2017-09-25 17:40:51 +02:00
Logan Smyth
fec79e358c
Ensure that Program nodes have a sourceType.
2017-09-19 14:50:42 -07:00
Henry Zhu
23121d2bd3
v7.0.0-beta.1
2017-09-19 16:24:07 -04:00
Henry Zhu
1cdacf85ae
update types readme [skip ci]
2017-09-11 23:04:12 -04:00
Henry Zhu
1c13250807
v7.0.0-beta.0
2017-09-11 23:01:41 -04:00
Daniel Tschinder
44f6ff5e85
Update prettier, eslint + plugins, flow, husky and lint-staged ( #6183 )
2017-08-31 22:56:29 +02:00
Henry Zhu
b82b65a31e
v7.0.0-alpha.20
2017-08-30 15:02:49 -04:00