Huáng Jùnliàng
601c824873
Refine babel core types ( #11544 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-06-21 22:04:12 +02:00
Huáng Jùnliàng
2787ee2f96
v7.10.3
2020-06-19 16:42:41 -04:00
Bogdan Savluk
4108524856
Update prettier to v2 ( #11579 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-06-07 22:21:33 +02:00
Nicolò Ribaudo
b0350e5b1e
v7.10.2
2020-05-30 19:16:08 +00:00
Huáng Jùnliàng
6b7a6dccd2
fix: add new plugin names to missing plugin helpers ( #11643 )
2020-05-29 14:04:47 -04:00
Nicolò Ribaudo
88f57a7ea6
v7.10.1
2020-05-27 21:56:37 +00:00
Saulo Santiago
242d9e0b20
Use repository.directory field in package.json files ( #11625 )
...
Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-05-27 16:32:25 +02:00
Nicolò Ribaudo
5da2440adf
v7.10.0
2020-05-26 21:20:43 +00:00
Nicolò Ribaudo
31b361b736
Use ?. where it represents the intended semantics ( #11512 )
2020-05-09 23:31:50 +02:00
Nicolò Ribaudo
90a9103e55
Update Flow to 0.123.0 ( #11500 )
2020-04-30 15:26:03 +02:00
Nicolò Ribaudo
9c2846bcac
v7.9.6
2020-04-29 20:33:47 +02:00
Jacob Dreesen
d05334bde2
Fix typo and remove outdated doc comment ( #11472 )
...
* Fix typo
* Fix outdated doc comment [skip ci]
2020-04-25 10:24:22 +02:00
Huáng Jùnliàng
1c0970131e
polish: recommend preset for js extensions ( #11421 )
2020-04-16 21:13:57 +02:00
Huáng Jùnliàng
88b12e3dd1
fix: add classPrivateProperties and classPrivateMethods to missing plugin helper ( #11397 )
...
* fix: add classPrivateProperties and classPrivateMethods to missing plugin helper
* make flow happy
2020-04-09 19:41:14 -04:00
Nicolò Ribaudo
8d5e422be2
v7.9.0
2020-03-20 16:32:55 +01:00
Huáng Jùnliàng
48d53f8fef
chore: bump json5 and minimist ( #11276 )
...
* chore: bump json5 and minimist
* update mkdirp to version 0.5.3
2020-03-18 10:21:22 +01:00
Huáng Jùnliàng
4bf36e64da
Create File class for babel helpers ( #10575 )
...
* add test
* fix: pass File to helper traverser
* pass babel.File to helpers.ensure
2020-03-17 09:58:46 +01:00
Nicolò Ribaudo
f6c7bf36ce
Allow extending untranspiled classes ( #8656 )
2020-03-16 23:59:15 +01:00
Nicolò Ribaudo
a875560c31
Allow defining the moduleIds-related option in the transform p… ( #11194 )
...
* Update "moduleIds" tests
* Allow defining the moduleIds related options in the transform plugins
- moduleIds
- moduleId
- getModuleId
- moduleRoot
* Sort deps
2020-03-16 23:58:04 +01:00
Rick Button
3ce7c2e394
Added support for record and tuple syntax. ( #10865 )
...
* Added support for record and tuple syntax.
This commit adds support for both the hash #{} and bar {||}
syntaxes to babel-parser, as well as adds the supporting
babel-plugin-syntax-record-and-tuple plugin to enable support
for the syntax. Does not include any transform for records and
tuples.
* typo
* added check to ensure recordAndTuple in babel-parser
* switched to syntaxType option instead of explicit entries for each record and tuple type
* switched to using recordAndTupleSyntaxType for generator options instead of adding to node
* added tests for generator option recordAndTupleSyntaxType
* added test for record and tuple bar syntax with flow typings
* added tests for invalid/missing recordAndTuple syntaxType parser option
* fixed flowcheck errors
* fix merge with class privates in tokenizer
* Update packages/babel-parser/src/types.js
Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
* improved recordAndTuple generator error message, added tests for invalid,missing options
* updated error messages for invalid parser syntaxType option
* updated error message
* added better error messages for when the recordAndTuple syntaxType is doesn't match the syntax used
* updated record and tuple support to use new error message templates
* added recordAndTuple to missing plugin helpers
* Fix linting
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-03-16 23:57:44 +01:00
Justin Ridgewell
661ffbd830
Support more node types in generateUidBasedOnNode ( #11260 )
...
* Support more node types in generateUidBasedOnNode
* More nodes
2020-03-14 16:24:50 +01:00
Nicolò Ribaudo
595f65f33b
v7.8.7
2020-03-05 02:52:13 +01:00
Nicolò Ribaudo
114f6726a7
Pass URLs to import() rather than paths ( #11193 )
...
* Pass URLs to import() rather than paths
* Make tests pass
* (╯°□°)╯︵ ┻━┻
* (╯°□°)╯︵ ┻━┻ (╯°□°)╯︵ ┻━┻ (╯°□°)╯︵ ┻━┻
2020-03-03 19:54:01 +01:00
Nicolò Ribaudo
750d3dde3b
v7.8.6
2020-02-27 13:17:19 +01:00
Nicolò Ribaudo
d21e2217d5
Skip newlines around inline #__PURE__ annotations ( #11133 )
...
* Skip newlines around #__PURE__ annotations
* Update tests
2020-02-13 19:16:33 +01:00
Huáng Jùnliàng
865d5155c2
Add eslint-plugin-jest ( #11119 )
...
* chore: add eslint-plugin-jest
* chore: update test sources
* chore: suppress preset-env debug log when linting
2020-02-11 00:11:32 +09:00
Huáng Jùnliàng
0b3dea8f54
Turn on no-fallthrough rule ( #11093 )
...
* chore: turn on no-fallthrough
* chore: fix no-fallthrough errors
2020-02-07 22:05:19 +01:00
Nicolò Ribaudo
5c2e6bc07f
v7.8.4
2020-01-30 13:18:09 +01:00
Huáng Jùnliàng
fa975bf7cd
polish: throw human-friendly error when item-option pair is in… ( #10969 )
...
* polish: throw human-friendly error when item-option pair is incorrectly unwrapped
* add testcase for plugin
* fix: exclude false positive
* fix: validate should support plugin optionsSourceKind
* Revert "fix: validate should support plugin optionsSourceKind"
* fix: validate plugin object in assertNoUnwrappedItemOptionPairs
* fix flow error
* update test fixtures
* refactor: move to loadDescriptor catch clause
* chore: throw Error instead of builtin ReferenceError
* fix flow errors
* chore: add more test cases
2020-01-20 21:05:07 +01:00
Nicolò Ribaudo
d75652eb5e
Exclude import() tests from pubilsh build ( #10995 )
...
I really don't like this commit, but import() is currently breaking
our publish script.
When "normal" tests we are transpiling import() so that it works
with Jest. We can't do it while publishing because we need to
publish the untranspiled import() so that it can load real .mjs files.
Follow up to #10903
2020-01-15 23:38:18 +01:00
Nicolò Ribaudo
a7620bd266
v7.8.3
2020-01-13 22:36:19 +01:00
Nicolò Ribaudo
8fce431d88
Revert "chore: specify package type ( #10849 )" ( #11003 )
...
This reverts commit e8dac621de9dba27b47646169562c0a0c2e02c96.
Fixes installs when using npm <= 3.9.5 (Node.js <= 6.2.2)
2020-01-13 21:18:42 +01:00
Nicolò Ribaudo
2486615a74
v7.8.0
2020-01-12 01:09:29 +01:00
Yordis Prieto
4c28f54152
Add babelrc.json support ( #10783 )
...
* Add babelrc.json support
* Add tests
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-01-10 23:41:42 +01:00
Nicolò Ribaudo
ae06baf22f
Add support for babel.config.mjs and .babelrc.mjs ( #10903 )
...
* Add support for babel.config.mjs and .babelrc.mjs
* Use path.extname
2020-01-10 23:14:29 +01:00
Nicolò Ribaudo
282f81bd67
Prepare @babel/core for asynchronicity ( #10507 )
...
* Prepare @babel/core for asynchronicity
* Include regenerator-runtime in standalone build
* Fix rollup build
2020-01-10 22:44:13 +01:00
Huáng Jùnliàng
e8dac621de
chore: specify package type ( #10849 )
2020-01-09 21:40:15 -05:00
Oleksandr Fediashov
c3388ea42f
Enable nullish coalescing by default in @babel/parser ( #10819 )
...
* move files, remove hasPlugin() & expectPlugin()
* restore permissions
2020-01-10 02:52:53 +01:00
Abdul Ali
5b907e9bb7
[parser] enable dynamic import by default ( #10843 )
...
* [parser] enable dynamic import by default
* chore: add back babel-core api test
2020-01-10 02:28:52 +01: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
Nicolò Ribaudo
12da0941c8
v7.7.7
2019-12-19 01:33:19 +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
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
Nicolò Ribaudo
d04508e510
v7.7.5
2019-12-06 14:12:41 +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
Nicolò Ribaudo
75767d87cb
v7.7.4
2019-11-23 00:05:58 +01: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
Brian Ng
c37361ba2e
Bump prettier@1.19.1 ( #10728 )
2019-11-16 16:05:40 +01:00
Benjamin Blackwood
b2767c7d8a
Add funding field to package.json ( #10687 ) [ci-skip]
2019-11-11 08:08:18 -05:00