Skip to content

v0.7.6

Compare
Choose a tag to compare
@bmaranville bmaranville released this 06 Aug 16:14
· 33 commits to main since this release

v0.7.6 2024-08-06

Added

  • Full support for reading VLEN datasets (numeric variable-length datasets), fixing #78

    • previously the library made no attempt to read the stored values and returned the raw bytes (corresponding to intermediate[length, data_pointer] pairs)
    • now returns an Array of TypedArray objects containing the stored values (or an Array of Array objects if json_value is requested)
    • vlen_type?: Metadata key added to Metadata interface, and populated with type information about the base type in a VLEN dataset

Changed

  • Retrieve value of boolean dataset as Int8Array instead of plain JS boolean array. To retrieve a plain JS boolean array, use json_value instead:

    // v0.7.5 and earlier
    bool_dset.value; // -> [false, true]
    bool_dset.json_value; // -> [false, true]
    
    // v0.7.6 onwards
    bool_dset.value; // -> Int8Array(2) [0, 1]
    bool_dset.json_value; // -> [false, true]