From 895dec07e093fe7f9e62ff437d60bb8036a46f7d Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Fri, 3 Jan 2025 09:39:59 +0000 Subject: [PATCH 1/3] chore: removed network urls --- packages/account/package.json | 8 -------- packages/account/src/configs.test.ts | 17 ----------------- packages/account/src/configs.ts | 9 --------- packages/account/tsup.config.ts | 1 - packages/fuels/src/index.ts | 1 - 5 files changed, 36 deletions(-) delete mode 100644 packages/account/src/configs.test.ts delete mode 100644 packages/account/src/configs.ts diff --git a/packages/account/package.json b/packages/account/package.json index 446a5ecad12..691f100ed90 100644 --- a/packages/account/package.json +++ b/packages/account/package.json @@ -15,11 +15,6 @@ "require": "./dist/index.js", "import": "./dist/index.mjs" }, - "./configs": { - "types": "./dist/configs.d.ts", - "require": "./dist/configs.js", - "import": "./dist/configs.mjs" - }, "./test-utils": { "types": "./dist/test-utils.d.ts", "require": "./dist/test-utils.js", @@ -28,9 +23,6 @@ }, "typesVersions": { "*": { - "configs": [ - "./dist/configs.d.ts" - ], "test-utils": [ "./dist/test-utils.d.ts" ] diff --git a/packages/account/src/configs.test.ts b/packages/account/src/configs.test.ts deleted file mode 100644 index 94aea7a9427..00000000000 --- a/packages/account/src/configs.test.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { DEVNET_NETWORK_URL, TESTNET_NETWORK_URL } from '@internal/utils'; - -/** - * @group node - * @group browser - */ -describe('Configs', () => { - it('exports DEVNET_NETWORK_URL', async () => { - const configs = await import('./configs'); - expect(configs.DEVNET_NETWORK_URL).toBe(DEVNET_NETWORK_URL); - }); - - it('exports TESTNET_NETWORK_URL', async () => { - const configs = await import('./configs'); - expect(configs.TESTNET_NETWORK_URL).toBe(TESTNET_NETWORK_URL); - }); -}); diff --git a/packages/account/src/configs.ts b/packages/account/src/configs.ts deleted file mode 100644 index 6e7eb50642a..00000000000 --- a/packages/account/src/configs.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @deprecated This export is deprecated and will be removed in the future. - */ -export const DEVNET_NETWORK_URL = 'https://devnet.fuel.network/v1/graphql'; - -/** - * @deprecated This export is deprecated and will be removed in the future. - */ -export const TESTNET_NETWORK_URL = 'https://testnet.fuel.network/v1/graphql'; diff --git a/packages/account/tsup.config.ts b/packages/account/tsup.config.ts index aac3b41345a..746b5348818 100644 --- a/packages/account/tsup.config.ts +++ b/packages/account/tsup.config.ts @@ -9,7 +9,6 @@ const configs: Options = { ...tsupDefaults, entry: { index: 'src/index.ts', - configs: 'src/configs.ts', 'test-utils': 'src/test-utils.ts', }, // eslint-disable-next-line @typescript-eslint/require-await diff --git a/packages/fuels/src/index.ts b/packages/fuels/src/index.ts index e13cabc50c4..104d1d66121 100644 --- a/packages/fuels/src/index.ts +++ b/packages/fuels/src/index.ts @@ -15,5 +15,4 @@ export * from '@fuel-ts/transactions'; export * from '@fuel-ts/utils'; export * from '@fuel-ts/account'; export * from '@fuel-ts/transactions/configs'; -export * from '@fuel-ts/account/configs'; export * from '@fuel-ts/recipes'; From 08c2e0a391d4dd36e671f26623a5e5bb9e65f6ff Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Fri, 3 Jan 2025 09:40:39 +0000 Subject: [PATCH 2/3] chore: changeset --- .changeset/clever-wasps-nail.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/clever-wasps-nail.md diff --git a/.changeset/clever-wasps-nail.md b/.changeset/clever-wasps-nail.md new file mode 100644 index 00000000000..05cd9b74220 --- /dev/null +++ b/.changeset/clever-wasps-nail.md @@ -0,0 +1,6 @@ +--- +"@fuel-ts/account": minor +"fuels": minor +--- + +chore: removed network URLs From 0f0f02e6196585ce1bdaee6b6c698158a4475d1c Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Fri, 3 Jan 2025 09:53:00 +0000 Subject: [PATCH 3/3] Update .changeset/clever-wasps-nail.md --- .changeset/clever-wasps-nail.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/clever-wasps-nail.md b/.changeset/clever-wasps-nail.md index 05cd9b74220..544a229175b 100644 --- a/.changeset/clever-wasps-nail.md +++ b/.changeset/clever-wasps-nail.md @@ -3,4 +3,4 @@ "fuels": minor --- -chore: removed network URLs +chore!: removed network URLs