7595 Commits

Author SHA1 Message Date
sugargreenbean
c57e0e88a5 changed bool to boolean as well as updated tests (#4646) 2016-10-03 19:31:56 -04:00
Gyandeep Singh
cc86799151 Docs: Fix babel-plugin-transform-async-generator-functions heading (#4656) [skip ci] 2016-10-03 18:16:40 -04:00
Brian Ng
9eb99dec9f Tweak license for GitHub display (#4653) 2016-10-03 16:17:16 -04:00
Henry Zhu
7ed15e298a mention issues [skip ci] 2016-10-03 15:03:36 -04:00
Daniel Tschinder
5de1feac1d Fix README 2016-10-03 00:46:49 +02:00
Henry Zhu
e50b3c890f v6.17.0 2016-10-01 15:23:18 -04:00
Henry Zhu
fc3912217f v6.17.0 changelog [skip ci] (#4637) 2016-10-01 15:10:24 -04:00
Henry Zhu
6afbacbdf7 Add emoji to changelog label/headings [skip ci] 2016-10-01 14:24:41 -04:00
Daniel Tschinder
5a8070a397 Forward bound shadowed function when hoisting identifiers (#4635)
This change ensures that when hoisting an identifier we do not hoist it up to
the first no shadowed function, but rather up to the bound shadowed function
2016-10-01 13:24:12 -04:00
Bruno Jouhier
f9ccee9d83 fixed babel/babel#4632 - missing parentheses around yield expression … (#4633)
* fixed babel/babel#4632 - missing parentheses around yield expression in conditional test

* babel/babel#4632 - added test
2016-10-01 12:58:59 -04:00
Daniel Tschinder
16716ea3de Fix rest parameters with flow type casting (#4636)
Do not skip TypeCastExpressions when finding referenced identifiers as the
type cast contains valid non flow code that we need to visit.
2016-10-01 12:58:14 -04:00
Henry Zhu
fe2b9d73ed update .PHONY [skip ci] 2016-10-01 11:15:23 -04:00
Dan Harper
0e02a18216 fix regression in transform-flow-comments for class properties (#4623) 2016-10-01 00:56:09 -04:00
Daniel Tschinder
46339463bd Resolve presets with named exports correctly (#4620) 2016-09-30 18:27:40 -04:00
Henry Zhu
78b2763e78 transform-async-generator: use babel-runtime 6 (#4626) 2016-09-30 18:26:46 -04:00
Juriy Zaytsev
1d728750c9 Add retainFunctionParens option (#4621)
* Add retainParens option

* Add doc, remove option

* Add negation test

* Make sure parens are not added

* Change name

* Change dir name
2016-09-30 18:05:33 -04:00
Henry Zhu
6f363b60bb Move async-generators to stage-3 (#4617) 2016-09-30 17:29:18 -04:00
Greenkeeper
949febbcf0 chore(package): update flow-bin to version 0.33.0 (#4614)
https://greenkeeper.io/
2016-09-30 10:21:43 +02:00
Henry Zhu
159779d582 Merge pull request #4611 from babel/async-gen-stg-2
Async gen stg 2
2016-09-29 15:41:47 -04:00
Henry Zhu
efa0affea1 move object-rest-spread to stage-3 2016-09-29 15:26:47 -04:00
Henry Zhu
0ab904e2d9 Add transform-async-generator-functions to stage-2 2016-09-29 15:24:58 -04:00
Henry Zhu
37419b44b9 v6.16.3 2016-09-29 11:46:53 -04:00
Joakim
aa0aada8ad Forcing source-map-support module into node environment, so its not tricked by jsdom (#4607) 2016-09-29 17:01:31 +02:00
Henry Zhu
6abc28e532 update types readme [skip ci] 2016-09-29 08:47:24 -04:00
Henry Zhu
b3e04da882 v6.16.2 2016-09-29 08:46:45 -04:00
Daniel Tschinder
5a1984aa41 make babel-helper-remap-async-to-generator bc with babel 6.15 and lower (#4603) 2016-09-29 08:14:39 -04:00
Dan Harper
682e9658c9 Fix bodyless async functions (#4600)
* fix bodyless async functions (#4599)

* Do the same in the async-generator-functions transform
2016-09-29 12:01:37 +02:00
Henry Zhu
6d82ee297e fix link [skip ci] 2016-09-28 18:29:03 -04:00
Henry Zhu
08c0557b26 v6.16.1 2016-09-28 17:25:12 -04:00
Henry Zhu
64cdbf7ca0 Add back babel-runtime (#4591) 2016-09-28 17:21:36 -04:00
Henry Zhu
6d22f258db v6.16.0 2016-09-28 15:38:45 -04:00
Henry Zhu
4f2637e1ec v6.16.0 changelog [skip ci] (#4545)
* v6.16.0 changelog [skip ci]

* Small fixes

* Typo 🙈
2016-09-28 13:49:02 -04:00
Dan Harper
8709899b42 fix flow-strip-types/flow-comments removing entire ClassProperty (#4587) 2016-09-28 18:25:33 +02:00
Henry Zhu
5ea57d5e9c fix tests and add exec test 2016-09-27 17:37:21 -04:00
zenparsing
26e79c5433 Implement support for async generator functions and for-await statements 2016-09-27 17:37:21 -04:00
Simon Lydell
bf0e256c3a babel-code-frame: Highlight strings with green (not red) (#4579)
- Red makes it look like something is wrong with the string.
- On Ubuntu-based systems, it looks kinda broken.
- The error markers (`>` and `^`) as well as invalid tokens are already
  marked with red. By not having strings red, the most important
  information -- the error location -- is more visible.

This is a continuation of commit fa1de5ce (PR #4572).
2016-09-27 15:35:17 -04:00
Simon Lydell
e40aad53a4 Improve syntax highlighting colors (#4572)
- Highlight the error location markers in bold red.
- Dim the line number gutter with grey.
- Don't highlight brackets. Few editor color schemes do.
- Add JSX tag highlighting.
- Don't highlight punctuators with bold. That looks bad on Ubuntu based
  systems. Instead, highlight them the same way as JSX tags, which
  results in really nice JSX highlighting.
- Highlight capitalized variable names.
- Make invalid tokens stand out with a red background.
2016-09-27 11:10:51 -04:00
Henry Zhu
b2eb5eca6f babel-core: add options for different parser/generator (#3561)
* babel-core: add options for different parser/generator

* test for experiemental plugins, other babylon options

* fix passing options into parser

* Fix when no code is provided

* fixup tests

* fix tests again

* use filename and fallback to cwd
2016-09-27 09:09:31 -04:00
Maxime Thirouin
90f3f9049f babel-register: update source-map-support to latest (#4577)
This allows in some case when you use other modules that use this source-map-support lib to get only a single version at the root of node_modules. For example, this can prevent issues when requiring using webpack Banner plugin (compiled code is not always requiring dependencies as you would expect).
2016-09-27 14:55:35 +02:00
Daniel Tschinder
50d2c5e930 Update CONTRIBUTING.md 2016-09-27 10:46:03 +02:00
Henry Zhu
afbe3997a8 babel-code-frame: add options for linesBefore, linesAfter (#4561)
* babel-code-frame: add options for linesBefore, linesAfter

* add example, use list of keywords

* a [skip ci]

* Update index.js
2016-09-26 16:12:35 -04:00
Moti Zilberman
03d772c2ec Computed class properties (#4500)
* Support computed class property names (#4499)

** Depends on babel/babylon#121 **

* `babel-types`: Add `computed` field to `ClassProperty`

* `babel-plugin-transform-class-properties`: handle computed property names correctly

* `babel-generator`: add tests for class properties (computed/literal, static/instance)

* doc: Update babel-types with ClassProperty.computed

* chore(package): update babylon to v6.11.0

* babel-types: move ClassProperty.computed to be last builder arg
2016-09-26 17:46:00 +02:00
Micha Reiser
a81a0d0f84 Fix fileName options passed to babylon (#4570)
The filename options used by babylon is called `sourceFilename` and not `filename`. Therefore the option should be adjusted to be called `sourceFilename`.
2016-09-26 16:31:05 +02:00
Henry Zhu
fc2b3cb465 Fixes T2299: Prevent REPL from printing implicit 'use strict' (#4562)
* Fixes T2299: Prevent REPL from printing implicit 'use strict'

* Test for T2299

* make fixes
2016-09-25 23:29:37 -04:00
Daniel Tschinder
702259d483 Only exit if the TRAVIS_COMMIT_RANGE is not empty (#4565) 2016-09-25 23:29:13 -04:00
Logan Smyth
819cde936c Merge pull request #4511 from motiz88/fix-4462
Fix UpdateExpression handling in es2015-modules-commonjs, resolve #4462
2016-09-25 14:16:53 -07:00
Justin Ridgewell
c2ed9de7fb Flip default parameter template (#4515)
* Flip default parameter template

YMMV, I saved ~10b on a 2kb library. Not noticeable at the small scale, by why not do it anyway?

I've (unscientifically) found that flipping the default parameter conditional yields better gzip results. I think this is due to the slightly longer string it can now repeatedly match:

```js
// old
var param = arguments.length <= 0 || void 0 === arguments[0] ? null : arguments[0]
--------------------------------------------------------------^

// new
var param = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null
------------------------------------------------------------------------^
```

Though it's entirely likely gzip will also choose up to the index of the arguments if you many default parameters at different indexes.

* Update tests
2016-09-25 14:05:53 -07:00
Logan Smyth
08b45ca853 Merge pull request #4534 from BoomTownROI/master
Fix issue with minified libraries and code coverage
2016-09-25 13:59:43 -07:00
Kay J
4dcc981d6a Removed unnecessary 'return' statements. (#3653)
* Removed unnecessary 'return' statements.

Returning a 'Promise' value in 'promise.then()' makes promise chains.
Used memory and promises are not garbage collected
until finishing 'helpers.asyncToGenerator'.

* Update test
2016-09-25 13:57:59 -07:00
Logan Smyth
66a4aec1f9 Merge pull request #4566 from loganfsmyth/fix-3695
Allow presets to be ES6 default exports.
2016-09-25 12:52:42 -07:00