Releases: cerebris/jsonapi-resources
v0.10.0.beta8 - Performance improvements and a new warning
This release has reduced the number of memory allocations in a request, which results in faster responses and significantly fewer calls to the garbage collector.
A new warning has been added if find_fragments
detects that the results returned are not normalized. This can happen if the records
method was overridden and joins in a to_many relationship. This warning can be disabled with the warn_on_performance_issues
configuration setting.
v0.10.0.beta7 - Fix issues with resource definition order and initializers
Fix issues with resource definition order and initializers
v0.10.0.beta6 - Bug and performance fixes
This release fixes the following issues:
-
Using the Rails url_helpers resulted in a significant performance penalty. The functionality has been reverted back to generating links by string buildup. An alternate method of detecting unrouted resources was added so warnings about missing links are preserved.
-
An issue where deleting a relationship destroys the related resource, without checking dependency. #1260
In addition a configuration option, default_exclude_links
, was added to globally control link generation.
v0.9.10 - Fix deleting relationship destroys related resource without checking dependency
This release fixes an issue where deleting a relationship destroys the related resource, without checking dependency. This issue was introduced in v0.9.3
Fixes issue #1260
v0.9.9 - Fix performance issues, default_exclude_links configuration option
Using the Rails url_helpers
resulted in a significant performance penalty. The functionality has been reverted back to generating links by string buildup. An alternate method of detecting unrouted resources was added so warnings about missing links are preserved.
A configuration option, default_exclude_links
, was added to globally control link generation.
v0.10.0.beta5 - Fix issue with route helper method name collisions
Bug Fixes
- Fixes an issue where relationship route helper names were not always unique.
v0.9.8 - Fix issue with route helper method name collisions
Bug Fixes
- Fixes an issue where relationship route helper names were not always unique.
Improvements
- Unscopes includes when generating linkage, resulting in less expensive queries.
- Does not call
records.includes
if there are no inclusions. Prevents breaking custom relationships.
v0.10.0.beta4 - Route based links and singleton resources
Features
- Links are now generated using the routes. Warnings are emitted if the route helper is not found.
- Resource and relationship links can be excluded
- Singleton resources now need to be declared. This allows the correct routing to be enforced and provides a way to resolve the correct id based on the context.
Other changes
- some internal cleanup of naming around Show Relationship operations. Should be transparent unless these methods are patched in your project
Warning: Possible breaking changes
- This release ensures that links are generated from the routes. Previously it was possible for the system to create links that did not actually have a route. If routes are missing a warning will now be output.
- Singleton resources must be declared
v0.9.7 - Route based links and singleton resources
Features
- Links are now generated using the routes. Warnings are emitted if the route helper is not found.
- Resource and relationship links can be excluded
- Singleton resources now need to be declared. This allows the correct routing to be enforced and provides a way to resolve the correct id based on the context.
Other changes
- some internal cleanup of naming around Show Relationship operations. Should be transparent unless these methods are patched in your project
Warning: Possible breaking changes
- This release ensures that links are generated from the routes. Previously it was possible for the system to create links that did not actually have a route. If routes are missing a warning will now be output.
- Singleton resources must be declared
v0.9.6 - create and update polymorphic has many relationship data, bug fixes
Adds support for creating and updating has_many
polymorphic relationship data.
Bug fixes:
- Record count will now use the same options as the main data
- now uses
records_for_
for has_many linkage