Skip to content

Releases: mjancarik/esmj-schema

v0.8.0

Choose a tag to compare

@github-actions github-actions released this 08 Apr 12:12
  • feat: 🎸 extract s.coerce into standalone opt-in module (20329ad)

BREAKING CHANGE

  • 🧨 Move the coerce implementation from src/index.ts into a new
    src/coerce.ts side-effect module, matching the pattern ofstring.ts /
    number.ts / array.ts. s.coerce is an empty object by default — methods
    are only availableafter importing the coerce module: import
    '@esmj/schema/coerce'; // side-effect only import { s } from
    '@esmj/schema/coerce'; // re-exports index.ts import { s } from
    '@esmj/schema/full'; // includes all modulesWithout this import,
    calling any s.coerce method throws at runtime.TypeScript enforces this
    through the empty CoerceInterface./

v0.7.4

Choose a tag to compare

@github-actions github-actions released this 07 Apr 15:47
  • feat: 🎸 extract schema factories as tree-shakeable named export (eae8c8c)
  • refactor: 💡 not craete new object for every single parse call (2e0dbf1)
  • chore: 🤖 add ajv framework (ca6c136)
  • chore: 🤖 fix sideEffects in package.json (0beb50c)

v0.7.3

Choose a tag to compare

@github-actions github-actions released this 27 Mar 18:32
  • chore: 🤖 fix TS types for typescript@6 (dfe63df)
  • chore: 🤖 update dependencies (37b8be9)
  • ci: 🎡 return back npm install (2fb75d6)
  • ci: 🎡 update versions (8e6321c)
  • ci: 🎡 use package-lock files (9d0d43d)
  • feat: 🎸 add function type to schema (768d97e)

v0.7.2

Choose a tag to compare

@github-actions github-actions released this 13 Mar 21:33
  • feat: 🎸 add s.cast namespace for programmer-friendly coercion (f2a984b)
  • feat: 🎸 add s.coerce namespace for type coercion (98bb3a5)
  • docs: ✏️ update library size (c8381d3)

v0.7.1

Choose a tag to compare

@github-actions github-actions released this 13 Mar 16:01
  • feat: 🎸 add catch() method for fallback on parse failure (9c58f06)

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 19:52
  • chore: 🤖 remove type module from package.json (22d5187)
  • docs: ✏️ update package size (d8e33eb)

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 17 Oct 20:26
  • chore: 🤖 add examples to npmignore (4d86e27)
  • chore: 🤖 add tsconfig to npmignore (89c4353)
  • chore: 🤖 fix build and entry points (885ab2f)

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 17 Oct 20:00
  • feat: 🎸 add new extended methods for string,number,arrays (9ffc561)
  • docs: ✏️ update module size (e18755b)
  • chore: 🤖 remove comments (7295587)
  • chore: 🤖 update dev dependencies (73c6767)

BREAKING CHANGE

  • 🧨 The types were changed. The optional and nullable change behaviour to be
    more like zod methods. The optional in chain not allow invalid values to
    be transformed to undefined. The nullable in chain allow only valid type
    or null.

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 16 Sep 11:32
  • feat: 🎸 add abortEarly parseOption (fc4843b)

v0.3.6

Choose a tag to compare

@github-actions github-actions released this 08 Aug 12:02
  • chore: 🤖 add more keywords (9003cda)