Skip to content

Releases: rexlabsio/smokescreen-php

2.5.0 - PHP 8.4 Compatibility

08 Jan 23:53
ba93fa2

Choose a tag to compare

  • Adds PHP 8.4 Compatibility

2.4.0 - Allow include methods to be callable

30 Oct 04:58
697153a

Choose a tag to compare

What's Changed

  • chore: allow method to be a callable by @cpave3 in #24

New Contributors

Full Changelog: 2.3.0...2.4.0

2.3.0

26 Aug 06:06
bb2703a

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.2.0...2.3.0

2.2.0 - PHP 7.4 - 8.3 support and relation bug fix

19 Dec 06:01
3a07341

Choose a tag to compare

General Changes

  • Official support for PHP 7.4-8.3 with pipeline to test

Fixes

  • Fixes an issue with parsing relation: marker where relation:users,other would be parsed as ['user', 'other] with
    the s character being dropped off the first word

Breaking Changes

  • Drop support for anything outside php 7.4-8.3

2.0.0 - Improvements to serialization and transformation process (BC)

05 Jul 08:29

Choose a tag to compare

This is a major release due to a breaking changes in both the RelationLoaderInterface and SerializerInterface classes.

It also contains a major refactor of the transformation process.

Breaking Changes

  • The RelationLoaderInterface load() method now requires a second argument (array), which is a list of relationship keys to be loaded. The first argument is now the original ResourceInterface object that the relationships should be loaded off of.
  • The SerializerInterface class requires implementing nullItem() and nullCollection() methods.
  • The DefaultSerializer class has been updated to implement these methods (returns null and [] respectively).

Fixes / Changes

  • Refactored the transformation and serialization process into a pipeline which composes Scope objects, this better encapsulates the transformation process and makes extending and reasoning about includes and relationships much easier
  • Include methods will now be given a second argument of the Scope object that it is running within. This enables those methods to examine the Scope.
  • Fix a regression in handling non-resource entities (such as those that may be returned from an include).
  • Ensure toArray() always returns an array.

1.1.0 - Feature release

21 May 05:25
c2fdb17

Choose a tag to compare

Release updates

  • New Feature: Declarative properties
  • New Feature: Auto-wiring of includes
  • Change: Transformer Resolution
  • Minor bug fixes

1.0.1 - Minor code cleanup

08 Mar 00:20
af65e6e

Choose a tag to compare

Minor fixes / improvements

  • Fixed some annotations
  • Improved code style
  • Moved json encoding to helper

1.0.0 - Initial stable release

05 Mar 02:01

Choose a tag to compare

This is the first stable release of the Smokescreen PHP library.
See README.md for more information about this package.