- Maintenace: #267 Upgrade AWS SDK to V3 (@andrykonchin)
- Maintenace: #268 Drop support of old Ruby and Rails versions (@andrykonchin)
- N/A
- N/A
- N/A
- Feature: #256 Support Rails 5.2 (@andrykonchin)
- Bug: #255 Fix Vagrant RVM configuration and upgrade to Ruby 2.4.1 (@richardhsu)
- N/A
- Feature: #221 Add field declaration option
ofto specify the type ofsetelements (@pratik60) - Feature: #223 Add field declaration option
store_as_stringto storedatetimeas ISO-8601 formatted strings (@william101) - Feature: #228 Add field declaration option
store_as_stringto storedateas ISO-8601 formatted strings (@andrykonchin) - Feature: #229 Support hash argument for
startchain method (@mnussbaumer) - Feature: #236 Change log level from
infotodebugfor benchmark logging (@kicktheken) - Feature: #239 Add methods for low-level updating:
.update,.update_fieldsand.upsert(@andrykonchin) - Feature: #243 Support
necondition operator (@andrykonchin) - Feature: #246 Added support of backoff in batch operations (@andrykonchin)
- added global config options
backoffandbackoff_strategiesto configure backoff - added
constantandexponentialbuilt-in backoff strategies .find_alland.importsupport new backoff options
- added global config options
- Bug: #216 Fix global index detection in queries with conditions other than equal (@andrykonchin)
- Bug: #224 Fix how
containsoperator works withsetandarrayfield types (@andrykonchin) - Bug: #225 Fix equal conditions for
arrayfields (@andrykonchin) - Bug: #229 Repair support
startchain method on Scan operation (@mnussbaumer) - Bug: #238 Fix default value of
models_dirconfig option (@baloran) - Bug: #244 Allow to pass empty strings and sets to
.import(@andrykonchin) - Bug: #246 Batch operations (
batch_write_itemandbatch_read_item) handle unprocessed items themselves (@andrykonchin) - Bug: #250 Update outdated warning message about inefficient query and missing indices (@andrykonchin)
- Bug: 252 Don't loose nanoseconds when store DateTime as float number
Breaking changes in this release generally bring Dynamoid behavior closer to the Rails-way.
- Change: #186 Consistent behavior for
Model.where({}).all(@andrykonchin)- <= 1.3.x behaviour -
- load lazily if user specified batch size
- load all collection into memory otherwise
- New behaviour -
- always return lazy evaluated collection
- It means Model.where({}).all returns Enumerator instead of Array.
- If you need Array interface you have to convert collection to Array manually with to_a method call
- <= 1.3.x behaviour -
- Change: #195 Failed
#findreturns error (@andrykonchin)- <= 1.3.x behaviour - find returns nil or smaller array.
- New behaviour - it raises RecordNotFound if one or more records can not be found for the requested ids
- Change: #196 Return value of
#save(@andrykonchin)- <= 1.3.x behaviour - save returns self if model is saved successfully
- New behaviour - it returns true
- Feature: #185
where, finders and friends take into account STI (single table inheritance) now (@andrykonchin)- query will return items of the model class and all subclasses
- Feature: #190 Allow passing options to range when defining attributes of the document (@richardhsu)
- Allows for serialized fields and passing the serializer option.
- Feature: #198 Enhanced
#createand#create!to allow multiple document creation like#import(@andrykonchin)User.create([{name: 'Josh'}, {name: 'Nick'}])
- Feature: #199 Added
Document.importmethod (@andrykonchin) - Feature: #205 Use batch deletion via
batch_write_itemfordelete_all(@andrykonchin) - Rename: #205
Chain#destroy_allasChain#delete_all, to better match Rails conventions when no callbacks are run (@andrykonchin)- kept the old name as an alias, for backwards compatibility
- Feature: #207 Added slicing by 25 requests in #batch_write_item (@andrykonchin)
- Feature: #211 Improved Vagrant setup for testing (@richardhsu)
- Feature: #212 Add foreign_key option (@andrykonchin)
- Feature: #213 Support Boolean raw type (@andrykonchin)
- Improved Documentation (@pboling, @andrykonchin)
- Bug: #191, #192 Support lambdas as fix for value types were not able to be used as default values (@andrykonchin)(@richardhsu)
- Bug: #202 Fix several issues with associations (@andrykonchin)
- setting
nilvalue raises an exception - document doesn't keep assigned model and loads it from the storage
- delete call doesn't update cached ids of associated models
- fix clearing old
has_manyassociation while add model to newhas_manyassociation
- setting
- Bug: #204 Fixed issue where
Document.where(:"id.in" => [])would doQueryoperation instead ofScan(@andrykonchin)- Fixed
Chain#key_present?
- Fixed
- Bug: #205 Fixed
delete_all(@andrykonchin)- Fixed exception when makes scan and sort key is declared in model
- Fixed exception when makes scan and any condition is specified in where clause (like Document.where().delete_all)
- Fixed exception when makes query and sort key isn't declared in model
- Bug: #207 Fixed
#deletemethod for caseadapter.delete(table_name, [1, 2, 3], range_key: 1)(@andrykonchin)
- Added
Chain#lastmethod (@andrykonchin) - Added
datefield type (@andrykonchin) - Added
application_timezoneconfig option (@andrykonchin) - Allow consistent reading for Scan request (@andrykonchin)
- Use Query instead of Scan if there are no conditions for sort (range) key in where clause (@andrykonchin)
- Support condition operators for non-key fields for Query request (@andrykonchin)
- Support condition operators for Scan request (@andrykonchin)
- Support additional operators
in,contains,not_contains(@andrykonchin) - Support type casting in
whereclause (@andrykonchin) - Rename
Chain#eval_limitto#record_limit(@richardhsu) - Add
Chain#scan_limit(@richardhsu) - Support batch loading for Query requests (@richardhsu)
- Support querying Global/Local Secondary Indices in
whereclause (@richardhsu) - Only query on GSI if projects all attributes in
whereclause (@richardhsu)
- Fix incorrect applying of default field value (#36 and #117, @andrykonchin)
- Fix sync table creation/deletion (#160, @mirokuxy)
- Allow to override document timestamps (@andrykonchin)
- Fix storing empty array as nil (#8, @andrykonchin)
- Fix
limithandling for Query requests (#85, @richardhsu) - Fix
limithandling for Scan requests (#85, @richardhsu) - Fix paginating for Query requests (@richardhsu)
- Fix paginating for Scan requests (@richardhsu)
- Fix
batch_get_itemmethod call for integer partition key (@mudasirraza)
- Allow configuration of the Dynamoid models directory, as not everyone keeps non AR models in app/models
- Dynamoid::Config.models_dir = "app/whatever"
- Fix migrations by stopping the loading of all rails models outside the rails env.
- Implements #135
- dump values for :integer, :string, :boolean fields passed to where query
- e.g. You can search for booleans with any of:
[true, false, "t", "f", "true", "false"]
- e.g. You can search for booleans with any of:
- dump values for :integer, :string, :boolean fields passed to where query
- Adds support for Rails 5 without warnings.
- Adds rake tasks for working with a DynamoDB database:
- rake dynamoid:create_tables
- rake dynamoid:ping
- Automatically requires the Railtie when in Rails (which loads the rake tasks)
- Prevent duplicate entries in Dynamoid.included_models
- Added wwtd and appraisal to spec suite for easier verification of the compatibility matrix
- Support is now officially Ruby 2.0+, (including JRuby 9000) and Rails 4.0+
- Fixed specs (@AlexNisnevich & @pboling)
- Fix
blank?andpresent?behavior for single associations (#110, @AlexNisnevich & @bayesimpact) - Support BatchGet for more than 100 items (#80, @getninjas)
- Add ability to specify connection settings specific to Dynamoid (#116, @NielsKSchjoedt)
- Adds Support for Rails 5! (#109, @gastzars)
- Table Namespace Fix (#79, @alexperto)
- Improve Testing Docs (#103, @tadast)
- Query All Items by Looping (#102, @richardhsu)
- Store document in DocumentNotValid error for easier debugging (#98, holyketzer)
- Better support for raw datatype (#104, @OpenGov)
- Fix associative tables with non-id primary keys (#86, @everett-wetchler)
- Remove accidental Gemfile.lock; fix .gitignore (#95, @pboling)
- Allow options to put_items (#95, @alexperto)
- Support range key in secondary index queries (#95, @pboling)
- Better handling of options generally (#95, @pboling)
- Support for batch_delete_item API (#95, @pboling)
- Support for batch_write_item API (#95, @alexperto)
- Add create_table_syncronously, and sync: option to regular create_table (@pboling)
- make required for tables created with secondary indexes
- Expose and fix truncate method on adapter (#52, @pcorpet)
- Enable saving without updating timestamps (#58, @cignoir)
- Fix projected attributes by checking for :include (#56, @yoshida_tetsuhiro)
- Make behavior of association where method closer to AR by cloning instead of modifying (#51, @pcorpet)
- Add boolean field presence validator (#50, @pcorpet)
- Add association build method (#49, @pcorpet)
- Fix association create method (#47, #48, @pcorpet)
- Support range_between (#42, @ayemos)
- Fix problems with range query (#42, @ayemos)
- Don't prefix table names when namespace is nil (#40, @brenden)
- Added basic secondary index support (#34, @sumocoder)
- Fix query attribute behavior for booleans (#35, @amirmanji)
- Ignore unknown fields on model initialize (PR #33, @sumocoder)
- Added support for optimistic locking on delete (PR #29, @sumocoder)
- upgrade concurrent-ruby requirement to 1.0 (PR #31, @keithmgould)
- Add support for AWS SDK v2.
- Add support for custom class type for fields.
- Remove partitioning support.
- Remove support for Dynamoid's (pseudo)indexes, now that DynamoDB offers local and global indexes.
- Rename :float field type to :number.
- Rename Chain#limit to Chain#eval_limit.
Housekeeping:
- Switch from
fake_dynamofor unit tests to DynamoDBLocal. This is the new authoritative implementation of DynamoDB for testing, and it supports AWS SDK v2. - Use Travis CI to auto-run unit tests on multiple Rubies.
- Randomize spec order.