Skip to content

Commit afc756c

Browse files
authored
fix: minimatch remediation: upgrade glob v8→v11 (#5735)
1 parent 9167f09 commit afc756c

6 files changed

Lines changed: 26 additions & 986 deletions

File tree

dependencies-latest.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ check versions of packages/forms/package.json using latest
165165
"react-autowhatever": "10.2.0" => "^10.2.1"
166166
"react-ace": "10.1.0" => "^14.0.1"
167167
"react-jsonschema-form": "0.51.0" => "^1.8.1"
168-
"@storybook/addon-actions": "^7.6.21" => "^9.0.8"
169-
"@storybook/addon-controls": "^7.6.21" => "^9.0.8"
170168
"@testing-library/react": "^14.3.1" => "^16.3.2"
171169
"i18next": "^23.16.8" => "^25.8.0"
172170
"react": "^18.3.1" => "^19.2.4"
@@ -382,7 +380,6 @@ check versions of tools/scripts-publish-local/package.json using latest
382380

383381
check versions of tools/scripts-utils/package.json using latest
384382
"fs-extra": "^10.1.0" => "^11.3.3"
385-
"glob": "^8.1.0" => "^13.0.0"
386383
"which": "^2.0.2" => "^6.0.0"
387384
"eslint": "^8.57.1" => "^9.39.2"
388385
"jest": "^29.7.0" => "^30.2.0"

packages/design-system/src/stories/feedback/EmptyState.stories.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { BrowserRouter, Link } from 'react-router-dom';
22

3-
import { action as sbAction } from '@storybook/addon-actions';
3+
import { action } from 'storybook/actions';
44

55
import {
66
EmptyState,
@@ -21,7 +21,7 @@ export const Large = () => (
2121
description="Add a preparation to clean, format, and transform data prior to processing."
2222
action={{
2323
children: 'Create a dataset',
24-
onClick: () => sbAction('clicked'),
24+
onClick: () => action('clicked')(),
2525
icon: 'plus',
2626
actionType: 'button',
2727
}}
@@ -65,7 +65,7 @@ MediumWithAction.args = {
6565
link: { href: 'https://talend.com', 'data-feature': 'Feature name' },
6666
action: {
6767
children: 'Create a dataset',
68-
onClick: () => sbAction('clicked'),
68+
onClick: () => action('clicked')(),
6969
icon: 'plus',
7070
actionType: 'button',
7171
},
@@ -119,7 +119,7 @@ export const Demo = () => (
119119
description="Any additional data here"
120120
action={{
121121
children: 'Action',
122-
onClick: () => sbAction('clicked'),
122+
onClick: () => action('clicked')(),
123123
actionType: 'button',
124124
}}
125125
link={{ href: 'https://talend.com' }}
@@ -165,7 +165,7 @@ Usage.args = {
165165
link: { href: 'https://talend.com', 'data-feature': 'Feature name' },
166166
action: {
167167
children: 'Action',
168-
onClick: () => sbAction('clicked'),
168+
onClick: () => action('clicked')(),
169169
actionType: 'button',
170170
},
171171
};

packages/forms/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@
6464
"tv4": "^1.3.0"
6565
},
6666
"devDependencies": {
67-
"@storybook/addon-actions": "^7.6.21",
68-
"@storybook/addon-controls": "^7.6.21",
6967
"@talend/locales-tui-forms": "^15.2.0",
7068
"@talend/react-components": "^18.0.0",
7169
"@talend/eslint-config": "^14.0.0",

tools/scripts-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"fs-extra": "^10.1.0",
12-
"glob": "^8.1.0",
12+
"glob": "^11.0.0",
1313
"which": "^2.0.2"
1414
},
1515
"devDependencies": {

tools/scripts-utils/src/glob.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
const glob = require('glob');
1+
const { glob } = require('glob');
22

33
async function globMatch(pattern) {
4-
return new Promise((resolve, reject) => {
5-
glob(pattern, (error, files) => {
6-
if (error) {
7-
reject(error);
8-
}
9-
resolve(files.length > 0);
10-
});
11-
});
4+
const files = await glob(pattern);
5+
return files.length > 0;
126
}
137
module.exports = {
148
globMatch,

0 commit comments

Comments
 (0)