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
Huáng Jùnliàng
e94da0dce5
Incorrect trace position in fixture runner ( #10566 )
...
* test: add test case
* fix: incorrect fixture callsite position
2019-12-05 00:35:37 +01:00
Alex Lewis
bb6cc61979
fix(optional chaining): Optional delete returns true with nullish base ( #10806 )
...
Per issue 10805, the return value when using delete on a nullish base is
currently undefined. The correct return type should be true.
2019-12-04 12:56:25 +01:00
Nicolò Ribaudo
3d0c5d2afc
Do not transpile typeof helper with itself in babel/runtime ( #10788 )
...
* Do not transpile typeof helper with itself in babel/runtime
* Nits
* Remove console.log
2019-12-04 01:09:14 +01:00
YeonJuan
d18afbd7c3
Allow tuple rest trailing comma ( #10800 )
2019-12-03 18:32:36 +01:00
Nicolò Ribaudo
e74efd2c0a
Run parser tests from the official TypeScript parser ( #10444 )
2019-12-03 01:09:54 +01:00
Nicolò Ribaudo
7195f0d8cf
Unify logic for running parser tests from external suites ( #10444 )
2019-12-03 01:09:54 +01:00
Nicolò Ribaudo
5440ae1cae
Correctly disambiguate / after async fuctions ( #10475 )
...
* Correctly disambiguate / after async fuctions
2019-12-02 22:41:39 +01:00
Nicolò Ribaudo
8f89167486
Update core-js-compat ( #10795 )
...
* Update core-js-compat
* Update lockfile
2019-12-02 22:30:21 +01:00
Jaroslav Kubíček
26c0a32c7c
refactor: Improve error message in @babel/core when root config is not found ( #10778 )
2019-12-01 00:07:05 +01:00
Jaroslav Kubicek
a6e8b3843b
chore: update snapshot for corejs3 targets unit test
2019-11-29 14:49:08 -05:00
Huáng Jùnliàng
4e774b7264
fix: rewriteBindingInitVisitor should skip on scopable node ( #10764 )
2019-11-26 08:51:11 +01:00
Kai Cataldo
7f732ad019
Clean up @babel/eslint-plugin ( #10756 )
...
* Clean up @babel/eslint-plugin
* Add directory field to package.json
* Update eslint/babel-eslint-plugin/README.md
Co-Authored-By: Huáng Jùnliàng <jlhwung@gmail.com>
* Incorporate feedback :)
2019-11-25 17:15:34 -05:00
Kai Cataldo
e81bbd69b3
Clean up @babel/eslint-parser ( #10753 )
...
* Ensure compilation works for @babel/eslint-parser
* Update with review suggestions
* Incorporate feedback :)
2019-11-25 22:17:45 +01:00
Kai Cataldo
52f964126d
Update babel-eslint-plugin-dev engines ( #10761 ) [ci-skip]
2019-11-25 16:14:00 -05:00
Nicolò Ribaudo
01c33a5719
Fix dependencies on @babel/* packages ( #10762 )
...
* Remove dep on Babel 7 beta
* Add missing dependencies used in babel.config.js
* Update lockfile
2019-11-25 21:48:12 +01:00
Ives van Hoorne
66a70267b6
Add CodeSandbox CI Config ( #10639 )
...
* Add CodeSandbox CI Config
* Force build
* New build
2019-11-25 13:02:02 -05:00
Kai Cataldo
0b06b23b00
Clean up @babel/eslint-plugin-development ( #10757 )
...
* Clean up @babel/eslint-plugin-development
* Add directory field to package.json
2019-11-25 18:44:46 +01:00
Nicolò Ribaudo
e239eb4c55
Update babel-eslint used in top-level package.json ( #10754 )
2019-11-23 21:59:26 -05:00
Nicolò Ribaudo
d38c4dd57b
babel-eslint-v11.0.0-beta.1
2019-11-23 12:17:11 +01:00
Nicolò Ribaudo
5dbb90ede3
Add v7.7.4 to CHANGELOG.md [skip ci]
2019-11-23 00:38:07 +01:00
Nicolò Ribaudo
75767d87cb
v7.7.4
v7.7.4
2019-11-23 00:05:58 +01:00
Nicolò Ribaudo
1b4cfc21d9
Add support for native esm to @babel/runtime ( #10748 )
...
* Add support for native esm to @babel/runtime
* Test
* Do not remove new package.json files
* Remove git diff
2019-11-22 23:59:30 +01:00
Kai Cataldo
2dfc06e83b
Merge pull request #10744 from kaicataldo/@babel/eslint-config-internal
...
Rename babel-eslint-config-internal -> @babel/eslint-config-internal
2019-11-22 17:11:53 -05:00
Kai Cataldo
2c40b8c706
Fix failing tests
2019-11-22 16:25:38 -05:00
Kai Cataldo
ca88cf1060
Incorporate feedback
2019-11-22 16:05:44 -05:00
Kai Cataldo
74e2c2cd78
Update eslint/babel-eslint-config-internal/package.json
...
Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2019-11-22 16:05:43 -05:00
Kai Cataldo
25169901de
Rename babel-eslint-config-internal -> @babel/eslint-config-internal
2019-11-22 16:05:43 -05:00
Jaideep Bhoosreddy
74fb914fe3
Use the local version of babel in test262 job ( #10749 )
...
* Use the local version of babel
* retrigger
* correctly remove other changes
* d'oh last one
* remove link part
2019-11-22 11:21:19 -05:00
Huáng Jùnliàng
683adcbb70
Reduce standalone build size ( #10668 )
...
* infra: build standalone against src
* infra: add absoluteRuntime
# Conflicts:
# babel.config.js
* chore: remove `process.env` replace
* add $ to signify exact match
credits to Nicolò
2019-11-21 14:31:38 +01:00
Nicolò Ribaudo
cc51f2a1f2
Update lerna ( #10733 )
...
* Update lerna
* yarn-deduplicate
* Update lockfile
2019-11-21 01:05:47 +01:00
Brian Ng
83fc3f2623
Update preset-env mappings ( #10742 )
2019-11-20 18:48:38 -05:00