Releases: nRFCloud/ts-json-schema-transformer
Releases · nRFCloud/ts-json-schema-transformer
v3.1.1
v3.1.0
v3.0.0
Major Changes
-
b32e2cc: Added several new helper methods
assert- Asserts that a value is valid while returning the valuecreateAssertFn- Creates a function that asserts that a value is validparse- Parses a value and return undefined if it is invalidcreateParseFn- Creates a function that parses a value and returns undefined if it is invalidassertParse- Parses a value and asserts that it is validcreateAssertParseFn- Creates a function that parses a value and asserts that it is validcreateMockFn- Creates a function that generates a mock valuecreateAssertGuardFn- Creates a function that asserts that a value is valid, narrowing the typeguard- 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 invalidcreateValidateFn- 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->assertGuardgetMockObject->mockgetValidator->createGuardFn
Minor Changes
- b32e2cc: seeded mock