Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Latest commit

 

History

History
183 lines (96 loc) · 7.63 KB

CHANGELOG.md

File metadata and controls

183 lines (96 loc) · 7.63 KB

@tbdex/protocol

2.2.1

Patch Changes

2.2.0

Minor Changes

2.1.0

Minor Changes

Patch Changes

2.0.0

Major Changes

  • #263 c673b00 Thanks @thehenrytsai! - Updated HTTP request body to contain message property according to spec change.

  • #265 e692ea2 Thanks @leordev! - Updated code and tests to align with latest tbDEX spec (commit 621f54f of tbdex repo)

Patch Changes

1.1.0

Patch Changes

  • #254 ffcbb32 Thanks @nitro-neal! - bumped to latest version of @web5/credentials @web5/crypto @web5/common and @web5/dids

1.0.2

1.0.1

Patch Changes

1.0.0

Major Changes

0.28.0

Minor Changes

  • #226 65439c2 Thanks @kirahsapong! - Add new Balance Resource type and associated server endpoint, config, and client calling methods

    Update Offering Resource and RFQ Message type to accept new simplified fields.

    Add detachable privateData field to RFQ Message type and hash data into data field

    Add optional success field to Close message

  • #227 90ee330 Thanks @kirahsapong! - Bumps Web5 packages

0.27.0

Minor Changes

0.26.1

Patch Changes

  • 5e9a7a2: Add external id to message metadata

0.26.0

Minor Changes

Patch Changes

  • 589edc3: Add exchange state machine

0.25.0

Minor Changes

  • 1b48ad1: Simplify types, inheritance structure, and API

Patch Changes

  • 552675c: Upgrade @noble/hashes to 1.3.3

0.24.0

Minor Changes

  • c471b3d: Upgrading web5 versions in protocol and http-client

Patch Changes

  • 550fe94: Replaces karma testing library with web-test-runner

0.23.0

Patch Changes

  • a7bc582: make required claims nullable
  • 5631d32: Replace pex implementation with web5
  • c3610ed: Adds more checks to validate an RFQ against a provided Offering

0.22.1

Patch Changes

  • 2f4c096: bump @web5/credentials dependency

0.22.0

Minor Changes

  • bef3ae7: Refactored sign to take PortableDid as an argument instead of privateKeyJwk and kid

0.21.0

Minor Changes

  • 415b234: - Added requester DID in filter passed to ExchangesApi.getExchanges. Prior to this change, there was no way to prevent returning exchanges that the requester wasn't a participant of
    • Added did:dht resolution
    • Fixed DevTools.createJwt

0.20.0

No changes

0.19.0

No changes

0.18.0

0.17.0

Minor Changes

  • 547124f: Test CI semver automation

0.16.0

Replaced CBOR with JSON Canonicalization Scheme

Using CBOR for deterministic serialization proved to be more difficult than originally anticipated specifically because of the lack of consistent implementations of the same CBOR sorting algorithm.

Related: TBD54566975/tbdex#177


Refactored Crypto:

  • Prior to this PR, sign allowed for either detachedPayload as a base64url string or payload as an object. If detachedPayload was provided, the resulting signature would be a detached JWS. If payload was provided, it would be JSON serialized and base64url encoded. Looking back, this felt awkward and confusing. Refactored such that payload is always expected to be a UInt8Array and detached is now a boolean.
  • Refactored verify similar to ^
  • Added a bit more detail to TSDoc

Generally speaking, Crypto.sign, and Crypto.verify still feel conflated and a bit janky. This is largely because they support tbdex signatures (compact detached JWS) in addition to JWTs. Ideally, Crypto would be specific to tbdex related cryptography only with most of the core cryptographic functionality coming from @web5/crypto. The current state of both methods is largely a holdover until @web5/crypto is updated