Skip to content

Releases: ProjectOpenSea/stream-js

v0.3.0

17 Apr 19:21

Choose a tag to compare

Minor changes

  • Add version field to BaseStreamMessage for out-of-order event resolution (#70, OS2-31317)

Every stream event now includes a numeric version field that is monotonically increasing per source entity. Use it to handle out-of-order event delivery: when two events arrive for the same entity, the one with the higher version is newer state.

Version scale depends on event type

Event types version semantic
item_listed, item_cancelled, item_received_offer, item_received_bid, collection_offer, trait_offer, order_invalidate, order_revalidate Order revision counter (small monotonic integer per order)
item_transferred, item_sold, item_metadata_updated Epoch milliseconds of the event's source timestamp

Both representations are monotonic and sufficient for resolving out-of-order delivery, but the two scales are not comparable to each other. Compare version only for the same entity within the same event family. See the Event Versioning section of the README for usage examples.

Notes

  • This is an additive change: BaseStreamMessage<Payload> gains a required version: number field.
  • No code changes required for existing consumers — events previously continued to work without the field at runtime; upgrading picks up the new typed field for those who want to use it.

v0.2.3

12 Nov 23:46
e21442b

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.2...v0.2.3

v0.2.2

03 Nov 18:40
11aa30a

Choose a tag to compare

What's Changed

  • Add item field to OrderValidationEventPayload by @ryanio in #491
  • chore(deps): update dependency phoenix to v1.8.1 by @renovate[bot] in #481

Full Changelog: v0.2.1...v0.2.2

v0.2.1

26 Aug 21:11
aae332f

Choose a tag to compare

What's Changed

v0.2.0 was missing dist folder, added prepublish build step.

Full Changelog: v0.2.0...v0.2.1

v0.2.0

25 Jul 16:28
3ea5d31

Choose a tag to compare

What's Changed

Full Changelog: v0.1.3...v0.2.0

v0.1.3

13 Nov 18:13
d18562e

Choose a tag to compare

What's Changed

Full Changelog: v0.1.1...v0.1.3

v0.1.2

05 Sep 18:09
cf72273

Choose a tag to compare

Adding chain to event payload type.

v0.1.1

05 Sep 18:06
cf72273

Choose a tag to compare

PRs included:

  • fix exports types, #302
  • add src to files, #293
  • update dev deps to carat range, #296

v0.1.0

31 May 17:00
faeda9a

Choose a tag to compare

Added 2 New Event Types:

  1. Invalidation Events
  2. Revalidation Events

An order can become invalidated for a number of reasons. For example, if the offerer WETH balance falls below the offer. In order to allow users to keep a copy of the order book up to date, OpenSea is planning to begin rolling out events being emitted for both invalidation and revalidation events.

0.0.26

14 Apr 06:24
51ae817

Choose a tag to compare

Improve typing