Skip to content

Releases: lbguilherme/as-typed

1.3.2

23 Nov 12:21
Compare
Choose a tag to compare
  • Improve README and tests
  • Reduce package size
  • Update dependencies

1.3.1

01 Oct 10:14
Compare
Choose a tag to compare
  • Update dependencies

1.3.0

12 Feb 02:02
Compare
Choose a tag to compare
  • Major refactor simplifying some types, producing a codebase about 33% smaller.
  • Implement oneOf inside allOf.

1.2.0

03 Feb 02:11
Compare
Choose a tag to compare
  • Support recursive oneOf/anyOf/allOf/if-then-else.
  • Use a more correct implementation of additionalProperties (#1, thanks @cyco130).
  • Cleanup implementation of $ref references to $id definitions (code is now about 15% smaller).

1.1.3

29 Dec 02:34
Compare
Choose a tag to compare
  • Code cleanup
  • Expand all types to improve developer UX

1.1.2

28 Dec 21:35
Compare
Choose a tag to compare
  • Fix: Support tuples inside anyOf / oneOf / allOf:
AsTyped<{
  oneOf: [
    { type: "string" },
    { type: "array"; items: [{ type: "string" }, { type: "string" }] }
  ]
}> // string | [string, string]

1.1.1

21 Dec 19:31
Compare
Choose a tag to compare
  • Allow type to be an array:
AsTyped<{ type: ["string", "null"] }> // string | null
AsTyped<{ type: ["number", "boolean" | "null"] }> // number | boolean | null
  • Allow nullable:
AsTyped<{ type: "string"; nullable: true }> // string | null

1.0.0

27 Nov 23:35
Compare
Choose a tag to compare
ci: add action for release