Skip to content

v0.4.0 - Phase 5 Features

Choose a tag to compare

@ivkan ivkan released this 28 Dec 14:15
· 3159 commits to main since this release

What's New in v0.4.0

This release completes Phase 5 of the TopGun roadmap, adding powerful new CRDTs, server-side processing capabilities, and improved synchronization.

New CRDTs and Data Structures

  • PN Counter - Positive-Negative counter CRDT supporting increment/decrement operations with eventual consistency
  • Event Journal - Append-only event log for event sourcing patterns with full CRDT synchronization
  • Entry Processor - Atomic server-side map operations with sandboxed execution via isolated-vm

API Enhancements

  • Custom Conflict Resolvers - Register custom conflict resolution strategies for domain-specific merge logic
  • Delta Updates for Subscriptions - Incremental updates instead of full data snapshots for improved performance
  • Offline Persistence for PNCounter - Full offline support for counter operations

React Hooks

  • usePNCounter - Hook for working with PN Counter in React applications
  • useEventJournal - Hook for subscribing to Event Journal streams
  • Enhanced useQuery with delta update support

Bug Fixes

  • Fixed memory leak in React change tracking with new maxChanges option
  • Fixed isolated-vm bundling issues for server package
  • Added production warning when isolated-vm is unavailable

Documentation

  • New guides for PNCounter, Entry Processor, Event Journal
  • Conflict resolution blog post with ML/AI integration examples

Full Changelog: v0.3.0...v0.4.0