@nymphjs/pubsub 1.0.0-beta.10 → 1.0.0-beta.100

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,418 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-beta.100](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.99...v1.0.0-beta.100) (2025-11-29)
7
+
8
+ **Note:** Version bump only for package @nymphjs/pubsub
9
+
10
+ # [1.0.0-beta.99](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.98...v1.0.0-beta.99) (2025-11-26)
11
+
12
+ ### Features
13
+
14
+ - add full-text-search, but this is interim and will be redesigned ([56333db](https://github.com/sciactive/nymphjs/commit/56333dbe6a25755baed4e108ba4d71b3187fe8d0))
15
+ - add sciactive tokenizer based full text search ([173c96e](https://github.com/sciactive/nymphjs/commit/173c96e02827e8ca155f55e08f33e8cdef475ab9))
16
+ - clean up old fts code, get ready for new implementation ([e8d7a6d](https://github.com/sciactive/nymphjs/commit/e8d7a6d6c6cdbb3dd74bd3e6a104e02a4caf283b))
17
+
18
+ # [1.0.0-beta.98](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.97...v1.0.0-beta.98) (2025-10-24)
19
+
20
+ **Note:** Version bump only for package @nymphjs/pubsub
21
+
22
+ # [1.0.0-beta.97](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.96...v1.0.0-beta.97) (2025-10-04)
23
+
24
+ **Note:** Version bump only for package @nymphjs/pubsub
25
+
26
+ # [1.0.0-beta.96](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.95...v1.0.0-beta.96) (2025-09-01)
27
+
28
+ **Note:** Version bump only for package @nymphjs/pubsub
29
+
30
+ # [1.0.0-beta.95](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.94...v1.0.0-beta.95) (2025-08-30)
31
+
32
+ **Note:** Version bump only for package @nymphjs/pubsub
33
+
34
+ # [1.0.0-beta.94](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.93...v1.0.0-beta.94) (2025-08-25)
35
+
36
+ ### Features
37
+
38
+ - add returnNullOnNotFound client option, and some tilmeld domain checks ([20c0207](https://github.com/sciactive/nymphjs/commit/20c0207ef537a948f84f830f1db88d207e1c386b))
39
+
40
+ # [1.0.0-beta.93](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.92...v1.0.0-beta.93) (2025-08-16)
41
+
42
+ **Note:** Version bump only for package @nymphjs/pubsub
43
+
44
+ # [1.0.0-beta.92](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.91...v1.0.0-beta.92) (2025-04-06)
45
+
46
+ **Note:** Version bump only for package @nymphjs/pubsub
47
+
48
+ # [1.0.0-beta.91](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.90...v1.0.0-beta.91) (2025-03-07)
49
+
50
+ **Note:** Version bump only for package @nymphjs/pubsub
51
+
52
+ # [1.0.0-beta.90](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.89...v1.0.0-beta.90) (2025-02-09)
53
+
54
+ **Note:** Version bump only for package @nymphjs/pubsub
55
+
56
+ # [1.0.0-beta.89](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.88...v1.0.0-beta.89) (2025-02-09)
57
+
58
+ **Note:** Version bump only for package @nymphjs/pubsub
59
+
60
+ # [1.0.0-beta.88](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.87...v1.0.0-beta.88) (2025-01-30)
61
+
62
+ ### Bug Fixes
63
+
64
+ - allow removing pubsub publisher ([10fa223](https://github.com/sciactive/nymphjs/commit/10fa22322447d9295ed06413f19b9c86adb4c4ab))
65
+
66
+ # [1.0.0-beta.87](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.86...v1.0.0-beta.87) (2025-01-20)
67
+
68
+ ### Features
69
+
70
+ - deprecate node client and allow multiple client instances to each log in own users ([17b42f4](https://github.com/sciactive/nymphjs/commit/17b42f449f2355a3ce896b8e86a47edd660e9277))
71
+
72
+ # [1.0.0-beta.86](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.85...v1.0.0-beta.86) (2024-12-28)
73
+
74
+ **Note:** Version bump only for package @nymphjs/pubsub
75
+
76
+ # [1.0.0-beta.85](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.84...v1.0.0-beta.85) (2024-12-27)
77
+
78
+ ### Bug Fixes
79
+
80
+ - inTransaction could incorrectly report transaction state ([a7e2ca5](https://github.com/sciactive/nymphjs/commit/a7e2ca57f5b19e9b5b2a04dcc8b79e3937db20e5))
81
+
82
+ # [1.0.0-beta.84](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.83...v1.0.0-beta.84) (2024-12-21)
83
+
84
+ **Note:** Version bump only for package @nymphjs/pubsub
85
+
86
+ # [1.0.0-beta.83](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.82...v1.0.0-beta.83) (2024-12-20)
87
+
88
+ ### Bug Fixes
89
+
90
+ - flaky pubsub tests ([b580f78](https://github.com/sciactive/nymphjs/commit/b580f78461d78c11682dc2bba99dc5a8d82f6f5b))
91
+
92
+ # [1.0.0-beta.82](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.81...v1.0.0-beta.82) (2024-12-15)
93
+
94
+ ### Features
95
+
96
+ - migrate to es modules, upgrade all packages, migrate to Svelte 5 ([3f2b9e5](https://github.com/sciactive/nymphjs/commit/3f2b9e517b39934eddce66601d7fc747fbf3f9e6))
97
+
98
+ # [1.0.0-beta.81](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.80...v1.0.0-beta.81) (2024-09-28)
99
+
100
+ **Note:** Version bump only for package @nymphjs/pubsub
101
+
102
+ # [1.0.0-beta.80](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.79...v1.0.0-beta.80) (2024-09-28)
103
+
104
+ **Note:** Version bump only for package @nymphjs/pubsub
105
+
106
+ # [1.0.0-beta.79](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.78...v1.0.0-beta.79) (2024-09-28)
107
+
108
+ **Note:** Version bump only for package @nymphjs/pubsub
109
+
110
+ # [1.0.0-beta.78](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.77...v1.0.0-beta.78) (2024-09-27)
111
+
112
+ ### Bug Fixes
113
+
114
+ - flaky test ([8098714](https://github.com/sciactive/nymphjs/commit/8098714026c92c9b97917a766b0f9453b0804699))
115
+
116
+ # [1.0.0-beta.77](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.76...v1.0.0-beta.77) (2024-09-26)
117
+
118
+ **Note:** Version bump only for package @nymphjs/pubsub
119
+
120
+ # [1.0.0-beta.76](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.75...v1.0.0-beta.76) (2024-09-25)
121
+
122
+ **Note:** Version bump only for package @nymphjs/pubsub
123
+
124
+ # [1.0.0-beta.75](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.74...v1.0.0-beta.75) (2024-09-24)
125
+
126
+ **Note:** Version bump only for package @nymphjs/pubsub
127
+
128
+ # [1.0.0-beta.74](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.73...v1.0.0-beta.74) (2024-09-21)
129
+
130
+ **Note:** Version bump only for package @nymphjs/pubsub
131
+
132
+ # [1.0.0-beta.73](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.72...v1.0.0-beta.73) (2024-09-20)
133
+
134
+ **Note:** Version bump only for package @nymphjs/pubsub
135
+
136
+ # [1.0.0-beta.72](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.71...v1.0.0-beta.72) (2024-09-20)
137
+
138
+ **Note:** Version bump only for package @nymphjs/pubsub
139
+
140
+ # [1.0.0-beta.71](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.70...v1.0.0-beta.71) (2024-09-20)
141
+
142
+ **Note:** Version bump only for package @nymphjs/pubsub
143
+
144
+ # [1.0.0-beta.70](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.69...v1.0.0-beta.70) (2024-09-20)
145
+
146
+ **Note:** Version bump only for package @nymphjs/pubsub
147
+
148
+ # [1.0.0-beta.69](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.68...v1.0.0-beta.69) (2024-09-19)
149
+
150
+ **Note:** Version bump only for package @nymphjs/pubsub
151
+
152
+ # [1.0.0-beta.68](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.67...v1.0.0-beta.68) (2024-09-19)
153
+
154
+ **Note:** Version bump only for package @nymphjs/pubsub
155
+
156
+ # [1.0.0-beta.67](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.66...v1.0.0-beta.67) (2024-09-03)
157
+
158
+ **Note:** Version bump only for package @nymphjs/pubsub
159
+
160
+ # [1.0.0-beta.66](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.65...v1.0.0-beta.66) (2024-08-06)
161
+
162
+ **Note:** Version bump only for package @nymphjs/pubsub
163
+
164
+ # [1.0.0-beta.65](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.64...v1.0.0-beta.65) (2024-08-05)
165
+
166
+ **Note:** Version bump only for package @nymphjs/pubsub
167
+
168
+ # [1.0.0-beta.64](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.63...v1.0.0-beta.64) (2024-08-04)
169
+
170
+ **Note:** Version bump only for package @nymphjs/pubsub
171
+
172
+ # [1.0.0-beta.63](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.62...v1.0.0-beta.63) (2024-06-18)
173
+
174
+ ### Bug Fixes
175
+
176
+ - undo ts compilation to module change ([84be6d4](https://github.com/sciactive/nymphjs/commit/84be6d434be29f8afd53907d15be2eb77d1736ce))
177
+
178
+ ### Features
179
+
180
+ - export data iterator ([b86aa19](https://github.com/sciactive/nymphjs/commit/b86aa19fc77d744b5a683046dfb697fc4746df5c))
181
+
182
+ # [1.0.0-beta.62](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.61...v1.0.0-beta.62) (2024-06-15)
183
+
184
+ **Note:** Version bump only for package @nymphjs/pubsub
185
+
186
+ # [1.0.0-beta.61](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.60...v1.0.0-beta.61) (2024-06-14)
187
+
188
+ **Note:** Version bump only for package @nymphjs/pubsub
189
+
190
+ # [1.0.0-beta.60](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.59...v1.0.0-beta.60) (2024-06-14)
191
+
192
+ **Note:** Version bump only for package @nymphjs/pubsub
193
+
194
+ # [1.0.0-beta.59](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.58...v1.0.0-beta.59) (2024-06-14)
195
+
196
+ **Note:** Version bump only for package @nymphjs/pubsub
197
+
198
+ # [1.0.0-beta.58](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.57...v1.0.0-beta.58) (2024-06-12)
199
+
200
+ **Note:** Version bump only for package @nymphjs/pubsub
201
+
202
+ # [1.0.0-beta.57](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.56...v1.0.0-beta.57) (2024-06-12)
203
+
204
+ **Note:** Version bump only for package @nymphjs/pubsub
205
+
206
+ # [1.0.0-beta.56](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.55...v1.0.0-beta.56) (2024-06-11)
207
+
208
+ **Note:** Version bump only for package @nymphjs/pubsub
209
+
210
+ # [1.0.0-beta.55](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.54...v1.0.0-beta.55) (2024-05-26)
211
+
212
+ **Note:** Version bump only for package @nymphjs/pubsub
213
+
214
+ # [1.0.0-beta.54](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.53...v1.0.0-beta.54) (2024-05-26)
215
+
216
+ **Note:** Version bump only for package @nymphjs/pubsub
217
+
218
+ # [1.0.0-beta.53](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.52...v1.0.0-beta.53) (2024-05-26)
219
+
220
+ **Note:** Version bump only for package @nymphjs/pubsub
221
+
222
+ # [1.0.0-beta.52](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.51...v1.0.0-beta.52) (2024-05-25)
223
+
224
+ **Note:** Version bump only for package @nymphjs/pubsub
225
+
226
+ # [1.0.0-beta.51](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.50...v1.0.0-beta.51) (2024-04-12)
227
+
228
+ **Note:** Version bump only for package @nymphjs/pubsub
229
+
230
+ # [1.0.0-beta.50](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.49...v1.0.0-beta.50) (2024-04-08)
231
+
232
+ **Note:** Version bump only for package @nymphjs/pubsub
233
+
234
+ # [1.0.0-beta.49](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.48...v1.0.0-beta.49) (2024-03-04)
235
+
236
+ **Note:** Version bump only for package @nymphjs/pubsub
237
+
238
+ # [1.0.0-beta.48](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.47...v1.0.0-beta.48) (2023-11-10)
239
+
240
+ **Note:** Version bump only for package @nymphjs/pubsub
241
+
242
+ # [1.0.0-beta.47](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.46...v1.0.0-beta.47) (2023-11-10)
243
+
244
+ **Note:** Version bump only for package @nymphjs/pubsub
245
+
246
+ # [1.0.0-beta.46](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.45...v1.0.0-beta.46) (2023-08-29)
247
+
248
+ ### Bug Fixes
249
+
250
+ - make the name even much more correct this time ([8d0b381](https://github.com/sciactive/nymphjs/commit/8d0b3817925ce9b1de21d2f9248f6cdec0f7d3f0))
251
+
252
+ # [1.0.0-beta.45](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.44...v1.0.0-beta.45) (2023-07-17)
253
+
254
+ ### Bug Fixes
255
+
256
+ - missing pubsub updates when new top level match uses qref with multiple results ([6dc26e2](https://github.com/sciactive/nymphjs/commit/6dc26e280453794ea9ce6c2b77482f85eb62bd23))
257
+
258
+ # [1.0.0-beta.44](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.43...v1.0.0-beta.44) (2023-07-13)
259
+
260
+ **Note:** Version bump only for package @nymphjs/pubsub
261
+
262
+ # [1.0.0-beta.43](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2023-07-12)
263
+
264
+ **Note:** Version bump only for package @nymphjs/pubsub
265
+
266
+ # [1.0.0-beta.42](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.41...v1.0.0-beta.42) (2023-07-12)
267
+
268
+ ### Features
269
+
270
+ - make fillSession async so that gatekeeper can be sync ([fb6def4](https://github.com/sciactive/nymphjs/commit/fb6def45cd031516c9bcd3438f905e2ff881707b))
271
+
272
+ # [1.0.0-beta.41](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.40...v1.0.0-beta.41) (2023-07-12)
273
+
274
+ ### Features
275
+
276
+ - remove synchronous database queries ([b579fb2](https://github.com/sciactive/nymphjs/commit/b579fb2eacd96cdd1b386a62c5c00cdbb2438f6e))
277
+
278
+ # [1.0.0-beta.40](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.39...v1.0.0-beta.40) (2023-07-10)
279
+
280
+ **Note:** Version bump only for package @nymphjs/pubsub
281
+
282
+ # [1.0.0-beta.39](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.38...v1.0.0-beta.39) (2023-07-09)
283
+
284
+ **Note:** Version bump only for package @nymphjs/pubsub
285
+
286
+ # [1.0.0-beta.38](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.37...v1.0.0-beta.38) (2023-07-09)
287
+
288
+ **Note:** Version bump only for package @nymphjs/pubsub
289
+
290
+ # [1.0.0-beta.37](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.36...v1.0.0-beta.37) (2023-07-09)
291
+
292
+ **Note:** Version bump only for package @nymphjs/pubsub
293
+
294
+ # [1.0.0-beta.36](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.35...v1.0.0-beta.36) (2023-07-09)
295
+
296
+ **Note:** Version bump only for package @nymphjs/pubsub
297
+
298
+ # [1.0.0-beta.35](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.34...v1.0.0-beta.35) (2023-06-14)
299
+
300
+ **Note:** Version bump only for package @nymphjs/pubsub
301
+
302
+ # [1.0.0-beta.34](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.33...v1.0.0-beta.34) (2023-05-13)
303
+
304
+ ### Bug Fixes
305
+
306
+ - subscribeWith making guid null ([dbb38d4](https://github.com/sciactive/nymphjs/commit/dbb38d424f2395bbfa01ab4a0663dcaebf0c7aa7))
307
+
308
+ # [1.0.0-beta.33](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.32...v1.0.0-beta.33) (2023-05-13)
309
+
310
+ ### Bug Fixes
311
+
312
+ - don't send initial entities for qref subscriptions ([b07ed5c](https://github.com/sciactive/nymphjs/commit/b07ed5cb0404aa85dd58dc951261a2b4e3d2bcbf))
313
+
314
+ # [1.0.0-beta.32](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.31...v1.0.0-beta.32) (2023-05-13)
315
+
316
+ ### Features
317
+
318
+ - issue initial request with pubsub instead of rest on subscribe ([8a232d2](https://github.com/sciactive/nymphjs/commit/8a232d2faeb8622924f9c35a01a8f71a70659bb3))
319
+
320
+ # [1.0.0-beta.31](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.30...v1.0.0-beta.31) (2023-05-12)
321
+
322
+ **Note:** Version bump only for package @nymphjs/pubsub
323
+
324
+ # [1.0.0-beta.30](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.29...v1.0.0-beta.30) (2023-05-12)
325
+
326
+ ### Features
327
+
328
+ - allow providing getEntityClass with a class instead of string ([ecd64c1](https://github.com/sciactive/nymphjs/commit/ecd64c1bf92e3657889613b76bcc46652f371ead))
329
+
330
+ # [1.0.0-beta.29](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.28...v1.0.0-beta.29) (2023-05-08)
331
+
332
+ **Note:** Version bump only for package @nymphjs/pubsub
333
+
334
+ # [1.0.0-beta.28](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.27...v1.0.0-beta.28) (2023-05-05)
335
+
336
+ **Note:** Version bump only for package @nymphjs/pubsub
337
+
338
+ # [1.0.0-beta.27](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.26...v1.0.0-beta.27) (2023-05-04)
339
+
340
+ **Note:** Version bump only for package @nymphjs/pubsub
341
+
342
+ # [1.0.0-beta.26](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.25...v1.0.0-beta.26) (2023-05-04)
343
+
344
+ ### Bug Fixes
345
+
346
+ - broken pubsub test ([99de0e4](https://github.com/sciactive/nymphjs/commit/99de0e4e7a79420bae1c5df5fb8fcbfafe894ace))
347
+
348
+ # [1.0.0-beta.25](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.24...v1.0.0-beta.25) (2023-05-04)
349
+
350
+ ### Features
351
+
352
+ - add flags to disable rest and pubsub support on an entity class ([52106a3](https://github.com/sciactive/nymphjs/commit/52106a3d44065bcfec40d361344bf1eba59a5136)), closes [#1](https://github.com/sciactive/nymphjs/issues/1)
353
+
354
+ # [1.0.0-beta.24](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2023-05-02)
355
+
356
+ **Note:** Version bump only for package @nymphjs/pubsub
357
+
358
+ # [1.0.0-beta.23](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2023-05-02)
359
+
360
+ **Note:** Version bump only for package @nymphjs/pubsub
361
+
362
+ # [1.0.0-beta.22](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2023-05-01)
363
+
364
+ **Note:** Version bump only for package @nymphjs/pubsub
365
+
366
+ # [1.0.0-beta.21](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2023-05-01)
367
+
368
+ **Note:** Version bump only for package @nymphjs/pubsub
369
+
370
+ # [1.0.0-beta.20](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2023-04-30)
371
+
372
+ **Note:** Version bump only for package @nymphjs/pubsub
373
+
374
+ # [1.0.0-beta.19](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2023-04-29)
375
+
376
+ **Note:** Version bump only for package @nymphjs/pubsub
377
+
378
+ # [1.0.0-beta.18](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2023-04-27)
379
+
380
+ ### Bug Fixes
381
+
382
+ - small type issues ([b91579c](https://github.com/sciactive/nymphjs/commit/b91579c9c1e96500d903332648f5a93c9a7e7d9b))
383
+
384
+ ### Features
385
+
386
+ - add the ability to switch to a user without their password ([ca4466a](https://github.com/sciactive/nymphjs/commit/ca4466af1704d68905ac087350a8cf151c1072d9))
387
+
388
+ # [1.0.0-beta.17](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2023-04-24)
389
+
390
+ **Note:** Version bump only for package @nymphjs/pubsub
391
+
392
+ # [1.0.0-beta.16](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2023-03-31)
393
+
394
+ **Note:** Version bump only for package @nymphjs/pubsub
395
+
396
+ # [1.0.0-beta.15](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2023-03-23)
397
+
398
+ **Note:** Version bump only for package @nymphjs/pubsub
399
+
400
+ # [1.0.0-beta.14](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2023-03-17)
401
+
402
+ **Note:** Version bump only for package @nymphjs/pubsub
403
+
404
+ # [1.0.0-beta.13](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2023-03-16)
405
+
406
+ ### Bug Fixes
407
+
408
+ - pubsub publishing changes before transaction is finished ([a918cc1](https://github.com/sciactive/nymphjs/commit/a918cc1451e03015ecce20f1c9bf6ceb62b7dff1))
409
+
410
+ # [1.0.0-beta.12](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2023-03-04)
411
+
412
+ **Note:** Version bump only for package @nymphjs/pubsub
413
+
414
+ # [1.0.0-beta.11](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2023-02-27)
415
+
416
+ **Note:** Version bump only for package @nymphjs/pubsub
417
+
6
418
  # [1.0.0-beta.10](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2023-01-19)
7
419
 
8
420
  ### Bug Fixes
package/README.md CHANGED
@@ -27,7 +27,7 @@ const nymph = new Nymph(
27
27
  {},
28
28
  new SQLite3Driver({
29
29
  filename: ':memory:', // Put the correct driver/config here.
30
- })
30
+ }),
31
31
  );
32
32
  PubSub.initPublisher(pubSubConfig, nymph);
33
33
  ```
@@ -51,7 +51,7 @@ const nymph = new Nymph(
51
51
  {},
52
52
  new SQLite3Driver({
53
53
  filename: ':memory:', // Put the correct driver/config here.
54
- })
54
+ }),
55
55
  );
56
56
  // Don't forget to do this; even here!
57
57
  PubSub.initPublisher(pubSubConfig, nymph);
@@ -62,8 +62,8 @@ const pubsub = createServer(8080, pubSubConfig, nymph);
62
62
  If you need to provide custom handling in your server (like TLS), you can use the PubSub class directly and provide it a WebSocket server instance.
63
63
 
64
64
  ```ts
65
- import http from 'http';
66
- import { server as WebSocketServer } from 'websocket';
65
+ import http from 'node:http';
66
+ import ws from 'websocket';
67
67
  import SQLite3Driver from '@nymphjs/driver-sqlite3';
68
68
  import { Nymph } from '@nymphjs/nymph';
69
69
  import { PubSub } from '@nymphjs/pubsub';
@@ -81,7 +81,7 @@ const nymph = new Nymph(
81
81
  {},
82
82
  new SQLite3Driver({
83
83
  filename: ':memory:', // Put the correct driver/config here.
84
- })
84
+ }),
85
85
  );
86
86
  // Don't forget to do this; even here!
87
87
  PubSub.initPublisher(pubSubConfig, nymph);
@@ -95,10 +95,10 @@ const server = http.createServer((_request, response) => {
95
95
  const listener = server.listen(port, () => {
96
96
  console.log(
97
97
  new Date().toISOString(),
98
- `Nymph-PubSub server started listening on port ${port}.`
98
+ `Nymph-PubSub server started listening on port ${port}.`,
99
99
  );
100
100
  });
101
- const wsServer = new WebSocketServer({
101
+ const wsServer = new ws.server({
102
102
  httpServer: listener,
103
103
  // You should not use autoAcceptConnections for production
104
104
  // applications, as it defeats all standard cross-origin protection
@@ -117,7 +117,7 @@ See the [config declaration file](src/conf/d.ts).
117
117
 
118
118
  # License
119
119
 
120
- Copyright 2021 SciActive Inc
120
+ Copyright 2021-2025 SciActive Inc
121
121
 
122
122
  Licensed under the Apache License, Version 2.0 (the "License");
123
123
  you may not use this file except in compliance with the License.
package/dist/PubSub.d.ts CHANGED
@@ -1,39 +1,104 @@
1
1
  import { Nymph } from '@nymphjs/nymph';
2
- import { request, server as WebSocketServer, connection, Message } from 'websocket';
3
- import { Config } from './conf';
4
- import type { QuerySubscriptionData } from './PubSub.types';
2
+ import ws from 'websocket';
3
+ import { Config } from './conf/index.js';
4
+ import type { QuerySubscriptionData } from './PubSub.types.js';
5
+ /**
6
+ * A publish/subscribe server for Nymph.
7
+ *
8
+ * Written by Hunter Perrin for SciActive.
9
+ *
10
+ * @author Hunter Perrin <hperrin@gmail.com>
11
+ * @copyright SciActive Inc
12
+ * @see http://nymph.io/
13
+ */
5
14
  export default class PubSub {
15
+ /**
16
+ * The Nymph instance.
17
+ */
6
18
  nymph: Nymph;
19
+ /**
20
+ * The PubSub config.
21
+ */
7
22
  config: Config;
8
- server: WebSocketServer;
23
+ /**
24
+ * The WebSocket server.
25
+ */
26
+ server: ws.server;
9
27
  private sessions;
10
28
  protected querySubs: {
11
29
  [etype: string]: {
12
- [query: string]: Map<connection, QuerySubscriptionData>;
30
+ [query: string]: Map<ws.connection, QuerySubscriptionData>;
13
31
  };
14
32
  };
15
33
  protected uidSubs: {
16
- [uidName: string]: Map<connection, {
34
+ [uidName: string]: Map<ws.connection, {
17
35
  count: boolean;
18
36
  }>;
19
37
  };
20
- static initPublisher(config: Partial<Config>, nymph: Nymph): void;
38
+ protected static transactionPublishes: {
39
+ nymph: Nymph;
40
+ payload: string;
41
+ config: Config;
42
+ }[];
43
+ static initPublisher(config: Partial<Config>, nymph: Nymph): () => void;
21
44
  private static publish;
22
- constructor(config: Partial<Config>, nymph: Nymph, server: WebSocketServer);
45
+ private static isOrIsDescendant;
46
+ private static publishTransactionPublishes;
47
+ private static removeTransactionPublishes;
48
+ /**
49
+ * Initialize Nymph PubSub.
50
+ *
51
+ * @param config The PubSub configuration.
52
+ */
53
+ constructor(config: Partial<Config>, nymph: Nymph, server: ws.server);
23
54
  close(): void;
24
- handleRequest(request: request): void;
25
- onMessage(from: connection, msg: Message): Promise<void>;
26
- onClose(conn: connection, description: string): void;
27
- onError(conn: connection, e: Error): void;
55
+ handleRequest(request: ws.request): void;
56
+ /**
57
+ * Handle a message from a client.
58
+ */
59
+ onMessage(from: ws.connection, msg: ws.Message): Promise<void>;
60
+ /**
61
+ * Clean up after users who leave.
62
+ */
63
+ onClose(conn: ws.connection, description: string): void;
64
+ onError(conn: ws.connection, e: Error): void;
65
+ /**
66
+ * Handle an authentication from a client.
67
+ */
28
68
  private handleAuthentication;
69
+ /**
70
+ * Handle a subscribe or unsubscribe from a client.
71
+ */
29
72
  private handleSubscription;
73
+ /**
74
+ * Handle a subscribe or unsubscribe for a query from a client.
75
+ */
30
76
  private handleSubscriptionQuery;
77
+ /**
78
+ * Handle a subscribe or unsubscribe for a UID from a client.
79
+ */
31
80
  private handleSubscriptionUid;
81
+ /**
82
+ * Handle a publish from a client.
83
+ */
32
84
  private handlePublish;
85
+ /**
86
+ * Handle an entity publish from a client.
87
+ */
33
88
  private handlePublishEntity;
34
89
  private updateClient;
90
+ /**
91
+ * Handle a UID publish from a client.
92
+ */
35
93
  private handlePublishUid;
94
+ /**
95
+ * Relay publish data to other servers.
96
+ */
36
97
  private relay;
37
98
  private findQRefQueries;
99
+ /**
100
+ * This translates qref selectors into ref selectors using the "current" GUID
101
+ * list in the existing subscriptions.
102
+ */
38
103
  private translateQRefSelectors;
39
104
  }