Skip to content

chore: version packages - #99

Merged
dillonstreator merged 1 commit into
mainfrom
changeset-release/main
Nov 28, 2026
Merged

dillonstreator merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

txob@0.7.0

Minor Changes

  • #97 767b90d Thanks @dillonstreator! - Store event data as published and parse it once at delivery. publish used to store the schema's output and the processor parsed that again as input, so z.date() fields were dead-lettered on their first claim on Postgres, Redis and DynamoDB (while passing on the memory store), transforms ran twice, and transforms whose output isn't valid input never delivered. Now:

    • the event keeps the data passed to publish (the schema's input), and handlers and priority/perKey/defer functions get the parsed output, with transforms applied once;
    • publish validates the data in the form the store hands it back (new optional TxOBStore.roundTripData), so data a store can't keep, like a Date under z.date() in a JSON store, throws TxOBValidationError at publish with a hint to use z.coerce.date();
    • the memory store keeps event data as JSON like the Postgres, Redis and DynamoDB stores.

    Behavior change: publishes that used to be dead-lettered at delivery now throw, and new rows in txob_events.data hold the input shape. Events stored by 0.6.0 deliver as before. See MIGRATING.md.

  • #98 84faea4 Thanks @dillonstreator! - Fix three ways one bad delivery could stall processing, and make the documented defer opt-out real:

    • Deleted events: a pending delivery whose event was deleted (e.g. by a retention job; only Postgres cascades) crashed every MongoDB processor through an unhandled rejection, wedged the whole Redis claim batch with climbing attempts, and was claimed again forever on DynamoDB. These stores now mark such deliveries dead with last_error "event '...' not found", and the processor marks dead any delivery a store returns without its event and no longer lets an unexpected error escape as an unhandled rejection.
    • perKey keys: a key function returning undefined, which its type allows, blocked every handler of the event forever. undefined now means no key, like null.
    • Fan-out errors: a priority, perKey key or defer function that throws or returns an invalid value still keeps the event unfanned, but only for the failing handler's retry.maxAttempts fan-out attempts; then its delivery is created dead with the error and the event's other handlers run. TxOBNewDelivery gains an optional error that stores must honor (custom stores: see MIGRATING.md).
    • defer functions are now called for events published with defer and can override it, as the docs said; returning null/undefined keeps the publisher's defer_until. Behavior change: a defer function that returns a value for such events used to be ignored and now wins. Static defer values are still overridden by publish.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from a09885a to 4a82de2 Compare November 28, 2026 19:48
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 4a82de2 to 80aef55 Compare November 28, 2026 20:18
@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.04%. Comparing base (f550c3b) to head (80aef55).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #99   +/-   ##
=======================================
  Coverage   96.04%   96.04%           
=======================================
  Files          34       34           
  Lines        2478     2478           
  Branches      497      497           
=======================================
  Hits         2380     2380           
  Misses         81       81           
  Partials       17       17           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dillonstreator
dillonstreator merged commit ebdb24c into main Nov 28, 2026
3 checks passed
@dillonstreator
dillonstreator deleted the changeset-release/main branch November 28, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant