Skip to content

Commit 66e2910

Browse files
Merge pull request #6918 from Shopify/fix-deprecated-dependencies
Remove some deprecated dependencies
2 parents a599ed2 + 07e8a05 commit 66e2910

9 files changed

Lines changed: 2500 additions & 4112 deletions

File tree

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@changesets/cli": "2.29.7",
4343
"@graphql-codegen/add": "6.0.0",
4444
"@graphql-codegen/cli": "6.0.1",
45-
"@graphql-codegen/near-operation-file-preset": "3.1.0",
45+
"@graphql-codegen/near-operation-file-preset": "4.0.0",
4646
"@graphql-codegen/typed-document-node": "6.1.0",
4747
"@graphql-codegen/typescript-operations": "5.0.2",
4848
"@nx/eslint-plugin": "22.0.2",
@@ -201,8 +201,7 @@
201201
"**/graphql/**/generated/*.ts"
202202
],
203203
"ignoreDependencies": [
204-
"@shopify/plugin-cloudflare",
205-
"@shopify/function-runner"
204+
"@shopify/plugin-cloudflare"
206205
],
207206
"vite": {
208207
"config": [

packages/app/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"@luckycatfactory/esbuild-graphql-loader": "3.8.1",
5252
"@oclif/core": "4.5.3",
5353
"@shopify/cli-kit": "3.92.0",
54-
"@shopify/function-runner": "4.1.1",
5554
"@shopify/plugin-cloudflare": "3.92.0",
5655
"@shopify/polaris": "12.27.0",
5756
"@shopify/polaris-icons": "8.11.1",

packages/cli-kit/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@
127127
"commondir": "1.0.1",
128128
"conf": "11.0.2",
129129
"deepmerge": "4.3.1",
130-
"del": "6.1.1",
131130
"dotenv": "16.4.7",
132131
"env-paths": "3.0.0",
133132
"execa": "7.2.0",

packages/cli-kit/src/public/node/fs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import {
4848
access as fsAccess,
4949
rename as fsRename,
5050
unlink as fsUnlink,
51+
rm as fsRm,
5152
readdir as fsReaddir,
5253
symlink as fsSymlink,
5354
} from 'fs/promises'
@@ -312,9 +313,8 @@ interface RmDirOptions {
312313
* @param options - Options to remove the directory with.
313314
*/
314315
export async function rmdir(path: string, options: RmDirOptions = {}): Promise<void> {
315-
const {default: del} = await import('del')
316316
outputDebug(outputContent`Removing directory at ${outputToken.path(path)}...`)
317-
await del(path, {force: options.force})
317+
await fsRm(path, {recursive: true, force: options.force ?? true})
318318
}
319319

320320
/**

packages/features/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@cucumber/pretty-formatter": "2.4.1",
3333
"@types/fs-extra": "^9.0.13",
3434
"fs-extra": "^9.1.0",
35-
"tempy": "^1.0.1"
35+
"tempy": "^3.1.0"
3636
},
3737
"engines": {
3838
"node": ">=20.10.0"

packages/features/steps/environment.steps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {writeFile} from '../lib/fs.js'
22
import {Given, After, setDefaultTimeout} from '@cucumber/cucumber'
3-
import tempy from 'tempy'
3+
import {temporaryDirectory} from 'tempy'
44
import {rimrafSync} from 'rimraf'
55
import * as path from 'pathe'
66

@@ -12,7 +12,7 @@ if (process.env.DEBUG === '1') {
1212
}
1313

1414
Given('I have a working directory', async function () {
15-
this.temporaryDirectory = tempy.directory()
15+
this.temporaryDirectory = temporaryDirectory()
1616
const dataHomeDirectory = path.join(this.temporaryDirectory, 'XDG_DATA_HOME')
1717
const configHomeDirectory = path.join(this.temporaryDirectory, 'XDG_CONFIG_HOME')
1818
const stateHomeDirectory = path.join(this.temporaryDirectory, 'XDG_STATE_HOME')

packages/ui-extensions-dev-console/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@types/react": "^18.2.0",
3030
"@types/react-dom": "^18.2.0",
3131
"@vitejs/plugin-react": "^5.1.4",
32-
"jsdom": "^20.0.3",
32+
"jsdom": "^25.0.0",
3333
"sass": "^1.83.1",
3434
"vite": "6.4.1"
3535
}

packages/ui-extensions-server-kit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"@shopify/ui-extensions-test-utils": "3.26.0",
5757
"@types/react": "^18.2.0",
5858
"@vitejs/plugin-react": "^5.1.4",
59-
"jsdom": "^20.0.3",
59+
"jsdom": "^25.0.0",
6060
"react": "^18.2.0",
6161
"react-dom": "^18.2.0",
6262
"vite": "6.4.1"

0 commit comments

Comments
 (0)