Skip to content

Releases: nette/schema

Released version 1.3.2

05 Oct 00:30
@dg dg
Compare
Choose a tag to compare
  • support for PHP 8.4
  • added Structure::extend() #66
  • added Structure::getShape() #35
  • Expect::array(shape) returns Structure
  • Structure::merge() without otherItems it merges by overwriting

Released version 1.3.0

21 Jan 17:26
@dg dg
Compare
Choose a tag to compare
  • requires PHP 8.1
  • uses PHP 8.1 features

Released version 1.2.5

21 Jan 17:25
@dg dg
Compare
Choose a tag to compare
  • added transform() #52
  • castTo() allows you to create objects #44 #47 #58 #46
  • refactoring
  • added path to Context::$dynamics
  • Base: removed DynamicParameter from error message

Released version 1.2.4

09 Aug 14:30
@dg dg
Compare
Choose a tag to compare
  • support for PHP 8.3
  • constants are PascalCase

Released version 1.2.3

18 Nov 03:01
@dg dg
Compare
Choose a tag to compare
  • support for PHP 8.2
  • cs

Released version 1.2.2

15 Oct 11:42
@dg dg
Compare
Choose a tag to compare
  • supports nette/utils 2.5

Released version 1.2.0

21 Jan 14:51
@dg dg
Compare
Choose a tag to compare
  • Structure::skipDefaults() allow to skip defaults per structure
  • AnyOf() must not be empty
  • added AnyOf::firstIsDefault()
  • Ability to define scheme for the key Expert::arrayOf($stringType, $keyType)

Released version 1.1.0

18 Dec 00:00
@dg dg
Compare
Choose a tag to compare
  • added Type::mergeDefaults() [Closes #13, Closes #24, Closes #28, Closes #31]
  • added error codes
  • ValidationException::getMessageObjects() returns array of Messages
  • Allow options to be marked as deprecated [Closes #27]
  • Structure: structure with required fields can be optional [Closes #17]
  • Type: PREVENT_MERGING prevents merging with defaults [Closes #14, Closes nette/application#257, nette/di#229]
  • 'option' changed to 'item' in error messages

Released version 1.0.4

17 Dec 23:41
@dg dg
Compare
Choose a tag to compare
  • Context is not internal #29
  • AnyOf: calls normalize() on items #25 #18
  • Structure: range is ?int, ?int #20
  • fixed combination of range with nullable/dynamic #32 #23
  • Type: ignore pattern when value is null

For the details you can have a look at the diff.

Released version 1.0.3

25 Nov 21:49
@dg dg
Compare
Choose a tag to compare
  • compatible with PHP 8
  • Expect::from() supports union types
  • coding style
  • tests: refactoring

For the details you can have a look at the diff.