vbstyle-event-models 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of vbstyle-event-models might be problematic. Click here for more details.

package/MessageRouter.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { Spinlock } from "./Spinlock";
2
2
 
3
+ export type MessageAction = (content: any) => void;
4
+
3
5
  /**
4
6
  * A singleton class for message routing, using a spinlock for thread safety.
5
7
  */
@@ -10,7 +12,7 @@ export class MessageRouter {
10
12
  */
11
13
  private static _instance: MessageRouter;
12
14
 
13
- private _subscribers: Map<string, ((content: any) => void)[]> = new Map();
15
+ private _subscribers: Map<string, MessageAction[]> = new Map();
14
16
  private _lock: Spinlock = new Spinlock();
15
17
 
16
18
  constructor() {
@@ -33,9 +35,9 @@ export class MessageRouter {
33
35
  /**
34
36
  * Subscribe to a message type.
35
37
  * @param {string} messageType - The type of message to subscribe to.
36
- * @param {function} handler - The handler function to call when a message of the specified type is sent.
38
+ * @param {MessageAction} handler - The handler function to call when a message of the specified type is sent.
37
39
  */
38
- public async subscribe(messageType: string, handler: (content: any) => void): Promise<void> {
40
+ public async subscribe(messageType: string, handler: MessageAction): Promise<void> {
39
41
  if (!messageType) throw new Error("messageType is required");
40
42
  if (typeof handler !== "function") throw new Error("handler must be a function");
41
43
 
@@ -85,9 +87,9 @@ export class MessageRouter {
85
87
  /**
86
88
  * Unsubscribe from a message type.
87
89
  * @param {string} messageType - The type of message to unsubscribe from.
88
- * @param {function} handler - The handler function to remove from the subscribers list.
90
+ * @param {MessageAction} handler - The handler function to remove from the subscribers list.
89
91
  */
90
- public async unsubscribe(messageType: string, handler: (content: any) => void): Promise<void> {
92
+ public async unsubscribe(messageType: string, handler: MessageAction): Promise<void> {
91
93
  await this._lock.acquireLock();
92
94
  try {
93
95
  if (this._subscribers.has(messageType)) {
@@ -1,17 +1,18 @@
1
1
  import { Spinlock } from "./Spinlock";
2
+ import { EventHandler, EventArgs } from "./BasicEventModel";
2
3
 
3
4
  /**
4
5
  * A simple event scheduler that uses a queue and a spinlock.
5
6
  */
6
7
  export class QueueEventScheduler {
7
- private _eventQueue: (() => void)[] = [];
8
+ private _eventQueue: EventHandler[] = [];
8
9
  private _spinlock: Spinlock = new Spinlock();
9
10
 
10
11
  /**
11
12
  * Schedule an event action to be processed.
12
13
  * @param {() => void} eventAction - The event action to be processed.
13
14
  */
14
- public async scheduleEventAction(eventAction: () => void): Promise<void> {
15
+ public async scheduleEventAction(eventAction: EventHandler): Promise<void> {
15
16
  await this._spinlock.acquireLock();
16
17
  this._eventQueue.push(eventAction);
17
18
  this._spinlock.releaseLock();
@@ -20,14 +21,14 @@ export class QueueEventScheduler {
20
21
  /**
21
22
  * Process all events in the queue.
22
23
  */
23
- public async processEvents(): Promise<void> {
24
+ public async processEvents(sender: any, e: EventArgs): Promise<void> {
24
25
  if (this._eventQueue.length === 0) {
25
26
  return;
26
27
  }
27
28
  await this._spinlock.acquireLock();
28
29
  while (this._eventQueue.length > 0) {
29
30
  const event = this._eventQueue.shift()!;
30
- event();
31
+ event(sender, e);
31
32
  }
32
33
  this._spinlock.releaseLock();
33
34
  }
@@ -45,8 +46,8 @@ export class QueueEventScheduler {
45
46
  * Get the number of pending events.
46
47
  * @returns {number} The number of pending events.
47
48
  */
48
- public get pendingEventCount(): number {
49
- this._spinlock.acquireLock();
49
+ public async getPendingEventCount(): Promise<number> {
50
+ await this._spinlock.acquireLock();
50
51
  const count = this._eventQueue.length;
51
52
  this._spinlock.releaseLock();
52
53
  return count;
package/README.md CHANGED
@@ -1,6 +1,13 @@
1
- # VB.NET-Style Event Models
1
+ # VB.NET-Style Event Models (TypeScript Edition)
2
2
 
3
- A TypeScript library providing event models, message routing, and event scheduling utilities with thread safety.
3
+ A TypeScript library providing event models, message routing, and event scheduling utilities with thread safety, inspired by VB.NET's event model.
4
+
5
+ Install this package via NPM: `npm install vbstyle-event-models`
6
+
7
+ Minor breaking change in 1.0.2: The `QueueEventScheduler` no longer supports `() => void` but requires this type from the basic event model:
8
+ ```typescript
9
+ type EventHandler = (sender: any, e: EventArgs) => void;
10
+ ```
4
11
 
5
12
  ## Features
6
13
 
@@ -9,12 +16,6 @@ A TypeScript library providing event models, message routing, and event scheduli
9
16
  - **QueueEventScheduler**: A queue-based event scheduler with thread safety
10
17
  - **Spinlock**: A simple mutex/lock implementation for thread safety
11
18
 
12
- ## Installation
13
-
14
- ```bash
15
- npm install vbstyle-event-models
16
- ```
17
-
18
19
  ## Usage
19
20
 
20
21
  ### BasicEventModel
@@ -76,22 +77,23 @@ import { QueueEventScheduler } from 'vbstyle-event-models';
76
77
  const scheduler = new QueueEventScheduler();
77
78
 
78
79
  // Schedule events
79
- await scheduler.scheduleEvent(() => {
80
+ await scheduler.scheduleEvent((sender, e) => {
80
81
  console.log('Event 1 executed');
81
82
  });
82
83
 
83
- await scheduler.scheduleEvent(() => {
84
+ await scheduler.scheduleEvent((sender, e) => {
84
85
  console.log('Event 2 executed');
85
86
  });
86
87
 
87
88
  // Process all events
88
- await scheduler.processEvents();
89
+ await scheduler.processEvents("", []);
89
90
 
90
91
  // Clear pending events
91
92
  await scheduler.clearEvents();
92
93
 
93
94
  // Get pending event count
94
- console.log('Pending events:', scheduler.pendingEventCount);
95
+ const count = await scheduler.getPendingEventCount();
96
+ console.log('Pending events:', count);
95
97
  ```
96
98
 
97
99
  ### Spinlock
@@ -1,3 +1,4 @@
1
+ export type MessageAction = (content: any) => void;
1
2
  /**
2
3
  * A singleton class for message routing, using a spinlock for thread safety.
3
4
  */
@@ -18,9 +19,9 @@ export declare class MessageRouter {
18
19
  /**
19
20
  * Subscribe to a message type.
20
21
  * @param {string} messageType - The type of message to subscribe to.
21
- * @param {function} handler - The handler function to call when a message of the specified type is sent.
22
+ * @param {MessageAction} handler - The handler function to call when a message of the specified type is sent.
22
23
  */
23
- subscribe(messageType: string, handler: (content: any) => void): Promise<void>;
24
+ subscribe(messageType: string, handler: MessageAction): Promise<void>;
24
25
  /**
25
26
  * Send a message of a specific type.
26
27
  * @param {string} messageType - The type of message to send.
@@ -30,9 +31,9 @@ export declare class MessageRouter {
30
31
  /**
31
32
  * Unsubscribe from a message type.
32
33
  * @param {string} messageType - The type of message to unsubscribe from.
33
- * @param {function} handler - The handler function to remove from the subscribers list.
34
+ * @param {MessageAction} handler - The handler function to remove from the subscribers list.
34
35
  */
35
- unsubscribe(messageType: string, handler: (content: any) => void): Promise<void>;
36
+ unsubscribe(messageType: string, handler: MessageAction): Promise<void>;
36
37
  /**
37
38
  * Clear all subscribers for a specific message type.
38
39
  * @param {string} messageType - The type of message to clear subscribers for.
@@ -35,7 +35,7 @@ class MessageRouter {
35
35
  /**
36
36
  * Subscribe to a message type.
37
37
  * @param {string} messageType - The type of message to subscribe to.
38
- * @param {function} handler - The handler function to call when a message of the specified type is sent.
38
+ * @param {MessageAction} handler - The handler function to call when a message of the specified type is sent.
39
39
  */
40
40
  subscribe(messageType, handler) {
41
41
  return __awaiter(this, void 0, void 0, function* () {
@@ -91,7 +91,7 @@ class MessageRouter {
91
91
  /**
92
92
  * Unsubscribe from a message type.
93
93
  * @param {string} messageType - The type of message to unsubscribe from.
94
- * @param {function} handler - The handler function to remove from the subscribers list.
94
+ * @param {MessageAction} handler - The handler function to remove from the subscribers list.
95
95
  */
96
96
  unsubscribe(messageType, handler) {
97
97
  return __awaiter(this, void 0, void 0, function* () {
@@ -21,5 +21,5 @@ export declare class QueueEventScheduler {
21
21
  * Get the number of pending events.
22
22
  * @returns {number} The number of pending events.
23
23
  */
24
- get pendingEventCount(): number;
24
+ getPendingEventCount(): Promise<number>;
25
25
  }
@@ -60,11 +60,13 @@ class QueueEventScheduler {
60
60
  * Get the number of pending events.
61
61
  * @returns {number} The number of pending events.
62
62
  */
63
- get pendingEventCount() {
64
- this._spinlock.acquireLock();
65
- const count = this._eventQueue.length;
66
- this._spinlock.releaseLock();
67
- return count;
63
+ getPendingEventCount() {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ yield this._spinlock.acquireLock();
66
+ const count = this._eventQueue.length;
67
+ this._spinlock.releaseLock();
68
+ return count;
69
+ });
68
70
  }
69
71
  }
70
72
  exports.QueueEventScheduler = QueueEventScheduler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vbstyle-event-models",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A TypeScript library providing event models, message routing, and event scheduling utilities with thread safety",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"BasicEventModel.d.ts","sourceRoot":"","sources":["../BasicEventModel.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC;AAE9B;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;AAE/D;;GAEG;AACH,qBAAa,eAAe;IACxB,OAAO,CAAC,aAAa,CAAsB;IAE3C;;;OAGG;IACI,UAAU,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAI9C;;;OAGG;IACI,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAIjD;;;;OAIG;IACI,UAAU,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,GAAG,IAAI;CAGrD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BasicEventModel.js","sourceRoot":"","sources":["../BasicEventModel.ts"],"names":[],"mappings":";;;AAUA;;GAEG;AACH,MAAa,eAAe;IAA5B;QACY,kBAAa,GAAmB,EAAE,CAAC;IA0B/C,CAAC;IAxBG;;;OAGG;IACI,UAAU,CAAC,OAAqB;QACnC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAED;;;OAGG;IACI,aAAa,CAAC,OAAqB;QACtC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;OAIG;IACI,UAAU,CAAC,MAAW,EAAE,CAAY;QACvC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;IAC9D,CAAC;CACJ;AA3BD,0CA2BC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageRouter.d.ts","sourceRoot":"","sources":["../MessageRouter.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,aAAa;IACtB;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,SAAS,CAAgB;IAExC,OAAO,CAAC,YAAY,CAAsD;IAC1E,OAAO,CAAC,KAAK,CAA4B;;IAQzC;;;OAGG;IACH,WAAkB,QAAQ,IAAI,aAAa,CAK1C;IAED;;;;OAIG;IACU,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAe3F;;;;OAIG;IACU,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IA2BnE;;;;OAIG;IACU,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAe7F;;;OAGG;IACU,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWjE;;;OAGG;IACU,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC;CAYrD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageRouter.js","sourceRoot":"","sources":["../MessageRouter.ts"],"names":[],"mappings":";;;;;;;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AAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;QACtC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ;AAhDD,kDAgDC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Spinlock.d.ts","sourceRoot":"","sources":["../Spinlock.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,QAAQ;IACjB,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,YAAY,CAAyB;IAE7C;;OAEG;IACU,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAazC;;OAEG;IACI,WAAW,IAAI,IAAI;IAiB1B;;OAEG;IACH,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED;;OAEG;IACH,IAAW,WAAW,IAAI,MAAM,CAE/B;CACJ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Spinlock.js","sourceRoot":"","sources":["../Spinlock.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;GAEG;AACH,MAAa,QAAQ;IAArB;QACY,WAAM,GAAY,KAAK,CAAC;QACxB,iBAAY,GAAsB,EAAE,CAAC;IAmDjD,CAAC;IAjDG;;OAEG;IACU,WAAW;;YACpB,0CAA0C;YAC1C,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;gBACnB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;YAC7B,CAAC;YAED,gCAAgC;YAChC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;gBACzB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACpC,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;IAED;;OAEG;IACI,WAAW;QACd,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACjD,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;QACzC,CAAC;QAED,mEAAmE;QACnE,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC/B,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,EAAG,CAAC;YAC/C,0DAA0D;YAC1D,mEAAmE;YACnE,WAAW,EAAE,CAAC;QAClB,CAAC;aAAM,CAAC;YACJ,+BAA+B;YAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACxB,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,IAAW,WAAW;QAClB,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;IACpC,CAAC;CACJ;AArDD,4BAqDC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,kDAAgC;AAChC,wDAAsC;AACtC,6CAA2B"}