Install
Works with Drupal: 8.xUsing Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This is the second release in the 2.x beta cycle. It contains two major performance improvements over the 1.x and 2.0-beta1 releases. It contains one potentially breaking change.
To learn much more about what the 2.x version includes, see the beta1 release notes.
Many thanks to all the new and returning contributors who have helped craft this release! It's been fantastic to see everyone's enthusiasm trending ever upward :)
We hope you love JSON API as much as we do. Please consider filing an "experience report" in the issue queue to tell us how you're using it or what you've built with it, especially your successes!
Performance improvements:
- #2997600: Resolve included resources prior to normalization
- #2929428: [>=8.5] Convert "throw new *HttpException" into "throw new Cacheable*HttpException" where possible
Breaking changes:
Contributors (12)
gabesullice, Wim Leers, garphy, e0ipso, caseylau, btully, mglaman, steven.wichers, omkar06, haihoi2, dawehner, axle_foley00
Changelog
Issues: 19 issues resolved.
Changes since 8.x-2.0-beta1:
Bug
- #2984886 by Wim Leers, gabesullice, e0ipso: Trigger route rebuild when new bundles/fields are added/removed
- #2996000 by gabesullice, Wim Leers: Deduplicate `meta.omitted.links` based on `href` (`via` link)
- #2984647 by Wim Leers, haihoi2, gabesullice, dawehner: Dangling entity references in entity reference field with multiple possible target bundles: results in exception/500 response
- #2995111 by Wim Leers, e0ipso: shouldBeInternalResourceType et al. should receive the resource type, not the entity type
Task
- #2997277 by gabesullice, Wim Leers, garphy, e0ipso: Place all URLs under the `href` key
- #3000622 by Wim Leers, gabesullice: Improve EntryPoint::index() now that JsonApiDocumentTopLevel is more capable
- #2997600 by gabesullice, Wim Leers, caseylau, e0ipso, btully, mglaman, steven.wichers: Resolve included resources prior to normalization
- #3000299 by Wim Leers: Let phpcs violations fail the build on DrupalCI
- #2998601 by gabesullice, Wim Leers: HEAD is failing tests for various reasons
- #2987606 by Wim Leers, gabesullice, e0ipso, omkar06: Remove config mutation tests from EntityResourceTest
- #2984911 by Wim Leers, gabesullice, e0ipso: Remove access to the Request object in the normalization process
- #2996576 by gabesullice: Coding Standards: Back to 0 violations
- #2987609 by gabesullice, Wim Leers, e0ipso: Rename the entity parameter from the entity type ID to 'entity' for all routes
- #2994480 by gabesullice: Followup to #2853066: convert internal `meta.errors` to `meta.omitted`
- #2929428 by Wim Leers, gabesullice, axle_foley00: [>=8.5] Convert "throw new *HttpException" into "throw new Cacheable*HttpException" where possible
- #2986404 by Wim Leers: @FieldType=map support
- #2994700 by gabesullice, Wim Leers: Remove unused argument from the link manager