Skip to content

Commit

Permalink
fix(plugin-cloud-storage): actually deprecate adapters (payloadcms#9640)
Browse files Browse the repository at this point in the history
In v2, plugin-cloud-storage exported some adapters that were marked for
deprecation. These were replaced by standalone `@payloadcms/storage-*`
packages. More detail located in [this section of the migration
guide](https://github.com/payloadcms/payload/blob/main/docs/migration-guide/overview.mdx#payloadcmsplugin-cloud-storage).

Unfortunately, these exports were not removed prior to releasing 3.0.
  • Loading branch information
denolfe authored Dec 31, 2024
1 parent 07e86c0 commit c4b31c0
Show file tree
Hide file tree
Showing 33 changed files with 42 additions and 1,044 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
"dev:vercel-postgres": "cross-env PAYLOAD_DATABASE=vercel-postgres pnpm runts ./test/dev.ts",
"devsafe": "node ./scripts/delete-recursively.js '**/.next' && pnpm dev",
"docker:restart": "pnpm docker:stop --remove-orphans && pnpm docker:start",
"docker:start": "docker compose -f packages/plugin-cloud-storage/docker-compose.yml up -d",
"docker:stop": "docker compose -f packages/plugin-cloud-storage/docker-compose.yml down",
"docker:start": "docker compose -f test/docker-compose.yml up -d",
"docker:stop": "docker compose -f test/docker-compose.yml down",
"force:build": "pnpm run build:core:force",
"lint": "turbo run lint --concurrency 1 --continue",
"lint-staged": "lint-staged",
Expand Down
71 changes: 0 additions & 71 deletions packages/plugin-cloud-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,6 @@
"import": "./src/exports/utilities.ts",
"types": "./src/exports/utilities.ts",
"default": "./src/exports/utilities.ts"
},
"./azure": {
"import": "./src/exports/azure.ts",
"types": "./src/exports/azure.ts",
"default": "./src/exports/azure.ts"
},
"./gcs": {
"import": "./src/exports/gcs.ts",
"types": "./src/exports/gcs.ts",
"default": "./src/exports/gcs.ts"
},
"./s3": {
"import": "./src/exports/s3.ts",
"types": "./src/exports/s3.ts",
"default": "./src/exports/s3.ts"
},
"./vercelBlob": {
"import": "./src/exports/vercelBlob.ts",
"types": "./src/exports/vercelBlob.ts",
"default": "./src/exports/vercelBlob.ts"
}
},
"main": "./src/index.ts",
Expand All @@ -77,43 +57,12 @@
"range-parser": "^1.2.1"
},
"devDependencies": {
"@aws-sdk/client-s3": "^3.614.0",
"@aws-sdk/lib-storage": "^3.614.0",
"@azure/storage-blob": "^12.11.0",
"@google-cloud/storage": "^7.7.0",
"@types/find-node-modules": "^2.1.2",
"@vercel/blob": "^0.22.3",
"payload": "workspace:*"
},
"peerDependencies": {
"@aws-sdk/client-s3": "^3.614.0",
"@aws-sdk/lib-storage": "^3.614.0",
"@azure/abort-controller": "^1.0.0",
"@azure/storage-blob": "^12.11.0",
"@google-cloud/storage": "^7.7.0",
"@vercel/blob": "^0.22.3",
"payload": "workspace:*"
},
"peerDependenciesMeta": {
"@aws-sdk/client-s3": {
"optional": true
},
"@aws-sdk/lib-storage": {
"optional": true
},
"@azure/abort-controller": {
"optional": true
},
"@azure/storage-blob": {
"optional": true
},
"@google-cloud/storage": {
"optional": true
},
"@vercel/blob": {
"optional": true
}
},
"publishConfig": {
"exports": {
".": {
Expand All @@ -130,26 +79,6 @@
"import": "./dist/exports/utilities.js",
"types": "./dist/exports/utilities.d.ts",
"default": "./dist/exports/utilities.js"
},
"./azure": {
"import": "./dist/exports/azure.js",
"types": "./dist/exports/azure.d.ts",
"default": "./dist/exports/azure.js"
},
"./gcs": {
"import": "./dist/exports/gcs.js",
"types": "./dist/exports/gcs.d.ts",
"default": "./dist/exports/gcs.js"
},
"./s3": {
"import": "./dist/exports/s3.js",
"types": "./dist/exports/s3.d.ts",
"default": "./dist/exports/s3.js"
},
"./vercelBlob": {
"import": "./dist/exports/vercelBlob.js",
"types": "./dist/exports/vercelBlob.d.ts",
"default": "./dist/exports/vercelBlob.js"
}
},
"main": "./dist/index.js",
Expand Down

This file was deleted.

14 changes: 0 additions & 14 deletions packages/plugin-cloud-storage/src/adapters/azure/generateURL.ts

This file was deleted.

18 changes: 0 additions & 18 deletions packages/plugin-cloud-storage/src/adapters/azure/handleDelete.ts

This file was deleted.

43 changes: 0 additions & 43 deletions packages/plugin-cloud-storage/src/adapters/azure/handleUpload.ts

This file was deleted.

74 changes: 0 additions & 74 deletions packages/plugin-cloud-storage/src/adapters/azure/index.ts

This file was deleted.

55 changes: 0 additions & 55 deletions packages/plugin-cloud-storage/src/adapters/azure/staticHandler.ts

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions packages/plugin-cloud-storage/src/adapters/gcs/generateURL.ts

This file was deleted.

18 changes: 0 additions & 18 deletions packages/plugin-cloud-storage/src/adapters/gcs/handleDelete.ts

This file was deleted.

Loading

0 comments on commit c4b31c0

Please sign in to comment.