Skip to content

Releases: flat3/lodata

v5.18.0

24 Jun 13:26
Compare
Choose a tag to compare

This release fixes two issues identified in #285 and #287, Props @marciotheis.

  • XML metadata failed to generate when a database column default value was an integer.
  • The SQL Server PDO code modified the connection encoding, causing problems with UTF-8 handling.

v5.17.1

22 Jun 13:46
Compare
Choose a tag to compare

This release fixes #284 where a two-way Eloquent relationship discovery, combined with setting a specific set identifier caused a discovery loop. Props @marciotheis.

v5.17.0

10 Jun 14:50
Compare
Choose a tag to compare

This release fixes #274, where a related model would not have its operations discovered. Props @Iseldore.

v5.16.0

07 Jun 20:34
Compare
Choose a tag to compare

This is a bug fix release.

Fixes:

  • Discovery failed when a column name included a dot (namespaced). Fixes #270, Props @deepcube-srl.
  • Discovery failed when a column had a default value that was an SQL keyword such as CURRENT_TIMESTAMP. Fixes #271, Props @jmanring and @otmaneelhaddaji

v5.15.0

05 Jun 20:43
Compare
Choose a tag to compare

This release adds the ability to extend the SQLExpression class to allow modification of generated SQL.

v5.14.0

04 Jun 15:38
Compare
Choose a tag to compare

This release contains various features and bug fixes. Props @Angelinsky7 for several detailed bug reports.

Features:

  • Correctly supports BelongsTo Eloquent relationships, adding the referential constraint to the metadata. Fixes #259.
  • Modified properties of the expression parser to enable it to be extended.

Fixes:

  • The correct Transaction object was not being attached to $expand requests, causing the wrong query options to be used. Fixes #261 #256 #255.
  • The @context was not always being correctly created in $expand requests. Fixes #261.
  • The @count was not correct in $expand requests when using the EloquentEntitySet. Fixes #254.
  • Lambda operators did not use the correct precedence, causing complex expressions to fail.

v5.13.0

15 May 18:44
Compare
Choose a tag to compare

Changes in this release:

  • Adds the ability to set the Alternative Key, Searchable and Filterable options on properties using model attributes
  • Rejects string property submissions that exceed the property configured maximum length

v5.12.0

06 May 14:56
Compare
Choose a tag to compare

Changes in this release:

  • The EloquentEntitySet now calls setAttribute/getAttribute on the Eloquent model instead of using the array syntax. This makes it easier to modify the behaviour of the model by overriding its methods.
  • Conversion of a model attribute to a property is now delegated to the attribute, making it possible to create custom attributes used in discovery.
  • Arrayables such as Collection objects can now be provided as the value of a collection property.

v5.11.0

12 Apr 18:15
Compare
Choose a tag to compare

This release contains various features and bug fixes.

Features:

  • The Annotation class is now not abstract, allowing custom annotations to be easily placed on the model on any item that supports them.
  • Added support for the MaxLength, Precision and Scale type facets in both CSDL and OpenAPI schemas.
  • Added separation of EntityContainer objects within the model, so that now you can have a resource such as an EntitySet and an EntityType with the same name.

Fixes:

  • Fixed an issue with resolving non-flag Enum types in database backends.
  • Improved an error message thrown when the underlying type of a LodataCollection attribute could not be resolved.

v5.10.0

03 Apr 15:02
Compare
Choose a tag to compare

This release brings configuration attributes for Eloquent models, enabling fine-tuning of the discovered model.

Fixes:

  • Various bugs fixed in the query lexer
  • Bugs fixed in the Enum primitive type when using flags