Skip to content

Releases: Coder-Spirit/nominal

nominal@4.0.3 , nominal-inputs@1.0.3 , safe-env@1.0.0

08 Apr 21:38
b9736d8
Compare
Choose a tag to compare

Minor Releases

  • @coderspirit/nominal (v4.0.3): minor internal & build refactor changes

New Packages

  • @coderspirit/nominal-inputs (v1.0.3): new library with "input types" to be used in stricter function signatures .
  • @coderspirit/safe-env (v1.0.0):
    • we ported safe-env from its "old" repository to this one to ensure better maintenance
    • this is the first stable release of this library
    • its API has been completely overhauled to ensure that is useful for more people

nominal@4.0.0 & nominal-symbols@2.0.0

15 Oct 23:20
96a7a5f
Compare
Choose a tag to compare

Breaking Changes

  • We raised the required NodeJS and TypeScript versions, to v18 and v5.2 respectively.
  • "Minor" changes in how we build the files that are later distributed, because this affects the unique symbols that are exported, it is a breaking change.

Internal Development Changes

  • We moved @coderspirit/nominal-symbols to the same repository as @coderspirit/nominal.
  • We now rely on a centralised package for our Prettier, ESLint and TypeScript configurations.
  • We improved our tests by switching from Jest to Vitest, which is much simpler to use, and also much faster.
  • We now use Turborepo to manage the dependencies between task in the project.

Commits

3.2.2

23 Oct 11:55
3521b66
Compare
Choose a tag to compare

Minor changes

  • Upgraded development dependencies (it does not affect distributed package)
  • Added NodeJS v18.x and v19.x to the CI testing pipeline

Breaking changes

  • Dropped support for Node v12.0

3.2.1

10 Feb 19:57
aba633c
Compare
Choose a tag to compare

Minor changes

  • expose FastProperty to create "property types" without running all the complex machinery behind Nominal.
  • document "properties" intersections.

3.2.0

22 Jan 15:33
dfdd610
Compare
Choose a tag to compare

Fixes

  • Use hardcoded path to allow Deno pkg to depend on "external" @coderspirit/nominal-symbols package (as it already works for the NodeJS distribution).

3.1.0

21 Jan 23:04
1f69194
Compare
Choose a tag to compare

New Features

  • Export FastBrand and FastFlavor for faster compilation times when we want to add brands or flavors on "basic" types.

Backwards & Forward Compatibility

  • For CommonJS "imports", rely on the newly extracted package @coderspirit/nominal-symbols. The unique symbols where extracted into a new (and more stable) package to minimize the probability of breaking compatibility if different versions of Nominal coexist in the same application.
  • For Deno and ES module imports, the "old" symbols file is still used, because NodeJS and Typescript are still quite behind on support for ES modules.

3.0.0

11 Apr 22:26
7964301
Compare
Choose a tag to compare

New features

  • Introduce the concept of properties (replacing tags)
  • Branded types
  • Flavored types

Fixes

  • Import extensions in Deno files

Breaking changes

  • Remove tags & related machinery (substituted by properties)
  • Remove tainting capabilities

2.1.0

05 Apr 22:33
7f3b2d5
Compare
Choose a tag to compare

Fixes & features

  • Fix combined multiple negations
  • Fix interaction between WithTag & NegateTag
  • Fix interaction between WithTags & NegateTag

Build

  • Optimize build generation

2.0.5

03 Apr 13:49
8586133
Compare
Choose a tag to compare

Packaging

  • remove deno files from NPM package

2.0.4

03 Apr 12:41
2c76749
Compare
Choose a tag to compare
  • Add basic Deno support (via denopkg.com)