Huáng Jùnliàng
fc5365fe4a
Fix parameter expression get binding ( #10912 )
...
* fix: parameter expression closure should not have access to the declaration inside function body
* fix: renameVisitor should skip when a pattern is a scope
* address review comments
2019-12-24 15:18:46 -05:00
Kai Cataldo
ee5b79d75d
@babel-core: parse should parse only ( #10914 )
...
* @babel/core: parse methods should parse only
* Update Flow types
2019-12-24 18:28:57 +01:00
Huáng Jùnliàng
875e9619b7
chore: refine e2e test scripts ( #10918 )
2019-12-24 12:25:23 -05:00
Huáng Jùnliàng
a18166d2a9
refactor: remove inClassProperty parser state ( #10906 )
2019-12-24 11:43:39 +01:00
Kai Cataldo
c09664f35d
@babel/eslint-parser: Refactor ( #10916 )
2019-12-23 23:12:07 +01:00
Huáng Jùnliàng
83993b08d5
chore: separate build-standalone with coverage ( #10905 )
...
* chore: separate build-standalone with coverage
* style polish
2019-12-23 19:03:45 +01:00
Barthélémy Ledoux
f651f22f96
fix: lost leading comment after named import ( #10901 )
...
* create test for 10892
* update expected output
* fixed #10892
* add colon to restart build
* remove colon as it makes tests fail
2019-12-22 10:22:28 +01:00
Tsubasa Nakayama
416ce35638
fix: Object.getOwnPropertySymbols called on non-object ( #10902 )
...
* fix: Object.getOwnPropertySymbols called on non-object
* convert Object
2019-12-22 00:16:51 +01:00
Huáng Jùnliàng
c5cfc83182
Move coverage to GitHub actions ( #10898 )
...
* chore: remove Circle CI test config
* chore: add GitHub Actions: Report Coverage
* chore: polish the step names
* chore: remove Circle CI test job definition
* chore: remove cache actions as it seems that they are hanging forever
2019-12-20 21:32:22 +01:00
Nicolò Ribaudo
d389b702e6
Remove reverted PR from changelog [skip ci]
2019-12-19 02:02:16 +01:00
Babel Bot
aaa1b1f4b0
Add v7.7.7 to CHANGELOG.md [skip ci]
2019-12-19 00:53:52 +00:00
Nicolò Ribaudo
12da0941c8
v7.7.7
2019-12-19 01:33:19 +01:00
Huáng Jùnliàng
9be27bcfea
fix: add computed property support for object Ref ( #10863 )
...
* fix: add computed property support for object Ref
* Apply suggestions from code review
Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
* Update output.js
2019-12-19 01:29:46 +01:00
Nicolò Ribaudo
c0d0bf2e5e
Update core-js fixtures
2019-12-19 01:28:41 +01:00
Huáng Jùnliàng
e85c9b9ec8
fix: skip merging large input sourcemaps ( #10890 )
2019-12-19 01:16:20 +01:00
Nicolò Ribaudo
80e95d0c83
Fix flow
2019-12-18 14:34:06 +01:00
Raja Sekar
dbf3f91f1e
Revert "Prevent ignored files in out dir ( #10831 )" ( #10886 )
...
This reverts commit 2b3590929b4eb955b0e8b287f9749b5af66cc1a0.
2019-12-18 11:17:35 +01:00
Huáng Jùnliàng
aa814073b7
Ignore some files in npm package ( #10882 )
2019-12-17 23:53:53 -06:00
Huáng Jùnliàng
8afeef2d96
chore: cache chocolatey install temp ( #10874 )
2019-12-17 23:32:05 -06:00
Nicolò Ribaudo
3d7bc435d5
Allow -r from node_modules with @babel/node ( #10871 )
2019-12-17 23:31:26 -06:00
Raja Sekar
2b3590929b
Prevent ignored files in out dir ( #10831 )
...
Co-Authored-By: Brian Ng <bng412@gmail.com>
2019-12-17 21:39:36 -06:00
Huáng Jùnliàng
b3c7df9314
fix: avoid string copy when processing input source-map ( #10885 )
...
Co-Authored-By: Justin Ridgewell <justin@ridgewell.name>
2019-12-17 21:12:55 -06:00
Huáng Jùnliàng
ff8a295ea7
chore: download compat-table when build-data is run ( #10873 )
2019-12-17 21:12:10 -06:00
Huáng Jùnliàng
c35ba3d3ab
chore: add PR Intent checkbox [ci-skip] ( #10880 )
...
* chore: add PR Intent checkbox
* chore: rephrase [ci-skip]
2019-12-17 14:36:09 -05:00
Nicolò Ribaudo
4f77a5aaad
e2e test: create-react-app ( #10704 )
...
* e2e test: create-react-app
* Fix
* Fix
* Fix
* Fix
2019-12-16 22:13:23 +01:00
Huáng Jùnliàng
0e9c49606a
chore: update babel-eslint to 11.0.0-beta.2 ( #10870 )
2019-12-16 22:10:29 +01:00
Aziz Khambati
a0d76a8c0e
Fix pragmaFrag spelling in error message ( #10868 )
2019-12-16 09:55:08 -05:00
Huáng Jùnliàng
bffa415b83
Check shadow variable to identifier in default parameters ( #10053 )
...
When there is a variable declaration inside the function body, which shares its name to a referenced identifier in default parameter expression, the function body should be wrapped into iife, otherwise the binding in default parameter scope will be shadowed by function body.
2019-12-13 14:39:37 +01:00
Nicolò Ribaudo
0b3f883ed1
Properly serialize non-json values in parser tests ( #10858 )
2019-12-12 10:22:17 +01:00
Kai Cataldo
25f7e6808e
@babel/eslint-parser: refactor configuration logic ( #10860 )
2019-12-11 18:06:37 -05:00
Kai Cataldo
7b54a94389
@babel/eslint-parser: fix ImportExpression node to match ESTree spec ( #10828 )
...
* @babel/eslint-parser: fix ImportExpression node to match ESTree spec
* Update caller name for @babel/core.parseSync
* Move logic into estree plugin
* Add estree plugin tests
* Fix Flow error
* Fix flow
* Remove extra properties on ImportExpression node
* Incorporate review feedback
2019-12-11 11:13:57 +01:00
Nicolò Ribaudo
5156d3ea06
Restore @babel/parser tests ( #10854 )
...
* Make parser tests work again
* Update failing fixtures
* Fix serialization of BigInt
* Fix
2019-12-11 11:09:13 +01:00
Bowei Han
20e43ad103
validate parentheses in the left-hand side of assignment expressions ( #10576 )
...
* invalid left-hand assignments based on parenthesis
* validate against nested ParenthesizedExpressions
2019-12-09 20:29:02 -05:00
Huáng Jùnliàng
de1fa902f0
Tune eslint packages test configuration ( #10848 )
...
* Do not load root babel.config.js in esilnt tests
* add testcase: sourceType: script + globalReturn: true
* chore: remove globalReturn on default test config
2019-12-10 01:14:29 +01:00
Huáng Jùnliàng
f02e5e6d0a
Add missing dev dependencies ( #10847 )
...
* chore: declare eslint-import-resolver-node dependency
# Conflicts:
# yarn.lock
* chore: add devDependencies
* Add browserify devDep to babel-register
# Conflicts:
# packages/babel-register/package.json
# yarn.lock
* chore: resolve eslint-scope to 5.0.0
2019-12-09 23:56:22 +01:00
Nicolò Ribaudo
2884bac44b
Use async-to-generator even when regenerator is enabled ( #10839 )
...
While it isn't technically needed because regenerator already handles
async functions, it doesn't play well with the Promise detection logic
used by @babel/preset-env's useBuiltIns and @babel/transform-runtime.
The plugin exclusion logic isn't removed, because
1) it will be useful when merging @babel/preset-modules
into @babel/preset-env
2) if/when regenerator will support injecting a custom promise,
we can enable this optimization again
2019-12-09 16:54:25 -05:00
Huáng Jùnliàng
b7989419c7
Update corejs fixtures ( #10846 )
...
* chore: add update-env-corejs-fixture recipe
* chore: update corejs fixtures
2019-12-09 19:50:34 +01:00
Huáng Jùnliàng
0164662944
refactor: rewrite available-plugins to esm ( #10837 )
2019-12-08 14:53:28 +01:00
Kai Cataldo
fb100eee41
@babel/eslint-parser: fix BigIntLiteral node to match ESTree spec ( #10827 )
...
* @babel/eslint-parser: fix BigIntLiteral node to match ESTree spec
* Move token conversion to @babel/eslint-parser
* Add estree plugin tests
* Update test helpers to handle BigInt serializing
* Update Literal union type to include BigIntLiteral
* Add FlowIgnore comment for BigInt
2019-12-08 02:59:18 +01:00
Babel Bot
b2429fe203
Add v7.7.6 to CHANGELOG.md [skip ci]
2019-12-07 23:29:56 +00:00
Nicolò Ribaudo
f753c48f74
v7.7.6
2019-12-08 00:25:57 +01:00
Huáng Jùnliàng
4436ffd604
Revert "Add ".js" extension to injected polyfill imports ( #10549 )" ( #10835 )
...
This reverts commit d3a37b5d08074c007268eb15a11ae432165bad5d.
2019-12-07 23:05:35 +01:00
Huáng Jùnliàng
655a972737
chore: add PR Revert labels to changelog ( #10836 )
2019-12-07 21:21:52 +01:00
Babel Bot
8a8474c321
Add v7.7.5 to CHANGELOG.md [skip ci]
2019-12-06 13:15:23 +00:00
Nicolò Ribaudo
d04508e510
v7.7.5
2019-12-06 14:12:41 +01:00
shimataro
d3a37b5d08
Add ".js" extension to injected polyfill imports ( #10549 )
...
* Node modules compatibility: add ".js" extension to imported polyfills
* Update fixtures
* add extensions on calling `addDefaultImport()`, not in the function.
2019-12-06 13:30:23 +01:00
Huáng Jùnliàng
c9a68984d6
babel --watch should have equivalent file selection logic with babel (#10283 )
...
* fix(watcher): skip non-compilable file only when it is not included in filenames argument
* perf: disable globbing for watch
2019-12-05 08:28:52 +01:00
Huáng Jùnliàng
c6e966cac9
[parser] Use scope flags to check arguments ( #10801 )
...
* chore: add test case
Co-authored-by: Jens Maier<jens@elberet.de>
* use scope flags to check arguments
2019-12-05 08:23:53 +01:00
Huáng Jùnliàng
a0bed42aec
Bundle standalone using rollup ( #10779 )
...
* chore: bundle babel-standalone via rollup
Co-authored-by: Daniel Tschinder <daniel.tschinder@researchgate.net>
* chore: build babel-preset-env-standalone via Rollup
# Conflicts:
# yarn.lock
* chore: add babelEnvName
* chore: farewell webpack
* chore: add terser minification
* chore: dedupe some popular dependencies
* chore: remove unused devDependencies
* chore: move plugin-babel-source to scripts/
* make prettier happy
* fix: rewrite available-plugins into esm
* chore: add extra unambiguous sources when env is rollup/standalone
2019-12-04 23:09:52 -05:00
Huáng Jùnliàng
2b472912e4
Tune makefile scripts ( #10781 )
...
* chore: replace node by `yarn node`
* chore: fix tsc command
* chore: use `yarn` to wrap node
* chore: supress yarn run output
* chore: disable silent mode for builtin yarn command
2019-12-04 22:28:25 -05:00