Skip to content

Commit 128ec75

Browse files
[email protected] - Update babel to latest versions (#2520)
* [email protected] - Update babel to latest versions * Version updates
1 parent 1fd5199 commit 128ec75

File tree

60 files changed

+515
-930
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+515
-930
lines changed

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

6+
## v7.57.0
7+
8+
_April 30, 2024_
9+
10+
### Changed
11+
12+
- Updated babel dependencies.
13+
14+
### Removed
15+
16+
- Babel plugin proposals which are now included in preset-env:
17+
- `plugin-proposal-class-properties`
18+
- `plugin-proposal-optional-chaining`
19+
20+
621
## v7.56.2
722

823
_April 29, 2024_

babel.config.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ module.exports = api => {
22
// Use isTest to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining',
7-
'@babel/plugin-proposal-class-properties'
8-
];
95
const builtIns = (api.env('development') ? 'entry' : false);
106

117
if (!isTest) {
@@ -18,7 +14,6 @@ module.exports = api => {
1814
}
1915

2016
return {
21-
presets,
22-
plugins
17+
presets
2318
};
2419
};

package.json

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "root",
3-
"version": "7.56.2",
3+
"version": "7.57.0",
44
"private": true,
55
"scripts": {
66
"build": "NODE_OPTIONS=--openssl-legacy-provider cross-env-shell turbo run build --continue --token=${TURBO_TOKEN}",
@@ -54,14 +54,12 @@
5454
"typesafe-i18n": "5.16.3"
5555
},
5656
"devDependencies": {
57-
"@babel/cli": "7.14.8",
58-
"@babel/core": "7.14.8",
59-
"@babel/eslint-parser": "7.16.5",
60-
"@babel/plugin-proposal-class-properties": "7.14.5",
61-
"@babel/plugin-proposal-optional-chaining": "7.14.5",
62-
"@babel/plugin-transform-runtime": "7.14.5",
63-
"@babel/preset-env": "7.14.9",
64-
"@babel/register": "7.14.5",
57+
"@babel/cli": "7.24.5",
58+
"@babel/core": "7.24.5",
59+
"@babel/eslint-parser": "7.24.5",
60+
"@babel/plugin-transform-runtime": "7.24.3",
61+
"@babel/preset-env": "7.24.5",
62+
"@babel/register": "7.23.7",
6563
"@faker-js/faker": "7.5.0",
6664
"@justeat/browserslist-config-fozzie": "1.2.0",
6765
"@justeat/eslint-config-fozzie": "5.4.0",

packages/components/atoms/f-button/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/atoms/f-card/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -16,7 +13,6 @@ module.exports = api => {
1613
}
1714

1815
return {
19-
presets,
20-
plugins
16+
presets
2117
};
2218
};

packages/components/atoms/f-error-boundary/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/atoms/f-error-message/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/atoms/f-filter-pill/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/atoms/f-form-field/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -17,7 +14,6 @@ module.exports = api => {
1714
}
1815

1916
return {
20-
presets,
21-
plugins
17+
presets
2218
};
2319
};

packages/components/atoms/f-image-tile/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/atoms/f-link/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/atoms/f-popover/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/atoms/f-segmented-control/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/atoms/f-spinner/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/atoms/f-toggle-switch/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/molecules/f-alert/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/molecules/f-breadcrumbs/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/molecules/f-card-with-content/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -20,7 +17,6 @@ module.exports = api => {
2017
}
2118

2219
return {
23-
presets,
24-
plugins
20+
presets
2521
};
2622
};

packages/components/molecules/f-media-element/babel.config.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ module.exports = api => {
22
// Use `isTest` to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining', // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
7-
'@babel/plugin-proposal-class-properties' // https://babeljs.io/docs/en/babel-plugin-proposal-class-properties
8-
];
95
const builtIns = (api.env('development') ? 'entry' : false);
106

117
if (!isTest) {
@@ -21,7 +17,6 @@ module.exports = api => {
2117
}
2218

2319
return {
24-
presets,
25-
plugins
20+
presets
2621
};
2722
};

packages/components/molecules/f-mega-modal/babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module.exports = api => {
22
// Use isTest to determine what presets and plugins to use with jest
33
const isTest = api.env('test');
44
const presets = [];
5-
const plugins = [
6-
'@babel/plugin-proposal-optional-chaining'
7-
];
85
const builtIns = (api.env('development') ? 'entry' : false);
96

107
if (!isTest) {
@@ -18,7 +15,6 @@ module.exports = api => {
1815

1916

2017
return {
21-
presets,
22-
plugins
18+
presets
2319
};
2420
};

0 commit comments

Comments
 (0)