Diogo Franco
0538c3cd8c
Add another test for runtime order of template literals ( #6092 )
...
More proof that it really is unsafe to merge the .concat calls if the
value is an expression that has any chance of executing impure code 😢
2017-08-12 14:11:27 +09:00
Diogo Franco (Kovensky)
cd66657f34
Update outdated test fixture
2017-08-12 14:10:19 +09:00
Andy
9243c78ea2
babel-plugin-transform-class-properties: Ignore type annotations when looking for name collisions ( #6082 )
2017-08-11 10:27:48 -05:00
Sangboak Lee
218f191a59
remove left transform-class-properties from stage ( #6088 )
2017-08-10 22:30:45 -04:00
Noah Lemen
4fdd75695b
Update Class Fields to Stage 3 and change default behavior ( #6076 )
...
* add transform-class-properties to stage 3, set spec mode to default
* update readme with examples; use `buildUndefinedNode()`; change behavior to always define both static and nonstatic class properties regardless of spec/loose mode; update tests
2017-08-10 11:19:49 -04:00
Rick Waldron
9c91e35ce4
Add numeric separator to stage 2 preset ( #6071 )
2017-08-10 11:05:35 -04:00
Brian Ng
370559c62f
Replace decache with direct removal in babel-register tests ( #6085 )
2017-08-10 10:52:27 -04:00
Andy
a74b307752
babel-types: Add missing field, fix incorrect definitions ( #6083 )
...
* babel-types: Add missing field, fix incorrect definitions
* Regenerate babel-types readme
2017-08-09 16:56:19 -04:00
Mateusz Burzyński
b41fe4efb1
[docs] Added clarification note about transform-react-inline-elements usage … ( #6078 )
...
* Added clarification note about transform-react-inline-elements usage with transform-runtime [skip ci]
* small tweaks [skip ci]
2017-08-09 08:45:02 -05:00
Andy
68d2f8d161
Add "classProperties" plugin to babel-generator typescript tests ( #6074 )
2017-08-08 17:38:39 -04:00
Andy
1c1ce5a9e4
Move parser plugin from babel-preset-typescript to babel-plugin-syntax-typescript ( #6070 )
2017-08-08 16:01:14 -05:00
Boopathi Rajaa
ab76cb6b53
Fix scope of catch block ( #5980 )
...
* Fix scope of catch block
* Throw error on Duplicate variable declaration
* Update test
2017-08-08 16:26:29 -04:00
Henry Zhu
79f4956948
v7.0.0-alpha.19
2017-08-07 18:21:08 -04:00
Henry Zhu
7f92e1d9dd
Update gulp, fix build ( #6061 )
...
* gulp-babel 7.0
2017-08-07 17:09:22 -04:00
Andy
e37a5eb5eb
Add babel-plugin-syntax-typescript, babel-plugin-transform-typescript, and babel-preset-typescript ( #5899 )
...
* Add babel-plugin-syntax-typescript and babel-plugin-transform-typescript
* Add babel-preset-typescript
* Remove unnecessary handler for JSXOpeningElement
* Use `t.isFoo(node)` instead of `node.type === "Foo"`
* Clean up parameter property assignment generation
* Don't use function for `isSuperCall`
* slice -> shift
* Calculate sourceFileHasJsx only if necessary
* Remove `export =` support
* remove some syntax readme newlines [skip ci]
2017-08-07 11:45:52 -04:00
Henry Zhu
66ec5263a4
Use Yarn Workspaces ( #6056 )
...
* update lerna and lerna-changelog
* Lerna: enable yarn, yarn workspaces [skip ci]
* use older version of Babel since it matches on semver (cannot be the same version)
* install yarn version
* revert node engine change
* update flow
* circle ci on 8
* update lock
2017-08-05 14:48:15 -04:00
Teddy Katz
13d931c417
Don't insert the same node into the AST multiple times (fixes babel/babili#556) ( #6054 )
2017-08-04 19:00:29 -04:00
Henry Zhu
47a9ba3440
Merge pull request #6051 from babel/5709-2
...
Rewrite parameter transform and drop _blockHoist reliance
2017-08-04 18:55:23 -04:00
Henry Zhu
a1debae8f0
babylon beta.19 ( #6053 )
2017-08-04 14:46:12 -04:00
Henry Zhu
0e58007264
add test for spread with hole
2017-08-04 12:06:26 -04:00
Henry Zhu
577173cc02
fix export when array destructuring exported value with hole
2017-08-04 11:53:49 -04:00
Brian Ng
2a83867436
Fixes from review
2017-08-04 10:16:45 -05:00
Brian Ng
9dd65c809f
fixes
2017-08-03 22:27:30 -05:00
Brian Ng
af5f34ace5
Throw if annotation found without directive
2017-08-03 21:54:36 -05:00
Brian Ng
57da9bdbed
Add requireDirective to strip-flow-types for use in React preset
2017-08-03 21:13:45 -05:00
Logan Smyth
d86ae2fb84
Remove _blockHoist usage from param processing.
2017-08-03 20:56:50 -05:00
Logan Smyth
18084db7cf
Fix an ordering bug in object-rest-spread.
2017-08-03 20:56:24 -05:00
Logan Smyth
8e19a5b057
Update param scope values when expanding parameters.
2017-08-03 20:56:24 -05:00
Logan Smyth
95882d4e5a
Rewrite param processing to be more clearly defined.
2017-08-03 20:56:08 -05:00
Henry Zhu
79c6814d65
v7.0.0-alpha.18
2017-08-03 18:20:36 -04:00
Henry Zhu
d479673074
prepublish [skip ci]
2017-08-03 18:18:36 -04:00
Henry Zhu
6630ae9794
Merge pull request #6046 from jridgewell/pr/6038
...
Fix invalid block-scoped loop
2017-08-03 08:51:25 -04:00
Justin Ridgewell
6bb1486405
Fix
2017-08-02 19:47:14 -04:00
Sarup Banskota
75808a2d14
Prevent getFunctionParent from returning Program ( #5923 )
2017-08-02 16:30:33 -05:00
jbrown215
4e9a25e34a
Flow opaque type aliases ( #5990 )
2017-08-02 16:30:19 -05:00
Henry Zhu
0f823beeb1
Newlines in fixtures ( #6044 )
...
* write newlines for fixtures
* rerun fixtures
2017-08-02 15:35:29 -04:00
Henry Zhu
9d7c82d869
Adding failing test for 6025
2017-08-01 16:16:47 -04:00
Brian Ng
21eeed8a8c
Fix generate interfaces script ( #6031 )
...
* Fix typo in TSPropertySignature type definition
* Sort fields in generate-interfaces script
2017-08-01 14:38:46 -04:00
Brian Ng
889f4e7791
Fix refs in transform-optional-chaining docs [skip ci] ( #6035 )
2017-08-01 14:30:16 -04:00
Brian Ng
c5e81516dd
Add optional catch binding to stage 3 preset ( #6032 )
2017-07-31 16:00:43 -04:00
Brian Ng
6d965c0926
Make babel-node a standalone package ( #6023 )
...
* Make babel-node a standalone package
* New package `babel-node` previously `babel-cli/bin/babel-node`
* updates
2017-07-29 22:26:28 -04:00
Andy
e32042f353
babel-generator: Comment TypeScript-specific code ( #6026 )
2017-07-28 18:03:38 -04:00
Andy
c1d07fd6db
babel-generator: Add TypeScript support ( #5896 )
...
* babel-generator: Add TypeScript support
* Remove type declarations; not published from babylon
* Remove TODOs
* Consistently use `this.word` for tokens that are words
2017-07-28 16:07:05 -04:00
chocolateboy
605adc922d
allow PluginPass.file.addImport to create empty import statements ( #6022 )
...
* allow PluginPass.file.addImport to create empty import statements; fixes #6021
omitting addImport's second argument creates an import statement with an
empty `specifiers` array i.e. an empty import statement:
plugin:
Program (path, { file }) {
file.addImport('foo-bar/register')
}
output:
import "foo-bar/register";
2017-07-28 12:37:00 -04:00
Henry Zhu
593cbc1d53
Function sent ( #6020 )
...
* change back to function-sent
* update stage 2
2017-07-26 18:01:40 -04:00
Andy
1563221171
babel-types: Have NewExpression inherit from CallExpression ( #6019 )
2017-07-26 17:53:23 -04:00
Andy
b242e0d946
babel-generator: Make plugins list explicit for test cases ( #6018 )
2017-07-26 15:46:47 -04:00
Henry Zhu
9322fd0458
v7.0.0-alpha.17
2017-07-26 08:38:44 -04:00
Henry Zhu
f01438e9b1
update devdeps to latest, update babylon ( #6012 )
...
* temporary flow strip measure
2017-07-26 07:57:49 -04:00
Henry Zhu
ce5d1d0f59
why
2017-07-25 17:47:59 -04:00