Nicolò Ribaudo
23fec0c8c9
Update to prettier 2.5.0 ( #14000 )
2021-11-26 10:48:16 +01:00
Bogdan Savluk
0058b7fef4
Migrate Babel from Flow to TypeScript (except Babel parser) ( #11578 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-11-25 23:09:13 +01:00
Mickey Rose
cd77ad1680
minify helpers-generated.ts ( #13837 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-11-18 23:51:28 +01:00
M Behzad
d3fffd95b6
Add file extension when using absoluteRuntime ( #12827 )
...
* fix: add file extention when the absolute path to the runtime files are used (#12824 )
the es module imports need the file extention (e.g. import "@babel/runtime/helpers/jsx.js", Or the filenames being listed in the package.json's subpath exports (e.g. "import "@babel/runtime/helpers/jsx" + pkg: "./helpers/jsx": "./helpers/jsx.js"). when the user passes a path via `absoluteRuntime` then the rendered require staemnts is not the module name + subpath which will be resolved via pkg.json but rather the absolute path to the file. for this case, add the file extention / index.js to prevent bundlers from raising a warning.
* Update deps
* Fix imports resolution
* Update fixtures (Windows)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
2021-11-14 02:03:30 +01:00
Huáng Jùnliàng
f731522125
chore: update compat-data ( #13949 )
...
* chore: update compat-data
* update compat-data sources
* fix: exclude deno from compat-data
* update test fixtures
* update Babel 8 test fixtures
2021-11-10 15:39:34 -05:00
Nicolò Ribaudo
76e4566bfc
Update browserslist ( #13914 )
2021-11-02 07:20:58 +01:00
Huáng Jùnliàng
833b39112d
fix: early return when param binding is not found ( #13910 )
2021-11-01 15:11:30 -04:00
Nicolò Ribaudo
07d1a8008e
Lint our codebase with ESLint 8 ( #13899 )
...
* Use ESLint 8
* Update lockfile
2021-10-30 11:39:43 -04:00
Nicolò Ribaudo
b1dca95801
Add 7.16.0 to CHANGELOG.md
2021-10-30 01:49:31 +02:00
Nicolò Ribaudo
45308f3cba
v7.16.0
2021-10-30 01:26:04 +02:00
Nicolò Ribaudo
0c820a456d
Update core-js and polyfill plugins ( #13897 )
2021-10-30 01:09:58 +02:00
Nicolò Ribaudo
718c6cb7de
Handle .mts and .cts files in @babel/preset-typescript ( #13838 )
2021-10-29 01:13:37 +02:00
Nicolò Ribaudo
381277ae35
Add ESLint 8 support to @babel/eslint-parser ( #13782 )
...
* Add ESLint 8 support to `@babel/eslint-parser`
* Only read eslint version dynamically during dev
* Fix tests
* Update ESLint
* Use ESLint 8 stable
* Review
* Check
* Fix babel config
2021-10-28 16:41:55 -04:00
Nicolò Ribaudo
c7ddb1ae93
Use workspace:^ to specify @babel/ dependencies ( #13772 )
...
* Enforce `workspace:^` to specify `@babel/` dependencies
* `yarn constraints --fix`
* Update lockfile
2021-10-25 07:22:08 +02:00
Huáng Jùnliàng
e45d86c333
[babel 8] Enable preset-env bugfixes by default ( #13866 )
2021-10-24 15:17:19 +02:00
Nicolò Ribaudo
f2b3134791
Update to Yarn 3.1 ( #13856 )
2021-10-24 14:47:03 +02:00
Mickey Rose
76a7e65229
add benchmarks for babel-types builders ( #13874 )
2021-10-23 23:28:47 +02:00
Huáng Jùnliàng
29f697c84e
Implement @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression ( #13842 )
...
* fix: register function expression id after params
* implement bugfix plugin
* add more testcases
* fix: do not skip pattern binding referencing id
* update compat-table
* add bugfix plugin to preset-env
* update Babel 8 test fixtures
* Update packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/README.md
* chore: bundle bugfix plugin
* address review comments
* add runtime version check
* update compat table
* fix syntax error
* update test fixtures
* revert bugfixes targets update
* update Babel 8 test fixtures
2021-10-20 15:53:40 -04:00
Huáng Jùnliàng
21eeb8e7a9
Restore traversal context after enter / traverse ( #13813 )
2021-10-11 19:04:01 +02:00
Nicolò Ribaudo
6880898510
[babel 8] Remove make-dir polyfill for fs.mkdirSync ( #13828 )
...
* [babel 8] Remove `make-dir` polyfill for `fs.makeDitSync`
* `yarn`
* fix
* Inject polyfills in jest tests when needed
2021-10-11 07:01:30 +02:00
renovate[bot]
41325645f8
chore(deps): update dependency through2 to v4 ( #13822 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-07 00:18:04 +02:00
Nicolò Ribaudo
289e4a9bbe
Update yarn.lock
2021-10-06 23:05:51 +02:00
Babel Bot
c4b13725aa
v7.15.8
2021-10-06 20:45:15 +00:00
renovate[bot]
e97a6baecb
chore(deps): update dependency gulp-filter to v7 ( #13818 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-06 17:16:46 +02:00
Nicolò Ribaudo
613ae6fac7
Update polyfill plugins ( #13781 )
...
* Update polyfill plugins
* Babel 8
2021-09-23 09:24:45 +02:00
Babel Bot
8d0294edf8
v7.15.7
2021-09-17 22:54:10 +00:00
Nicolò Ribaudo
a815d7dd10
Update Jest to 27.2.0 ( #13776 )
...
* Update Jest to `27.2.0`
* Update
2021-09-17 19:02:36 +02:00
Nicolò Ribaudo
422b87a76f
Update to @nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents.3 ( #13775 )
2021-09-17 11:29:12 -04:00
Nicolò Ribaudo
2ffb19828f
Update to Yarn 3 ( #13140 )
2021-09-16 22:23:46 +02:00
Nicolò Ribaudo
69ae2388f8
Fix regexpu-core bundling in @babel/standalone ( #13767 )
2021-09-15 23:45:30 +02:00
Huáng Jùnliàng
a27c1b8881
Update Identifier definitions to Unicode 14 ( #13759 )
2021-09-15 07:33:13 -04:00
Nicolò Ribaudo
f57bb79791
Update regexpu-core ( #13764 )
2021-09-15 07:30:21 -04:00
Babel Bot
34a27e46f8
v7.15.6
2021-09-09 19:22:51 +00:00
TagawaHirotaka
8c061f0848
Use @types/node for vm module ( #13738 )
2021-09-08 15:56:25 +02:00
Daniel Kezerashvili
40e43f5a14
fix: Duplicate function call in variable destructuring ( #13711 )
...
* Add test case demonstrating invalid behavior
* Add conditional check for child properties so RHS is not duplicated
* Add recursive check to find any nested non single-property case
* Add case for array destructuring
* Add test case for a nested rest element
* More safely recurse through array destructuring
* Traverse assignment and nested rest operations
* Refactor to be more clear which case statement we are executing against
* Update missed snapshots
* Update packages/babel-plugin-proposal-object-rest-spread/src/index.js
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* Filter null array elements, add early return, remove optional chaining
* Use stronger type assertions
* Update fall through to be false; add early return to RestElement case
* Move hasMoreThanOneBinding to its own file with distinct tests
* Rename testing helper to more appropriately match business logic
* Yarn Dedup & rename hasMoreThanOneBinding to shouldStoreRHSInTemporaryVariable
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-09-07 17:27:52 -04:00
Babel Bot
e82e43ca33
v7.15.5
2021-09-04 08:50:23 +00:00
Babel Bot
5a361fedb4
Update test262 ( #13729 )
2021-09-04 09:40:42 +02:00
Babel Bot
b2376757d7
v7.15.4
2021-09-02 21:28:31 +00:00
Huáng Jùnliàng
1f79784a99
archive stage 4 parser plugins ( #13717 )
...
* archive stage 4 parser plugins
* use npm protocol for archived plugins
* fix: get module.exports from archived plugins
* remove syntax-top-level-await from test options
* use npm syntax-class-static-block
2021-09-01 15:35:24 -04:00
Babel Bot
a5624ea457
v7.15.3
2021-08-11 07:11:36 +00:00
Bogdan Savluk
d48a5cb55c
convert @babel/plugin-transform-block-scoping to typescript ( #13219 )
2021-08-10 20:53:18 +02:00
Nicolò Ribaudo
b15ec33146
Lock core-js-compat version used for dev&tests ( #13660 )
2021-08-10 11:12:26 +02:00
Nicolò Ribaudo
ab79f08b63
Use @babel/eslint-parser/experimental-worker for our own repo ( #13643 )
2021-08-09 21:39:45 +02:00
Nicolò Ribaudo
bdc75dce72
Update @babel/* devDependencies to 7.15.0 ( #13633 )
2021-08-05 10:35:18 +02:00
Nicolò Ribaudo
6912f968a6
v7.15.0
2021-08-04 23:00:40 +02:00
Nicolò Ribaudo
885e1e02f5
Expose @babel/eslint-parser/experimental-worker ( #13398 )
...
* Expose `@babel/eslint-parser/experimental-worker`
* Fix `@babel/runtime` build on Windows
2021-08-03 23:23:32 +02:00
Babel Bot
aa2cac5edc
v7.14.9
2021-08-01 07:42:57 +00:00
Nicolò Ribaudo
93bade2a71
Update core-js@3 packages ( #13621 )
...
* Update `core-js@3` packages
* Update fixtures
* Update Babel 8 fixtures
2021-08-01 09:22:09 +02:00
Huáng Jùnliàng
d3a7cd5e8d
Replace generic __clone call by specific methods ( #13611 )
...
* update benchmark babel parser version
* perf: replace generic __clone by specific methods
baseline 256 length-1 named export: 4_704 ops/sec ±1.59% (0.213ms)
baseline 512 length-1 named export: 2_426 ops/sec ±0.52% (0.412ms)
baseline 1024 length-1 named export: 1_118 ops/sec ±1.23% (0.895ms)
baseline 2048 length-1 named export: 556 ops/sec ±0.77% (1.799ms)
current 256 length-1 named export: 7_073 ops/sec ±33.67% (0.141ms)
current 512 length-1 named export: 4_441 ops/sec ±0.79% (0.225ms)
current 1024 length-1 named export: 2_142 ops/sec ±1.09% (0.467ms)
current 2048 length-1 named export: 943 ops/sec ±2.12% (1.06ms)
* breaking: remove Node#__clone in Babel 8
* test: use t.cloneNode
2021-07-30 22:19:35 +02:00
Nicolò Ribaudo
862d9f8dfd
Update Rollup to ~2.54.0 ( #13614 )
2021-07-29 10:01:06 -04:00