Skip to content

v0.18.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 22:28
· 41 commits to main since this release
v0.18.0
b840291

Unified v1.0 API Surface

Summary

This release carries the API surface that Lode plans to freeze for v1.0.0: concrete dataset handles, format version 1.2.0, a generic Parquet codec, and checksums that Lode verifies on every read. It also closes a series of audit findings in removal fences, conditional writes, streaming cancellation, and single-process recovery.

Highlights

  • Concrete handles and one write path: Root returns *Records[T] and *Blobs, ReadRoot returns *RecordView[T] and *BlobView, and Blobs.StreamWrite streams an io.Reader and commits in one call. Lode reads standard and flat datasets in formats 1.0.0 and 1.1.0 in place and writes format 1.2.0.
  • Removed and renamed symbols: the pre-v1 interfaces and two-step manifest listings no longer exist, and constructors take shorter names such as Gzip, Zstd, s3.New, and volume.WithRetry. The changelog's 0.18.0 section lists each one, and PUBLIC_API.md describes the migration of a dataset with custom internal names.
  • Verified reads: lode.SHA256, lode.CRC32C, and lode.MD5 record object digests, Read returns ErrChecksumMismatch on a mismatch, and OpenDecompressed streams an object in constant memory and verifies it at io.EOF.
  • Dataset removal: Root.RemoveDataset writes a removal fence with CompareAndSwap and deletes the dataset's objects. A commit that meets the fence returns ErrRemoved and deletes the manifests it may have persisted.
  • Durable filesystem writes: lode.WithSync syncs temporary files and parent directories before Lode publishes them.
  • Recovery and cancellation: commits follow persisted parent links after a lost CAS response, SingleProcess readers follow the target after journal recovery, and a canceled StreamWrite returns an error that matches context.Canceled.

References

Full Changelog: v0.17.1...v0.18.0