From ee3495ffc517d507a41a167db3b4b9c5ae7dc378 Mon Sep 17 00:00:00 2001 From: kumaryash90 Date: Wed, 23 Apr 2025 09:23:49 +0000 Subject: [PATCH] Deprecate pack (#6823) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on deprecating the `Pack` contract in the `thirdweb` library due to its incompatibility with the Pectra update. Support for this contract will be removed in the next release. ### Detailed summary - Added deprecation notice for the `Pack` contract in: - `packages/thirdweb/src/extensions/pack/createNewPack.ts` - `packages/thirdweb/src/extensions/prebuilts/deploy-pack.ts` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .changeset/fluffy-bars-crash.md | 5 +++++ packages/thirdweb/src/extensions/pack/createNewPack.ts | 2 ++ packages/thirdweb/src/extensions/prebuilts/deploy-pack.ts | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 .changeset/fluffy-bars-crash.md diff --git a/.changeset/fluffy-bars-crash.md b/.changeset/fluffy-bars-crash.md new file mode 100644 index 00000000000..a8bf6fe4ce5 --- /dev/null +++ b/.changeset/fluffy-bars-crash.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +Deprecate Pack diff --git a/packages/thirdweb/src/extensions/pack/createNewPack.ts b/packages/thirdweb/src/extensions/pack/createNewPack.ts index 4dba2e5e0c3..50ccf310455 100644 --- a/packages/thirdweb/src/extensions/pack/createNewPack.ts +++ b/packages/thirdweb/src/extensions/pack/createNewPack.ts @@ -78,6 +78,8 @@ export type CreateNewPackParams = { }; /** + * * @deprecated [Pack contract is incompatible with Pectra update. Support for this contract is being removed in next release.] + * * @extension PACK * @example * ```ts diff --git a/packages/thirdweb/src/extensions/prebuilts/deploy-pack.ts b/packages/thirdweb/src/extensions/prebuilts/deploy-pack.ts index 378f14c9713..9d153680ecf 100644 --- a/packages/thirdweb/src/extensions/prebuilts/deploy-pack.ts +++ b/packages/thirdweb/src/extensions/prebuilts/deploy-pack.ts @@ -55,6 +55,8 @@ export type DeployPackContractOptions = Prettify< >; /** + * @deprecated [Pack contract is incompatible with Pectra update. Support for this contract is being removed in next release.] + * * Deploy a thirdweb Pack contract * @param options params for deploying [`Pack contract`](https://thirdweb.com/thirdweb.eth/Pack) * @returns