Skip to content

v1.0.0-beta.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@tobyzerner tobyzerner released this 02 May 11:19
· 3 commits to main since this release
3497e13

Added

  • Add support for generating OpenAPI Definitions
  • Add CollectionAction and ResourceAction endpoints
  • Allow including relationships by default (#96 by @SychO9)
  • Add support for conditional linkage (#110 by @SychO9)
  • Add Enum support to Str type
  • Add the ability to make a field sparse by default
  • Add the ability to add after callbacks to the Create endpoint
  • Add the ability to pass a condition to writableOnCreate
  • Add Relationship::notIncludable()
  • Allow psr/http-message v2
  • Laravel: Add ToOne and ToMany subclasses which support constraining relationship queries (#103 by @SychO9)
  • Laravel: Support array of abilities in can helper

Changed

  • Laravel: EloquentCollection queries now keep the resource's Eloquent\Builder instead of converting to the base Query\Builder
  • Laravel: Apply EloquentResource scope when applying WhereHas filter

Fixed

  • Fix error when request body data.attributes is null (#98 by @SychO9)
  • Fix support for nested includes on polymorphic relationships
  • Fix multipleOf bugs (#114 by @bertramakers)
  • Fix error when using Context::withRequest (#107 by @SychO9)
  • The self link for a resource now only appears if the Show endpoint is present in a collection
  • Laravel: Support dynamically resolved relationships (#100 by @SychO9)
  • Laravel: Fix serialization for MorphTo relationships (#97 by @SychO9)
  • Laravel: Only attempt to preload related EloquentResources
  • Laravel: Fix error parameter name in WhereBelongsTo filter
  • Laravel: Fix limiting ToMany relation results (#112 by @SychO9)