Sven Sauleau
dcdf7c8fdd
[skip ci] docs: update readmes ( #10103 )
...
Using our READMEs auto generation, two packages were updated.
2019-06-17 10:57:28 +02:00
Tan Li Hau
fdbbb743b6
flow - allow type parameter defaults in function declarations ( #10084 )
...
* flow - allow type parameter defaults in function declarations
* fix flow test
* add intern_comments option
* fix flow parser test
* remove allowdefault from flowParseTypeParameterDeclaration
* rename test cases
2019-06-15 12:31:12 +02:00
Letladi Sebesho
6852bf6415
Change duplicate tests for @babel/highlight getChalk method ( #10093 )
...
* removed duplicate tests for @babel/highlight getChalk method
* changed second 'getChalk' test case for when colors are not supported
2019-06-15 09:04:35 +02:00
Jamie Kyle
f92c2ae830
Change root package.json#name ( #10021 )
...
* Change root package.json#name
I'm pretty sure GitHub's new Dependants feature is based on this package.json. I'm updating it here so it will reflect the new name for the core package.
* Update package.json
2019-06-04 23:57:38 +02:00
Maël Nison
d7801c644c
Prevents exception on PnP ( #9951 )
2019-06-02 00:55:44 +02:00
Mateusz Burzyński
84961ebb05
Refactor isImportTypeOnly helper function ( #10047 )
2019-05-31 23:54:44 +02:00
Blaine Bublitz
3144ed131a
Use FUNDING.yml in babel/.github repo [ci skip] ( #10032 )
2019-05-30 09:52:43 +02:00
Martin Zlámal
ce4c374924
Fix printer for explicitly inexact Flow types ( #10041 )
...
Closes: https://github.com/babel/babel/issues/10040
2019-05-29 21:17:12 +02:00
Wesley Wolfe
8d492b159b
Use scope for typescript export removals. Fixes #10033 ( #10034 )
...
This also fixes enum not adding the respective declaration to the scope
during the typescript visitation.
Rewrites:
2080042808 #9944
a6392bd636 #10019
2019-05-29 08:36:04 +02:00
Tan Li Hau
b4c9cb0222
Fixed computed keys for class expression ( #10029 )
...
* test case for insertBefore for jsx
* fix unshiftContainer and insertBefore
* use path.scope.push
* add test making sure computedKeys var declaration at the right block
* add comment
* nit [skip ci]
2019-05-28 23:07:55 +02:00
Kagami Sascha Rosylight
a596da2822
Retry to fix object spread helper compatibility ( #9384 )
...
This reverts commit 43b83f8ed7 .
Fix objectSpread helper breaking old codes
remove tests to regenerate later
renamed output
new name
try using word
add comment as requested
revert inline name changes
add 2 for consistency
Update packages/babel-helpers/src/helpers.js
Co-Authored-By: Daniel Tschinder <daniel@tschinder.de >
2019-05-25 12:57:13 +02:00
Daniel Tschinder
1cfb92d66a
Create SECURITY.md ( #10018 )
2019-05-25 12:46:59 +02:00
Nicolò Ribaudo
888b9f6940
Remove unused code in the TS parser plugin ( #10025 )
2019-05-25 08:46:01 +02:00
Tan Li Hau
b6486a22cb
fix destructuring rest with template literal ( #10013 )
...
* fix destructuring rest with template literal
* update test
2019-05-24 00:03:27 +02:00
Airat Aminev
a6392bd636
fix(typescript): erase default export if exporting a TS type ( #10019 )
2019-05-23 16:58:24 -05:00
Henry Zhu
9dd8825eff
Create funding.yml [skip ci] ( #10016 )
2019-05-23 21:02:16 +02:00
Nicolò Ribaudo
ecf4667305
Add "PR: Performance" label for the changelog ( #10011 ) [skip ci]
2019-05-21 23:17:18 -04:00
Nicolò Ribaudo
87fb6c4a8b
Use injectInitialization to generate ts parameter properties ( #9610 )
2019-05-21 22:28:55 +02:00
Brian Ng
58cf1a7d48
Bump deps ( #10007 )
2019-05-21 15:10:29 -05:00
Sebastian Silbermann
c96aef17e1
Add #9902 to changelog ( #10010 ) [skip ci]
2019-05-21 21:33:27 +02:00
Babel Bot
fc38638aeb
Add v7.4.5 to CHANGELOG.md [skip ci]
2019-05-21 17:49:18 +00:00
Nicolò Ribaudo
33ab4f1661
v7.4.5
2019-05-21 19:38:26 +02:00
Daniel Tschinder
54d257c105
Fix location for optional params in arrow functions ( #9998 )
...
* Fix location with optional params in arrow functions
* add test
* Ensure rollup replaces NODE_ENV and create sourcemap in dev
* Ensure finishNod*() is never called twice on a node
* Fix check for already finished nodes
2019-05-21 18:53:13 +02:00
Matthew Robertson
9c06e4ed4d
avoid exceptions for control flow ( #9974 )
...
* avoid exceptions for control flow
* review feedback: remove conditional because we know it is "<"
* drop tsTryParseTypeArguments method
2019-05-21 17:23:53 +02:00
Daniel Tschinder
f5b8140580
Do not use lookahead when parsing construct signature declarations ( #9995 )
2019-05-20 23:27:41 -07:00
Daniel Tschinder
0430a48775
Update preset-env dependencies and fix fixtures ( #10002 )
...
* Fix fixtures after core-js update
* Update core-js, caniuse and compat-table
2019-05-20 23:27:19 -07:00
Matthew Schupack
45ca6751fa
use console.warn for warning ( #9992 )
...
* use console.warn for warning
* fix tests
2019-05-18 00:36:18 +02:00
Daniel Tschinder
b1826bf0a0
Only compute Position if not already in state ( #9989 )
...
* Only compute Position if not already in state
* Prioritize start locations
2019-05-17 15:32:34 -07:00
Airat Aminev
2080042808
fix(typescript): erase type exports ( #9944 )
...
* fix(typescript): erase type exports
* use Set instead of array for tracking and checking TS type declarations
* add a test for an interface exported before its declaration
2019-05-17 07:22:52 +02:00
Daniel Tschinder
3f0590de2a
Do not use lookahead when parsing jsx expression containers ( #9988 )
2019-05-16 17:27:07 -07:00
Daniel Tschinder
5661de5908
Do not use lookahead when parsing imports in declare module in flow ( #9987 )
2019-05-16 02:31:37 -07:00
Daniel Tschinder
c2d303f8be
Do not use lookahead when parsing declare module or declare module.exports in flow ( #9985 )
...
* Do not use lookahead when parsing declare module or declare module.exports in flow
* Improve code
2019-05-16 02:31:21 -07:00
Daniel Tschinder
4da7a01aa9
Avoid unnecessary work during lookahead ( #9982 )
...
* Do not call pushComment when doing lookahead
* Do no updateContext when doing lookahead
* Do not clone contexts anymore
2019-05-15 17:02:12 -07:00
Daniel Tschinder
47eb1ddfe0
Do not use lookahead when parsing dynamic import or import.meta ( #9983 )
2019-05-15 16:34:16 -07:00
Nicolò Ribaudo
9febf63882
Fix mobile browsers support in preset-env ( #9978 )
...
* Fix mobile browsers support in preset-env
* Update fixtures
* Alias other mobile browsers, since they aren't included by compat-table
2019-05-15 14:05:37 +02:00
Daniel Tschinder
85432e2c44
Remove guardedHandlers from ASTs ( #9979 )
2019-05-15 03:37:22 -07:00
Nicolò Ribaudo
1969e6b6aa
Update regenerator-transform ( #9941 )
2019-05-07 15:42:12 -04:00
Divyam Bhasin
7942dc0f07
Fixed null error in plugin opts and added a test for it ( #9945 )
...
* Fixed null error in plugin opts and added a test for it
* Remove !opts and add opts === null check to avoid confusion with false and undefined cases
Co-Authored-By: divbhasin <divbest99@gmail.com >
2019-05-07 16:23:01 +02:00
Tan Li Hau
354666aa17
fix: allow shebang directive ( #9922 )
...
* fix: allow shebang directive
* Update packages/babel-parser/src/plugins/flow.js
* chore: prettier
2019-05-07 16:22:25 +02:00
Nicolò Ribaudo
9e9b62f77a
Update regexp-tree ( #9940 )
2019-05-06 20:11:46 +02:00
Nicolò Ribaudo
5da94bff87
[babel-node] Do not hardcode node flags ( #9914 )
2019-05-04 23:40:06 +02:00
Sebastian Silbermann
eae7a33316
Fix destructuring assignments being transpiled for edge 15 ( #9902 )
...
* Current behavior for preset-env destructuring and edge
* fix(preset-env): destructuring transpiled in edge 15
2019-05-03 23:35:28 +02:00
Pablo Navarro
16e17c560b
Add missing space in error messages ( #9909 )
2019-04-29 19:52:13 +02:00
Nicolò Ribaudo
555d50a08c
Generate missing test output
2019-04-26 23:57:06 +02:00
Babel Bot
18ace84b88
Add v7.4.4 to CHANGELOG.md [skip ci]
2019-04-26 21:06:49 +00:00
Nicolò Ribaudo
2c88694388
v7.4.4
v7.4.4
2019-04-26 23:00:07 +02:00
Nicolò Ribaudo
4b8546c07d
Force publish @babel/runtime-corejs3 [skip ci]
2019-04-26 22:58:38 +02:00
Nicolò Ribaudo
c5b5c83398
Disable "Publish to npm" in the Release workflow ( #9911 ) [skip ci]
...
GitHub actions are too slow for this, it takes more than 15 mins.
Publishing to npm from GH actions is a cool idea, but it's a lot faster to
publish locally.
Also, I think that since when I introduced this action I
always killed it; either because it was to slow or because I had to
make some manual tweaks during the release.
2019-04-26 22:44:29 +02:00
Tan Li Hau
277a2620c6
allow directives and other comments before flow pragma ( #9891 )
2019-04-26 22:23:35 +02:00
Tan Li Hau
ca3c53ae0b
fix flow-comments - class type paramters and implements ( #9897 )
2019-04-26 22:23:13 +02:00