@mui/internal-code-infra 0.0.4-canary.33 → 0.0.4-canary.34

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-code-infra",
3
- "version": "0.0.4-canary.33",
3
+ "version": "0.0.4-canary.34",
4
4
  "author": "MUI Team",
5
5
  "description": "Infra scripts and configs to be used across MUI repos.",
6
6
  "license": "MIT",
@@ -120,8 +120,8 @@
120
120
  "unified": "^11.0.5",
121
121
  "yargs": "^18.0.0",
122
122
  "@mui/internal-babel-plugin-display-name": "1.0.4-canary.18",
123
- "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.36",
124
- "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.27"
123
+ "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.27",
124
+ "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.36"
125
125
  },
126
126
  "peerDependencies": {
127
127
  "@next/eslint-plugin-next": "*",
@@ -168,7 +168,7 @@
168
168
  "publishConfig": {
169
169
  "access": "public"
170
170
  },
171
- "gitSha": "9f107efaadc47ab0bd7c7474b69c9099e5c46dd7",
171
+ "gitSha": "8b6d64d72f98adc33104110814c38e0262070163",
172
172
  "scripts": {
173
173
  "build": "tsgo -p tsconfig.build.json",
174
174
  "typescript": "tsgo -noEmit",
@@ -84,15 +84,15 @@ describe('categorizeCommits', () => {
84
84
  labels: {
85
85
  ...baseLabelConfig,
86
86
  categoryOverrides: {
87
- 'all components': 'General changes',
87
+ 'scope: all components': 'General changes',
88
88
  },
89
89
  },
90
90
  };
91
91
 
92
92
  const commits = [
93
- createCommit(1, ['component: Button', 'all components']),
93
+ createCommit(1, ['component: Button', 'scope: all components']),
94
94
  createCommit(2, ['component: Checkbox']),
95
- createCommit(3, ['component: Button', 'all components']),
95
+ createCommit(3, ['component: Button', 'scope: all components']),
96
96
  ];
97
97
 
98
98
  const result = categorizeCommits(commits, configWithOverrides);
@@ -229,13 +229,13 @@ describe('categorizeCommits', () => {
229
229
  labels: {
230
230
  ...baseLabelConfig,
231
231
  categoryOverrides: {
232
- 'all packages': 'General changes',
232
+ 'scope: all components': 'General changes',
233
233
  },
234
234
  },
235
235
  };
236
236
 
237
237
  const commits = [
238
- createCommit(1, ['scope: data grid', 'all packages']),
238
+ createCommit(1, ['scope: data grid', 'scope: all components']),
239
239
  createCommit(2, ['scope: charts']),
240
240
  ];
241
241
 
@@ -210,11 +210,11 @@ describe('parseCommitLabels', () => {
210
210
 
211
211
  describe('category overrides', () => {
212
212
  it('should detect category override labels', () => {
213
- const commit = createCommit({ labels: ['all components'] });
213
+ const commit = createCommit({ labels: ['scope: all components'] });
214
214
  const config: LabelConfig = {
215
215
  ...baseLabelConfig,
216
216
  categoryOverrides: {
217
- 'all components': 'General changes',
217
+ 'scope: all components': 'General changes',
218
218
  },
219
219
  };
220
220
 
@@ -224,11 +224,11 @@ describe('parseCommitLabels', () => {
224
224
  });
225
225
 
226
226
  it('should use the last category override when multiple are present', () => {
227
- const commit = createCommit({ labels: ['all components', 'docs'] });
227
+ const commit = createCommit({ labels: ['scope: all components', 'docs'] });
228
228
  const config: LabelConfig = {
229
229
  ...baseLabelConfig,
230
230
  categoryOverrides: {
231
- 'all components': 'General changes',
231
+ 'scope: all components': 'General changes',
232
232
  docs: 'Documentation',
233
233
  },
234
234
  };
@@ -243,7 +243,7 @@ describe('parseCommitLabels', () => {
243
243
  const config: LabelConfig = {
244
244
  ...baseLabelConfig,
245
245
  categoryOverrides: {
246
- 'all components': 'General changes',
246
+ 'scope: all components': 'General changes',
247
247
  },
248
248
  };
249
249