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
Yiyuan Bai
de56e12c68
Allow use react elements after yield statement
2016-05-12 18:41:41 +08:00
Henry Zhu
21c4b4d779
6.8.0 changelog ( #27 )
2016-05-04 10:05:58 -04:00
Henry Zhu
6ef4a731b7
6.8.0
2016-05-04 10:04:32 -04:00
Thomas Grainger
2607f35b9f
Fix grammar in 6.8.0 CHANGELOG ( #3498 )
2016-05-04 08:00:57 -04:00
Henry Zhu
d4cd0bf7b7
Actually remove it..
2016-05-02 22:44:50 -04:00
Henry Zhu
c81db57b03
Remove unused file
...
Ref f81c281fc4 (commitcomment-17331315)
2016-05-02 22:43:47 -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
2af299f5ce
Docs: 6.8.0 changelog ( #3496 )
2016-05-02 19:25:16 -04:00
Henry Zhu
cafd15cdcf
Merge pull request #3438 from hzoo/self-host-on-babel6
...
Self host on babel6
2016-05-01 20:03:04 -04:00
Henry Zhu
1b62be4c57
Travis: add node 6, remove iojs ( #3484 )
...
* Travis: add node 6
* remove iojs from travis [skip ci]
2016-05-01 15:22:33 -04:00
Logan Smyth
881ea85dd8
Merge pull request #3491 from rektide/babel-template-quasiquotes
...
docs: babel-template is an implementation of quasiquotes.
2016-04-30 14:20:13 -07:00
rektide
cfb911de91
babel-template is an implementation of quasiquotes.
...
LISP, Haskell, Scala, Scheme, Boo respect this term for a string literal of code being interpretted into AST. Babel should clearly identify that it too has quasi-quotes capabilities.
2016-04-30 17:08:08 -04:00
Jay Phelps
4166e5148e
create new lexical env inside switch statement blocks, fixes #T7324
2016-04-29 23:54:41 -07:00
Gabe Levi
fe5193a40a
Support defaults in Flow's type parameter declarations
...
The primary goal of this commit is to add the ability to parse type parameter
declarations with defaults, like `type Foo<T = string> = T`. While I was in the
code, I fixed a few small things, like
* Type parameter declarations need 1 or more type parameters.
* The existential type `*` is not a valid type parameter.
* The existential type `*` is a primary type
* The param list for type parameter declarations now consists of
`TypeParameter` nodes
2016-04-27 16:12:10 -04:00
Henry Zhu
83efecdc8d
check if we can revert gcc additions ( #3483 )
2016-04-26 17:55:35 -04:00
Henry Zhu
d657649031
Use local add-module-exports
2016-04-25 21:53:28 -04:00
Henry Zhu
ecd294b55e
fix babel-traverse issues
2016-04-25 21:52:51 -04:00
Henry Zhu
373006f61b
test loose mode
2016-04-25 21:52:51 -04:00
Henry Zhu
6f5e47eff0
Check if t.is is already defined (specifically accounting for the isImmutable method in validators
2016-04-24 20:06:23 -04:00
Henry Zhu
c9e5da6ad0
use named exports instead of export * as a temp workaround
2016-04-24 20:06:23 -04:00
Henry Zhu
4c23b01798
change plugins to use babel-runtime 6
2016-04-24 20:06:23 -04:00
Henry Zhu
10957a1093
Update dependencies on the top level to use babel 6
2016-04-24 20:05:34 -04:00
Logan Smyth
27bd5c6719
Merge pull request #3477 from mattkrick/patch-1
...
turn transform into a simple `for` loop
2016-04-24 16:47:31 -07:00
Olivier Tassinari
e2a2dd882f
Docs: Update README.md ( #3479 )
...
`traverse` is imported but not used.
2016-04-24 18:38:13 -04:00
Daniel Tschinder
4bfececdad
Fix leading comments added from previous node
...
This fixes an issue that comments were added as leading comments
to expressions, which are not immediately folowing the comment.
This was also reported and fixed in espree, and is basically a port to
babylon. eslint/espree#256
this also fixes an issue in babel-eslint with certain rules babel/babel-eslint#289
2016-04-23 12:24:20 +02:00
Matt Krick
caab035115
turn transform into a simple for loop
2016-04-22 16:53:10 -05:00
Logan Smyth
696c74933a
v6.7.7
2016-04-20 20:09:20 -07:00
Logan Smyth
7372003fc2
Update CHANGELOG for v6.7.7.
2016-04-20 19:44:38 -07:00
Logan Smyth
f6be6e0bd4
Merge pull request #3463 from loganfsmyth/sourcemap-rework
...
Support more fine-grained source location tracking and use it for functions
2016-04-20 18:57:18 -07:00
Logan Smyth
09d6215835
Merge pull request #3475 from loganfsmyth/quick-perf-fixes
...
Code generator performance improvements
2016-04-20 18:56:57 -07:00
Logan Smyth
ca8556e36f
Let function optimize better by using a boolean.
2016-04-19 19:36:11 -07:00
Logan Smyth
eb455dff85
Pre-expand type aliases for fast lookup.
2016-04-19 19:36:10 -07:00
Logan Smyth
dc92a16e7f
Fast path for newline processing.
2016-04-19 18:59:32 -07:00
Logan Smyth
e7796b45c9
Add a fast path for checking for exact node types.
...
In my unscientific tests locally, this look the time for generating
200 files down from 11.8 to 8.3 seconds.
2016-04-19 18:59:15 -07:00
Logan Smyth
e7d37f342c
Merge pull request #3457 from babel/T7272
...
Add test for T7272
2016-04-18 23:35:49 -07:00
Daniel Tschinder
91b818d486
Add Makefile that makes it able to test babel with current babylon
2016-04-17 22:16:15 +02:00
Logan Smyth
b311517fd3
Merge pull request #3422 from loganfsmyth/this-shadow-constructor
...
Initialize shadowed 'this' bindings in constructors after super - fixes T7191
2016-04-16 14:29:38 -07:00
Henry Zhu
ceaf4af714
Docs: add heading for writing tests [skip ci]
2016-04-16 14:48:11 -04:00
Henry Zhu
eb184d618b
Clarify phabricator explaination [ci skip]
2016-04-16 14:03:57 -04:00
Henry Zhu
178fc539da
Add a note about old github issue links
2016-04-14 08:03:46 -04:00
Henry Zhu
98685d21d7
Merge pull request #3464 from lydell/code-frame-tabs
...
babel-code-frame: Handle code with tabs
2016-04-11 13:42:37 -04:00
Simon Lydell
f80463120b
babel-code-frame: Handle code with tabs
...
Previously, the `^` marker was misaligned if the line above contained tabs.
Fixes T7282.
Note: This commit handles a very subtle edge-case differently: When the passed
in column number is larger than the length of the line. Previously, the `^`
marker would be faithfully placed at that exact column number. Now, it is placed
at the end of the line instead (after the last character of the line to be
precise). Ideally, we should define what should happen in edge cases, but that's
out of scope for this PR.
2016-04-11 15:46:32 +02:00
Simon Lydell
580b09abb1
babel-code-frame: Add test for code with tabs
2016-04-11 15:44:31 +02:00
Logan Smyth
81e6d4147d
Map the end of block statement nodes to the end of their original location - fixes T7258
2016-04-11 01:54:41 -07:00
Logan Smyth
76bb1dffaa
Track sourcemap location on a stack - fixes T7255
2016-04-11 01:54:40 -07:00
Logan Smyth
7d6d4c204b
Create a duplicate class identiier to avoid sharing 'loc'.
2016-04-10 21:18:33 -07:00