Skip to content

Releases: peerigon/typescript-toolkit

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 28 Jun 13:40
0d55ce3

4.0.0 (2026-06-28)

Features

  • result: use positional args for success and error constructors (184a37e)

BREAKING CHANGES

  • result: result.success and result.error no longer accept a
    single options object.

The payload (data/error) is what defines the result's state, while
createdAt and stale data are secondary metadata. The old flat options
object conflated the two, and forced ceremony like
result.success({ data: x }) for the most common call. Making the
payload positional separates "what the result is" from "extra
metadata", matches the wider ecosystem (Promise.resolve(v), Ok(v)/
Err(e)), and reads more concisely.

  • result.success({ data }) → result.success(data)
  • result.success({ data, createdAt }) → result.success(data, { createdAt })
  • result.error({ error }) → result.error(error)
  • result.error({ error, data }) → result.error(error, { data })

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 28 Jun 12:31
dcd8e3b

3.0.0 (2026-06-28)

  • feat(signals)!: rename signal API to get/set/watch terminology (c67c48f)
  • feat(signals)!: rename watcher update payload to new and old (65ae3b6)

Bug Fixes

  • signals: correct signal.from get.watch and dispose lifecycle (4ea8820)

Features

  • signals: add Symbol.dispose to watch unwatch function (cb4f85f)

BREAKING CHANGES

  • SignalWatcher callbacks now receive { new, old }
    instead of { value, previousValue }.
  • Signal API terminology has changed:
  • signal.read() is now signal.get()
  • signal.write() is now signal.set()
  • signal.subscribe() is now signal.watch()
  • ReadSignal is now SignalGetter
  • WriteSignal is now SignalSetter
  • SignalReader is now SignalWatcher
  • signal.from(readFromSource, …) is now signal.from(getFromSource, …)

v2.2.0

Choose a tag to compare

@github-actions github-actions released this 26 May 22:28
bcc515c

2.2.0 (2026-05-26)

Features

  • Add emitter and signals (48d5bbd)
  • unwrap: Add supported for settled results (bcc515c)

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 25 May 22:57
b6bf327

2.1.0 (2026-05-25)

Features

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 24 May 00:10
650e94a

2.0.0 (2026-05-24)

Features

BREAKING CHANGES

  • assert() does not throw on false anymore.

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 23 May 21:11
fb61b86

1.1.0 (2026-05-23)

Features

  • assert: Implement assert (a199f11)