Skip to content

Releases: Naoray/nova-json

v3.1.0

20 Jul 11:41
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.0...v3.1.0

3.0.0

29 May 07:18
18f641b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.0...v3.0.0

2.0.0

08 Feb 09:16
Compare
Choose a tag to compare

Added

1.3.1

28 May 12:24
Compare
Choose a tag to compare

Changed

  • if fillAtOnce() returns null and the JSON field is not nullable, the package won't attempt to fill a model attribute => this allows the usage of a JSON field for related fields and give full control over resolving the values

1.2.3

10 Mar 11:16
Compare
Choose a tag to compare

Fixed

  • array_key_exists(): The first argument should be either a string or an integer appearing when the attribute name of the JSON fields were not specified

1.2.2

26 Feb 13:52
Compare
Choose a tag to compare

Fixed

  • nullable() fields were not possible to be filled with null values

Changed

  • changed prepareJsonFields() from public to protected
  • added tests for nullable() & nullValues()

1.2.1

03 Feb 17:21
Compare
Choose a tag to compare

Fixed

  • bug where nested JSON structures would return only partly resolved with -> instead of having an array structure.
$incoming = [
  'field_name->foo' => 'bar',
  'field_name->bar->blub' => 'fooBar'
];  

// previously resolved to
[
  'foo' => 'bar',
  'bar->blub' => 'fooBar'
]

// now resolved to
[
  'foo' => 'bar',
  'bar' => ['blub' => 'fooBar']
]

1.2.0

03 Feb 11:23
Compare
Choose a tag to compare

Added

  • JSON can be marked as nullable via nullable() and specify values counted as null via nullValues()
  • fillOnce() method to prevent values being filled one after another.

Fixed

  • fillUsing() callbacks of individual fields are not ignored anymore.

1.1.0

07 Jan 10:06
Compare
Choose a tag to compare

Added

  • nesting JSON fields is now possible
JSON::make('Address', 'address', [
    Text::make('Street'),

    JSON::make('Location', [
        Text::make('Latitude'),
        Text::make('Longitude'),
    ]),
]);

1.0.0

18 Dec 17:25
3ba0cfb
Compare
Choose a tag to compare

initial release