Nicolò Ribaudo
8d5e422be2
v7.9.0
2020-03-20 16:32:55 +01:00
Huáng Jùnliàng
0a02a12235
Move object-rest-spread after transform-parameters ( #11280 )
...
* fix: move proposal-object-rest-spread after transform-parameters
* update test fixtures
* fix: update plugin-features.js
2020-03-19 17:08:54 +01:00
Nicolò Ribaudo
fa7ec81771
Allow for-of on polyfilled or builtin iterables without Symbol support ( #11285 )
2020-03-19 11:02:12 +01:00
Nicolò Ribaudo
6f932978f8
Add for-of fallback for arrays in browsers without symbol supp… ( #11263 )
...
* Add for-of fallback for arrays in browsers without symbol support
* Update after rebase
* Re-throw error when iterating array
* Update fixture
2020-03-19 02:17:41 +01:00
Nicolò Ribaudo
78ace99615
Silence dynamic import() warnings in tests ( #11279 )
2020-03-18 15:42:19 +01:00
Brian Ng
f405cd809c
Update compat-data ( #11277 )
2020-03-18 10:24:14 +01:00
Nicolò Ribaudo
10aa97bc10
Allow rest/spread on polyfilled or builtin iterables without Symbol support ( #11268 )
...
* Allow rest/spread on polyfilled or builtin iterables when `Symbol` unsupported
Currently, when `Symbol` is not supported, we allow using rest/spread with:
- arrays
- strings
- arguments
With this PR, it will be also possible to use it with
- maps
- sets
- binary arrays
While in old browsers es6 builtins would still need to be polyfilled, it's way
easier to polyfill them because `Symbol` cannot be reliably polyfilled.
I didn't use `instanceof` becase:
- it doesn't work with polyfills not attatched to the global scope
- when using Babel to load polyfills, it would force the inclusion of `Map` and `Set` polyfills even if they are not used
Downside: the current approach of relying on `toString || construcor.name` doesn't work with subclasses.
* Don't use Array.from for array-like objects
2020-03-17 08:14:05 +01:00
Nicolò Ribaudo
59976680df
Extract for-of iterator handling to a helper ( #11262 )
...
* Extract for-of iterator handling to a helper
Dis greatly recudes the code size when for-of is used multiple times across the
codebase. Also, makes it easier to read what's happening in a compiled loop.
* Unify spec and loose code
* Legacy implementation fallback
* Update tmp var name
* Updates from review and after rebase
2020-03-17 00:45:34 +01:00
Nicolò Ribaudo
a11855e586
Include preset modules ( #11083 )
...
* Prepare preset-env and compat-data for preset-modules
* Add transform-edge-default-parameters from preset-modules
* AUtomatically generate data from compat-table
* Add compat data for other plugins
* Updates after rebase
* Add more bugfixes to preset-env
* Update tests
* Add bugfix/transform-safari-for-shadowing
* Fix build script
* bugfix/transform-safari-block-shadowing
* Fix flow
* Include changes from 7127330f02b423d9cb0555b3d2a24dbccbc149b5
* Fix check-compat-data
2020-03-17 00:36:29 +01:00
Nicolò Ribaudo
f6c7bf36ce
Allow extending untranspiled classes ( #8656 )
2020-03-16 23:59:15 +01:00
Ye Wei
e06bf8ffdb
Add numeric separator to shippedProposals ( #10971 )
...
* add plugins
* add plugin description
* run build-data
* set shipped proposals true
* update test fixtures
* corejs.proposals should not imply shipped proposals
* fix eslint errors
Please enter the commit message for your changes. Lines starting
* create new object in packages/babel-compat-data/scripts/data/plugin-features.js
2020-03-16 23:09:33 +01:00
Nicolò Ribaudo
1ba41f2084
Throw better errors for non-iterables when Symbol doesn't exist ( #11264 )
2020-03-16 16:34:33 +01:00
Huáng Jùnliàng
dadd22e161
chore: update caniuse fixtrues ( #11253 )
2020-03-12 12:27:40 -04:00
Brian Ng
eb65195f09
Update @babel deps ( #11225 )
...
* Update @babel deps
* fixture
2020-03-10 12:27:13 -04:00
Huáng Jùnliàng
1011e58c6c
update: preset-env-fixtures ( #11218 )
...
Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
2020-03-05 15:01:29 -05:00
Nicolò Ribaudo
595f65f33b
v7.8.7
2020-03-05 02:52:13 +01:00
Nicolò Ribaudo
7127330f02
Allow using preset-env with newer versions of compat-data ( #11201 )
...
* Use ~ for preset-env's @babel/compat-data dependency
* Revert "Use ~ for preset-env's @babel/compat-data dependency"
This reverts commit e7d57c7894095d381670cddfbbce06bd2a480a32.
* Allow using `preset-env` with newer versions of `compat-data`
2020-03-05 02:35:31 +01:00
Nicolò Ribaudo
750d3dde3b
v7.8.6
2020-02-27 13:17:19 +01:00
Nicolò Ribaudo
a192c0fcd3
Update preset-env fixture
2020-02-24 22:29:03 +01:00
Nicolò Ribaudo
4b045819b8
Mark wrapNativeSuper and wrapRegExp as pure ( #11134 )
2020-02-21 09:15:59 +01:00
Huáng Jùnliàng
1613418f9b
Update preset-env builtin-definitions ( #10929 )
...
* chore: build corejs3-proposals.json from core-js-compat
* fix: include finished proposals by default
* update test fixtures
* update test fixtures
* chore: rename scripts
* fix: add standarized entries for finished proposals
* refactor: remove unused finished proposals json
* revert test fixtures update
* test against corejs 3.6
* fix: move corejs builtin definitions to babel/compat-data
2020-02-17 19:30:53 +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
Nicolò Ribaudo
a4d5c6253e
Update preset-env fixtures ( #11120 )
2020-02-10 23:32:31 +09:00
Nicolò Ribaudo
0ae61f060a
Update fixtures again ( #11094 )
2020-02-04 23:09:38 +01:00
Nicolò Ribaudo
bd1daa756e
Update fixtures after browserslist release ( #11091 )
2020-02-04 09:19:14 +01:00
Nicolò Ribaudo
5c2e6bc07f
v7.8.4
2020-01-30 13:18:09 +01:00
Tan Li Hau
3e21a09da3
feat: support node 6 for levenary ( #11059 )
2020-01-28 06:57:35 +01:00
Nicolò Ribaudo
916429b516
Avoid compiling the _typeof helper with itself ( #11049 )
...
* Avoid compiling the typeof helper with itself
* Update fixtures
2020-01-27 22:02:34 +01:00
Pavel Pustovalov
d0518b7566
Update browserslist ( #11058 )
2020-01-27 21:54:18 +01:00
Nicolò Ribaudo
2e5594d562
Update failing tests after last merged PR
2020-01-24 23:07:34 +01:00
Nicolò Ribaudo
1815c34987
Update preset-env fixtures ( #11040 )
2020-01-21 22:46:49 +01:00
Huáng Jùnliàng
de75dbf2a0
update compat-data related docs/config [skip ci] ( #11030 )
...
* ignore compat-data build
* ignore CONTRIBUTING.md when publishing preset-env
* docs: update preset-env CONTRIBUTING.md
2020-01-20 01:00:38 +01:00
Huáng Jùnliàng
facfd4d8a1
Enable no-process-exit ESLint rule ( #11025 )
2020-01-20 00:48:47 +01:00
Nicolò Ribaudo
3daab41e61
Re-generate preset-env fixtures ( #11016 )
...
* Fix plugin ordering in preset-env
* Update stdout fixtures
* Comments [skip ci]
2020-01-16 10:49:30 -05: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
a677d59a63
Archive syntax plugins enabled by default ( #10820 )
...
* Remove syntax plugins enabled by default
Moved to babel-archive: babel/babel-archive@8f23ddce03
- `@babel/plugin-syntax-async-generators`
- `@babel/plugin-syntax-bigint`
- `@babel/plugin-syntax-dynamic-import`
- `@babel/plugin-syntax-json-strings`
- `@babel/plugin-syntax-nullish-coalescing-operator`
- `@babel/plugin-syntax-object-rest-spread`
- `@babel/plugin-syntax-optional-catch-binding`
- `@babel/plugin-syntax-optional-chaining`
* Fix build script
* Fix jest config
* Remove archived plugins from tests
2020-01-13 00:31:48 +01:00
Nicolò Ribaudo
61d01f1114
v7.8.2
2020-01-12 23:44:39 +01:00
Haoqun Jiang
f995f8e02c
fix: isPluginRequired returns the opposite result in v7.8.0 ( #10992 )
2020-01-12 23:43:03 +01:00
Nicolò Ribaudo
2486615a74
v7.8.0
2020-01-12 01:09:29 +01:00
Huáng Jùnliàng
a1310333f7
chore: update corejs fixtures ( #10983 )
2020-01-11 09:23:58 +01:00
Anders Kaseorg
5a3e97073e
CONTRIBUTING: Update link to plugin-features.js [skip ci] ( #10982 )
...
It was moved in #10899 .
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2020-01-10 20:43:10 -05:00
James Beavers
80aa7dc3c6
Add optional-chaining and nullish-coalescing to preset-env ( #10811 )
...
* Add support for optional-chaining (stage 4) in present-env
* revert babel-preset-env built-in-modules.json
* add shipped proposal syntax map entry, optional chaining
* update remaining syntax plugin references, proposal description
* Add support for nullish coalescing operator in preset-env
* selectively enable sort-keys rule
* enforce sort-keys on shipped-proposals
* don't use Object.entries()
* Update fixtures
2020-01-10 22:07:43 +01:00
Huáng Jùnliàng
e8dac621de
chore: specify package type ( #10849 )
2020-01-09 21:40:15 -05:00
Nicolò Ribaudo
04354d1556
Extract targets parser and compat data from preset-env ( #10899 )
...
* Extract targets parser and compat data from preset-env
* Review by Jùnliàng
* isItemRequired -> targetsSupported
* Export isRequired
2020-01-10 03:15:20 +01:00
Huáng Jùnliàng
9f148a1603
chore: update caniuse-usage fixtures ( #10974 )
2020-01-10 00:38:21 +01:00
Huáng Jùnliàng
09cb4273bc
update corejs-compat fixtures ( #10967 )
...
* update corejs-compat fixtures
* chore: bump core-js-compat to 3.6.2
2020-01-07 18:43:14 +01:00
Huáng Jùnliàng
03d163a0d9
Use chrome data when android is absent ( #10790 )
...
* chore: rename test folder
* chore: add test case
* fix: use chrome support data when android is absent
* chore: add type annotation
* chore: add testcases last 2 versions not ie
* chore: bump browerslist to v4.8.2
* chore: update test fixtures
* chore: update test fixtures
2020-01-03 18:26:27 -05:00
Huáng Jùnliàng
e9dc74e787
fix: Promise.any requires global.AggregateError ( #10930 )
...
* fix: promise.any requires global.AggregateError
* address review comments
2019-12-26 20:29:47 -05:00
Nicolò Ribaudo
30f3b07ebf
Replace custom "findSuggestion" function with "levenary" ( #10924 )
...
* Replace custom "findSuggestion" function with "levenary"
* Update
2019-12-26 00:45:26 +01:00