Zoom v0.18.0 Release Notes

Release Date: 2016-05-31 // about 8 years ago
  • ๐Ÿ“š This release introduces one major feature (optimistic locking!), as well as a few smaller features and documentation improvements.

    ๐Ÿ“š Optimistic locking has finally been implemented :) We use the Redis WATCH command under the hood for a solution that is simple and performs well. There are two functionally similar methods on Transaction: Watch which expects a Model, and WatchKey which expects a Redis key. You can learn more about how it works by reading the examples in the README and the documentation.

    One other small feature that's been introduced is the Exists method on Collection and Transaction which allows you to easily check if a model with a specific key exists. The only way to do this previously was to call Find and check for a ModelNotFoundError.

    ๐Ÿš€ This release is mostly backwards compatible with version 0.17.0. The only exception is that your code may break if you were relying on some methods and types which were removed or unexported (see below).

    Full Changelog

    • Implemented optimistic locking via the new methods Watch and WatchKey.
    • Implemented Collection.Exists and Transaction.Exists for quickly determining whether a model with a specific id exists.
    • ๐Ÿ›  Fixed some small typos in README and doc comments.
    • โœ‚ Removed the Transaction.FindModelsByIdsKey as I believe it is too complicated and unlikely to be used. We can always add it back later.
    • Unexported actionKind, commandAction, and scriptAction as they were never really meant to be exported in the first place.