# @defuse-protocol/internal-utils

Latest version **0.42.0** (published 2026-10-05) · 0 weekly downloads

## Install

```sh
npm install @defuse-protocol/internal-utils
pnpm add @defuse-protocol/internal-utils
yarn add @defuse-protocol/internal-utils
bun add @defuse-protocol/internal-utils
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.42.0 |
| Published | 2026-10-05 |
| First published | 2025-06-18 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 10 |
| Unpacked size | 348.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 17 |
| Maintainers | cawabunga_aurora |

## Links

- npm: https://www.npmjs.com/package/@defuse-protocol/internal-utils
- Repository: https://github.com/defuse-protocol/sdk-monorepo
- Homepage: https://github.com/defuse-protocol/sdk-monorepo/tree/main/packages/internal-utils#readme
- Issues: https://github.com/defuse-protocol/sdk-monorepo/issues
- npm.io page: https://npm.io/package/@defuse-protocol/internal-utils

## Dependencies (10)

- [viem](https://npm.io/package/viem.md) ^2.0.0
- [valibot](https://npm.io/package/valibot.md) ^1.0.0
- [tweetnacl](https://npm.io/package/tweetnacl.md) ^1.0.0
- [@scure/base](https://npm.io/package/@scure/base.md) ^1.0.0
- [near-api-js](https://npm.io/package/near-api-js.md) ^4.0.0 || ^5.0.0
- [@noble/curves](https://npm.io/package/@noble/curves.md) ^1.4.0
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^1.7.1
- [@thames/monads](https://npm.io/package/@thames/monads.md) ^0.7.0
- [@lifeomic/attempt](https://npm.io/package/@lifeomic/attempt.md) ^3.0.0
- [@defuse-protocol/contract-types](https://npm.io/package/@defuse-protocol/contract-types.md) 0.6.4

## Recent versions

- 0.42.0 (latest) — 2026-10-05
- 0.41.0 — 2026-09-18
- 0.40.0 — 2026-09-17
- 0.39.0 — 2026-09-10
- 0.38.0 — 2026-09-08
- 0.37.0 — 2026-08-24
- 0.36.0 — 2026-08-13
- 0.35.2 — 2026-06-25
- 0.35.1 — 2026-06-12
- 0.35.0 — 2026-06-09
- 0.34.1 — 2026-06-05
- 0.34.0 — 2026-05-26
- 0.33.0 — 2026-05-20
- 0.32.0 — 2026-05-14
- 0.31.2 — 2026-05-12
- … 71 more at https://npm.io/package/@defuse-protocol/internal-utils/versions

## README

# Defuse Protocol Monorepo

This is a monorepo for Defuse Protocol packages managed with Turborepo and Changesets.

## Packages

- [@defuse-protocol/intents-sdk](./packages/intents-sdk) - SDK for Near Intents
- [@defuse-protocol/contract-types](./packages/contract-types) - TypeScript type definitions for Defuse Protocol contracts

## Development

### Prerequisites

- [PNPM](https://pnpm.io) (v10.14.0)

### Setup

```bash
# Install dependencies
pnpm install
```

### Build

```bash
# Build all packages
pnpm run build
```

### Development Mode

```bash
# Run all packages in dev mode
pnpm run dev
```

### Lint

```bash
# Lint all packages
pnpm run lint
```

### Format

```bash
# Format all packages
pnpm run format
```

## Release Process

This repository uses [Changesets](https://github.com/changesets/changesets) to manage versions, create changelogs, and publish to npm.

### Creating a changeset

When making changes that should be released, create a changeset:

```bash
pnpm run changeset
```

This will prompt you to:
1. Select the packages you've modified
2. Choose the semver increment (patch, minor, major)
3. Add a description of the changes

The changeset will be committed to your branch as a markdown file in the `.changeset` directory.

### Releasing

Releases are managed through GitHub Actions. To create a release:

1. Make sure all your changesets are merged to main
2. Go to the "Actions" tab in GitHub
3. Select the "Release" workflow
4. Click "Run workflow" 
5. Select "main" branch
6. Click "Run workflow"

This will create a PR that:
- Updates package versions based on changesets
- Updates the CHANGELOG.md files
- Removes the changeset files

Once that PR is merged, the GitHub Action will automatically:
- Build the packages
- Publish to npm

## License

[MIT](LICENSE) © 2025 NEAR Foundation

---
_Source: https://npm.io/package/@defuse-protocol/internal-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
