All Versions
44
Latest Version
Avg Release Cycle
75 days
Latest Release
1041 days ago
Changelog History
Page 3
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
- [Luca Guidi] Introduced
-
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
- β
[Semyon Pupkov] Allow to define Postgres connection URL as
-
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
ifRepository#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 accessusers
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 fromHanami::Model.configure
- π§ [Luca Guidi] Changed
adapter
signature inHanami::Model.configure
(useadapter :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 ofBookRepository.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 ofmysql2
π 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
- [Luca Guidi]
-
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
- [HΓ©lio Costa e Silva & Pascal Betz] Mapping SQL Adapter's errors as
-
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
- [Sean Collins] Improved error message for
-
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
- [Taylor Finnell] Let