Skip to content

Releases: nRFCloud/ts-json-schema-transformer

v3.1.1

10 Sep 21:38
b3d0b35

Choose a tag to compare

Patch Changes

  • 1791fe8: fix back compat with older runtimes

v3.1.0

04 Sep 20:46
102484e

Choose a tag to compare

Minor Changes

v3.0.0

26 Aug 21:02
1c08ffd

Choose a tag to compare

Major Changes

  • b32e2cc: Added several new helper methods

    • assert - Asserts that a value is valid while returning the value
    • createAssertFn - Creates a function that asserts that a value is valid
    • parse - Parses a value and return undefined if it is invalid
    • createParseFn - Creates a function that parses a value and returns undefined if it is invalid
    • assertParse - Parses a value and asserts that it is valid
    • createAssertParseFn - Creates a function that parses a value and asserts that it is valid
    • createMockFn - Creates a function that generates a mock value
    • createAssertGuardFn - Creates a function that asserts that a value is valid, narrowing the type
    • guard - Validates a value and narrows the type (type guard)
    • validate - Validates a value and returns the value if it is valid or undefined if it is invalid
    • createValidateFn - Creates a function that validates a value and returns the value if it is valid or undefined if it is invalid

    A few methods have been renamed, and their previous names are now deprecated:

    • assertValid -> assertGuard
    • getMockObject -> mock
    • getValidator -> createGuardFn

Minor Changes

v2.1.0

23 Aug 17:00
b2f3d65

Choose a tag to compare

Minor Changes

v2.0.1

15 Aug 22:06
29815c5

Choose a tag to compare

Patch Changes

v2.0.0

13 Aug 23:49
894053e

Choose a tag to compare

Major Changes

  • 763d69e: Update TS to 5.5

    BREAKING: TS 5.5 is now required

v1.4.1

11 Mar 18:32
8514089

Choose a tag to compare

Patch Changes

  • 70948df: fix bug with negative numeric literals

v1.3.0

15 Dec 20:26

Choose a tag to compare

Minor Changes

Patch Changes

v1.2.5

10 Nov 21:27
775e70e

Choose a tag to compare

Patch Changes

  • bbb411d: Generic error object replaced with ValidationError for assertValid

v1.2.4

31 Oct 01:20

Choose a tag to compare

Patch Changes