@sockethub/server 5.0.0-alpha.13 → 5.0.0-alpha.15

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.
@@ -5,10 +5,19 @@ declare class ProcessManager {
5
5
  private readonly parentSecret1;
6
6
  private readonly parentSecret2;
7
7
  private init;
8
+ private readonly ensureChains;
8
9
  constructor(parentId: string, parentSecret1: string, parentSecret2: string, init: IInitObject);
9
- get(platform: string, actorId: string, sessionId?: string, sessionIp?: string): PlatformInstance;
10
+ get(platform: string, actorId: string, sessionId?: string, sessionIp?: string): Promise<PlatformInstance>;
10
11
  private createPlatformInstance;
12
+ /**
13
+ * ensureProcessNow() yields the event loop while awaiting a dead
14
+ * predecessor's teardown, so two concurrent messages for the same
15
+ * identifier could otherwise both find no live instance and each fork
16
+ * a replacement child. Chain runs per identifier so only one is
17
+ * inspecting or creating that identifier's instance at a time.
18
+ */
11
19
  private ensureProcess;
20
+ private ensureProcessNow;
12
21
  /**
13
22
  * Each platform instance forks a full child process; without an upper
14
23
  * bound, a public instance can be driven into resource exhaustion.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sockethub/server",
3
3
  "description": "A polyglot messaging service, server libraries",
4
- "version": "5.0.0-alpha.13",
4
+ "version": "5.0.0-alpha.15",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "author": "Nick Jennings <nick@silverbucket.net>",
@@ -51,18 +51,18 @@
51
51
  "homepage": "https://sockethub.org",
52
52
  "dependencies": {
53
53
  "@sentry/node": "^10.36.0",
54
- "@sockethub/client": "^5.0.0-alpha.13",
55
- "@sockethub/data-layer": "^1.0.0-alpha.13",
56
- "@sockethub/logger": "^1.0.0-alpha.13",
57
- "@sockethub/schemas": "^3.0.0-alpha.13",
58
- "@sockethub/util": "^1.0.0-alpha.1",
59
- "body-parser": "^1.20.4",
54
+ "@sockethub/client": "^5.0.0-alpha.15",
55
+ "@sockethub/data-layer": "^1.0.0-alpha.15",
56
+ "@sockethub/logger": "^1.0.0-alpha.15",
57
+ "@sockethub/schemas": "^3.0.0-alpha.15",
58
+ "@sockethub/util": "^1.0.0-alpha.3",
60
59
  "chalk": "^5.6.2",
61
60
  "convict": "^6.2.5",
62
61
  "ejs": "^3.1.10",
63
- "express": "^4.22.1",
62
+ "express": "^5.1.0",
64
63
  "express-rate-limit": "^8.2.1",
65
64
  "jquery": "^3.7.1",
65
+ "rate-limit-redis": "^4.2.0",
66
66
  "socket.io": "^4.8.3"
67
67
  },
68
68
  "scripts": {
@@ -75,11 +75,10 @@
75
75
  "test:integration": "bun test ./integration/*.integration.ts"
76
76
  },
77
77
  "devDependencies": {
78
- "@types/body-parser": "^1.19.6",
79
78
  "@types/bun": "latest",
80
79
  "@types/convict": "^6.1.6",
81
80
  "@types/debug": "^4.1.12",
82
- "@types/express": "^4.17.25",
81
+ "@types/express": "^5.0.0",
83
82
  "@types/jquery": "^3.5.33",
84
83
  "@types/sinon": "^17.0.4",
85
84
  "jaribu": "^2.2.3",
@@ -87,13 +86,13 @@
87
86
  "web-streams-polyfill": "^3.3.3"
88
87
  },
89
88
  "optionalDependencies": {
90
- "@sockethub/examples": "^1.0.0-alpha.13",
91
- "@sockethub/platform-dummy": "^3.0.0-alpha.13",
92
- "@sockethub/platform-feeds": "^4.0.0-alpha.13",
93
- "@sockethub/platform-irc": "^4.0.0-alpha.13",
94
- "@sockethub/platform-metadata": "^1.0.1-alpha.8",
95
- "@sockethub/platform-xmpp": "^5.0.0-alpha.13"
89
+ "@sockethub/examples": "^1.0.0-alpha.15",
90
+ "@sockethub/platform-dummy": "^3.0.0-alpha.15",
91
+ "@sockethub/platform-feeds": "^4.0.0-alpha.15",
92
+ "@sockethub/platform-irc": "^4.0.0-alpha.15",
93
+ "@sockethub/platform-metadata": "^1.0.1-alpha.10",
94
+ "@sockethub/platform-xmpp": "^5.0.0-alpha.15"
96
95
  },
97
- "gitHead": "864733e5b34449ef39542eceb4ff11aa308081bc",
96
+ "gitHead": "e7cd0a35abb39c878ff82a60884f0f7ecf4a0a87",
98
97
  "types": "./dist/index.d.ts"
99
98
  }