Amjad Masad
d5e78384ef
Only export methods and not the entire cache
2016-03-07 12:50:29 -08:00
Amjad Masad
fc19ac2af5
Remove merge artificats
2016-03-07 12:05:46 -08:00
Amjad Masad
403d6153fd
correct cache path
2016-03-07 12:04:44 -08:00
Amjad Masad
b53755422c
Move things around
2016-03-07 12:04:44 -08:00
Amjad Masad
bf91a68375
Move scope cache to the cache module
2016-03-07 12:04:44 -08:00
Amjad Masad
3c148148bc
Semicolon
2016-03-07 12:04:44 -08:00
Amjad Masad
5367d5d151
Make sure we update the cache in all the right places
2016-03-07 12:04:44 -08:00
Amjad Masad
29ef158204
Semis
2016-03-07 12:03:48 -08:00
Amjad Masad
b9a893aab6
Move NodePath cache out of the AST
...
As mentioned on the task https://phabricator.babeljs.io/T7179 having
this cache on the AST leads to all sorts of portability and reuse
bugs.
This moves the cache into a clearable WeakMap which will fix the
following:
1. Moving the AST between different babel versions or tools will not
lead into sharing potentially outdated cached information
2. `.clear()` can be called on the cache by a plugin to clear
potentially outdated information. This is helpful when implementing two
seperate pipelines that should not share information.
I think the next step (which is harder, I tried) is to isolate cache and
make it live on a transform or pipeline level state (like the `hub`).
The reason it is hard is because the `babel-traverse` main API -- although
requires the state object to be passed -- not many callers do. To fix
this we should release a patch version that warns about this and fix all
the internal callers. Next couple of releases we can start throwing when
no state is passed (or we can create our own state).
2016-03-07 12:03:48 -08:00
Amjad Masad
3667527d04
Revert "Remove flow"
...
This reverts commit 2827ff6b01dcce69e9d3c0402e96b52b3a2a47ee.
2016-03-03 14:49:20 -08:00
Chris Cowan
cbae3c0e1d
Fix T7183.
2016-03-03 12:15:11 -08:00
Chris Cowan
d864cde3c8
Add failing tests for T7183.
2016-03-03 12:12:14 -08:00
Logan Smyth
6ccd74a94e
Merge pull request #3395 from loganfsmyth/object-rest-binding
...
Recognize object rest properties as binding identifiers - fixes T7178
2016-03-03 09:44:51 -08:00
Logan Smyth
305252d335
Recognize object rest properties as binding identifiers - fixes T7178
2016-03-03 08:58:22 -08:00
Amjad Masad
47782a6170
Merge pull request #3389 from babel/block-binding-actual
...
Update scope binding info after transforming block-scoped bindings
2016-03-02 18:51:26 -08:00
Amjad Masad
3744aefb4f
Merge pull request #3391 from benjamn/fix-buildExportAll
...
Make buildExportAll generate pure ES5 code.
2016-03-02 18:50:47 -08:00
Henry Zhu
39a8f5b796
v6.6.4
2016-03-02 16:29:17 -05:00
Henry Zhu
bca622abbc
Merge pull request #3388 from AgentME/dupgetters
...
Partial T7173 Fix: Prevent accessors being seen as duplicates of each other
2016-03-02 16:22:57 -05:00
Sam Goldman
2827ff6b01
Remove flow
2016-03-01 22:33:30 -08:00
Ben Newman
9acd33b93a
Make buildExportAll generate pure ES5 code.
...
The untransformed `let` keyword causes problems for older parsers. I
understand using `let` instead of `var` ensures each getter function has
its own binding for the KEY variable, but the same can be accomplished
(with less code) using a `.forEach` callback function, and this way
there's no need to worry about generating a unique name for the `key`
variable.
2016-03-02 00:08:55 -05:00
Amjad Masad
f4197cc77b
Merge pull request #3350 from skevy/fix-babelrc-plugin-resolution
...
Make Babel actually resolve plugins relative to where they were specified (via .babelrc).
2016-03-01 17:19:40 -08:00
Chris Cowan
63af3d1366
Fix issue where we didn't record seeing a property sometimes.
2016-03-01 17:13:20 -08:00
Amjad Masad
30bb38c4bb
Update scope binding info after transforming block-scoped bindings
...
When convert a const, let or any other block-bound binding to a var we
forget to update the scope info. This confuses other transforms that may
come after this as to which scope does the binding belongs to.
This also uncovered an issue where duplicate block-scoped bindings were allowed
to co-exist.
2016-03-01 17:03:06 -08:00
Chris Cowan
3227279d95
Fix accessors being seen as duplicates of each other
...
If an object has a getter and setter of the same name, then they
shouldn't be treated as duplicate properties.
2016-03-01 16:30:48 -08:00
Henry Zhu
86284963f3
v6.6.3
2016-03-01 11:40:48 -05:00
Logan Smyth
f2fea017c6
Ensure that the found context is active before pushing it.
2016-03-01 08:14:14 -08:00
Henry Zhu
b1477a3e8c
v6.6.2
2016-03-01 09:08:35 -05:00
Henry Zhu
01f5b93978
Merge pull request #3386 from loganfsmyth/revert-requeue-change
...
Revert .requeue changes made in earlier ES3 fixes.
2016-03-01 08:54:19 -05:00
Logan Smyth
4561732bce
Revert .requeue changes made in earlier ES3 fixes.
2016-02-29 23:55:47 -08:00
Henry Zhu
68cdb2133d
v6.6.1
2016-02-29 19:27:09 -05:00
Henry Zhu
188dbcb61c
Update polyfill/runtime README
2016-02-29 19:24:07 -05:00
Henry Zhu
f34e6518ff
v6.6.0
2016-02-29 16:12:12 -05:00
Henry Zhu
7dad6ab4ed
Merge pull request #3377 from babel/babel-5-opts-error
...
Give specific error messages for babel 5 options that were removed in…
2016-02-29 15:17:43 -05:00
Henry Zhu
0916e2d189
Give specific error messages for babel 5 options that were removed in babel 6
2016-02-29 14:34:46 -05:00
Henry Zhu
1271d2cd52
Merge pull request #3380 from babel/unary-arrow
...
Fix: Add parens for unary arrow function
2016-02-29 12:18:12 -05:00
Henry Zhu
66ea5342de
Merge pull request #3379 from babel/memexp-numliteral
...
Fix: invalid codegen for non decimal numeric literals in MemberExpression
2016-02-29 11:40:30 -05:00
Henry Zhu
3e4668dc14
Merge pull request #3366 from clayreimann/umd-plugin-add-global-name-override
...
[UMD] Fixed T6832
2016-02-29 09:45:10 -05:00
Clay Reimann
92946ccac3
[UMD] Fixed T6832
2016-02-29 08:23:35 -06:00
Henry Zhu
ec3c183668
Fix: Add parens for unary arrow function
...
Fixes T7157
2016-02-28 21:56:22 -05:00
Henry Zhu
35ed18f628
Fix invalid codegen for non decimal numeric literals in MemberExpression
...
Fixes T7156
2016-02-28 20:34:45 -05:00
Sam Goldman
5167d001c5
Remove @noflow as well
2016-02-28 13:25:36 -10:00
Sam Goldman
cd1af74ecc
Remove weird codemod artifact
2016-02-28 13:23:28 -10:00
Sam Goldman
4252244d06
Remove Flow annotations and pragmas
2016-02-28 13:18:57 -10:00
Chris Cowan
b2aecd4320
Fix arrow style issue
2016-02-26 08:57:34 -08:00
Chris Cowan
f01eaa8e47
Put transform-es2015-duplicate-keys plugin in es2015 preset.
2016-02-25 21:03:03 -08:00
Chris Cowan
4730526bf2
Add transform-es2015-duplicate-keys plugin.
2016-02-25 21:03:03 -08:00
Henry Zhu
b8cdd6e28c
Merge pull request #3365 from jridgewell/replace-implicit-arrow-with-block
...
Replace arrow expression body with block statement
2016-02-25 22:02:31 -05:00
Henry Zhu
bf05b1b3bc
Merge pull request #3368 from loganfsmyth/es3-transform-fixes
...
Fix the module plugin to properly requeue so the ES3 transforms can work
2016-02-25 21:57:23 -05:00
Honza Široký
33d70df5b9
Adds repository field to babel-plugin-transform-regenerator
2016-02-24 01:07:33 +01:00
Tieme van Veen
84a5d863b0
fix babel-plugin-transform-proto-to-assign readme url
2016-02-23 17:23:05 +01:00