6851 Commits

Author SHA1 Message Date
Logan Smyth
6ec9bbead4 Merge pull request #3421 from loganfsmyth/generate-default-exports
Wrap parens around default exports starting with function/class - fixes T7136
2016-04-06 22:02:52 -07:00
Logan Smyth
11e2e1b9b0 Merge pull request #3258 from trodrigues/patch-1
Documentation for babel-plugin-transform-runtime
2016-04-06 20:54:42 -07:00
Logan Smyth
2d0a007d14 Merge pull request #3433 from loganfsmyth/bail-out-rename
Only attempt to rename export declarations, not expressions - fixes T7215
2016-04-06 19:04:21 -07:00
Logan Smyth
e4d6d42041 Merge pull request #3447 from nkzawa/patch-0
Stop traversing when target type is found
2016-04-06 18:31:51 -07:00
Logan Smyth
4b4ffe587a Merge pull request #3448 from addaleax/pass-strings-to-path-xyzname
Make sure input to path.{dir,base}name is a string
2016-04-06 17:21:34 -07:00
Anna Henningsen
bd99179abc
Make sure input to path.{dir,base}name is a string
Since nodejs/node@08085c49b6, which will be part of Node.js v6.0,
functions from the `path` core module (like `dirname`) will require
their input to be a string.

Currently, at some points in the code they might be called
with `undefined`; This patch adds `… || ""` so that the input
is always a string.

For `path.dirname` in the babel-core file, this does not change
behaviour, since
`path.dirname(undefined) === path.dirname("") === "."` (where the
first expression is only defined for Node.js ≤ v5.x).

For `path.basename`, this changes the return value, since
`path.basename(undefined) === "undefined"` (on Node.js ≤ v5.x), but
`path.basename("") === ""`. However, it seems reasonable to assume
that, due to the trailing expression in
`path.basename(…) || "stdout"`, the current behaviour is not actually
the intended one.

There are possibly more places in the code base where similar changes
may be neccessary; However, these suffice to make the tests pass
and un-break the build of at least one external project when using
the current Node.js master branch.
2016-03-28 15:31:38 +02:00
nkzawa
85ecb6c97b stop traversing when target type is found 2016-03-28 03:01:06 +09:00
Henry Zhu
8fb6f878a3 Merge pull request #3441 from lydell/improve-babel-code-frame
Improve babel-code-frame. Kill the line-numbers dependency.
2016-03-25 13:06:00 -04:00
Henry Zhu
fd06f72c95 Merge pull request #3442 from loganfsmyth/remove-stale-check
Remove the NodePath validation check
2016-03-25 13:05:19 -04:00
Henry Zhu
e4be235e67 Merge pull request #3444 from drd/dont-mangle-jsxexpressioncontainer-stringliterals
Preserve whitespace in JSXExpressionContainer StringLiteral children
2016-03-25 13:04:10 -04:00
Eric O'Connell
aef82d190b Preserve whitespace in JSXExpressionContainer StringLiteral children - fixes T7243 2016-03-24 21:17:09 -07:00
Logan Smyth
bad2c768f2 Remove this check which will never pass with the new cache. 2016-03-23 20:57:18 -07:00
Simon Lydell
b733c6766a babel-code-frame: Add missing documentation.
I used the README for babel-generator as inspiration.
2016-03-23 19:06:45 +01:00
Simon Lydell
dceb988bbb babel-code-frame: Fix indentation 2016-03-23 19:00:53 +01:00
Simon Lydell
aaaffd32e7 babel-code-frame: Get rid of the line-numbers dependency. 2016-03-23 18:59:39 +01:00
Simon Lydell
d6b8e4c608 babel-code-frame: Add tests 2016-03-23 18:38:07 +01:00
Simon Lydell
6af4ba1937 babel-code-frame: Update type annotation
The code allows omitting the column number, but the type annotation for that
parameter didn't.
2016-03-23 17:13:07 +01:00
Henry Zhu
4c371132ae Merge pull request #3439 from loganfsmyth/changelog-6.7.4
Update CHANGELOG for 6.7.4
2016-03-22 23:48:42 -04:00
Logan Smyth
66a77fe9c1 Update CHANGELOG for 6.7.4 2016-03-22 20:44:05 -07:00
Logan Smyth
6470426f7a v6.7.4 2016-03-22 20:37:46 -07:00
Amjad Masad
a42d57ea81 Merge pull request #3430 from babel/dont-reuse-react
Don't reuse same node for React.createElement
2016-03-22 17:14:53 -07:00
Sebastian McKenzie
67de615bfc update babel-code-frame version 2016-03-22 22:14:36 +00:00
Sebastian McKenzie
09287643c7 remove line-numbers from babel-code-frame 2016-03-22 22:08:25 +00:00
Henry Zhu
971ab0e88e Merge pull request #3437 from babel/rm-flow-comments
Remove unused flow-comments plugin [skip ci]
2016-03-22 10:37:30 -04:00
Henry Zhu
12c78a890b Remove unused flow-comments plugin [skip ci]
- forgot to do this earlier
2016-03-22 10:37:05 -04:00
Henry Zhu
bbd37783be Merge pull request #3436 from babel/update-kcheck
update kcheck
2016-03-21 20:02:15 -04:00
Henry Zhu
77bc219548 update kcheck 2016-03-21 19:03:02 -04:00
Denis Pushkarev
8308f77cfe Merge pull request #3424 from babel/fix-t7206
Fix for T7206
2016-03-21 01:50:05 +06:00
Logan Smyth
078f6c0ed3 Only attempt to rename export declarations, not expressions - fixes T7215 2016-03-16 23:26:52 -07:00
Henry Zhu
3232c30f61 Merge pull request #3432 from simeonwillbanks/patch-1
Fix Misspelling
2016-03-17 01:24:07 -04:00
Logan Smyth
374b5d273a Merge pull request #3431 from loganfsmyth/build-debounce
Add a debounce delay so switching branches rebuilds.
2016-03-16 22:19:02 -07:00
Simeon Willbanks
93d438cf01 Fix misspelling 2016-03-16 22:17:09 -07:00
Logan Smyth
eb096b8290 Add a debounce delay so switching branches rebuilds. 2016-03-16 22:07:02 -07:00
Henry Zhu
459b1ffa1c Merge pull request #3420 from loganfsmyth/scope-cache-invalidation
Invalidate the scope cache if a node is moved to a different path - fixes T7194
2016-03-16 23:18:48 -04:00
Amjad Masad
7a2bae2de5 Merge pull request #3429 from babel/localize-test
Localize side-effectful test
2016-03-16 20:13:28 -07:00
Amjad Masad
bf600b0526 fix lint issue 2016-03-16 20:06:09 -07:00
Amjad Masad
3f4b88e638 Don't reuse same node for React.createElement
Is causing problems with path cache. See https://github.com/babel/babel/pull/3428
2016-03-16 18:14:16 -07:00
Amjad Masad
f6ff14624f localize side-effectful test 2016-03-16 18:13:40 -07:00
Henry Zhu
514d68770f Merge pull request #3419 from loganfsmyth/helper-requeue-T7199
Ensure that we push and pop evenly so things don't fail to queue - fixes T7199
2016-03-16 16:15:35 -04:00
Denis Pushkarev
ca46147734 dirty fix for T7206 for preventing runtime transform Object.defineProperty in the babel-polyfill entry point 2016-03-15 02:55:46 +06:00
Logan Smyth
661b2d9150 Merge pull request #3400 from callumlocke/patch-1
Add breakConfig option to babel's own babel config
2016-03-13 14:47:02 -07:00
Logan Smyth
256c0100cb Wrap parens around default exports starting with function/class - fixes T7136 2016-03-12 15:31:16 -08:00
Logan Smyth
80aa424b75 Invalidate the scope cache if a node is moved to a different path - fixes T7194 2016-03-12 14:21:21 -08:00
Logan Smyth
b1c50b01f2 Ensure that we push and pop evenly so things don't fail to queue - fixes T7199 2016-03-12 12:30:33 -08:00
Amjad Masad
5373733b8d v6.7.3 2016-03-10 17:35:55 -08:00
Amjad Masad
5a9dd78b11 Merge pull request #3415 from babel/rework-warn
Rework logic that controls flowBinding warning
2016-03-10 17:11:46 -08:00
Amjad Masad
4abc03eef1 Rework logic that controls flowBinding warning
The flag to control whether we should warn didn't take into account
nested calls or scope chains. An easier approach is to have a
counter. That way we know for sure if we're somewhere deep inside a
crawl call or not.
2016-03-10 16:39:12 -08:00
Amjad Masad
3252761cce Update changelog with v6.7.2 2016-03-10 14:51:20 -08:00
Amjad Masad
de92d632f3 v6.7.2 2016-03-10 14:41:27 -08:00
Amjad Masad
9b229f1f08 Merge pull request #3414 from babel/flow-binding
Warn on Flow-based bindings and don't count as a const violation
2016-03-10 13:41:58 -08:00