0.10.x

master (unreleased)

Breaking changes:

Features: - #1668 Exclude nil and empty links. (@sigmike) - #1426 Add ActiveModelSerializers.config.default_includes (@empact)

Fixes: - #1287 Pass fields options from adapter to serializer. (@vasilakisfil) - #1710 Prevent association loading when include_data option is set to false. (@groyoh) - #1747 Improve jsonapi mime type registration for Rails 5 (@remear)

Misc: - #1734 Adds documentation for conditional attribute (@lambda2) - #1685 Replace IncludeTree with IncludeDirective from the jsonapi gem.

v0.10.0 (2016-05-17)

Breaking changes: - #1662 Drop support for Rails 4.0 and Ruby 2.0.0. (@remear)

Features: - #1677 Add assert_schema, assert_request_schema, assert_request_response_schema. (@bf4) - #1697 Include actual exception message with custom exceptions; Test::Schema exceptions are now Minitest::Assertions. (@bf4) - #1699 String/Lambda support for conditional attributes/associations (@mtsmfm) - #1687 Only calculate _cache_digest (in cache_key) when skip_digest is false. (@bf4) - #1647 Restrict usage of serializable_hash options to the ActiveModel::Serialization and ActiveModel::Serializers::JSON interface. (@bf4)

Fixes: - #1700 Support pagination link for Kaminari when no data is returned. (@iamnader) - #1726 Adds polymorphic option to association definition which includes association type/nesting in serializer (@cgmckeever)

Misc: - #1673 Adds “How to” guide on using AMS with POROs (@DrSayre) - #1730 Adds documentation for overriding default serializer based on conditions (@groyoh/@cgmckeever)

v0.10.0.rc5 (2016-04-04)

Breaking changes:

Features: - #1645 Transform keys referenced in values. (@remear) - #1650 Fix serialization scope options scope, scope_name take precedence over serialization_scope in the controller. Fix tests that required tearing down dynamic methods. (@bf4) - #1644 Include adapter name in cache key so that the same serializer can be cached per adapter. (@bf4 via #1346 by @kevintyll) - #1642 Prefer object.cache_key over the generated cache key. (@bf4 via #1346 by @kevintyll) - #1637 Make references to 'ActionController::Base.cache_store' explicit in order to avoid issues when application controllers inherit from 'ActionController::API'. (@ncuesta) - #1633 Yield 'serializer' to serializer association blocks. (@bf4) - #1616 SerializableResource handles no serializer like controller. (@bf4) - #1618 Get collection root key for empty collection from explicit serializer option, when possible. (@bf4) - #1574 Provide key translation. (@remear) - #1494 Make serializers serializalbe (using the Attributes adapter by default). (@bf4) - #1550 Add Rails url_helpers to SerializationContext for use in links. (@remear, @bf4) - #1004 JSON API errors object implementation. - Only implements detail and source as derived from ActiveModel::Error - Provides checklist of remaining questions and remaining parts of the spec. - #1515 Adds support for symbols to the ActiveModel::Serializer.type method. (@groyoh) - #1504 Adds the changes missing from #1454 and add more tests for resource identifier and relationship objects. Fix association block with link returning data: nil.(@groyoh) - #1372 Support cache_store.read_multi. (@LcpMarvel) - #1018 Add more tests and docs for top-level links. (@leandrocp) - #1454 Add support for relationship-level links and meta attributes. (@beauby) - #1340 Add support for resource-level meta. (@beauby)

Fixes: - #1657 Add missing missing require “active_support/json”. (@andreaseger) - #1661 Fixes read_attribute_for_serialization not seeing methods defined in serialization superclass (#1653, #1658, #1660), introduced in #1650. (@bf4) - #1651 Fix deserialization of nil relationships. (@NullVoxPopuli) - #1480 Fix setting of cache_store from Rails configuration. (@bf4) Fix unintentional mutating of value in memory cache store. (@groyoh) - #1622 Fragment cache changed from per-record to per-serializer. Now, two serializers that use the same model may be separately cached. (@lserman) - #1478 Cache store will now be correctly set when serializers are loaded before Rails initializes. (@bf4) - #1570 Fixed pagination issue with last page size. (@bmorrall) - #1516 No longer return a nil href when only adding meta to a relationship link. (@groyoh) - #1458 Preserve the serializer type when fragment caching. (@bdmac) - #1477 Fix fragment_cached? method to check if caching. (@bdmac) - #1501 Adds tests for SerializableResource::use_adapter?,doc typos (@domitian) - #1488 Require ActiveSupport's string inflections (@nate00)

Misc: - #1608 Move SerializableResource to ActiveModelSerializers (@groyoh) - #1602 Add output examples to Adapters docs (@remear) - #1557 Update docs regarding overriding the root key (@Jwan622) - #1471 [Cleanup] Serializer caching is its own concern. (@bf4) - #1482 Document JSON API implementation defs and progress in class. (@bf4) - #1551 Added codebeat badge (@korzonek) - #1527 Refactor fragment cache class. (@groyoh) - #1560 Update rubocop and address its warnings. (@bf4 @groyoh) - #1545 Document how to pass arbitrary options to the serializer (@CodedBeardedSignedTaylor) - #1496 Run all branches against JRuby on CI (@nadavshatz) - #1559 Add a deprecation DSL. (@bf4 @groyoh) - #1543 Add the changes missing from #1535. (@groyoh) - #1535 Move the adapter and adapter folder to active_model_serializers folder and changes the module namespace. (@domitian @bf4) - #1497 Add JRuby-9000 to appveyor.yml(@corainchicago) - #1420 Adds tests and documentation for polymorphism(@marcgarreau)

v0.10.0.rc4 (2016-01-27)

Breaking changes:

Features:

Fixes:

Misc:

v0.10.0.rc3 (2015-09-16)

v0.10.0.rc2 (2015-06-16)

v0.10.0.rc1 (2015-04-22)

v0.10.0-pre

0.09.x

v0.9.3 (2015/01/21 20:29 +00:00)

Features: - #774 Fix nested include attributes (@nhocki) - #771 Make linked resource type names consistent with root names (@sweatypitts) - #696 Explicitly set serializer for associations (@ggordon) - #700 sparse fieldsets (@arenoir) - #768 Adds support for meta and meta_key attribute (@kurko)

v0.9.1 (2014/12/04 11:54 +00:00)

0.9.0.alpha1 - January 7, 2014

0.9.0.pre

0.08.x

v0.8.3 (2014/12/10 14:45 +00:00)

v0.8.2 (2014/09/01 21:00 +00:00)

0.8.1 (May 6, 2013)

0.8.0 (May 5, 2013)

UserSerializer.new(user, only: [:first_name, :last_name]) UserSerializer.new(user, except: :first_name)

0.7.0 (March 6, 2013)

0.6.0 (October 22, 2012)

0.05.x

0.5.2 (June 5, 2012)

0.5.1 (May 23, 2012)

0.5.0 (May 16, 2012)

0.1.0 (December 21, 2011)

First Commit as Rails Serializers 0.0.1

(December 1, 2011).

Prehistory