PackageTrack
Sign in Get early access

bcs_dart

Binary Canonical Serialization (BCS) for Dart: encode/decode BCS bytes for Sui and Move types (structs, enums, vectors, options).

0.2.1 jovinlidan/bcs-dart

What this package is like to depend on

Last release 1 months ago

08 Jul 2026

Release timing varies

gaps range from 8 days to 10 months

Nearly every release is documented

notes for 3 of 3 stable releases

Nothing withdrawn

no release was ever pulled

11 months old

3 releases · first in 2025

3 releases in the last 12 months

see the full history below

Release timeline

3 releases · Sep 2025 to Jul 2026
2026
Release Pre-release

Releases

latest 3
  1. 0.2.1 08 Jul 2026
    Release notes

    Added

    • Example at example/bcs_dart_example.dart.

    Changed

    • Expanded the package description and corrected the repository URL.
    • Formatting and static-analysis cleanup across the package (no API changes).
    Open source →
  2. 0.2.0 30 Jun 2026
    Release notes

    Synced to f898c13.

    Behavior changes

    • Bcs.map now sorts entries by their serialized key bytes before writing, for canonical key ordering. Maps that were not already in canonical key order now produce different (correct) bytes.
    • Hex.decode (and fromHEX) now reject non-hex input (sign characters, whitespace, other non-[0-9a-fA-F] characters) with a FormatException instead of silently producing corrupt bytes.

    Fixes

    • BcsWriter.ensureSizeOrGrow grows the buffer to fit a single write larger than allocateSize instead of throwing.
    • ulebDecode throws on a truncated buffer (continuation bit with no more bytes) and on values exceeding MAX_SAFE_INTEGER.
    • Bcs.enumeration read bounds-checks the variant index and throws a descriptive error for an unknown variant.

    Added

    • Top-level compareBcsBytes (lexicographic byte comparison).
    • Bcs.byteVector() — a fast vector<u8> that reads/writes raw bytes (same wire bytes as vector(u8())).
    • BcsWriter.writeBytes(Uint8List) bulk write.
    • Top-level isSerializedBcs(Object?) type guard; bcs_type.dart is now re-exported from the bcs.dart barrel.
    • BcsType.transform accepts one-directional transforms (input/output are now optional).
    Open source →
  3. 0.1.2 12 Sep 2025
    Release notes
    • Fix: remove flutter dependency
    • Refactor: minor
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive