Skip to content

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 06 Jun 12:40
· 51 commits to master since this release

1.0.0 (2022-06-06)

Bug Fixes

  • add missing deps (ce19290)
  • better enums (9e6cad4)
  • catch errors (d50c5a5)
  • correct npm token (db745e9)
  • correct zod usage (5280274)
  • deps: update dependency @johngw/array to v3.2.0 (45475b8)
  • deps: update dependency @johngw/array to v3.3.0 (d748c6b)
  • deps: update dependency @johngw/error to v2.2.0 (4237f06)
  • deps: update dependency @johngw/iterator to v1.0.3 (e169a2b)
  • deps: update dependency @johngw/iterator to v1.2.0 (9372239)
  • deps: update dependency runtypes to v6.3.2 (cbcee77)
  • deps: update dependency runtypes to v6.4.0 (5cbdf70)
  • deps: update dependency ts-morph to v12 (01ddedb)
  • deps: update dependency ts-morph to v12.1.0 (fa264c5)
  • deps: update dependency ts-morph to v12.2.0 (4a02672)
  • deps: update dependency ts-morph to v13 (a034dd4)
  • deps: update dependency ts-morph to v13.0.3 (90aa617)
  • deps: update dependency ts-morph to v14 (5a1ee20)
  • deps: update dependency tslib to v2.3.1 (e887b8a)
  • deps: update dependency tslib to v2.4.0 (2e1beb6)
  • deps: update dependency yargs to v17.3.0 (faf351c)
  • deps: update dependency yargs to v17.3.1 (12ed7b4)
  • deps: update dependency yargs to v17.4.0 (100dbe9)
  • deps: update dependency yargs to v17.4.1 (27ae584)
  • deps: update dependency yargs to v17.5.0 (0266fd6)
  • deps: update dependency yargs to v17.5.1 (1e65a4b)
  • docs: package description (7605688)
  • dont rely on text constants (d3939a0)
  • duplicate references (3be7698), closes #68 #68
  • enums (b169db4)
  • function types (928b173)
  • function: actually implement the function (279c4d3)
  • function: optional parameters (db1d303)
  • inheritance duplication (53727b8)
  • missing imports (0eec87b)
  • multi source imports (40dddba)
  • object: key syntax (3f5dabf)
  • optional properties (9e30885)
  • optional values (044a49b)
  • potential duplication (eb20dd1)
  • recognize built-in types more reliably (ad5e9ac)
  • recursion as an array (2f70872), closes #202
  • source import aliases (49139e1)
  • static implementation (786408a)
  • tsc build (4f14d11)
  • using enum members within types (3e388f0), closes #202

chore

  • runtypes should be a peerdependency (a782d44)

Code Refactoring

  • move all file manipulation in to 1 place (12f623c)

Features

  • add namespace support (58de7d1)
  • add null type (b4f89b3)
  • add runtyping cli command (ac4fd6c)
  • add tuple type handling (10d8244), closes #29
  • add unknown type (bd4f7f4)
  • alias types (95beb4a)
  • allow a singular target (095dbd8)
  • allow singular source type (41e554b)
  • async function contracts (7fbed93)
  • basic runtype generation (b004ca1)
  • change runtypes naming to zod (1f92702)
  • function declarations (e35d9fb)
  • functions (#20) (2d9e9b8)
  • function: variable functions (343028b)
  • generator a json schema for runtyping.yml (142c34c)
  • imported types (18058fb)
  • interface inheritance and import types (bdbe602)
  • object: ability to use non-word property key (691417c)
  • optional list for source types (e080384)
  • optionally export static types (598df35)
  • recursive types (#11) (986125f), closes #7
  • rename package to runtyping (0132298)
  • reuse interfaces (82e4bf6)
  • reuse type aliases (3de91fd)
  • sourcetypes.type can be array (ccf1805)
  • strictnullchecks by default (a5fae81)
  • support (run)typeFormat arg (e231aa3)
  • support (run)typeFormat in runtyping.yml (6a42056)
  • support json schema (4166cfd)
  • support mapping runtype name to something else in the output (8712534)
  • update schema (ae2616a)

BREAKING CHANGES

  • generate() has been deprecated in favour of the Generator class
  • generate() is deprecated in favor of Generator
    constructor.
  • runtypes is no longer included in this package.
  • There are already too many packages that incorporate
    the words generate and runtypes. Therefore will use something a little
    original. The package is now called runtyping.
  • The generate function is now an async generator.