rethinkdb-orm v2.4.2 Release Notes

Release Date: 2020-02-19 // about 4 years ago
  • πŸ”„ Changelog

    βž• Added

    • πŸ— build(connection): add RETHINKDB_DB as a env var for connection
    • 🐳 ci(travis): dockerised rethinkdb
    • feat(changefeed) add raw changefeeds
    • feat(changefeed): Changefeed::Event::Deleted events include destroy…
    • feat(error): Error::DocumentInvalid#inspect_errors
    • feat(queries): #raw_query
    • feat(queries): expose raw query handle under table namespace
    • feat(timestamps): timestamps module
    • πŸ‘Œ improvement(associations): allow a foreign key in belongs_to association
    • improvement(associations): allow naming of belongs_to and has_one associations
    • πŸ‘Œ improvement(connection): db, user, and password configuration through environment
    • πŸ‘Œ improvement(queries): count accepts a predicate
    • πŸ‘Œ improvement(unique): pass several fields to ensure_unique through scope
    • βœ… test(queries): add #get_all by index spec
    • βœ… test(queries): spec find!, #find_all
    • βœ… test: fix test teardown

    πŸ”„ Changed

    • ⚑️ build(rethinkdb): update crystal-rethinkdb, remove deprecated methods
    • πŸ— build(shard): use crystal-ameba
    • πŸ“Œ chore(crystal-rethinkdb): pin crystal-rethinkdb v0.1.10
    • πŸ‘Œ improvement(changefeed): apply updates to old model in update event using assign_any
    • improvement(connection): defaults from env; host from RETHINKDB_HOST, port from RETHINKDB_PORT
    • πŸ‘Œ improvement(persistence): allow unchanged response in updates
    • πŸ‘Œ improvement(unique): change scoped validations to a where query
    • improvment(connection): mutex on resource creation
    • πŸ”¨ refactor(persistence): rename #reload -> #reload!

    πŸ›  Fixed

    • πŸ›  fix(associations): fix association method naming
    • πŸ›  fix(associations): fix foreign_key in AssociationCollection
    • πŸ›  fix(associations): Associations#parent returns nil for parent of unpersisted documents
    • πŸ›  fix(changefeed): stop iteration on changefeed abort
    • πŸ›  fix(persistence): Persistence#clear no longer drops the table
    • πŸ›  fix(persistence): treat empty id values as a new object
    • πŸ›  fix(queries): fix Query#where query attribute merge
    • πŸ’… style(queries): remove commented out code
    • πŸ’… style(readme|timestamps): fix module requirements, typo in README