Daniel Tschinder
28985e7acc
6.17.1
2017-05-10 18:25:58 +02:00
Daniel Tschinder
934a3a78b6
Update changelog
2017-05-10 18:25:13 +02:00
Daniel Tschinder
9a1ef48ae3
Merge pull request #516 from babel/backport2
...
Backport #433 #473 + typo
2017-05-10 18:22:06 +02:00
Brian Ng
1077a7304e
Fix typo in flow spread operator error [skip ci]
2017-05-10 18:20:06 +02:00
Alex Kuzmenko
b98f463aa7
Fixed invalid number literal parsing ( #473 )
...
* Fixed invalid number literal parsing
* Don't ignore period or E characters after octal numbers
cherry-pick fix from acorn
* Fix tests
2017-05-10 18:14:09 +02:00
Alex Kuzmenko
406c3dabc0
Fix number parser ( #433 )
...
Fixed number parser #2
Added one more test
2017-05-10 18:13:46 +02:00
Daniel Tschinder
8c885eaef6
Merge pull request #515 from babel/backport1
...
Backport #499 , #510 , #475 , #479
2017-05-10 18:03:58 +02:00
Brian Ng
7c56c24bb0
Ensure non pattern shorthand props are checked for reserved words ( #479 )
2017-05-10 16:59:09 +02:00
Brian Ng
67db275c94
Remove jsx context when parsing arrow functions ( #475 )
2017-05-10 16:56:21 +02:00
Brian Ng
4a29ccdd1a
Allow super in class properties ( #499 )
2017-05-10 16:46:45 +02:00
Brian Ng
63412e54f4
Allow flow class field to be named constructor ( #510 )
2017-05-10 16:46:38 +02:00
Sebastian McKenzie
a2c143299a
Add changelog
2017-04-20 16:43:47 +01:00
Sebastian McKenzie
2e17e5bc39
6.17.0
2017-04-20 16:41:23 +01:00
Sebastian McKenzie
a4ca1cc645
Cherry-pick #418 to 6.x ( #476 )
...
* Add support for flow type spread (#418 )
* Add support for flow type spread
* Broaden spreadable types from primary to all, more tests
* Eliminate variance sigil for type spreads, better errors, fix tests
# Conflicts:
# src/plugins/flow.js
* Fix tests
2017-04-20 16:40:55 +01:00
Kevin Gibbons
fab343e379
Add support for invalid escapes in tagged templates ( #274 )
...
Per the stage-3 TC39 proposal:
https://github.com/tc39/proposal-template-literal-revision
2017-03-21 16:50:34 -04:00
Daniel Tschinder
0811438c82
Update flow ( #422 )
2017-03-19 22:07:16 +01:00
Daniel Tschinder
4c88cfe765
Disable failing tests (fixed in 7.0)
2017-03-10 13:50:53 +01:00
Daniel Tschinder
c0a89f4c15
Upgrade flow to 0.41
2017-03-10 13:41:08 +01:00
Brian Ng
ca652bd934
Throw error if new.target is used outside of a function ( #402 )
2017-03-10 13:38:45 +01:00
Brian Ng
35e7732156
Fix watch command ( #403 )
2017-03-10 13:37:54 +01:00
Daniel Tschinder
902f93d937
Update yarn lock
2017-03-10 13:35:49 +01:00
Kevin Gibbons
81056eeee7
Fix parsing of class properties ( #351 )
2017-03-10 12:43:45 +01:00
Daniel Tschinder
0b7da509d9
Add estree test for correct order of directives
2017-03-04 21:00:10 +01:00
Alex Kuzmenko
962ce16e84
Add DoExpression to spec ( #364 )
2017-03-03 21:38:04 +01:00
Alex Kuzmenko
d9e9466350
Update spec.md [skip ci] ( #367 )
2017-02-28 12:45:25 -05:00
Brian Ng
09bb9bc6be
Fix parsing yield with dynamicImport ( #383 )
2017-02-28 12:43:34 -05:00
Brian Ng
cd133ff8e1
Ensure consistent start args for parseParenItem ( #386 )
2017-02-28 12:56:56 +01:00
greenkeeper[bot]
9a5d93fa61
chore(package): update flow-bin to version 0.40.0 ( #380 )
...
https://greenkeeper.io/
2017-02-27 12:08:56 +01:00
Henry Zhu
1e747835db
add estree to docs [skip ci] ( #372 )
2017-02-23 18:12:30 -05:00
Henry Zhu
539d345d9b
6.16.1
2017-02-23 09:53:50 -05:00
Henry Zhu
2dd57d17b9
Revert "Fix export default async function to be FunctionDeclaration" ( #375 )
2017-02-23 09:50:33 -05:00
Henry Zhu
b0f8405b52
Revert "Don't parse class properties without initializers when classProperties plugin is disabled, and Flow is enabled" ( #376 )
2017-02-23 09:50:25 -05:00
Daniel Tschinder
9ed026df08
Fix error in changelog
2017-02-23 14:04:25 +01:00
Daniel Tschinder
b301d436da
6.16.0
2017-02-23 14:00:35 +01:00
Daniel Tschinder
76c7f55fb5
Fix date [skip ci]
2017-02-23 13:56:22 +01:00
Daniel Tschinder
99484d4c39
Fix typo [skip ci]
2017-02-23 13:52:53 +01:00
Daniel Tschinder
8dbdeff762
Fix typo [skip ci]
2017-02-23 13:51:44 +01:00
Daniel Tschinder
c6c4222789
Changelog 6.16 ( #371 )
...
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Address review comments
* Update CHANGELOG.md
2017-02-23 13:50:41 +01:00
Kevin Gibbons
561d4f74b0
Forbid semicolons after decorators in classes ( #352 )
2017-02-22 16:24:40 +01:00
Brian Ng
ad8d520406
Ensure takeDecorators is called on exported class ( #358 )
2017-02-22 16:22:38 +01:00
Alex Rattray
94eda1254e
Fix generator-method-with-computed-name spec ( #360 )
2017-02-22 16:21:44 +01:00
Alex Rattray
fab4ca2a18
Fix flow type-parameter-declaration test with unintended semantic ( #361 )
2017-02-22 16:19:42 +01:00
Daniel Tschinder
b023470c7e
estree: correctly change literals in all cases ( #368 )
2017-02-20 23:47:57 +01:00
Daniel Tschinder
2ef00a6631
Fix negative number literal typeannotations ( #366 )
...
* Fix negative number literal typeannotations
Also use parseLiteral() to parser string and number literal typeannotations
so that future changes (estree) to literals are also reflected to flow.
* Instead of invalid fallthrough throw immediately
* Increase coverage and better error mesage
2017-02-20 22:43:59 +01:00
Brian Ng
57aaceaae7
Update contributing with more test info [skip ci] ( #355 )
2017-02-12 13:45:23 +01:00
Daniel Tschinder
fac13290d7
Estree compatibility as plugin ( #277 )
...
* Initial estree support for ClassMethod
* Handle literals for estree
* Fix regex
* correct output of regexp and regenerate test
* Add tests for validation stuff with estree plugin
* Parse Properties correctly
This also refactors how babylon parses obj properties in general
so that this logic can be more easily extended.
* Run all throws-tests a second time with estree plugin
* Fix all throw tests
* Remove rebase conflict
* Correctly set kind
This ensures state.inMethod gets propagated correctly
* Add computed: false to methods with ident async
* Implement directive field on Directives
* Test invalid directives
* more tests
2017-02-12 12:48:41 +01:00
Daniel Tschinder
c79dd953ea
Fix #304 and #309 ( #339 )
2017-02-10 15:36:46 +01:00
Raphael Mu
f25a2fbc78
add startLine option ( #346 )
2017-02-10 15:06:28 +01:00
Daniel Tschinder
407c97c9c2
Fix #321 by allowing question marks in type params ( #338 )
...
* Fix #321 by allowing question marks in type params
* Require commas between params
2017-02-10 15:03:15 +01:00
Daniel Tschinder
bc771bd0f9
Fix #336 by correctly setting arrow-param ( #337 )
2017-02-10 15:01:39 +01:00