From 2e170af3d1ba84023f2301f9f0155478ca7bcadc Mon Sep 17 00:00:00 2001 From: "Luiz Gomes - LuizAsFight.eth" <8636507+LuizAsFight@users.noreply.github.com> Date: Sat, 21 Oct 2023 11:44:25 -0300 Subject: [PATCH] feat: add `fuel-ts/utils` to `fuels` umbrella package (#1364) --- .changeset/nine-glasses-rest.md | 5 +++++ internal/check-imports/package.json | 5 ++--- internal/check-imports/src/references.ts | 9 ++++++++- packages/fuels/package.json | 1 + packages/fuels/src/index.ts | 1 + pnpm-lock.yaml | 5 ++++- 6 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 .changeset/nine-glasses-rest.md diff --git a/.changeset/nine-glasses-rest.md b/.changeset/nine-glasses-rest.md new file mode 100644 index 00000000000..eacb9b9c405 --- /dev/null +++ b/.changeset/nine-glasses-rest.md @@ -0,0 +1,5 @@ +--- +"fuels": patch +--- + +include "fuel-ts/utils" in "fuels" umbrella package diff --git a/internal/check-imports/package.json b/internal/check-imports/package.json index 74ef9a9775e..326071a1997 100644 --- a/internal/check-imports/package.json +++ b/internal/check-imports/package.json @@ -31,7 +31,6 @@ "@fuel-ts/wallet-manager": "workspace:*", "@fuel-ts/wallet": "workspace:*", "@fuel-ts/wordlists": "workspace:*", - "fuels": "workspace:^" - }, - "version": null + "fuels": "workspace:*" + } } diff --git a/internal/check-imports/src/references.ts b/internal/check-imports/src/references.ts index fba80800843..da95d5d0332 100644 --- a/internal/check-imports/src/references.ts +++ b/internal/check-imports/src/references.ts @@ -28,7 +28,7 @@ import { FUEL_NETWORK_URL } from '@fuel-ts/wallet/configs'; // TODO: Add `launchNode` and `launchNodeAndGetWallets` here import { generateTestWallet, seedTestWallet } from '@fuel-ts/wallet/test-utils'; import { english, Language } from '@fuel-ts/wordlists'; -import { ScriptRequest } from 'fuels'; +import { ScriptRequest, chunkAndPadBytes, normalizeString, concatBytes } from 'fuels'; const { log } = console; @@ -136,6 +136,13 @@ log(Signer); */ log(InputCoinCoder); +/** + * utils + */ +log(chunkAndPadBytes); +log(normalizeString); +log(concatBytes); + /** * versions */ diff --git a/packages/fuels/package.json b/packages/fuels/package.json index 0c915037a69..40421eeecd5 100644 --- a/packages/fuels/package.json +++ b/packages/fuels/package.json @@ -61,6 +61,7 @@ "@fuel-ts/signer": "workspace:*", "@fuel-ts/testcases": "workspace:*", "@fuel-ts/transactions": "workspace:*", + "@fuel-ts/utils": "workspace:*", "@fuel-ts/versions": "workspace:*", "@fuel-ts/wallet": "workspace:*", "@fuel-ts/wallet-manager": "workspace:*", diff --git a/packages/fuels/src/index.ts b/packages/fuels/src/index.ts index 787e718cfe6..8460186794c 100644 --- a/packages/fuels/src/index.ts +++ b/packages/fuels/src/index.ts @@ -14,6 +14,7 @@ export * from '@fuel-ts/program'; export * from '@fuel-ts/providers'; export * from '@fuel-ts/signer'; export * from '@fuel-ts/transactions'; +export * from '@fuel-ts/utils'; export * from '@fuel-ts/wallet'; export { Script } from '@fuel-ts/script'; export * from '@fuel-ts/transactions/configs'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8847f2fe8c3..a731ed2b5ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -429,7 +429,7 @@ importers: specifier: workspace:* version: link:../../packages/wordlists fuels: - specifier: workspace:^ + specifier: workspace:* version: link:../../packages/fuels internal/tsup: {} @@ -680,6 +680,9 @@ importers: '@fuel-ts/transactions': specifier: workspace:* version: link:../transactions + '@fuel-ts/utils': + specifier: workspace:* + version: link:../utils '@fuel-ts/versions': specifier: workspace:* version: link:../versions