@commercetools-frontend/babel-preset-mc-app 22.7.0 → 22.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/create.js +11 -11
  3. package/package.json +21 -21
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @commercetools-frontend/babel-preset-mc-app
2
2
 
3
+ ## 22.8.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3082](https://github.com/commercetools/merchant-center-application-kit/pull/3082) [`e29ab64b6`](https://github.com/commercetools/merchant-center-application-kit/commit/e29ab64b6032ff42bdb2254ef4e57d16291a45db) Thanks [@renovate](https://github.com/apps/renovate)! - Use stable transform plugin packages
8
+
9
+ - [#3082](https://github.com/commercetools/merchant-center-application-kit/pull/3082) [`e29ab64b6`](https://github.com/commercetools/merchant-center-application-kit/commit/e29ab64b6032ff42bdb2254ef4e57d16291a45db) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies
10
+
11
+ ## 22.7.1
12
+
3
13
  ## 22.7.0
4
14
 
5
15
  ## 22.6.0
package/create.js CHANGED
@@ -13,8 +13,8 @@ const defaultOptions = {
13
13
  // Usually when bundling packages we want to keep the prop types
14
14
  // but when building the final application we can remove them.
15
15
  keepPropTypes: false,
16
- // plugin-proposal-class-properties, plugin-proposal-private-methods,
17
- // plugin-proposal-private-property-in-object have a loose option which
16
+ // NOTE: `plugin-transform-class-properties`, `plugin-transform-private-methods`,
17
+ // `plugin-transform-private-property-in-object` have a loose option which
18
18
  // needs to be synced. At times, for instance for better debuggability
19
19
  // the loose option can be disabled at the cost of lowered performance.
20
20
  disableLooseMode: false,
@@ -109,7 +109,7 @@ module.exports = function createBabePresetConfigForMcApp(api, opts = {}, env) {
109
109
  // export { default } from './foo'
110
110
  require('@babel/plugin-proposal-export-default-from'),
111
111
  // export * from './foo'
112
- require('@babel/plugin-proposal-export-namespace-from'),
112
+ require('@babel/plugin-transform-export-namespace-from'),
113
113
  // Necessary to include regardless of the environment because
114
114
  // in practice some other transforms (such as object-rest-spread)
115
115
  // don't work without it: https://github.com/babel/babel/issues/7215
@@ -119,24 +119,24 @@ module.exports = function createBabePresetConfigForMcApp(api, opts = {}, env) {
119
119
  // See discussion in https://github.com/facebook/create-react-app/issues/4263
120
120
  // Note:
121
121
  // 'loose' mode configuration must be the same for
122
- // * @babel/plugin-proposal-class-properties
123
- // * @babel/plugin-proposal-private-methods
124
- // * @babel/plugin-proposal-private-property-in-object
122
+ // * @babel/plugin-transform-class-properties
123
+ // * @babel/plugin-transform-private-methods
124
+ // * @babel/plugin-transform-private-property-in-object
125
125
  // (when they are enabled)
126
126
  [
127
- require('@babel/plugin-proposal-class-properties').default,
127
+ require('@babel/plugin-transform-class-properties').default,
128
128
  {
129
129
  loose: !options.disableLooseMode,
130
130
  },
131
131
  ],
132
132
  [
133
- require('@babel/plugin-proposal-private-methods').default,
133
+ require('@babel/plugin-transform-private-methods').default,
134
134
  {
135
135
  loose: !options.disableLooseMode,
136
136
  },
137
137
  ],
138
138
  [
139
- require('@babel/plugin-proposal-private-property-in-object').default,
139
+ require('@babel/plugin-transform-private-property-in-object').default,
140
140
  {
141
141
  loose: !options.disableLooseMode,
142
142
  },
@@ -145,7 +145,7 @@ module.exports = function createBabePresetConfigForMcApp(api, opts = {}, env) {
145
145
  // extends helper. Note that this assumes `Object.assign` is available.
146
146
  // { ...todo, completed: true }
147
147
  [
148
- require('@babel/plugin-proposal-object-rest-spread').default,
148
+ require('@babel/plugin-transform-object-rest-spread').default,
149
149
  {
150
150
  useBuiltIns: true,
151
151
  },
@@ -181,7 +181,7 @@ module.exports = function createBabePresetConfigForMcApp(api, opts = {}, env) {
181
181
  },
182
182
  ],
183
183
  require('@babel/plugin-proposal-do-expressions').default,
184
- require('@babel/plugin-proposal-logical-assignment-operators').default,
184
+ require('@babel/plugin-transform-logical-assignment-operators').default,
185
185
  // Use this plugin only with the JSX runtime `automatic`, otherwise
186
186
  // use the `@emotion/babel-preset-css-prop` preset.
187
187
  // https://emotion.sh/docs/@emotion/babel-preset-css-prop
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/babel-preset-mc-app",
3
- "version": "22.7.0",
3
+ "version": "22.8.0",
4
4
  "description": "Babel preset used by a MC application",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -22,31 +22,31 @@
22
22
  "main": "./index.js",
23
23
  "module": "./index.js",
24
24
  "dependencies": {
25
- "@babel/core": "^7.20.12",
26
- "@babel/plugin-proposal-class-properties": "^7.18.6",
27
- "@babel/plugin-proposal-do-expressions": "^7.18.6",
28
- "@babel/plugin-proposal-export-default-from": "^7.18.10",
29
- "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
30
- "@babel/plugin-proposal-logical-assignment-operators": "^7.20.7",
31
- "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
32
- "@babel/plugin-proposal-private-methods": "^7.18.6",
33
- "@babel/plugin-proposal-private-property-in-object": "^7.20.5",
34
- "@babel/plugin-transform-destructuring": "^7.20.7",
35
- "@babel/plugin-transform-regenerator": "^7.20.5",
36
- "@babel/plugin-transform-runtime": "^7.19.6",
37
- "@babel/preset-env": "^7.20.2",
38
- "@babel/preset-react": "^7.18.6",
39
- "@babel/preset-typescript": "^7.18.6",
40
- "@babel/runtime": "^7.20.13",
41
- "@babel/runtime-corejs3": "^7.20.13",
42
- "@emotion/babel-plugin": "^11.10.5",
43
- "@emotion/babel-preset-css-prop": "^11.10.0",
25
+ "@babel/core": "^7.22.17",
26
+ "@babel/plugin-proposal-do-expressions": "^7.22.5",
27
+ "@babel/plugin-proposal-export-default-from": "^7.22.17",
28
+ "@babel/plugin-transform-class-properties": "^7.22.5",
29
+ "@babel/plugin-transform-destructuring": "^7.22.15",
30
+ "@babel/plugin-transform-export-namespace-from": "^7.22.11",
31
+ "@babel/plugin-transform-logical-assignment-operators": "^7.22.11",
32
+ "@babel/plugin-transform-object-rest-spread": "^7.22.15",
33
+ "@babel/plugin-transform-private-methods": "^7.22.5",
34
+ "@babel/plugin-transform-private-property-in-object": "^7.22.11",
35
+ "@babel/plugin-transform-regenerator": "^7.22.10",
36
+ "@babel/plugin-transform-runtime": "^7.22.15",
37
+ "@babel/preset-env": "^7.22.15",
38
+ "@babel/preset-react": "^7.22.15",
39
+ "@babel/preset-typescript": "^7.22.15",
40
+ "@babel/runtime": "^7.22.15",
41
+ "@babel/runtime-corejs3": "^7.22.15",
42
+ "@emotion/babel-plugin": "^11.11.0",
43
+ "@emotion/babel-preset-css-prop": "^11.11.0",
44
44
  "babel-plugin-dev-expression": "^0.2.3",
45
45
  "babel-plugin-lodash": "^3.3.4",
46
46
  "babel-plugin-macros": "^3.1.0",
47
47
  "babel-plugin-preval": "^5.1.0",
48
48
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
49
- "core-js": "^3.28.0"
49
+ "core-js": "^3.32.2"
50
50
  },
51
51
  "engines": {
52
52
  "node": "16.x || >=18.0.0"