Justin Ridgewell
e229ebbb8a
Optimize async to generator ( #8267 )
...
* Optimize async to generator
We can reuse the step function, avoiding a closure on every invocation.
* Rename step
2018-07-05 10:51:16 -04:00
dnalborczyk
db1385fb82
upgrades eslint v5 (major), babel-eslint, eslint-plugin-flowtype, eslint-plugin-prettier ( #8259 )
...
* upgrade eslint v5 (major), babel-eslint (minor), eslint-plugin-flowtype (minor), eslint-plugin-prettier (patch)
* fix makefile: remove (default) .js file extension, remove non-existing glob pattern
* fix linting errors
* add '*.js' glob back to include babel.config.js for linting
2018-07-05 09:17:01 -05:00
Logan Smyth
b6eba87daa
Rename some test fixtures so they run properly. ( #8265 )
2018-07-04 18:33:26 -07:00
Logan Smyth
2cf2fd544b
Ensure that we don't get unexpected output files for tests that throw. ( #8208 )
2018-07-04 16:06:58 -07:00
Logan Smyth
9bd4b46fd6
Merge pull request #8198 from loganfsmyth/sourcemap-loading
...
Prefer explicit object maps, and properly load relative maps.
2018-07-04 15:39:42 -07:00
Pierre-Marie Dartus
4d125c391a
Typescript: Avoid stripping class properties when a decorator is set ( #8238 )
...
The `babel-plugin-transform-typescript` removes class properties without value regardless if decorators are assigned to it or not.
2018-07-04 07:44:33 -04:00
Rodolfo Rodriguez
c6a4108e57
Update READMEs for yarn ( #8215 ) [skip ci]
...
Closes https://github.com/babel/babel/pull/8255
2018-07-03 09:03:18 -04:00
John Buffington
236bd9309c
remove emojis from cli output ( #8243 ) ( #8250 )
2018-07-02 09:34:55 +02:00
James DiGioia
eac4c5bc17
Add proposal flag to pipeline plugin ( #8196 )
...
This is going to be required so we can add support for other proposals,
as well as later set the accepted proposal as the default.
Update stage-0 and stage-1 presets with `pipelineProposal` to thread down to
the plugin.
2018-06-28 01:19:40 +02:00
Mateusz Burzyński
e1662759ed
Remove regenerator hacks in checkDuplicatedNodes ( #8220 )
2018-06-24 15:40:47 +02:00
Ben Newman
12c75cc08c
Update regenerator-{runtime,transform} to latest versions. ( #8219 )
...
https://github.com/facebook/regenerator/pull/347
https://github.com/facebook/regenerator/pull/349
https://github.com/facebook/regenerator/pull/350
2018-06-24 10:19:21 +02:00
Sven Sauleau
9283efaeb7
Merge pull request #8197 from loganfsmyth/babel-plugin-allowed
...
Allow @foo/babel-plugin as an unexpanded plugin name, and @foo as a shorthand for it.
2018-06-20 16:36:03 +02:00
Logan Smyth
532c25c8db
Ensure that file-path sourcemaps load relative to the file containing the comment.
2018-06-18 22:06:08 -07:00
Logan Smyth
3c90baaf6c
Prefer object sourcemaps over file-inlined sourcemaps.
2018-06-18 21:49:23 -07:00
Logan Smyth
add5f8d0fe
Allow @foo/babel-plugin as an unexpanded plugin name, and @foo as a shorthand for it.
2018-06-18 21:36:02 -07:00
Soumya Himanish Mohapatra
cb79473499
remove regression to support output of full directory hierarchy with --out-dir ( #8189 )
...
* remove regression to support output of full directory hierarchy with --out-dir
* add mkdirp to package.json
2018-06-18 21:19:46 -07:00
Ger Hobbelt
e86d1e0d6a
babel/parser: test helpers: write expected throw message to options.json ~ complete jest -u functionality ( #8178 ) [skip ci]
...
* babel/parser: test helpers: when test fails with an exception and both reference output file and options.json file do not exist, write a simple options.json with the error message to expect when such a file doesn't exist yet. This completes the `jest -u` capability for new tests which are expected to *fail*.
2018-06-15 10:27:19 -04:00
Sven Sauleau
8f8b4e8e82
Switch new website in READMEs ( #8181 ) [skip ci]
2018-06-15 10:13:20 -04:00
Ger Hobbelt
07c88e6f0b
Use charCodes at more places in the parser ( #8176 )
2018-06-15 13:21:32 +02:00
Ger Hobbelt
ba98cf782a
Removed constant condition in parser ( #8177 )
2018-06-15 13:14:14 +02:00
dnalborczyk
6894465df8
fix flow typeof refinement ( #8161 ) [skip ci]
2018-06-13 14:59:57 -04:00
Ben Newman
60c4f30c71
Update regenerator-transform to latest version (0.13.0). ( #8154 )
...
| Q | A <!--(Can use an emoji 👍 ) -->
| ------------------------ | ---
| Fixed Issues? | None
| Patch: Bug Fix? | No
| Major: Breaking Change? | No
| Minor: New Feature? | No
| Tests Added + Pass? | Existing tests pass
| Documentation PR | No
| Any Dependency Changes? | `regenerator-transform` in `@babel/plugin-transform-regenerator`
| License | MIT
I recently updated `regenerator`, `regenerator-transform`, and `regenerator-preset` to fix a number of vulnerabilities surfaced by `npm audit`. There was no need to update `regenerator-runtime`, as it does not have any dependencies of its own. I'm happy to report the latest versions of these packages have zero vulnerability warnings according to `npm audit`.
While I was at it, I also updated all dependencies of these packages to their Babel 7 equivalents, so there should hopefully be fewer legacy package dependencies installed because of Regenerator.
2018-06-13 09:36:27 -05:00
Henry Zhu
c313b267f7
v7.0.0-beta.51
2018-06-12 17:18:28 -04:00
Henry Zhu
eb54adb755
use a semver range for core peerDep [skip ci]
2018-06-12 17:10:15 -04:00
Henry Zhu
e0ef50c00f
Use older semver range since lerna update does not change peerDeps on publish [skip ci] ( #8152 )
2018-06-12 16:45:10 -04:00
Henry Zhu
3af623678f
v7.0.0-beta.50
2018-06-12 15:46:05 -04:00
Henry Zhu
4b5a55d937
fix merge issue again
2018-06-12 13:59:43 -04:00
Guy Bedford
036c429ce1
system hoisting and export refinements ( #8104 )
2018-06-12 13:45:53 -04:00
Nicolò Ribaudo
3c46e75b8f
Don't split an exported class when renaming an inner binding ( #8051 )
2018-06-12 13:45:21 -04:00
晏兵兵
106907e605
fix: import Parser as type ( #8146 ) [skip ci]
2018-06-12 13:42:10 -04:00
Nicolò Ribaudo
387cda8fbb
isConstantExpression should return true for immuable bindings ( #8122 )
...
* isConstantExpression should return true for immuable bindings
* New test
* Don't return undefined
2018-06-12 13:40:52 -04:00
Henry Zhu
86c10ff4f3
fix merge issue
2018-06-12 13:33:07 -04:00
Miguel Albernaz
6d5392554f
Adds JSXFragment to plugin-transform-typescript check for the presence of jsx ( #7996 )
2018-06-12 13:17:25 -04:00
Alexey Zaslavsky
0b25e3327c
Fix 'Missing class properties transform' error when parsing class properties with Typescript syntax ( #8007 )
2018-06-12 13:13:30 -04:00
Brian Ng
b6455c611b
Allow ts modifier names to be used as function argument names ( #8030 )
2018-06-12 08:38:38 -05:00
Yuri Karadzhov
313960e601
Remove preset-env outdated test ( #8149 )
2018-06-12 08:51:11 -04:00
Yuri Karadzhov
9e4c56f990
Fix Safari TP and regular versions comparison ( #8132 )
2018-06-11 14:36:45 -04:00
Vincent Chan
3432792568
add jsesc options support ( #8143 )
2018-06-11 14:34:41 -04:00
Brian Ng
cc4ee350e4
Ensure regex-dot-all runs before unicode-regex in preset-env ( #8138 )
...
<!--
Before making a PR please make sure to read our contributing guidelines
https://github.com/babel/babel/blob/master/CONTRIBUTING.md
For issue references: Add a comma-separated list of a [closing word](https://help.github.com/articles/closing-issues-via-commit-messages/ ) followed by the ticket number fixed by the PR. It should be underlined in the preview if done correctly.
-->
| Q | A <!--(Can use an emoji 👍 ) -->
| ------------------------ | ---
| Fixed Issues? | --
| Patch: Bug Fix? |
| Major: Breaking Change? |
| Minor: New Feature? |
| Tests Added + Pass? | Yes
| Documentation PR | <!-- If so, add `[skip ci]` to your commit message to skip CI -->
| Any Dependency Changes? |
| License | MIT
Good ol' plugin ordering 🙃
Ref: https://github.com/babel/babel/pull/7065#issuecomment-395959112
2018-06-11 08:09:44 -05:00
BeniCheni
01f6f4c66d
Revert babel-types README to "master"
2018-06-11 01:19:18 -04:00
BeniCheni
000fa83b9e
For selective packages, update READMES w. links for open issues
...
babel-generator; babel-node; babel-standalone; babel-template
2018-06-11 00:16:48 -04:00
Serhii Nanovskyi
3de053cc6c
Validate @babel/preset-env options ( #8031 )
2018-06-09 18:38:14 -05:00
Alex Zherdev
8070a2204d
Link to open issues in READMEs [skip ci]
2018-06-08 20:54:44 -07:00
Nicolò Ribaudo
9f4e2f81d8
[class-properties] Remove unnecessary return and temp variable ( #8123 )
...
* Remove unnecessary temp variable
* Update tests
2018-06-08 07:02:36 +02:00
Mathias Bynens
415d79bdfe
Update plugin-proposal-unicode-property-regex for Unicode v11 ( #8127 )
...
Ref. https://github.com/tc39/ecma262/pulls/1218 .
Ref. https://github.com/tc39/ecma262/issues/1219 .
2018-06-07 21:54:44 +02:00
Mathias Bynens
62eb32677c
ECMAScript follows the latest version of the Unicode Standard. Earlier this week, Unicode v11 was officially released. This patch updates babel-parser to support the new identifier characters. ( #8125 )
...
Ref. https://github.com/tc39/ecma262/issues/1219 .
2018-06-07 21:54:12 +02:00
Guy Bedford
7da7e760a6
support import.meta in system transform
2018-06-07 13:24:19 -05:00
hassanAli321
bd44902024
update fixture
2018-06-07 13:22:45 -05:00
hassanAli321
6480ae4a9f
fix flow-double-nullable-type-cant-be-parsed
2018-06-07 13:22:45 -05:00
Marco Massarotto
80b3362fcc
update micromatch to ^3.1.10 ( #8038 )
2018-06-06 12:44:02 +02:00