@nymphjs/server 1.0.0-beta.11 → 1.0.0-beta.111

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,444 @@
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.111](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.110...v1.0.0-beta.111) (2026-03-10)
7
+
8
+ **Note:** Version bump only for package @nymphjs/server
9
+
10
+ # [1.0.0-beta.110](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.109...v1.0.0-beta.110) (2026-02-23)
11
+
12
+ **Note:** Version bump only for package @nymphjs/server
13
+
14
+ # [1.0.0-beta.109](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.108...v1.0.0-beta.109) (2026-02-15)
15
+
16
+ **Note:** Version bump only for package @nymphjs/server
17
+
18
+ # [1.0.0-beta.108](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.107...v1.0.0-beta.108) (2026-02-15)
19
+
20
+ **Note:** Version bump only for package @nymphjs/server
21
+
22
+ # [1.0.0-beta.107](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.106...v1.0.0-beta.107) (2026-02-13)
23
+
24
+ ### Features
25
+
26
+ - move HttpError to nymph package to fix circular dependency ([ef8876e](https://github.com/sciactive/nymphjs/commit/ef8876e7dc2ad398038d66d324bf4c65227de681))
27
+ - update packages and fix all new issues ([0e9d17c](https://github.com/sciactive/nymphjs/commit/0e9d17c6e2db12c11bdfb559031719c1b52b5fa1))
28
+
29
+ # [1.0.0-beta.106](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.105...v1.0.0-beta.106) (2025-12-05)
30
+
31
+ **Note:** Version bump only for package @nymphjs/server
32
+
33
+ # [1.0.0-beta.105](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.104...v1.0.0-beta.105) (2025-12-04)
34
+
35
+ **Note:** Version bump only for package @nymphjs/server
36
+
37
+ # [1.0.0-beta.104](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.103...v1.0.0-beta.104) (2025-12-01)
38
+
39
+ **Note:** Version bump only for package @nymphjs/server
40
+
41
+ # [1.0.0-beta.103](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.102...v1.0.0-beta.103) (2025-11-30)
42
+
43
+ **Note:** Version bump only for package @nymphjs/server
44
+
45
+ # [1.0.0-beta.102](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.101...v1.0.0-beta.102) (2025-11-29)
46
+
47
+ **Note:** Version bump only for package @nymphjs/server
48
+
49
+ # [1.0.0-beta.101](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.100...v1.0.0-beta.101) (2025-11-29)
50
+
51
+ **Note:** Version bump only for package @nymphjs/server
52
+
53
+ # [1.0.0-beta.100](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.99...v1.0.0-beta.100) (2025-11-29)
54
+
55
+ **Note:** Version bump only for package @nymphjs/server
56
+
57
+ # [1.0.0-beta.99](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.98...v1.0.0-beta.99) (2025-11-26)
58
+
59
+ **Note:** Version bump only for package @nymphjs/server
60
+
61
+ # [1.0.0-beta.98](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.97...v1.0.0-beta.98) (2025-10-24)
62
+
63
+ **Note:** Version bump only for package @nymphjs/server
64
+
65
+ # [1.0.0-beta.97](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.96...v1.0.0-beta.97) (2025-10-04)
66
+
67
+ **Note:** Version bump only for package @nymphjs/server
68
+
69
+ # [1.0.0-beta.96](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.95...v1.0.0-beta.96) (2025-09-01)
70
+
71
+ **Note:** Version bump only for package @nymphjs/server
72
+
73
+ # [1.0.0-beta.95](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.94...v1.0.0-beta.95) (2025-08-30)
74
+
75
+ **Note:** Version bump only for package @nymphjs/server
76
+
77
+ # [1.0.0-beta.94](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.93...v1.0.0-beta.94) (2025-08-25)
78
+
79
+ ### Features
80
+
81
+ - add returnNullOnNotFound client option, and some tilmeld domain checks ([20c0207](https://github.com/sciactive/nymphjs/commit/20c0207ef537a948f84f830f1db88d207e1c386b))
82
+
83
+ # [1.0.0-beta.93](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.92...v1.0.0-beta.93) (2025-08-16)
84
+
85
+ **Note:** Version bump only for package @nymphjs/server
86
+
87
+ # [1.0.0-beta.92](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.91...v1.0.0-beta.92) (2025-04-06)
88
+
89
+ ### Bug Fixes
90
+
91
+ - wait for an event loop after each iteration of server iterator to allow data to flush ([c0822ad](https://github.com/sciactive/nymphjs/commit/c0822ad3b7ebe56eb85915f4d950a9f656c5862a))
92
+
93
+ ### Features
94
+
95
+ - add 'object' return type which returns plain entity data objects ([26a4cd3](https://github.com/sciactive/nymphjs/commit/26a4cd3226145408dc34bff52b1eafe3b046313b))
96
+
97
+ # [1.0.0-beta.91](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.90...v1.0.0-beta.91) (2025-03-07)
98
+
99
+ **Note:** Version bump only for package @nymphjs/server
100
+
101
+ # [1.0.0-beta.90](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.89...v1.0.0-beta.90) (2025-02-09)
102
+
103
+ **Note:** Version bump only for package @nymphjs/server
104
+
105
+ # [1.0.0-beta.89](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.88...v1.0.0-beta.89) (2025-02-09)
106
+
107
+ **Note:** Version bump only for package @nymphjs/server
108
+
109
+ # [1.0.0-beta.88](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.87...v1.0.0-beta.88) (2025-01-30)
110
+
111
+ **Note:** Version bump only for package @nymphjs/server
112
+
113
+ # [1.0.0-beta.87](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.86...v1.0.0-beta.87) (2025-01-20)
114
+
115
+ ### Features
116
+
117
+ - deprecate node client and allow multiple client instances to each log in own users ([17b42f4](https://github.com/sciactive/nymphjs/commit/17b42f449f2355a3ce896b8e86a47edd660e9277))
118
+
119
+ # [1.0.0-beta.86](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.85...v1.0.0-beta.86) (2024-12-28)
120
+
121
+ ### Bug Fixes
122
+
123
+ - entity search functions handling of null values ([6ac0335](https://github.com/sciactive/nymphjs/commit/6ac0335ecb792979ecfb621395a55b68a607429f))
124
+
125
+ # [1.0.0-beta.85](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.84...v1.0.0-beta.85) (2024-12-27)
126
+
127
+ **Note:** Version bump only for package @nymphjs/server
128
+
129
+ # [1.0.0-beta.84](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.83...v1.0.0-beta.84) (2024-12-21)
130
+
131
+ **Note:** Version bump only for package @nymphjs/server
132
+
133
+ # [1.0.0-beta.83](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.82...v1.0.0-beta.83) (2024-12-20)
134
+
135
+ **Note:** Version bump only for package @nymphjs/server
136
+
137
+ # [1.0.0-beta.82](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.81...v1.0.0-beta.82) (2024-12-15)
138
+
139
+ ### Features
140
+
141
+ - migrate to es modules, upgrade all packages, migrate to Svelte 5 ([3f2b9e5](https://github.com/sciactive/nymphjs/commit/3f2b9e517b39934eddce66601d7fc747fbf3f9e6))
142
+
143
+ # [1.0.0-beta.81](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.80...v1.0.0-beta.81) (2024-09-28)
144
+
145
+ **Note:** Version bump only for package @nymphjs/server
146
+
147
+ # [1.0.0-beta.80](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.79...v1.0.0-beta.80) (2024-09-28)
148
+
149
+ **Note:** Version bump only for package @nymphjs/server
150
+
151
+ # [1.0.0-beta.79](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.78...v1.0.0-beta.79) (2024-09-28)
152
+
153
+ **Note:** Version bump only for package @nymphjs/server
154
+
155
+ # [1.0.0-beta.78](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.77...v1.0.0-beta.78) (2024-09-27)
156
+
157
+ **Note:** Version bump only for package @nymphjs/server
158
+
159
+ # [1.0.0-beta.77](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.76...v1.0.0-beta.77) (2024-09-26)
160
+
161
+ **Note:** Version bump only for package @nymphjs/server
162
+
163
+ # [1.0.0-beta.76](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.75...v1.0.0-beta.76) (2024-09-25)
164
+
165
+ **Note:** Version bump only for package @nymphjs/server
166
+
167
+ # [1.0.0-beta.75](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.74...v1.0.0-beta.75) (2024-09-24)
168
+
169
+ **Note:** Version bump only for package @nymphjs/server
170
+
171
+ # [1.0.0-beta.74](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.73...v1.0.0-beta.74) (2024-09-21)
172
+
173
+ **Note:** Version bump only for package @nymphjs/server
174
+
175
+ # [1.0.0-beta.73](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.72...v1.0.0-beta.73) (2024-09-20)
176
+
177
+ **Note:** Version bump only for package @nymphjs/server
178
+
179
+ # [1.0.0-beta.72](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.71...v1.0.0-beta.72) (2024-09-20)
180
+
181
+ **Note:** Version bump only for package @nymphjs/server
182
+
183
+ # [1.0.0-beta.71](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.70...v1.0.0-beta.71) (2024-09-20)
184
+
185
+ **Note:** Version bump only for package @nymphjs/server
186
+
187
+ # [1.0.0-beta.70](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.69...v1.0.0-beta.70) (2024-09-20)
188
+
189
+ **Note:** Version bump only for package @nymphjs/server
190
+
191
+ # [1.0.0-beta.69](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.68...v1.0.0-beta.69) (2024-09-19)
192
+
193
+ **Note:** Version bump only for package @nymphjs/server
194
+
195
+ # [1.0.0-beta.68](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.67...v1.0.0-beta.68) (2024-09-19)
196
+
197
+ **Note:** Version bump only for package @nymphjs/server
198
+
199
+ # [1.0.0-beta.67](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.66...v1.0.0-beta.67) (2024-09-03)
200
+
201
+ **Note:** Version bump only for package @nymphjs/server
202
+
203
+ # [1.0.0-beta.66](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.65...v1.0.0-beta.66) (2024-08-06)
204
+
205
+ **Note:** Version bump only for package @nymphjs/server
206
+
207
+ # [1.0.0-beta.65](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.64...v1.0.0-beta.65) (2024-08-05)
208
+
209
+ **Note:** Version bump only for package @nymphjs/server
210
+
211
+ # [1.0.0-beta.64](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.63...v1.0.0-beta.64) (2024-08-04)
212
+
213
+ **Note:** Version bump only for package @nymphjs/server
214
+
215
+ # [1.0.0-beta.63](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.62...v1.0.0-beta.63) (2024-06-18)
216
+
217
+ ### Bug Fixes
218
+
219
+ - undo ts compilation to module change ([84be6d4](https://github.com/sciactive/nymphjs/commit/84be6d434be29f8afd53907d15be2eb77d1736ce))
220
+
221
+ ### Features
222
+
223
+ - export data iterator ([b86aa19](https://github.com/sciactive/nymphjs/commit/b86aa19fc77d744b5a683046dfb697fc4746df5c))
224
+
225
+ # [1.0.0-beta.62](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.61...v1.0.0-beta.62) (2024-06-15)
226
+
227
+ **Note:** Version bump only for package @nymphjs/server
228
+
229
+ # [1.0.0-beta.61](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.60...v1.0.0-beta.61) (2024-06-14)
230
+
231
+ **Note:** Version bump only for package @nymphjs/server
232
+
233
+ # [1.0.0-beta.60](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.59...v1.0.0-beta.60) (2024-06-14)
234
+
235
+ **Note:** Version bump only for package @nymphjs/server
236
+
237
+ # [1.0.0-beta.59](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.58...v1.0.0-beta.59) (2024-06-14)
238
+
239
+ ### Features
240
+
241
+ - add uniqueness constraint feature, refactor some types ([8133d32](https://github.com/sciactive/nymphjs/commit/8133d32b2c04907182dca2e9171b8217ed1b57e4))
242
+
243
+ # [1.0.0-beta.58](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.57...v1.0.0-beta.58) (2024-06-12)
244
+
245
+ **Note:** Version bump only for package @nymphjs/server
246
+
247
+ # [1.0.0-beta.57](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.56...v1.0.0-beta.57) (2024-06-12)
248
+
249
+ **Note:** Version bump only for package @nymphjs/server
250
+
251
+ # [1.0.0-beta.56](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.55...v1.0.0-beta.56) (2024-06-11)
252
+
253
+ ### Features
254
+
255
+ - allow connections where tokens are not renewed ([39071a5](https://github.com/sciactive/nymphjs/commit/39071a545644075190bd8213be25e0a0c46d2b5d))
256
+
257
+ # [1.0.0-beta.55](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.54...v1.0.0-beta.55) (2024-05-26)
258
+
259
+ **Note:** Version bump only for package @nymphjs/server
260
+
261
+ # [1.0.0-beta.54](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.53...v1.0.0-beta.54) (2024-05-26)
262
+
263
+ **Note:** Version bump only for package @nymphjs/server
264
+
265
+ # [1.0.0-beta.53](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.52...v1.0.0-beta.53) (2024-05-26)
266
+
267
+ **Note:** Version bump only for package @nymphjs/server
268
+
269
+ # [1.0.0-beta.52](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.51...v1.0.0-beta.52) (2024-05-25)
270
+
271
+ **Note:** Version bump only for package @nymphjs/server
272
+
273
+ # [1.0.0-beta.51](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.50...v1.0.0-beta.51) (2024-04-12)
274
+
275
+ **Note:** Version bump only for package @nymphjs/server
276
+
277
+ # [1.0.0-beta.50](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.49...v1.0.0-beta.50) (2024-04-08)
278
+
279
+ **Note:** Version bump only for package @nymphjs/server
280
+
281
+ # [1.0.0-beta.49](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.48...v1.0.0-beta.49) (2024-03-04)
282
+
283
+ **Note:** Version bump only for package @nymphjs/server
284
+
285
+ # [1.0.0-beta.48](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.47...v1.0.0-beta.48) (2023-11-10)
286
+
287
+ **Note:** Version bump only for package @nymphjs/server
288
+
289
+ # [1.0.0-beta.47](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.46...v1.0.0-beta.47) (2023-11-10)
290
+
291
+ **Note:** Version bump only for package @nymphjs/server
292
+
293
+ # [1.0.0-beta.46](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.45...v1.0.0-beta.46) (2023-08-29)
294
+
295
+ **Note:** Version bump only for package @nymphjs/server
296
+
297
+ # [1.0.0-beta.45](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.44...v1.0.0-beta.45) (2023-07-17)
298
+
299
+ **Note:** Version bump only for package @nymphjs/server
300
+
301
+ # [1.0.0-beta.44](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.43...v1.0.0-beta.44) (2023-07-13)
302
+
303
+ **Note:** Version bump only for package @nymphjs/server
304
+
305
+ # [1.0.0-beta.43](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2023-07-12)
306
+
307
+ **Note:** Version bump only for package @nymphjs/server
308
+
309
+ # [1.0.0-beta.42](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.41...v1.0.0-beta.42) (2023-07-12)
310
+
311
+ **Note:** Version bump only for package @nymphjs/server
312
+
313
+ # [1.0.0-beta.41](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.40...v1.0.0-beta.41) (2023-07-12)
314
+
315
+ ### Features
316
+
317
+ - remove synchronous database queries ([b579fb2](https://github.com/sciactive/nymphjs/commit/b579fb2eacd96cdd1b386a62c5c00cdbb2438f6e))
318
+ - rewrite server side async api to match client side api ([9c537a8](https://github.com/sciactive/nymphjs/commit/9c537a8be49e9b989af0822a4c2236e8c2d20f87))
319
+
320
+ # [1.0.0-beta.40](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.39...v1.0.0-beta.40) (2023-07-10)
321
+
322
+ **Note:** Version bump only for package @nymphjs/server
323
+
324
+ # [1.0.0-beta.39](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.38...v1.0.0-beta.39) (2023-07-09)
325
+
326
+ **Note:** Version bump only for package @nymphjs/server
327
+
328
+ # [1.0.0-beta.38](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.37...v1.0.0-beta.38) (2023-07-09)
329
+
330
+ **Note:** Version bump only for package @nymphjs/server
331
+
332
+ # [1.0.0-beta.37](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.36...v1.0.0-beta.37) (2023-07-09)
333
+
334
+ **Note:** Version bump only for package @nymphjs/server
335
+
336
+ # [1.0.0-beta.36](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.35...v1.0.0-beta.36) (2023-07-09)
337
+
338
+ **Note:** Version bump only for package @nymphjs/server
339
+
340
+ # [1.0.0-beta.35](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.34...v1.0.0-beta.35) (2023-06-14)
341
+
342
+ ### Features
343
+
344
+ - add iteratable server call support using event streams ([fa7c1ec](https://github.com/sciactive/nymphjs/commit/fa7c1ec869e1fb52db20c8245e98a681f73dbf83))
345
+
346
+ # [1.0.0-beta.34](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.33...v1.0.0-beta.34) (2023-05-13)
347
+
348
+ **Note:** Version bump only for package @nymphjs/server
349
+
350
+ # [1.0.0-beta.33](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.32...v1.0.0-beta.33) (2023-05-13)
351
+
352
+ **Note:** Version bump only for package @nymphjs/server
353
+
354
+ # [1.0.0-beta.32](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.31...v1.0.0-beta.32) (2023-05-13)
355
+
356
+ **Note:** Version bump only for package @nymphjs/server
357
+
358
+ # [1.0.0-beta.31](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.30...v1.0.0-beta.31) (2023-05-12)
359
+
360
+ **Note:** Version bump only for package @nymphjs/server
361
+
362
+ # [1.0.0-beta.30](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.29...v1.0.0-beta.30) (2023-05-12)
363
+
364
+ **Note:** Version bump only for package @nymphjs/server
365
+
366
+ # [1.0.0-beta.29](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.28...v1.0.0-beta.29) (2023-05-08)
367
+
368
+ **Note:** Version bump only for package @nymphjs/server
369
+
370
+ # [1.0.0-beta.28](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.27...v1.0.0-beta.28) (2023-05-05)
371
+
372
+ **Note:** Version bump only for package @nymphjs/server
373
+
374
+ # [1.0.0-beta.27](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.26...v1.0.0-beta.27) (2023-05-04)
375
+
376
+ **Note:** Version bump only for package @nymphjs/server
377
+
378
+ # [1.0.0-beta.26](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.25...v1.0.0-beta.26) (2023-05-04)
379
+
380
+ **Note:** Version bump only for package @nymphjs/server
381
+
382
+ # [1.0.0-beta.25](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.24...v1.0.0-beta.25) (2023-05-04)
383
+
384
+ ### Features
385
+
386
+ - 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)
387
+
388
+ # [1.0.0-beta.24](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2023-05-02)
389
+
390
+ **Note:** Version bump only for package @nymphjs/server
391
+
392
+ # [1.0.0-beta.23](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2023-05-02)
393
+
394
+ **Note:** Version bump only for package @nymphjs/server
395
+
396
+ # [1.0.0-beta.22](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2023-05-01)
397
+
398
+ **Note:** Version bump only for package @nymphjs/server
399
+
400
+ # [1.0.0-beta.21](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2023-05-01)
401
+
402
+ **Note:** Version bump only for package @nymphjs/server
403
+
404
+ # [1.0.0-beta.20](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2023-04-30)
405
+
406
+ **Note:** Version bump only for package @nymphjs/server
407
+
408
+ # [1.0.0-beta.19](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2023-04-29)
409
+
410
+ **Note:** Version bump only for package @nymphjs/server
411
+
412
+ # [1.0.0-beta.18](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2023-04-27)
413
+
414
+ **Note:** Version bump only for package @nymphjs/server
415
+
416
+ # [1.0.0-beta.17](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2023-04-24)
417
+
418
+ **Note:** Version bump only for package @nymphjs/server
419
+
420
+ # [1.0.0-beta.16](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2023-03-31)
421
+
422
+ ### Features
423
+
424
+ - add ability to tell tilmeld to log in a specific user during authentication ([922e145](https://github.com/sciactive/nymphjs/commit/922e1452adae44bed2aa9655be16e19796acb39b))
425
+
426
+ # [1.0.0-beta.15](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2023-03-23)
427
+
428
+ **Note:** Version bump only for package @nymphjs/server
429
+
430
+ # [1.0.0-beta.14](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2023-03-17)
431
+
432
+ **Note:** Version bump only for package @nymphjs/server
433
+
434
+ # [1.0.0-beta.13](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2023-03-16)
435
+
436
+ **Note:** Version bump only for package @nymphjs/server
437
+
438
+ # [1.0.0-beta.12](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2023-03-04)
439
+
440
+ ### Bug Fixes
441
+
442
+ - make sure all default exports are also named exports ([06da9a6](https://github.com/sciactive/nymphjs/commit/06da9a61d444860f70b7f5b95b824547d9880500))
443
+
6
444
  # [1.0.0-beta.11](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2023-02-27)
7
445
 
8
446
  ### Features
package/README.md CHANGED
@@ -28,7 +28,7 @@ const nymph = new Nymph(
28
28
  {},
29
29
  new SQLite3Driver({
30
30
  filename: ':memory:',
31
- })
31
+ }),
32
32
  );
33
33
  const MyEntity = nymph.addEntityClass(MyEntityClass);
34
34
 
@@ -46,7 +46,7 @@ app.listen(80);
46
46
 
47
47
  You will need to import any entities you use on the server, so they are available to Nymph.
48
48
 
49
- Now you can configure your client using your server's address (and the optional path, if set).
49
+ Now you can configure your **client**, using your server's address (and the optional path, if set).
50
50
 
51
51
  ```ts
52
52
  import { Nymph } from '@nymphjs/client';
@@ -61,9 +61,81 @@ const nymph = new Nymph({
61
61
  const MyEntity = nymph.addEntityClass(MyEntityClass);
62
62
  ```
63
63
 
64
+ The REST server will authenticate for you using the Tilmeld auth cookie and XSRF token, but if you need to, you can authenticate in some other way (like OAuth2), and place the user in `response.locals.user`.
65
+
66
+ ```ts
67
+ import express from 'express';
68
+ import { Nymph } from '@nymphjs/nymph';
69
+ import SQLite3Driver from '@nymphjs/driver-sqlite3';
70
+ import { Tilmeld } from '@nymphjs/tilmeld';
71
+ import createServer from '@nymphjs/server';
72
+ import setup from '@nymphjs/tilmeld-setup';
73
+
74
+ // Import all the entities you will be using on the server.
75
+ import MyEntityClass from './entities/MyEntity';
76
+
77
+ // Consfigure Tilmeld.
78
+ const tilmeld = new Tilmeld({
79
+ appName: 'My Awesome App',
80
+ appUrl: 'https://mydomain.tld',
81
+ setupPath: '/user',
82
+ });
83
+
84
+ // Configure Nymph.
85
+ const nymph = new Nymph(
86
+ {},
87
+ new SQLite3Driver({
88
+ filename: ':memory:',
89
+ }),
90
+ tilmeld,
91
+ );
92
+ const MyEntity = nymph.addEntityClass(MyEntityClass);
93
+
94
+ // Create your Express app.
95
+ const app = express();
96
+
97
+ // Authenticate the user manually.
98
+ app.use('/rest', async (request, response, next) => {
99
+ const { User } = tilmeld;
100
+
101
+ try {
102
+ // Somehow authenticate the user...
103
+ const user = await User.factoryUsername(username);
104
+
105
+ if (user.guid != null && user.enabled) {
106
+ response.locals.user = user;
107
+ }
108
+
109
+ next();
110
+ } catch (e: any) {
111
+ response.status(500);
112
+ response.send('Internal server error.');
113
+ }
114
+ });
115
+
116
+ // Create and use the REST server (with an optional path).
117
+ app.use('/rest', createServer(nymph));
118
+
119
+ // Create Tilmeld setup app.
120
+ app.user(
121
+ '/user',
122
+ setup(
123
+ {
124
+ restUrl: 'https://mydomain.tld/rest',
125
+ },
126
+ nymph,
127
+ ),
128
+ );
129
+
130
+ // Do anything else you need to do...
131
+
132
+ // Start your server.
133
+ app.listen(80);
134
+ ```
135
+
64
136
  # License
65
137
 
66
- Copyright 2021 SciActive Inc
138
+ Copyright 2021-2025 SciActive Inc
67
139
 
68
140
  Licensed under the Apache License, Version 2.0 (the "License");
69
141
  you may not use this file except in compliance with the License.
@@ -1,27 +1,22 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const express_1 = __importDefault(require("express"));
7
- const driver_sqlite3_1 = __importDefault(require("@nymphjs/driver-sqlite3"));
8
- const nymph_1 = require("@nymphjs/nymph");
9
- const client_node_1 = require("@nymphjs/client-node");
10
- const index_1 = __importDefault(require("./index"));
11
- const testArtifacts_1 = require("./testArtifacts");
1
+ import express from 'express';
2
+ import SQLite3Driver from '@nymphjs/driver-sqlite3';
3
+ import { Nymph as NymphServer } from '@nymphjs/nymph';
4
+ import { Nymph } from '@nymphjs/client';
5
+ import createServer from './index.js';
6
+ import { EmployeeModel as EmployeeModelClass, Employee as EmployeeClass, } from './testArtifacts.js';
12
7
  const sqliteConfig = {
13
8
  filename: ':memory:',
14
9
  };
15
- const nymphServer = new nymph_1.Nymph({}, new driver_sqlite3_1.default(sqliteConfig));
16
- const EmployeeModel = nymphServer.addEntityClass(testArtifacts_1.EmployeeModel);
17
- const app = (0, express_1.default)();
18
- app.use('/test', (0, index_1.default)(nymphServer));
10
+ const nymphServer = new NymphServer({}, new SQLite3Driver(sqliteConfig));
11
+ const EmployeeModel = nymphServer.addEntityClass(EmployeeModelClass);
12
+ const app = express();
13
+ app.use('/test', createServer(nymphServer));
19
14
  const server = app.listen(5081);
20
- const nymph = new client_node_1.Nymph({
15
+ const nymph = new Nymph({
21
16
  restUrl: 'http://localhost:5081/test/',
22
17
  weakCache: true,
23
18
  });
24
- const Employee = nymph.addEntityClass(testArtifacts_1.Employee);
19
+ const Employee = nymph.addEntityClass(EmployeeClass);
25
20
  describe('Nymph REST Server and Client with Client Weak Ref Cache', () => {
26
21
  async function createJane() {
27
22
  const jane = await Employee.factory();
@@ -41,6 +36,7 @@ describe('Nymph REST Server and Client with Client Weak Ref Cache', () => {
41
36
  return jane;
42
37
  }
43
38
  it('change an entity and check weakCache', async () => {
39
+ // @ts-ignore TS doesn't know about WeakRef.
44
40
  if (typeof WeakRef === 'undefined') {
45
41
  throw new Error('You must run this test in an environment that includes WeakRef.');
46
42
  }
@@ -58,7 +54,7 @@ describe('Nymph REST Server and Client with Client Weak Ref Cache', () => {
58
54
  expect(checkB.current).toEqual(false);
59
55
  });
60
56
  afterAll(() => {
61
- server.close();
57
+ server.close(); // avoid jest open handle error
62
58
  });
63
59
  });
64
60
  //# sourceMappingURL=cache.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cache.test.js","sourceRoot":"","sources":["../src/cache.test.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAC9B,6EAAoD;AACpD,0CAAsD;AACtD,sDAA6C;AAE7C,oDAAmC;AACnC,mDAGyB;AAEzB,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,WAAW,GAAG,IAAI,aAAW,CAAC,EAAE,EAAE,IAAI,wBAAa,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,MAAM,aAAa,GAAG,WAAW,CAAC,cAAc,CAAC,6BAAkB,CAAC,CAAC;AAErE,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;AACtB,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,IAAA,eAAY,EAAC,WAAW,CAAC,CAAC,CAAC;AAC5C,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAEhC,MAAM,KAAK,GAAG,IAAI,mBAAK,CAAC;IACtB,OAAO,EAAE,6BAA6B;IACtC,SAAS,EAAE,IAAI;CAChB,CAAC,CAAC;AACH,MAAM,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,wBAAa,CAAC,CAAC;AAErD,QAAQ,CAAC,yDAAyD,EAAE,GAAG,EAAE;IACvE,KAAK,UAAU,UAAU;QACvB,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,CA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AAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAC5C,CAAC;QAED,QAAQ,CAAC,OAAO,GAAG,KAAK,CAAC;QAEzB,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACtC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,GAAG,EAAE;QACZ,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,+BAA+B;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { OptionsJson } from 'body-parser';
2
+ import { Nymph } from '@nymphjs/nymph';
3
+ export declare class ForbiddenClassError extends Error {
4
+ constructor(message: string);
5
+ }
6
+ /**
7
+ * A REST server middleware creator for Nymph.
8
+ *
9
+ * Written by Hunter Perrin for SciActive.
10
+ *
11
+ * @author Hunter Perrin <hperrin@gmail.com>
12
+ * @copyright SciActive Inc
13
+ * @see http://nymph.io/
14
+ */
15
+ export declare function createServer(nymph: Nymph, { jsonOptions }?: {
16
+ jsonOptions?: OptionsJson;
17
+ }): import("express-serve-static-core").Express;