Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## v2.0.2 - 2025-11-XX

### Fixed

- [Admin Service] Correctly return open locks after adding namespace to locks
- [Admin Service] Publish events improved error handling

## v2.0.1 - 2025-11-24

### Fixed
Expand Down
206 changes: 100 additions & 106 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cap-js-community/event-queue",
"version": "2.0.1",
"version": "2.0.2",
"description": "An event queue that enables secure transactional processing of asynchronous and periodic events, featuring instant event processing with Redis Pub/Sub and load distribution across all application instances.",
"main": "src/index.js",
"types": "src/index.d.ts",
Expand Down
5 changes: 3 additions & 2 deletions src/shared/distributedLock.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,15 @@ const getAllLocksRedis = async () => {
// NOTE: use SCAN because KEYS is not supported for cluster clients
for (const client of clients) {
for await (const key of client.scanIterator({ MATCH: "EVENT*", COUNT: 1000 })) {
const [, tenant, guidOrType, subType] = key.split("##");
const [, namespace, tenant, guidOrType, subType] = key.split("##");
if (!subType) {
continue;
}

const pipeline = client.multi();
output.push({
tenant: tenant,
namespace,
tenant,
type: guidOrType,
subType: subType,
});
Expand Down
Loading