Huáng Jùnliàng
e52f1dc4b2
fix init
2022-01-16 14:15:10 +01:00
Huáng Jùnliàng
e67b698cbd
fix: throw when legacy and version are both specified
...
also fix decoratorsBeforeExport error when version: "legacy" is specified
2022-01-16 14:15:10 +01:00
Nicolò Ribaudo
9ecadfd8d2
Fix test
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
9a876a2a64
Simplify _initProto injection for existing super()
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
5ba1365f9a
Fix _initProto injection
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
faf44db9d9
Add test for _initProto with existing constructor
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
f23bcbc28b
Minor code update
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
e1c0086fe0
Install static fields and private methods on the correct class
2022-01-16 14:15:09 +01:00
Nicolò Ribaudo
910e1a782a
Rename tests
2022-01-16 14:15:08 +01:00
Chris Hewell Garrett
46c54fbbf6
Allow version: "legacy", use built-in Identifier generation, simplify private UID code
2022-01-16 14:15:08 +01:00
Chris Hewell Garrett
ab6d74a9cc
Ensure private UID generation takes into account all referenced private names
2022-01-16 14:15:08 +01:00
Chris Hewell Garrett
3f7644823d
Adds the 2021-12 transform for decorators
...
Implements the 2021-12 transform for the decorators proposal, with
support for the `accessor` keyword.
2022-01-16 14:15:08 +01:00
Babel Bot
23e884048a
v7.16.7
2021-12-31 00:13:43 +00:00
Nicolò Ribaudo
d1cabf6bc8
[babel 8] Add "exports" to every package ( #14013 )
2021-12-29 16:29:10 +01:00
Babel Bot
7b7ab94066
v7.16.5
2021-12-13 22:12:58 +00:00
wentout
c59870c526
Mark class prototype as read-only ( #12115 )
...
* initial code 2 fix the issue #2025
* Mark class prototype as read-only
* Update fixtures
* Fix failure
* Update Babel 8 fixtures
* Disable in loose mode
* Update fixtures
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com >
2021-12-10 21:44:48 +01:00
Nicolò Ribaudo
2d989a983d
Run tests in a native Node.js ESM environment ( #13966 )
2021-12-03 15:32:58 +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
Babel Bot
99774ee9fa
v7.16.4
2021-11-16 22:37:47 +00: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
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
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
Babel Bot
c4b13725aa
v7.15.8
2021-10-06 20:45:15 +00:00
Nicolò Ribaudo
613ae6fac7
Update polyfill plugins ( #13781 )
...
* Update polyfill plugins
* Babel 8
2021-09-23 09:24:45 +02:00
Babel Bot
b2376757d7
v7.15.4
2021-09-02 21:28:31 +00:00
Federico Ciardi
10640b2aad
perf: partially replace .concat with .push ( #13609 )
2021-08-14 16:57:06 +02:00
Babel Bot
7a2a928398
v7.14.5
2021-06-09 23:03:30 +00:00
Nicolò Ribaudo
08772e28f2
Update polyfill plugins ( #13373 )
2021-05-31 18:47:13 +02:00
Kristoffer K
140ec5aa5c
chore: setup Yarn constraints ( #13363 )
2021-05-31 18:46:03 +02:00
Nicolò Ribaudo
229a5481f4
Remove warnings about loose mode for class feats in tests ( #13301 )
2021-05-15 00:14:02 +02:00
Babel Bot
7512095c84
v7.14.2
2021-05-12 16:58:57 +00:00
Sosuke Suzuki
b2d9156cc6
Update to Prettier 2.3 ( #13288 )
2021-05-10 15:34:13 +02:00
Babel Bot
e50f6f7eef
v7.13.15
2021-04-08 15:40:57 +00:00
Nicolò Ribaudo
8d4da69e9d
Update polyfill plugins ( #13079 )
...
* Update polyfill plugins
* Update fixtures
* Update Babel 8 fixtures
2021-03-31 13:46:15 -04:00
Huáng Jùnliàng
6ee87eea49
[babel 8] fallback targets to "defaults, not ie 11" ( #12989 )
2021-03-23 20:17:16 +01:00
Nicolò Ribaudo
d04842a700
Avoid using CJS globals in internal source files ( #12963 )
...
* Lint against CJS globals in modules
* Use `import.meta.url` instead of `__filename` in `src` files
* Prepare fixtures runner for `import.meta.url`
* Use `import.meta.url` instead of `__filename` in `test/index` files
* Remove `__dirname` from remaining test files
dirname
* Avoid using `module` in `src` files
* Avoid using `require` in `src` files
* Avoid using `require` in `test` files
* Update `@types/node`
* Compile dynamic import in `@babel/node`
* Fix windows
* Use `@babel/plugin-proposal-dynamic-import` from npm
2021-03-05 19:55:36 +01:00
Nicolò Ribaudo
ea6a438315
Enable external-helpers by default in tests ( #12911 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com >
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com >
2021-02-26 23:33:26 +01:00
Babel Bot
9a4269e7b6
v7.13.5
2021-02-23 13:52:17 +00:00
Nicolò Ribaudo
115841e778
Ensure that @babel/runtime-corejs3 imports are injected ( #12869 )
...
* Add failing test for #12863
* Minimal
* Ensure that `@babel/runtime-corejs2` imports are injected
2021-02-23 12:47:04 +01:00
Nicolò Ribaudo
c827193d9c
v7.13.0
2021-02-22 23:35:18 +01:00
Nicolò Ribaudo
771841f764
Fix _isNativeReflectConstruct helper ( #8461 )
2021-02-22 22:49:44 +01:00
Nicolò Ribaudo
484667b54c
Use babel-plugin-polyfill-* packages in transform-runtime ( #12845 )
2021-02-22 22:30:27 +01:00
Nicolò Ribaudo
143ee801e6
Use the babel-plugin-polyfill-* packages in preset-env ( #12583 )
2021-02-21 17:40:29 +01:00
Nicolò Ribaudo
6ef7b51a11
Implement assumptions defined in the babel/rfcs#5 RFC
...
- `mutableTemplateObject` and `ignoreToPrimitiveHint` (#12408 )
- `setClassMethods` (#12407 )
- `setComputedProperties` (#12490 )
- `ignoreFunctionLength` (#12491 )
- `noDocumentAll` (#12481 )
- `iterableIsArray` and `arrayLikeIsIterable` (#12489 )
- `pureGetters` (#12504 )
- `skipForOfIteratorClosing` (#12496 )
- `objectRestNoSymbols`, `setSpreadProperties` and `pureGetters` (#12505 )
- `noNewArrows` (#12613 , #12793 )
- `setPublicClassFields` and `privateFieldsAsProperties` (#12497 )
- `constantReexports` and `enumerableModuleMeta` (#12618 )
- `constantSuper`, `superIsCallableConstructor` and `noClassCalls` (#12726 )
Co-authored-by: Justin Ridgewell <justin@ridgewell.name >
Co-authored-by: Huáng Jùnliàng <JLHwung@users.noreply.github.com >
2021-02-21 17:09:45 +01:00
Nicolò Ribaudo
d291edbdf1
v7.12.13
2021-02-03 01:59:31 +01:00
Daniel Arthur Gallagher
e8b08523f4
docs: add package-specific documentation links ( #12531 )
...
[skip ci]
2021-01-06 14:11:53 +01:00
Nicolò Ribaudo
d88c60cea9
v7.12.12
2020-12-23 14:55:59 +01:00
Huáng Jùnliàng
814212f0be
Remove babel polyfill from fixture test runner ( #12130 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com >
2020-12-22 02:42:39 +01:00
Álvaro Mondéjar
b649f8d192
Fix packages documentation README links. ( #12289 )
2020-10-30 21:19:21 +01:00