Nicolò Ribaudo
a27b9b4299
Add @babel/plugin-transform-named-capturing-groups-regex ( #7105 )
...
When the `runtime` flag is on (by default), this plugin adds a new helper which wraps the native `RegExp` class to provide groups support. People nees to use a polyfill (I implemented it in core-js) for browsers that don't support ES6 regexps.
2019-01-15 18:21:17 +01:00
Brian Ng
aaec2cd51d
Fix handling newline with TypeScript declare and abstract classes ( #9328 )
2019-01-15 06:56:52 -06:00
Brian Ng
34c9890f41
Fix range on TypeScript index signature parameters ( #9335 )
2019-01-15 06:52:33 -06:00
Armano
e8038863c3
Fix range on TypeScript this type predicate ( #9339 )
2019-01-15 10:35:49 +01:00
Nicolò Ribaudo
694e3fd8cf
Merge declaration and init of props in parser's state ( #9312 )
...
* Merge declaration and init of props in parser's state
* Move type def
2019-01-13 23:54:44 +01:00
Brian Ng
40ae6568a4
Add support for proposal-json-strings in preset-env ( #9323 )
2019-01-13 08:32:33 -06:00
Nicolò Ribaudo
a24206eb96
Fix error for decorators not enabled ( #9321 )
...
* Fix error for decorators not enabled
* Update error message
2019-01-13 00:35:22 +01:00
Nicolò Ribaudo
3e4b608a80
Parse class heritage as strict mode code ( #9315 )
2019-01-12 14:54:23 +01:00
Nicolò Ribaudo
5889620a6a
Disallow new import(x) and import(x,) ( #9313 )
...
* Disallow "new import(...)"
* Disallow trailing comma inside dynamic import
* Rename test
* Update error message
2019-01-11 18:59:51 +01:00
Nicolò Ribaudo
9764718c32
Disallow trailing comma after rest ( #9311 )
...
* Add new tests
* Use state instead of param and disallow comma in [...a,]=[]
* Unify error messages
* Object destructuring
* Update whitelist
2019-01-11 13:08:38 +01:00
Nicolò Ribaudo
28b70e5910
Generate types for TSImportType
2019-01-11 11:46:15 +01:00
Henry Zhu
4c2f8d9337
@babel/generator: Add emit and builder for TSImportType ( #9309 )
2019-01-10 13:57:00 -05:00
Armano
2cc0376756
@babel/parser(ts): Add parsing of type import ( #9302 )
2019-01-10 11:14:48 -05:00
Nicolò Ribaudo
8e051cae46
[decorators] Set method names at compile time instead of at runtime ( #9244 )
2019-01-10 00:45:02 +01:00
Cameron Martin
778a61a3c2
[@babel/types] Moved generators related to babel-types into the babel-types package directory. ( #9245 )
2019-01-09 00:14:31 +01:00
Armano
46e3f6df1f
@babel/parser: include leading character into range of generic ArrowFunctionExpression ( #9295 )
2019-01-08 07:19:55 -06:00
Brian Ng
03022d169e
Throw error if TypeScript class has empty implements ( #9292 )
2019-01-07 15:27:27 -06:00
David Laban
9803253363
flow type update: babel-types.isType(?string, string): boolean ( #9275 )
2019-01-07 08:53:01 -06:00
Daniel Tschinder
e43777bb5f
Fix location for typescript type assertions in AST ( #9284 )
2019-01-06 16:39:14 -08:00
Daniel Tschinder
54f072991d
Revert "Revert babel-helper-builder-react-jsx change from #4988 " ( #9119 )
...
This reverts commit dbc07220ae9188a3fb2bdea3d826ff7f48532a2e.
# Conflicts:
# packages/babel-helper-builder-react-jsx/src/index.js
2019-01-05 22:22:49 -08:00
Brian Ng
a58893d1e3
Ensure modifiers are included in TSParameterProperty ranges ( #9276 )
2019-01-04 10:02:09 -06:00
Nicolò Ribaudo
865eb93c2d
[private methods] Define private methods before executing initializers ( #9248 )
2019-01-03 20:33:44 +01:00
Nicolò Ribaudo
9d1d0fe57a
Add mixins support to the _decorate helper ( #9166 )
2018-12-29 22:54:30 +01:00
Brian Ng
ea1c436ea1
Fix handling scoped packages in preset-env include/exclude options ( #9219 )
2018-12-27 09:54:28 -06:00
David Laban
3f9a1c08cc
Add tests for babel-types.isType ( #9243 )
2018-12-27 12:49:34 +01:00
J. S. Choi
c586d4e8ca
parser, smart pipes: Add support for yield in pipeline bodies
...
Fixes #9178 .
2018-12-23 17:09:18 +01:00
J. S. Choi
60ffe1d103
parser, smart pipes: Add test for async–await
2018-12-23 17:09:18 +01:00
Armano
b5177ce290
babel-parser: typescript: add missing bigint keyword ( #9230 )
2018-12-22 17:18:32 -06:00
Nicolò Ribaudo
f130981546
v7.2.5
2018-12-21 23:32:48 +01:00
Nicolò Ribaudo
bc347bab7a
Add @babel/helpers to devDependencies of runtime and runtime-corejs2 ( #9222 )
2018-12-21 10:08:47 +01:00
Nicolò Ribaudo
21228abfde
v7.2.4
2018-12-20 13:08:41 +01:00
Nicolò Ribaudo
0bb720401b
v7.2.3
2018-12-20 12:18:31 +01:00
Nicolò Ribaudo
911c2d0bf4
Use @babel/eslint-plugin-developement ( #9206 )
2018-12-18 22:59:43 +01:00
cphamlet
116ca22def
Minor typo for -f flag in cli ( #9201 )
2018-12-17 19:29:23 -08:00
Tan Li Hau
52fb884550
Strips flow directive fully ( #9197 )
2018-12-17 09:27:56 +01:00
Daniel Tschinder
5cb38995c0
Allow keywords to be used in type annotations ( #9184 )
2018-12-15 12:51:24 -08:00
Andy Edwards
3c8e15dbc1
don't throw classNameTDZError if referenced identifier is within a TypeAnnotation ( #9190 )
...
fix #9189
Obviously this code is intended to throw an error if someone tries to reference a class before it's defined, like:
```js
class Foo {
someField = Foo;
}
```
But there's no problem with referencing the class in a type annotation before it's defined, and this is often necessary for tree structures:
```js
class Foo {
[someSymbol]: Foo;
}
```
2018-12-15 15:16:43 +01:00
Nicolò Ribaudo
c1499b13ac
v7.2.2
2018-12-15 10:59:56 +01:00
Nicolò Ribaudo
7bcd62cfee
Build standalone on prepublish
2018-12-15 10:52:23 +01:00
Daniel Tschinder
47da5cf75a
Correctly transform spreads to use proper concat method ( #9108 )
...
* Correctly transform spreads to use proper concat method
* Add tests to ensure array spread clones elements
2018-12-13 23:24:43 -08:00
Vikram Rangaraj
72471aff63
Handle flow comments with leading spaces ( #9168 )
...
* check for spaces and tabs before a flow comment
* fix issue with using string index and shift interchangably
* update tests
* Use update charcodes version
* Disallow flow-comments in flow-comments and check for unterminated comments
2018-12-13 22:10:01 -08:00
Patrick Eriksson
b9340bc597
Fix package.json repository URLs ( #9176 )
2018-12-13 21:15:40 +01:00
Thiago Arrais
731182eee4
Types for pipeline operator (smart proposal) ( #9122 )
2018-12-13 06:58:58 +01:00
Daniel Tschinder
f4eec5ca79
Add new flag that indicates if a module has exports ( #9171 )
2018-12-12 21:24:44 -08:00
Nicolò Ribaudo
d1d3c823cc
Move decorators transform to @babel/helper-create-class-features-plugin ( #9059 )
...
* Move decorators to @babel/plugin-class-features
* Minor refactoring
* Use the new helper package
2018-12-09 12:30:25 +01:00
Nicolò Ribaudo
9b005dedfd
Fix --root-mode option in babel-node ( #9148 )
2018-12-07 22:47:56 +01:00
Rubén Norte
4fdb71151f
Inherit properties in function from method in loose mode ( #9135 )
2018-12-07 15:57:48 +01:00
Kagami Sascha Rosylight
4dff205dc1
Disable parameter-destructuring in Edge 18 ( #9140 )
2018-12-07 08:14:08 -06:00
Daniel Tschinder
ca2918ab13
Test local version of babel/types
2018-12-05 13:34:36 -08:00
Daniel Tschinder
d915f31bcb
Add tests for createTypeAnnotationBasedOnTypeof
2018-12-05 13:24:55 -08:00