Skip to content

Commit 8ba4a8c

Browse files
committed
chore(released): 1.1.0
1 parent fc00ad8 commit 8ba4a8c

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

docs/CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,33 @@ This is the **first stable release**, so there are no breaking changes from prev
132132

133133
- Fixed potential memory leak by enforcing maximum listener count
134134
- Improved type safety across the codebase by using more specific type definitions
135+
136+
## [1.1.0] - 2025-05-10
137+
138+
### Added
139+
140+
- A new **UUID generation utility** (`generateUUID`) to replace runtime‑specific APIs and ensure consistent ID creation across environments.
141+
- Broker mesh management methods:
142+
143+
- **`getConnections`** & **`getConnection`** for inspecting active connections.
144+
- **`disconnectAll`** to tear down all peer connections in one call.
145+
- **`callTo`** for invoking an action on a specific broker by ID.
146+
- **`broadcastTo`** for sending an event to a selected subset of brokers.
147+
- **`findBroker`** to locate a broker in the mesh—directly or via multi‑hop.
148+
149+
### Changed
150+
151+
- **Simplified the `call` API**:
152+
153+
- The default invocation (no strategy) now returns the **first** listener’s result.
154+
- Passing the `'all'` strategy returns an **array** of all listener results.
155+
- Removed explicit support for `'first'` and `'last'` parameters.
156+
157+
- **Refactored method overloads** in broker and channel classes to match the new call signature.
158+
- **Replaced** all `crypto.randomUUID()` calls with the new `generateUUID()` utility for platform‑agnostic behavior.
159+
- **Streamlined private state** initialization and TypeScript declarations for stronger type safety.
160+
161+
### Removed
162+
163+
- Deprecated the explicit `'first'`/`'last'` call strategies.
164+
- Eliminated obsolete API overloads and unused code paths to reduce maintenance burden.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@glandjs/events",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "A fast, zero‑dependency event broker and message bus for building scalable, event‑driven applications.",
55
"homepage": "https://github.com/glandjs/events#readme",
66
"author": "Mahdi <bitsgenix@gmail.com>",

0 commit comments

Comments
 (0)