Skip to content

Releases: flat3/lodata

v5.8.0

19 Mar 18:49
Compare
Choose a tag to compare

This release brings support for the $each path segment, enabling deletes, updates and actions to run on sequences of entities returned from queries (Docs).

Changes:

  • The StaticEntitySet has been removed in favour of more appropriate Collection or CollectionEntitySet objects.
  • The underlying array used by Collection has been updated to the more flexible Illuminate\Support\Collection
  • EnumerableEntitySet now creates a collection during construction enabling it to be immediately used without specifically setting an empty collection.

v5.7.0

14 Mar 11:23
Compare
Choose a tag to compare

This release fixes an issue where the Eloquent discovery code did not respect the model's $hidden and $visible properties that relate directly to how the application expects entities to be serialized. Props @andrew-alchemy for the suggestion.

v5.6.3

28 Feb 10:16
Compare
Choose a tag to compare

This release fixes an issue where an invalid content type would be presented on a $value endpoint, if the client did not specify any accepted content type.

v5.6.2

27 Feb 22:09
Compare
Choose a tag to compare

This release adds some #[\ReturnTypeWillChange] annotations to suppress warnings.

v5.6.1

27 Feb 21:33
Compare
Choose a tag to compare

This release fixes issues relating to negotiating the response content type against the client's Accept header.

Feature additions and changes:

  • All types provided in the Accept header are now checked.
  • The metadata content type parameter is now supplied on every response.
  • The $query path segment now enforces the text/plain content type header.

v5.6.0

27 Feb 14:13
Compare
Choose a tag to compare

This release improves support for collections of primitive and complex values, and enumerated types.

Feature additions and changes:

  • Updated collections to support primitive and complex types correctly (Docs).
  • Updated enumerated types to property support bitwise enums (Docs).
  • Added support for the has function, used with enumerated types.
  • Eloquent models support auto-discovery for BackedEnum and array attribute casts (Docs).

v5.5.1

24 Feb 10:41
Compare
Choose a tag to compare

This release resolves the issue described in #201 where the developer could double-discover an Eloquent model, causing strange side effects. This release will ignore attempts to rediscover an existing EloquentEntitySet. Props @Iseldore for the report.

v5.5.0

18 Feb 17:39
Compare
Choose a tag to compare

This release supports mapping OData properties to different names to suit your existing backend data schema, or to support databases with specific naming constraints such as PostgreSQL.
https://lodata.io/modelling/drivers/#property-renaming

v5.4.0

18 Feb 08:58
Compare
Choose a tag to compare

Address an issue where it was not possible to override a readonly configuration by using gates, as described in #196. Props @ianket.

v5.3.0

13 Feb 15:35
Compare
Choose a tag to compare

Laravel 9 support! 🎉 Including backward compatibility for Laravel 8.

Feature additions and changes:

  • Updated the FilesystemEntitySet to exclude directories from the output.
  • Updated the FilesystemEntitySet to return mime types correctly in the type property.