dart_ipfs_core 1.13.0
dart_ipfs_core: ^1.13.0 copied to clipboard
Stable core primitives for dart_ipfs (CID, multihash, multibase, block, codecs, crypto).
Changelog #
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.13.0 - 2026-09-22 #
Changed #
- Strict DAG-CBOR canonical codec:
DagCborCodecwas rewritten for full spec parity — canonical key ordering (length-first, then bytewise), tag 42 CID links, big integers via tags 2/3, strict tag handling, and-0.0normalization. The newstrictflag (defaulttrue) makesdecodereject non-canonical encodings — duplicate keys, indefinite-length items, non-shortest-form integers, and non-canonical map ordering — matching the go-ipld-cbor strict decoder. Passstrict: falseto decode legacy/non-canonical data. DagJsonCodecupdated for parity with the strict DAG-CBOR codec.
1.12.0 - 2026-09-19 #
Added #
CID.fromContentgainedhashTypeandversionparameters;CID.fromPrefixBytes,CID.validate,CID.computeForData, andCID.computeForDataSyncare now part of the public surface.CID.toPrefixBytessynthesizes the implicit<version=0, codec=dag-pb>header for CIDv0, matching the Bitswap block-prefix format.
1.11.7 - 2026-09-18 #
Fixed #
MultibaseUtilsnow implements RFC 4648 encoding/decoding for base16, base32, and base64 variants directly. It previously delegated those bases to a big-integer base-x codec, which produced non-standard strings and could not decode standard CIDv1 strings such asbafkrei.... Base58btc still uses the base-x codec, which is correct for that base.CID.hashCodenow hashes the multihash bytes by value instead of hashing a freshly allocated byte list by identity, restoring the==/hashCodecontract so equal CIDs work correctly in sets and as map keys.
1.11.6 - 2026-09-05 #
Fixed #
- Fixed 64-bit integer overflow in
DagCborCodecon Flutter-web (JavaScript runtime) by parsing bounds usingBigInt.parse()instead of literal 64-bit integer values (-9223372036854775808/9223372036854775807).
1.11.5 - 2026-07-08 #
Added #
- Initial extraction of
dart_ipfs_corefrom thedart_ipfsumbrella package. - Stable core primitives:
CID,MultibaseUtils,Multicodec,MultihashInfo,MultihashUtils. - Block abstractions:
Block,IBlock,IBlockStore,BlockStoreResult,InMemoryBlockStore. - Common codecs:
IPLDCodec,RawCodec,DagCborCodec,DagJsonCodec. - Cryptographic helpers:
CryptoUtils,EncryptedData,Ed25519Signer,KeyPairExtensions. - Small immutable data structures:
ImmutableBytes,TypedMap.