Skip to content

Conversation

@petertonysmith94
Copy link
Contributor

Release notes

In this release, we:

  • Consolidated the @fuels-ts/hasher package into @fuels-ts/crypto

Summary

We have consolidated some of our packages to enable a more streamlined DevEx and quicker build times.

Breaking Changes

  • Removed the uint64ToBytesBE method, use bn(value).toBytes(8)
// Before
uint64ToBytesBE(123);
// After
bn(123).toBytes(8)
  • Moved sha256, hash and hashMessage to @fuels-ts/crypto package
// Before
import { sha256, hash, hashMessage } from '@fuels-ts/hasher';
// After
import { sha256, hash, hashMessage } from '@fuels-ts/crypto';

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)

@vercel
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 0:39am
ts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2025 0:39am
ts-docs-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2025 0:39am

@github-actions github-actions bot added the chore Issue is a chore label Jun 4, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jun 4, 2025

Temporary PR

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

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-3907
# pnpm create fuels@pr-3907

NPM

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

Bun

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

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.

3 participants