Skip to content

Never Feel Empty Using Bodega Again

Compare
Choose a tag to compare
@mergesort mergesort released this 17 Oct 04:05
· 36 commits to main since this release

This release includes a small fix to the SQLiteStorageEngine.

Previously this code would throw an error.

let noItems = [] // You can imagine some computation that ends up with an empty array rather than setting [] directly
storageEngine.write(noItems)

Now it will not throw an error, instead the write function will return early and act as a no-op, more accurately matching a user's expectations.