multiformats 1.1.0 copy "multiformats: ^1.1.0" to clipboard
multiformats: ^1.1.0 copied to clipboard

Core library for parsing IPFS-related things. This package is mainly used by https://atprotodart.com packages.

Release Note #

1.1.0 #

  • fix: the dag-pb multicodec was wrong (0x55, which is actually raw). Added correct raw(0x55), dagPb2(0x70) and dagCbor(0x71) entries and fixed isDagPb/format checks so atproto blob CIDs are classified correctly and real dag-pb is no longer rejected.
  • chore: deprecated the incorrect dagPb/dabCbor enum values (kept for a deprecation cycle).
  • feat: added CID.createFromBytes (binary overload) and a single-decode parse.
  • feat: CID.fromJson now accepts the atproto {"$link": <cid>} shape in addition to the DAG-JSON {"/": <cid>} shape, so atproto JSON round-trips (toJson still emits /). A missing/non-string value now throws a typed InvalidCidError instead of a TypeError.
  • perf: cache normalized bytes and hashCode instead of recomputing on every access.

1.0.3 #

  • fix: CID == now returns false for different-length or non-CID operands instead of throwing a RangeError/TypeError.

1.0.2 #

  • Fix SDK constraint to '">=3.8.0 <4.0.0"'.

1.0.1 #

  • chore: optimized docs.

1.0.0 #

  • Bump SDK constraint to '^3.8.0'.

0.2.3 #

  • Bump SDK constraint to '^3.3.0'.

0.2.2 #

  • Very minor change. (#1112)

0.2.1 #

  • Improved documents. (#677)

0.2.0 #

  • Drop support for null unsafe Dart, bump SDK constraint to '^3.0.0'. (#599)
  • Dart3 modifier applied.

0.1.4 #

  • Added homepage in pubspec.yaml. (#549)

0.1.3 #

  • Improved generation of CID hash codes, allowing CID objects to be specified as keys for Maps, etc. (#490)

0.1.2 #

  • Supported dag-cbor. (#484)

0.1.1 #

  • Fixed a bug in CID. (#482)

0.1.0 #

  • Added CID.create factory. Now you can create CID from specific text. (#477)
  • Added validation in CID.parse factory. (#479)

0.0.1 #

  • First Release.
2
likes
0
points
4.79k
downloads

Publisher

verified publisheratprotodart.com

Weekly Downloads

Core library for parsing IPFS-related things. This package is mainly used by https://atprotodart.com packages.

Homepage
Repository (GitHub)
View/report issues

Topics

#ipfs #atproto #bluesky #cid

Funding

Consider supporting this project:

github.com

License

unknown (license)

Dependencies

base_codecs, crypto, dart_multihash

More

Packages that depend on multiformats