Skip to content

Version Packages#19

Merged
AtelyPham merged 1 commit into
mainfrom
changeset-release/main
Jul 1, 2026
Merged

Version Packages#19
AtelyPham merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@tangle-network/agent-core@0.4.1

Patch Changes

  • 077b3d4: fix(auth): make the token module browser-import-safe

    The auth token module referenced Buffer at module-eval time (top-level
    JWT_HEADER / JWT_HEADER_EDDSA = base64UrlEncode(...)) and statically
    imported node:crypto. Because the package root re-exports this module,
    any browser bundle that transitively imports @tangle-network/agent-core
    (e.g. via @tangle-network/sdk-telemetry) boot-crashed with
    ReferenceError: Buffer is not defined.

    • base64url encode/decode is now isomorphic (btoa/atob + TextEncoder/
      TextDecoder), never Buffer
    • the HS256 and EdDSA JWT headers are computed lazily on first use, not at
      module load
    • HMAC/Ed25519 signing, verification, and key generation resolve node:crypto
      on demand via process.getBuiltinModule (server-only), so merely importing
      the module never pulls the builtin into a browser graph

    Token wire format is unchanged — already-issued tokens still verify.

@AtelyPham AtelyPham merged commit e6e9ada into main Jul 1, 2026
1 check passed
@AtelyPham AtelyPham deleted the changeset-release/main branch July 1, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant