All Versions
44
Latest Version
Avg Release Cycle
75 days
Latest Release
1160 days ago

Changelog History
Page 3

  • v1.0.0.rc1

    March 31, 2017
  • v1.0.0.beta3 Changes

    March 17, 2017

    βž• Added

    • [Luca Guidi] Introduced Hanami::Model.disconnect to disconnect all the active database connections
  • v1.0.0.beta2 Changes

    March 02, 2017

    βž• Added

    • βœ… [Semyon Pupkov] Allow to define Postgres connection URL as "postgresql:///mydb?host=localhost&port=6433&user=postgres&password=testpasswd"

    πŸ›  Fixed

    • πŸ›  [Marcello Rocha] Fixed migrations MySQL detection of username and password
    • πŸ›  [Luca Guidi] Fixed migrations creation/drop of a MySQL database with a dash in the name
    • [Semyon Pupkov] Ensure db console to work when Postgres connection URL is defined with "postgresql://" scheme
  • v1.0.0.beta1 Changes

    February 14, 2017

    βž• Added

    • πŸ’Ž [Luca Guidi] Official support for Ruby: MRI 2.4
    • [Luca Guidi] Introduced Repository#read to fetch from database with raw SQL string
    • πŸ”§ [Luca Guidi] Introduced Repository.schema to manually configure the schema of a database table. This is useful for legacy databases where Hanami::Model autoinferring doesn't map correctly the schema.
    • πŸ”§ [Luca Guidi & Alfonso Uceda] Added Hanami::Model::Configuration#gateway to configure gateway and the raw connection
    • πŸ”§ [Luca Guidi] Added Hanami::Model::Configuration#logger to configure a logger
    • πŸ–¨ [Luca Guidi] Database operations (including migrations) print informations to standard output

    πŸ›  Fixed

    • [ThorbjΓΈrn Hermansen] Ensure repository to not override given timestamps
    • [Luca Guidi] Raise Hanami::Model::MissingPrimaryKeyError if Repository#find is ran against a database w/o a primary key
    • βœ… [Alfonso Uceda] Ensure SQLite databases to be used on JRuby when the database path is in the same directory of the Ruby script (eg. ./test.sqlite)

    πŸ”„ Changed

    • [Luca Guidi] Automap the main relation in a repository, by removing the need of use .as(:entity)
    • [Luca Guidi] Raise an Hanami::Model::UnknownDatabaseTypeError when the application is loaded and there is an unknown column type in the database
  • v0.7.0 Changes

    November 15, 2016

    βž• Added

    • [Luca Guidi] Hanami::Entity defines an automatic schema for SQL databases – [Luca Guidi] Hanami::Entity attributes schema
    • πŸ‘ [Luca Guidi] Experimental support for One-To-Many association (aka has_many)
    • πŸ‘ [Luca Guidi] Native support for PostgreSQL types like UUID, Array, JSON(B) and Money
    • [Luca Guidi] Repositories instances can access all the relations (eg. BookRepository can access users relation via #users)
    • [Luca Guidi] Automapping for SQL databases
    • πŸ‘€ [Luca Guidi] Added Hanami::Model::DatabaseError

    πŸ”„ Changed

    • [Luca Guidi] Entities are immutable
    • 🚚 [Luca Guidi] Removed support for Memory and File System adapters
    • [Luca Guidi] Removed support for dirty tracking
    • [Luca Guidi] Hanami::Entity.attributes method no longer accepts a list of attributes, but a block to optionally define typed attributes
    • 🚚 [Luca Guidi] Removed #fetch, #execute and #transaction from repository
    • πŸ”§ [Luca Guidi] Removed mapping block from Hanami::Model.configure
    • πŸ”§ [Luca Guidi] Changed adapter signature in Hanami::Model.configure (use adapter :sql, ENV['DATABASE_URL'])
    • [Luca Guidi] Repositories must inherit from Hanami::Repository instead of including it
    • [Luca Guidi] Entities must inherit from Hanami::Entity instead of including it
    • [Pascal Betz] Repositories use instance level interface (eg. BookRepository.new.find instead of BookRepository.find)
    • [Luca Guidi] Repositories now accept hashes for CRUD operations
    • [Luca Guidi] Hanami::Repository#create now accepts: hash (or entity)
    • ⚑️ [Luca Guidi] Hanami::Repository#update now accepts two arguments: primary key (id) and data (or entity)
    • [Luca Guidi] Hanami::Repository#delete now accepts: primary key (id)
    • [Luca Guidi] Drop Hanami::Model::NonPersistedEntityError, Hanami::Model::InvalidMappingError, Hanami::Model::InvalidCommandError, Hanami::Model::InvalidQueryError
    • πŸ’Ž [Luca Guidi] Official support for Ruby 2.3 and JRuby 9.0.5.0
    • πŸ’Ž [Luca Guidi] Drop support for Ruby 2.0, 2.1, 2.2, and JRuby 9.0.0.0
    • πŸ‘ [Luca Guidi] Drop support for mysql gem in favor of mysql2

    πŸ›  Fixed

    • [Luca Guidi] Ensure booleans to be correctly dumped in database
    • 0️⃣ [Luca Guidi] Ensure to respect default database schema values
    • ⚑️ [Luca Guidi] Ensure SQL UPDATE to not override non-default primary key
    • πŸ–¨ [James Hamilton] Print appropriate error message when trying to create a PostgreSQL database that is already existing
  • v0.6.2 Changes

    June 01, 2016

    πŸ”„ Changed

    • [Kjell-Magne Øierud] Ensure inherited entities to expose attributes from base class
  • v0.6.1 Changes

    February 05, 2016

    πŸ”„ Changed

    • [HΓ©lio Costa e Silva & Pascal Betz] Mapping SQL Adapter's errors as Hanami::Model errors
  • v0.6.0 Changes

    January 22, 2016

    πŸ”„ Changed

    • [Luca Guidi] Renamed the project
  • v0.5.2 Changes

    January 19, 2016

    πŸ”„ Changed

    • [Sean Collins] Improved error message for Lotus::Model::Adapters::NoAdapterError

    πŸ›  Fixed

    • [Kyle Chong & Trung LΓͺ] Catch Sequel exceptions and re-raise as Lotus::Model::Error
  • v0.5.1 Changes

    January 12, 2016

    βž• Added

    • [Taylor Finnell] Let Lotus::Model::Configuration#adapter to accept arbitrary options (eg. adapter type: :sql, uri: 'jdbc:...', after_connect: Proc.new { |connection| connection.auto_commit(true) })

    πŸ”„ Changed

    • [Andrey Deryabin] Improved Entity#inspect
    • [Karim Tarek] Introduced Lotus::Model::Error and let all the framework exceptions to inherit from it.

    πŸ›  Fixed

    • [Luca Guidi] Improved error message when trying to use a repository without mapping the corresponding collections
    • [Sean Collins] Improved error message when trying to create database, but it fails (eg. missing createdb executable)
    • [Andrey Deryabin] Improved error message when trying to drop database, but a client is still connected (useful for PostgreSQL)
    • [HiαΊΏu Nguyα»…n] Improved error message when trying to "prepare" database, but it fails