CHANGELOG-0-10.md
Breaking changes:
Features:
Fixes:
Misc:
Fixes:
Misc:
include option in adapters. (@charlie-wasp)Breaking changes:
Features:
['>= 0.1.1.beta1', '< 0.2']
(@jaredbeck)Fixes:
Misc:
Misc:
Fixes:
Features:
namespace render optionjsonapi_namespace_separator config option.jsonapi_pagination_links_enabled configuration option (@richmolj)Fixes:
Misc:
#1767 Replace raising/rescuing CollectionSerializer::NoSerializerError,
throw/catch :no_serializer. (@bf4)
#1839 fields tests demonstrating usage for both attributes and relationships. (@NullVoxPopuli)
#1812 add a code of conduct (@corainchicago)
#1878 Cache key generation for serializers now uses ActiveSupport::Cache.expand_cache_key instead of Array#join by default and is also overridable. This change should be backward-compatible. (@markiz)
#1799 Add documentation for setting the adapter. (@cassidycodes)
#1909 Add documentation for relationship links. (@vasilakisfil, @NullVoxPopuli)
#1959 Add documentation for root. (@shunsuke227ono)
#1967 Improve type method documentation. (@yukideluxe)
Fixes:
Misc:
fields option. (@luizkowalski)Features:
Fixes:
render helper method.
Added Grape collection tests. (@onomated)fields options from adapter to serializer. (@vasilakisfil)include_data option
is set to false. (@groyoh)Misc:
IncludeTree with IncludeDirective from the jsonapi gem.Breaking changes:
Features:
assert_schema, assert_request_schema, assert_request_response_schema. (@bf4)Test::Schema exceptions are now Minitest::Assertions. (@bf4)_cache_digest (in cache_key) when skip_digest is false. (@bf4)serializable_hash options
to the ActiveModel::Serialization and ActiveModel::Serializers::JSON interface. (@bf4)Fixes:
Misc:
Breaking changes:
Features:
scope, scope_name
take precedence over serialization_scope in the controller.
Fix tests that required tearing down dynamic methods. (@bf4)SerializationContext for use in links. (@remear, @bf4)detail and source as derived from ActiveModel::ErrorActiveModel::Serializer.type method. (@groyoh)data: nil.(@groyoh)Fixes:
read_attribute_for_serialization not
seeing methods defined in serialization superclass (#1653, #1658, #1660), introduced in #1650. (@bf4)fragment_cached?
method to check if caching. (@bdmac)Misc:
Breaking changes:
Base because it's a Rails-ism.Features:
assert_response_schema test helper (@maurogeorge)assert_serializer test helper (@maurogeorge)has_many :titles do customers.pluck(:title) end (in #1356) to
has_many :titles do object.customers.pluck(:title) endattribute :title do 'Mr. Topum Hat' endhas_many :titles do customers.pluck(:title) end
virtual_value.
e.g. has_many :reviews, virtual_value: [{ id: 1 }, { id: 2 }]type directive for serializer to control type field with json-api adapter (@youroff)include option (@beauby)include option (@NullVoxPopuli, @beauby).serializer_lookup_enabled that,
when disabled, requires serializers to explicitly specified. (@trek)Fixes:
fields option to restrict relationships as well (@beauby)Misc:
.new (@bf4)add_links in JSONAPI adapter. (@beauby)include option (@beauby)
include option to JsonApi adapterwith_adapter + force cache clear before each test. (@beauby)id and json_api_type methods from Serializer to JsonApi. (@beauby)embed option. (@beauby)pagination links at top level of JsonApi adapterdef_serializer (@JustinAiken)each_association (@mateomurphy)has_one attribute for backwards compatibilitytest_include_multiple_posts_and_linked (@donbobka)ActiveModel::Serializer to ActiveModelSerializers: