Henry Zhu
e95ff9effb
Fix: for babel-runtime, regenerator-runtime should be a dependency now ( #3516 )
2016-05-29 19:14:42 -04:00
Henry Zhu
77ac82b9f5
v6.9.1
2016-05-29 15:50:04 -04:00
Ben Newman
b3acf9100e
Make babel-runtime use regenerator-runtime from npm. ( #3494 )
...
The source repository for regenerator-runtime can now be found at
https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime
This also removes the babel-regenerator-runtime package, now that the only
difference between it and regenerator-runtime has been resolved:
bc8d2d672c
2016-05-28 19:04:48 -04:00
Andrew Johnston
f408f28a02
Fix: assign _this to this when there is no Superclass - Fixes T7364
...
Closes gh-3508
2016-05-28 09:51:28 -04:00
Lukas Eipert
8532bb8334
update license field with a valid SPDX expression ( #3507 )
2016-05-28 09:39:06 -04:00
Leonid Nikiforenko
822e8804d5
Make JSXText Immutable ( #3510 )
2016-05-25 23:30:29 -04:00
Lukas Eipert
13c961d29d
Adds repository field to babel-regenerator-runtime ( #3506 )
...
Similiar to #3370 .
One of our licensing checking scripts throws warnings, as we expect npm dependencies to contain the repository field.
2016-05-20 11:41:48 -04:00
Jesse McCarthy
ff044bbb0f
Use more ideal mocha hooks ( #3446 )
...
* setup() instead of manual before().
* suiteTeardown() instead of afterEach().
2016-05-19 08:26:59 -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
Denis Pushkarev
16ad574e48
Update core-js to 2.4 ( #3480 )
2016-05-16 16:46:22 -04:00
Guy Bedford
40c4e7c2ea
Modules systemjs system global name, use strict wrapping ( #3482 )
...
* modules systemjs system global name, use strict wrapping
* document systemGlobal option in readme
2016-05-16 16:46:06 -04:00
Alexander Kotliarskyi
8fa1174b32
Skip adding __source if it already exists ( #3504 )
2016-05-16 16:45:33 -04:00
dlwalsh
cdb465a834
remove repeating dependency from babel-traverse ( #3501 )
2016-05-16 09:54:37 -04:00
dlwalsh
9f8cd91605
Replace trim-right with _.trimEnd ( #3502 )
2016-05-16 09:53:48 -04:00
dlwalsh
829d4497c9
remove micro modules in favour of lodash functions ( #3500 )
2016-05-15 22:00:50 -04:00
Jhen-Jie Hong
2d7fb9af41
Class properties: Add path.ensureBlock for ArrowFunctionExpression ( #3486 )
...
* Class properties: Add path.ensureBlock for ArrowFunctionExpression
* Class properties: Add test case for non-block arrow function
2016-05-13 17:45:15 -04:00
Amjad Masad
109d99bb5e
don't double count binding references ( #3465 )
...
When, for example, a function is moved between from one place to another we recrawl and end up double counting any references it holds to the upper scope. This protects against that. (The same thing is done for constant violations in the `reassign` method)
2016-05-13 17:20:32 -04:00
Jay Phelps
330071e59d
also visit ClassProperty's for rest param deopt check, fixes #T7311 ( #3481 )
2016-05-13 17:18:14 -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
cafd15cdcf
Merge pull request #3438 from hzoo/self-host-on-babel6
...
Self host on babel6
2016-05-01 20:03:04 -04: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
Henry Zhu
ecd294b55e
fix babel-traverse issues
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
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
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
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
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
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
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
Logan Smyth
0130c6c186
v6.7.6
2016-04-08 09:27:12 -07:00
Logan Smyth
c3ccddaaaf
Revert "Merge pull request #3433 from loganfsmyth/bail-out-rename"
...
This reverts commit 2d0a007d14e519fe60a849dd17068a0f3df79a28, reversing
changes made to e4d6d420415a0c290a321fb6c18ba5f19675b5c1.
2016-04-08 09:09:48 -07:00
Henry Zhu
c24b0b043a
Add test for T7272
2016-04-08 09:02:02 -04:00
Logan Smyth
89ecbda25c
v6.7.5
2016-04-07 20:24:49 -07:00