Skip to content

Conversation

petertonysmith94
Copy link
Contributor

Release notes

In this release, we:

  • Consolidated the @fuels-ts/contract package into @fuels-ts/program
  • Consolidated the @fuels-ts/script package into @fuels-ts/program

Summary

We have consolidated some of our package to enable

Breaking Changes

  • All imports for the @fuels-ts/contract package should now use @fuels-ts/program
// Before
import { ContractFactory } from `@fuels-ts/contract`
// After
import { ContractFactory } from `@fuels-ts/program`
  • All imports for the @fuels-ts/script package should now use @fuels-ts/program
// Before
import { Script } from `@fuels-ts/script`
// After
import { Script } from `@fuels-ts/program`

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

@petertonysmith94 petertonysmith94 self-assigned this Jun 4, 2025
@petertonysmith94 petertonysmith94 added the chore Issue is a chore label Jun 4, 2025
Copy link

vercel bot commented Jun 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fuels-template ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2025 11:17am
ts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2025 11:17am
ts-docs-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2025 11:17am

Copy link
Contributor

github-actions bot commented Jun 4, 2025

Temporary PR

This PR is published in AWS CodeArtifact with version: pr-3906

Install using the below commands — create-fuels variations are commented out.

PNPM

pnpm config set registry https://npm-packages.fuel.network/ --global
pnpm install fuels@pr-3906
# pnpm create fuels@pr-3906

NPM

npm --registry=https://npm-packages.fuel.network/ install fuels@pr-3906
# npm --registry=https://npm-packages.fuel.network/ create fuels@pr-3906

Bun

npm_config_registry=https://npm-packages.fuel.network/ bun install fuels@pr-3906
# npm_config_registry=https://npm-packages.fuel.network/ bun create fuels@pr-3906

Copy link
Contributor

github-actions bot commented Jun 4, 2025

Coverage Report:

Lines Branches Functions Statements
79.32%(+2.36%) 71.91%(+1.98%) 78.49%(+3.09%) 79.29%(+2.33%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
🔴 ✨ packages/program/tsup.config.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 packages/program/src/contract-call-script.ts 87.8%
(+76.83%)
65.51%
(+65.51%)
93.33%
(+93.33%)
88.23%
(+77.65%)
🔴 packages/program/src/contract.ts 84.21%
(+5.27%)
100%
(+16.67%)
62.5%
(+12.5%)
84.21%
(+5.27%)
🔴 packages/program/src/instruction-set.ts 72.72%
(+72.72%)
50%
(+50%)
70%
(+70%)
72.72%
(+72.72%)
🔴 packages/program/src/response.ts 50%
(+40.48%)
37.5%
(+37.5%)
60%
(+60%)
50%
(+40.48%)
🔴 packages/program/src/script-request.ts 54.54%
(+50%)
50%
(+50%)
63.63%
(+63.63%)
54.54%
(+50%)
🔴 packages/program/src/utils.ts 66.66%
(+57.14%)
37.5%
(+37.5%)
80%
(+80%)
66.66%
(+57.14%)
🔴 ✨ packages/program/src/contract-factory/contract-factory.ts 30.66%
(+30.66%)
26.56%
(+26.56%)
29.62%
(+29.62%)
29.87%
(+29.87%)
🔴 ✨ packages/program/src/contract-factory/utils.ts 93.33%
(+93.33%)
0%
(+0%)
66.66%
(+66.66%)
88.23%
(+88.23%)
✨ packages/program/src/contract-factory/loader/loader-script.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
✨ packages/program/src/contract-factory/loader/utils.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
🔴 packages/program/src/functions/base-invocation-scope.ts 45.61%
(+45.61%)
26.47%
(+26.47%)
46.8%
(+46.8%)
45.71%
(+45.71%)
🔴 packages/program/src/functions/invocation-scope.ts 44.44%
(+44.44%)
16.66%
(+16.66%)
60%
(+60%)
42.1%
(+42.1%)
🔴 ✨ packages/program/src/script/script-invocation-scope.ts 0%
(+0%)
0%
(+0%)
0%
(+0%)
0%
(+0%)
🔴 ✨ packages/program/src/script/script.ts 65%
(+65%)
75%
(+75%)
50%
(+50%)
65%
(+65%)
🔴 ✨ packages/program/src/script/scripts.ts 33.33%
(+33.33%)
100%
(+100%)
0%
(+0%)
33.33%
(+33.33%)
🔴 ✨ packages/program/src/test-utils/launch-test-node.ts 97.61%
(+97.61%)
97.05%
(+97.05%)
100%
(+100%)
97.67%
(+97.67%)

@Torres-ssf Torres-ssf marked this pull request as ready for review June 10, 2025 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issue is a chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider moving script package into program Consider moving Contract package into Program
2 participants