Skip to content

Releases: reactivando/use-pubsub-js

v2.0.0

Choose a tag to compare

@AZagatti AZagatti released this 25 Jun 01:20

   🚨 Breaking Changes

  • Drop React 17 support; require React >=18  -  by @AZagatti and Claude Opus 4.8 (1M context) in #82 (7245a)
  • Route subscriber errors to a configurable onError (default console.error)  -  by @AZagatti and Claude Opus 4.8 (1M context) in #83 (b680b)
  • Brand SubscriptionToken so unsubscribe rejects arbitrary strings  -  by @AZagatti and Claude Opus 4.8 (1M context) in #84 (d401d)
  • Bundle/packaging hygiene (drop utils/debounce subpath, es2021 target)  -  by @AZagatti and Claude Opus 4.8 (1M context) in #88 (242a5)
  • hooks: Typed bus param + Events generic; widen message; rename useSubscribe types  -  by @AZagatti and Claude Opus 4.8 (1M context) in #77 (fa60f)
  • v2-M4: Semver-major type cleanups  -  by @AZagatti and Claude Opus 4.8 (1M context) in #73 (a72cc)

   🚀 Features

  • Retained-value bus mode + useBusState hook (useSyncExternalStore)  -  by @AZagatti and Claude Opus 4.8 (1M context) in #86 (4079d)
  • React19/useSubscribe built on useEffectEvent (opt-in subpath)  -  by @AZagatti and Claude Opus 4.8 (1M context) in #87 (85b12)
  • CreateHierarchicalPubSub — typed + hierarchical bus  -  by @AZagatti and Claude Opus 4.8 (1M context) in #93 (d664a)
  • v2-M1: Internal pub/sub module + isolation & parity tests (not yet wired)  -  by @AZagatti and Claude Opus 4.8 (1M context) in #71 (e2605)
  • v2-M2: Swap the hooks to the internal pub/sub module (zero runtime deps)  -  by @AZagatti and Claude Opus 4.8 (1M context) in #72 (b85f1)
  • v2-M5: Add ./pubsub subpath export, metadata, behavioral e2e smoke  -  by @AZagatti and Claude Opus 4.8 (1M context) in #74 (1842a)

   🏎 Performance

  • pubsub: Flatten the publish snapshot to one array  -  by @AZagatti and Claude Opus 4.8 (1M context) in #89 (b4d9d)
    View changes on GitHub

v1.3.3

Choose a tag to compare

@AZagatti AZagatti released this 24 Jun 15:18

   🐞 Bug Fixes

  • usePublish: Guard initial publish under StrictMode + harden debounceMs  -  by @AZagatti and Claude Opus 4.8 (1M context) in #65 (537fd)
    View changes on GitHub

v1.3.2

Choose a tag to compare

@AZagatti AZagatti released this 18 Dec 22:15

No significant changes

    View changes on GitHub

v1.3.1

Choose a tag to compare

@AZagatti AZagatti released this 18 Dec 21:44

No significant changes

    View changes on GitHub

v1.3.0

Choose a tag to compare

@AZagatti AZagatti released this 19 Sep 03:44

   🚀 Features

    View changes on GitHub

v1.2.0

Choose a tag to compare

@AZagatti AZagatti released this 19 Sep 02:44

   🚀 Features

    View changes on GitHub

v1.1.0

Choose a tag to compare

@AZagatti AZagatti released this 18 Sep 23:59

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub