Skip to content

chore: support v4.26; add queue and list storage primitives to do adapter#4

Merged
dcartertwo merged 1 commit into
dcartertwo:mainfrom
ndisidore:chore/upgrade-v4.26
Apr 16, 2026
Merged

chore: support v4.26; add queue and list storage primitives to do adapter#4
dcartertwo merged 1 commit into
dcartertwo:mainfrom
ndisidore:chore/upgrade-v4.26

Conversation

@ndisidore

Copy link
Copy Markdown
Contributor

Implement thread-scoped FIFO queues and key-scoped ordered lists in the Cloudflare DO state adapter to support concurrency strategies (queue, debounce) and message history in chat v4.26.

  • Add forceReleaseLock, enqueue, dequeue, queueDepth, appendToList, and getList methods to the adapter and durable object
  • Add schema migration v2 creating queue and lists tables with expiration indexes
  • Extend cleanup alarm and nextExpiry to garbage-collect expired queue and list entries
  • Fix cacheSetNx bug where expired rows could cause a PRIMARY KEY violation
  • Bump chat peer/dev dependency from ^4.0.0/^4.15.0 to ^4.26.0 for QueueEntry type
  • Add comprehensive tests for all new storage primitives

…apter

Implement thread-scoped FIFO queues and key-scoped ordered lists in the
Cloudflare DO state adapter to support concurrency strategies (queue,
debounce) and message history in chat v4.26.

- Add `forceReleaseLock`, `enqueue`, `dequeue`, `queueDepth`, `appendToList`, and `getList` methods
to the adapter and durable object
- Add schema migration v2 creating `queue` and `lists` tables with expiration indexes
- Extend cleanup alarm and `nextExpiry` to garbage-collect expired queue and list entries
- Fix `cacheSetNx` bug where expired rows could cause a PRIMARY KEY violation
- Bump `chat` peer/dev dependency from ^4.0.0/^4.15.0 to ^4.26.0 for `QueueEntry` type
- Add comprehensive tests for all new storage primitives
@ndisidore ndisidore changed the title chore: support v4.26; add queue and list storage primitives to dot adapter chore: support v4.26; add queue and list storage primitives to do adapter Apr 15, 2026
@dcartertwo dcartertwo merged commit 845e0f0 into dcartertwo:main Apr 16, 2026
1 check passed
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.

2 participants