@marianmeres/webrtc 1.4.5 → 1.4.6

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.
Files changed (2) hide show
  1. package/AGENTS.md +13 -6
  2. package/package.json +3 -3
package/AGENTS.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ```yaml
6
6
  name: "@marianmeres/webrtc"
7
- version: "1.0.2"
7
+ version: "1.4.5"
8
8
  license: MIT
9
9
  author: Marian Meres
10
10
  repository: https://github.com/marianmeres/webrtc
@@ -27,12 +27,13 @@ A lightweight, framework-agnostic WebRTC manager providing:
27
27
 
28
28
  ```yaml
29
29
  production:
30
- - "@marianmeres/fsm": "^2.11.0"
31
- - "@marianmeres/pubsub": "^2.4.4"
30
+ - "@marianmeres/clog": "^3.15.2"
31
+ - "@marianmeres/fsm": "^2.16.4"
32
+ - "@marianmeres/pubsub": "^2.4.6"
32
33
  development:
33
- - "@std/assert": "^1.0.16"
34
- - "@std/fs": "^1.0.20"
35
- - "@std/path": "^1.1.3"
34
+ - "@std/assert": "^1.0.18"
35
+ - "@std/fs": "^1.0.22"
36
+ - "@std/path": "^1.1.4"
36
37
  ```
37
38
 
38
39
  ## File Structure
@@ -154,6 +155,12 @@ interface WebRTCManagerConfig {
154
155
  autoReconnect?: boolean; // Default: false
155
156
  maxReconnectAttempts?: number; // Default: 5
156
157
  reconnectDelay?: number; // Default: 1000ms
158
+ fullReconnectTimeout?: number; // Timeout for full reconnect strategy (default: 30000ms)
159
+ shouldReconnect?: (context: { // Callback to control reconnection
160
+ attempt: number;
161
+ maxAttempts: number;
162
+ strategy: "ice-restart" | "full";
163
+ }) => boolean;
157
164
  logger?: Logger; // Custom logger, falls back to console
158
165
  }
159
166
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/webrtc",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "type": "module",
5
5
  "main": "dist/mod.js",
6
6
  "types": "dist/mod.d.ts",
@@ -13,8 +13,8 @@
13
13
  "author": "Marian Meres",
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
- "@marianmeres/fsm": "^2.16.4",
17
- "@marianmeres/pubsub": "^2.4.4"
16
+ "@marianmeres/fsm": "^2.16.5",
17
+ "@marianmeres/pubsub": "^2.4.6"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",