Skip to content

v2.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Oct 12:50

Changed

  • Minimum Dart SDK is now 3.13.0 (was 3.10.0). The refreshed dependency set pulls in packages that require Dart 3.11–3.13 (web, xml, idb_shim, synchronized, test, build_runner, very_good_analysis). This drops support for consumers on Dart 3.10–3.12, so the next release must ship as 2.0.0.
  • Umbrella dependencies updated to their latest releases: uuid 4.6.0, web 1.1.2, protobuf 6.1.0, async 2.13.1, idb_shim 2.10.1+1, archive 4.5.2, cbor 6.5.1, shelf_router 1.1.5, intl 0.20.3, markdown 7.3.1, synchronized 3.5.0, multicast_dns 0.3.3+1, cipherlib 0.7.2, jose 0.3.5+2, mime 2.1.0, args 2.7.0, yaml 3.1.4, meta 1.19.0, shelf 1.4.3, grpc 5.2.0, dart_lz4 1.4.0, get_it 9.3.0, test 1.33.0, coverage 1.16.0, mockito 5.8.1, fake_async 1.3.3. build_runner stays on 2.16.2 — 2.17.1 requires build 5.x, which mockito 5.8.1 does not yet allow.
  • Satellite packages refreshed: dart_ipfs_core (1.14.0) tracks cbor 6.5.1 / meta 1.19.0 and accepts very_good_analysis 11; dart_ipfs_quic (0.3.0) tracks ipfs_libp2p 0.5.11, dart_ipfs_core 1.14.0, collection 1.19.1, meta 1.19.0, logging 1.3.0, uuid 4.6.0, test 1.33.0, lints 6.1.0; flutter_ipfs now requires Flutter 3.47+ (the first stable release line bundling Dart 3.13) and tracks flutter_lints 6.0.0 / meta 1.19.0.
  • Helia interop harness refreshed: helia 5.5.1, libp2p 2.10.0, @helia/car 4.2.0, @helia/bitswap 2.2.0, @helia/strings 4.1.0, @helia/json 4.0.7, express 5.3.0, @ipld/car 5.4.7, @libp2p/pnet 2.0.47, @chainsafe/libp2p-noise 15.1.2, plus the @libp2p/kad-dht 16.4.9 and @libp2p/peer-store 12.0.32 overrides. The harness deliberately stays on the libp2p 2.x line: @chainsafe/libp2p-gossipsub has not shipped a release for libp2p 3, and the Dart side speaks the libp2p 2.x wire format.
  • Interop harness npm audit findings drop from 7 to 4: the body-parser, follow-redirects, and undici advisories are fixed by the refreshed lockfile (body-parser 2.4.0, follow-redirects 1.16.1, undici 6.29.1). The remaining 4 all stem from the unpatched node-forge advisory, which is only reachable by moving to helia 7 / libp2p 3 — blocked by the gossipsub constraint above.

Fixed

  • dag/export of an identity-CID root no longer fails. An identity CID carries its content inline, so it must never appear in a CAR data section. The export path skipped the root as intended but then failed while closing the archive, because the writer requires every root to be written as a section — the request returned an error instead of the header-only CAR the code documents. The archive is now built with CarWriter.headerOnlyCar, matching the gateway's identity-root behaviour.
  • Changed-line coverage gate, directive continuations. A multi-line export ... show ... in the umbrella barrel file was counted as uncovered executable code, because only the first line of the directive looked like a directive. The gate now recognises show/hide clauses as directive continuations.

Security

  • xml security override raised from ^7.0.1 to ^7.1.0.
  • dart_ipfs_quic now carries the umbrella's dart_udx ^2.0.3 security override. Its ipfs_libp2p dependency still allows the older dart_udx releases, so the published satellite previously resolved the vulnerable version instead of the pinned one.
  • xml now reaches consumers. The xml pin used to live only in dependency_overrides, so pub.dev consumers kept resolving the older xml 6.x line — and declaring xml directly was not possible, because upstream port_forwarder constrains xml to ^6.5.0 and the two constraints cannot both be satisfied (that is what made the 1.11.6 release unresolvable; 1.11.7 reverted it). The UPnP / NAT-PCP / NAT-PMP port-forwarding implementation is now vendored into lib/src/vendor/port_forwarder (MIT, upstream v1.0.0), which removes the conflicting constraint. xml ^7.1.0 is a direct dependency, and the xml override is gone.