@equinor/fusion-framework-react-module-signalr 4.0.4 → 4.0.5

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.
@@ -1 +1 @@
1
- export declare const version = "4.0.4";
1
+ export declare const version = "4.0.5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-react-module-signalr",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.js",
@@ -14,6 +14,9 @@
14
14
  "keywords": [],
15
15
  "author": "",
16
16
  "license": "ISC",
17
+ "files": [
18
+ "dist"
19
+ ],
17
20
  "publishConfig": {
18
21
  "access": "public"
19
22
  },
@@ -23,18 +26,18 @@
23
26
  "directory": "packages/react/modules/signalr"
24
27
  },
25
28
  "dependencies": {
26
- "@equinor/fusion-framework-module-signalr": "^14.0.0"
29
+ "@equinor/fusion-framework-module-signalr": "^14.0.1"
27
30
  },
28
31
  "devDependencies": {
29
32
  "@types/react": "^19.2.7",
30
33
  "react": "^19.2.1",
31
34
  "typescript": "^7.0.2",
32
- "@equinor/fusion-framework-react-module": "^4.0.3"
35
+ "@equinor/fusion-framework-react-module": "^4.0.4"
33
36
  },
34
37
  "peerDependencies": {
35
38
  "@types/react": "^18.0.0 || ^19.0.0",
36
39
  "react": "^18.0.0 || ^19.0.0",
37
- "@equinor/fusion-framework-react-module": "^4.0.3"
40
+ "@equinor/fusion-framework-react-module": "^4.0.4"
38
41
  },
39
42
  "peerDependenciesMeta": {
40
43
  "@types/react": {
package/CHANGELOG.md DELETED
@@ -1,592 +0,0 @@
1
- # Change Log
2
-
3
- ## 4.0.4
4
-
5
- ### Patch Changes
6
-
7
- - f663b46: Internal: promote packages already published on the `next` prerelease channel to their stable versions.
8
-
9
- ## 4.0.3
10
-
11
- ### Patch Changes
12
-
13
- - 80c3e4a: Internal: align source filenames with their exports (`use-signalr-provider.ts` → `useSignalRProvider.ts`, `use-signalr.ts` → `useTopic.ts`) while preserving existing public entrypoints; no public API changes.
14
- - 80c3e4a: Internal: add missing TSDoc comments to `useSignalRProvider` and `useTopic` to satisfy the `require-hook-tsdoc` lint rule. No functional change.
15
-
16
- ## 4.0.2
17
-
18
- ### Patch Changes
19
-
20
- - @equinor/fusion-framework-module-signalr@13.0.0
21
-
22
- ## 4.0.1
23
-
24
- ### Patch Changes
25
-
26
- - @equinor/fusion-framework-module-signalr@12.0.0
27
-
28
- ## 4.0.0
29
-
30
- ### Major Changes
31
-
32
- - abffa53: Major version bump for Fusion Framework React 19 release.
33
-
34
- All packages are bumped to the next major version as part of the React 19 upgrade. This release drops support for React versions below 18 and includes breaking changes across the framework.
35
-
36
- **Breaking changes:**
37
- - Peer dependencies now require React 18 or 19 (`^18.0.0 || ^19.0.0`)
38
- - React Router upgraded from v6 to v7
39
- - Navigation module refactored with new history API
40
- - `renderComponent` and `renderApp` now use `createRoot` API
41
-
42
- **Migration:**
43
- - Update your React version to 18.0.0 or higher before upgrading
44
- - Replace `NavigationProvider.createRouter()` with `@equinor/fusion-framework-react-router`
45
- - See individual package changelogs for package-specific migration steps
46
-
47
- - abffa53: Require React 18+ as peer dependency. React 17 is no longer supported.
48
-
49
- **Migration:** Update your application to React 18+ to continue using these packages.
50
-
51
- Closes https://github.com/equinor/fusion-framework/issues/3504
52
-
53
- - abffa53: Upgrade to React 19 and remove support for React versions lower than 18.
54
-
55
- **Breaking changes:**
56
- - Peer dependencies now require React 18 or 19 (`^18.0.0 || ^19.0.0`)
57
- - React 16 and 17 are no longer supported
58
- - Dev dependencies upgraded to React 19.2.1 and @types/react 19.2.7
59
-
60
- **Migration:**
61
- - Update your React version to 18.0.0 or higher before upgrading these packages
62
- - If using React 16 or 17, upgrade to React 18 or 19 first
63
-
64
- Closes https://github.com/equinor/fusion-framework/issues/3504
65
-
66
- ### Patch Changes
67
-
68
- - Updated dependencies [abffa53]
69
- - Updated dependencies [abffa53]
70
- - Updated dependencies [abffa53]
71
- - Updated dependencies [abffa53]
72
- - @equinor/fusion-framework-module-signalr@11.0.0
73
- - @equinor/fusion-framework-react-module@4.0.0
74
-
75
- ## 3.0.37
76
-
77
- ### Patch Changes
78
-
79
- - [#4157](https://github.com/equinor/fusion-framework/pull/4157) [`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581) Thanks [@Noggling](https://github.com/Noggling)! - Internal: patch release to align TypeScript types across packages for consistent type compatibility.
80
-
81
- - Updated dependencies [[`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581)]:
82
- - @equinor/fusion-framework-module-signalr@10.0.1
83
- - @equinor/fusion-framework-react-module@3.1.14
84
-
85
- ## 3.0.36
86
-
87
- ### Patch Changes
88
-
89
- - Updated dependencies []:
90
- - @equinor/fusion-framework-module-signalr@10.0.0
91
-
92
- ## 3.0.35
93
-
94
- ### Patch Changes
95
-
96
- - Updated dependencies [[`11fe961`](https://github.com/equinor/fusion-framework/commit/11fe961794e4960ccb987bc320268cc9b263f1f8)]:
97
- - @equinor/fusion-framework-module-signalr@9.0.0
98
-
99
- ## 3.0.34
100
-
101
- ### Patch Changes
102
-
103
- - Updated dependencies []:
104
- - @equinor/fusion-framework-module-signalr@8.0.0
105
-
106
- ## 3.0.33
107
-
108
- ### Patch Changes
109
-
110
- - Updated dependencies []:
111
- - @equinor/fusion-framework-module-signalr@7.0.0
112
- - @equinor/fusion-framework-react-module@3.1.13
113
-
114
- ## 3.0.32
115
-
116
- ### Patch Changes
117
-
118
- - [#3088](https://github.com/equinor/fusion-framework/pull/3088) [`7441b13`](https://github.com/equinor/fusion-framework/commit/7441b13aa50dd7362d1629086a27b6b4e571575d) Thanks [@eikeland](https://github.com/eikeland)! - chore: update package typesVersions
119
- - Updated package.json typesVersions.
120
- - Ensures backward compatibility with older node versions.
121
- - Ensured consistency with workspace and repository configuration.
122
-
123
- - Updated dependencies [[`7441b13`](https://github.com/equinor/fusion-framework/commit/7441b13aa50dd7362d1629086a27b6b4e571575d)]:
124
- - @equinor/fusion-framework-module-signalr@6.0.5
125
-
126
- ## 3.0.31
127
-
128
- ### Patch Changes
129
-
130
- - Updated dependencies []:
131
- - @equinor/fusion-framework-module-signalr@6.0.4
132
-
133
- ## 3.0.30
134
-
135
- ### Patch Changes
136
-
137
- - Updated dependencies []:
138
- - @equinor/fusion-framework-module-signalr@6.0.3
139
-
140
- ## 3.0.29
141
-
142
- ### Patch Changes
143
-
144
- - Updated dependencies []:
145
- - @equinor/fusion-framework-module-signalr@6.0.2
146
- - @equinor/fusion-framework-react-module@3.1.12
147
-
148
- ## 3.0.28
149
-
150
- ### Patch Changes
151
-
152
- - [#3054](https://github.com/equinor/fusion-framework/pull/3054) [`c6af3a3`](https://github.com/equinor/fusion-framework/commit/c6af3a3c926fb245e9d056b506d47b8bf4f1efde) Thanks [@asbjornhaland](https://github.com/asbjornhaland)! - Re-add typesVersions from package.json files
153
-
154
- - Updated dependencies [[`c6af3a3`](https://github.com/equinor/fusion-framework/commit/c6af3a3c926fb245e9d056b506d47b8bf4f1efde)]:
155
- - @equinor/fusion-framework-module-signalr@6.0.1
156
- - @equinor/fusion-framework-react-module@3.1.11
157
-
158
- ## 3.0.27
159
-
160
- ### Patch Changes
161
-
162
- - Updated dependencies []:
163
- - @equinor/fusion-framework-module-signalr@6.0.0
164
- - @equinor/fusion-framework-react-module@3.1.10
165
-
166
- ## 3.0.26
167
-
168
- ### Patch Changes
169
-
170
- - [#3012](https://github.com/equinor/fusion-framework/pull/3012) [`f53b60b`](https://github.com/equinor/fusion-framework/commit/f53b60b7805706ce7617e614f0ac0c24317a2e43) Thanks [@odinr](https://github.com/odinr)! - removed `typesVersions` from packages, since we no longer support TS < 4.7, also corrected `types` path in package.json
171
-
172
- - Updated dependencies [[`f53b60b`](https://github.com/equinor/fusion-framework/commit/f53b60b7805706ce7617e614f0ac0c24317a2e43)]:
173
- - @equinor/fusion-framework-module-signalr@5.0.5
174
- - @equinor/fusion-framework-react-module@3.1.9
175
-
176
- ## 3.0.25
177
-
178
- ### Patch Changes
179
-
180
- - Updated dependencies []:
181
- - @equinor/fusion-framework-module-signalr@5.0.4
182
-
183
- ## 3.0.24
184
-
185
- ### Patch Changes
186
-
187
- - Updated dependencies []:
188
- - @equinor/fusion-framework-module-signalr@5.0.3
189
-
190
- ## 3.0.23
191
-
192
- ### Patch Changes
193
-
194
- - [#2885](https://github.com/equinor/fusion-framework/pull/2885) [`abb3560`](https://github.com/equinor/fusion-framework/commit/abb3560a22ad8830df19904272035458433f4237) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update he `Typescript` version `^5.7.3` to `^5.8.2`
195
-
196
- - Updated dependencies [[`abb3560`](https://github.com/equinor/fusion-framework/commit/abb3560a22ad8830df19904272035458433f4237)]:
197
- - @equinor/fusion-framework-react-module@3.1.8
198
- - @equinor/fusion-framework-module-signalr@5.0.2
199
-
200
- ## 3.0.22
201
-
202
- ### Patch Changes
203
-
204
- - [#2848](https://github.com/equinor/fusion-framework/pull/2848) [`dcd2fb1`](https://github.com/equinor/fusion-framework/commit/dcd2fb1394e175d0cc2a4289ed3ede8e0271d67d) Thanks [@odinr](https://github.com/odinr)! - Refactored imports to use `type` when importing types from a module, to conform with the `useImportType` rule in Biome.
205
-
206
- - Updated dependencies [[`811f1a0`](https://github.com/equinor/fusion-framework/commit/811f1a0139ff4d1b0c3fba1ec2b77cc84ba080d1), [`dcd2fb1`](https://github.com/equinor/fusion-framework/commit/dcd2fb1394e175d0cc2a4289ed3ede8e0271d67d)]:
207
- - @equinor/fusion-framework-react-module@3.1.7
208
- - @equinor/fusion-framework-module-signalr@5.0.1
209
-
210
- ## 3.0.21
211
-
212
- ### Patch Changes
213
-
214
- - Updated dependencies []:
215
- - @equinor/fusion-framework-module-signalr@5.0.0
216
-
217
- ## 3.0.20
218
-
219
- ### Patch Changes
220
-
221
- - Updated dependencies []:
222
- - @equinor/fusion-framework-module-signalr@4.0.5
223
-
224
- ## 3.0.19
225
-
226
- ### Patch Changes
227
-
228
- - Updated dependencies []:
229
- - @equinor/fusion-framework-module-signalr@4.0.4
230
-
231
- ## 3.0.18
232
-
233
- ### Patch Changes
234
-
235
- - Updated dependencies []:
236
- - @equinor/fusion-framework-module-signalr@4.0.3
237
-
238
- ## 3.0.17
239
-
240
- ### Patch Changes
241
-
242
- - Updated dependencies []:
243
- - @equinor/fusion-framework-module-signalr@4.0.2
244
-
245
- ## 3.0.16
246
-
247
- ### Patch Changes
248
-
249
- - Updated dependencies []:
250
- - @equinor/fusion-framework-module-signalr@4.0.1
251
-
252
- ## 3.0.15
253
-
254
- ### Patch Changes
255
-
256
- - Updated dependencies [[`15152e4`](https://github.com/equinor/fusion-framework/commit/15152e413c054a5f57af93211a470c98c7696caa)]:
257
- - @equinor/fusion-framework-module-signalr@4.0.0
258
- - @equinor/fusion-framework-react-module@3.1.6
259
-
260
- ## 3.0.14
261
-
262
- ### Patch Changes
263
-
264
- - Updated dependencies []:
265
- - @equinor/fusion-framework-module-signalr@3.0.13
266
-
267
- ## 3.0.13
268
-
269
- ### Patch Changes
270
-
271
- - Updated dependencies []:
272
- - @equinor/fusion-framework-module-signalr@3.0.12
273
- - @equinor/fusion-framework-react-module@3.1.5
274
-
275
- ## 3.0.12
276
-
277
- ### Patch Changes
278
-
279
- - Updated dependencies []:
280
- - @equinor/fusion-framework-module-signalr@3.0.11
281
- - @equinor/fusion-framework-react-module@3.1.4
282
-
283
- ## 3.0.11
284
-
285
- ### Patch Changes
286
-
287
- - [#2333](https://github.com/equinor/fusion-framework/pull/2333) [`86d55b8`](https://github.com/equinor/fusion-framework/commit/86d55b8d27a572f3f62170b1e72aceda54f955e1) Thanks [@odinr](https://github.com/odinr)! - Updated `TypeScript` to 5.5.3
288
-
289
- - [#2320](https://github.com/equinor/fusion-framework/pull/2320) [`1dd85f3`](https://github.com/equinor/fusion-framework/commit/1dd85f3a408a73df556d1812a5f280945cc100ee) Thanks [@odinr](https://github.com/odinr)! - Removed the `removeComments` option from the `tsconfig.base.json` file.
290
-
291
- Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons:
292
- 1. Improved debugging: Preserved comments can help developers understand the code better during debugging sessions.
293
- 2. Documentation: JSDoc comments and other important code documentation will be retained in the compiled output.
294
- 3. Source map accuracy: Keeping comments can lead to more accurate source maps, which is crucial for debugging and error tracking.
295
-
296
- No action is required from consumers of the library. This change affects the build process and doesn't introduce any breaking changes or new features.
297
-
298
- Before:
299
-
300
- ```json
301
- {
302
- "compilerOptions": {
303
- "module": "ES2022",
304
- "target": "ES6",
305
- "incremental": true,
306
- "removeComments": true,
307
- "preserveConstEnums": true,
308
- "sourceMap": true,
309
- "moduleResolution": "node"
310
- }
311
- }
312
- ```
313
-
314
- After:
315
-
316
- ```json
317
- {
318
- "compilerOptions": {
319
- "module": "ES2022",
320
- "target": "ES6",
321
- "incremental": true,
322
- "preserveConstEnums": true,
323
- "sourceMap": true,
324
- "moduleResolution": "node"
325
- }
326
- }
327
- ```
328
-
329
- This change ensures that comments are preserved in the compiled output, potentially improving the development and debugging experience for users of the Fusion Framework.
330
-
331
- - Updated dependencies [[`86d55b8`](https://github.com/equinor/fusion-framework/commit/86d55b8d27a572f3f62170b1e72aceda54f955e1), [`1dd85f3`](https://github.com/equinor/fusion-framework/commit/1dd85f3a408a73df556d1812a5f280945cc100ee)]:
332
- - @equinor/fusion-framework-react-module@3.1.3
333
- - @equinor/fusion-framework-module-signalr@3.0.10
334
-
335
- ## 3.0.10
336
-
337
- ### Patch Changes
338
-
339
- - Updated dependencies []:
340
- - @equinor/fusion-framework-module-signalr@3.0.9
341
-
342
- ## 3.0.9
343
-
344
- ### Patch Changes
345
-
346
- - Updated dependencies []:
347
- - @equinor/fusion-framework-module-signalr@3.0.8
348
-
349
- ## 3.0.8
350
-
351
- ### Patch Changes
352
-
353
- - Updated dependencies []:
354
- - @equinor/fusion-framework-module-signalr@3.0.7
355
- - @equinor/fusion-framework-react-module@3.1.2
356
-
357
- ## 3.0.7
358
-
359
- ### Patch Changes
360
-
361
- - Updated dependencies []:
362
- - @equinor/fusion-framework-module-signalr@3.0.6
363
-
364
- ## 3.0.6
365
-
366
- ### Patch Changes
367
-
368
- - Updated dependencies []:
369
- - @equinor/fusion-framework-module-signalr@3.0.5
370
-
371
- ## 3.0.5
372
-
373
- ### Patch Changes
374
-
375
- - Updated dependencies []:
376
- - @equinor/fusion-framework-module-signalr@3.0.4
377
-
378
- ## 3.0.4
379
-
380
- ### Patch Changes
381
-
382
- - Updated dependencies []:
383
- - @equinor/fusion-framework-module-signalr@3.0.3
384
-
385
- ## 3.0.3
386
-
387
- ### Patch Changes
388
-
389
- - Updated dependencies []:
390
- - @equinor/fusion-framework-module-signalr@3.0.2
391
-
392
- ## 3.0.2
393
-
394
- ### Patch Changes
395
-
396
- - Updated dependencies []:
397
- - @equinor/fusion-framework-module-signalr@3.0.1
398
-
399
- ## 3.0.1
400
-
401
- ### Patch Changes
402
-
403
- - [#1981](https://github.com/equinor/fusion-framework/pull/1981) [`3d068b5`](https://github.com/equinor/fusion-framework/commit/3d068b5a7b214b62fcae5546f08830ea90f872dc) Thanks [@eikeland](https://github.com/eikeland)! - Align package exports with node10+ documentation.
404
-
405
- - Updated dependencies [[`3d068b5`](https://github.com/equinor/fusion-framework/commit/3d068b5a7b214b62fcae5546f08830ea90f872dc)]:
406
- - @equinor/fusion-framework-react-module@3.1.1
407
-
408
- ## 3.0.0
409
-
410
- ### Minor Changes
411
-
412
- - [#1953](https://github.com/equinor/fusion-framework/pull/1953) [`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904) Thanks [@odinr](https://github.com/odinr)! - updated typescript to 5.4.2
413
-
414
- ### Patch Changes
415
-
416
- - Updated dependencies [[`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904)]:
417
- - @equinor/fusion-framework-react-module@3.1.0
418
- - @equinor/fusion-framework-module-signalr@3.0.0
419
-
420
- ## 2.0.18
421
-
422
- ### Patch Changes
423
-
424
- - Updated dependencies []:
425
- - @equinor/fusion-framework-module-signalr@2.0.19
426
- - @equinor/fusion-framework-react-module@3.0.8
427
-
428
- ## 2.0.17
429
-
430
- ### Patch Changes
431
-
432
- - Updated dependencies []:
433
- - @equinor/fusion-framework-module-signalr@2.0.18
434
-
435
- ## 2.0.16
436
-
437
- ### Patch Changes
438
-
439
- - Updated dependencies []:
440
- - @equinor/fusion-framework-module-signalr@2.0.17
441
-
442
- ## 2.0.15
443
-
444
- ### Patch Changes
445
-
446
- - Updated dependencies []:
447
- - @equinor/fusion-framework-module-signalr@2.0.16
448
-
449
- ## 2.0.14
450
-
451
- ### Patch Changes
452
-
453
- - Updated dependencies []:
454
- - @equinor/fusion-framework-module-signalr@2.0.15
455
-
456
- ## 2.0.13
457
-
458
- ### Patch Changes
459
-
460
- - Updated dependencies []:
461
- - @equinor/fusion-framework-module-signalr@2.0.14
462
-
463
- ## 2.0.12
464
-
465
- ### Patch Changes
466
-
467
- - Updated dependencies [[`9c24e84`](https://github.com/equinor/fusion-framework/commit/9c24e847d041dea8384c77439e6b237f5bdb3125)]:
468
- - @equinor/fusion-framework-module-signalr@2.0.13
469
- - @equinor/fusion-framework-react-module@3.0.7
470
-
471
- ## 2.0.11
472
-
473
- ### Patch Changes
474
-
475
- - Updated dependencies []:
476
- - @equinor/fusion-framework-module-signalr@2.0.12
477
-
478
- ## 2.0.10
479
-
480
- ### Patch Changes
481
-
482
- - Updated dependencies []:
483
- - @equinor/fusion-framework-module-signalr@2.0.11
484
-
485
- ## 2.0.9
486
-
487
- ### Patch Changes
488
-
489
- - [`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc) Thanks [@odinr](https://github.com/odinr)! - force patch bump, realign missing snapshot
490
-
491
- - Updated dependencies [[`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc)]:
492
- - @equinor/fusion-framework-module-signalr@2.0.10
493
- - @equinor/fusion-framework-react-module@3.0.6
494
-
495
- ## 2.0.8
496
-
497
- ### Patch Changes
498
-
499
- - Updated dependencies []:
500
- - @equinor/fusion-framework-module-signalr@2.0.9
501
-
502
- ## 2.0.7
503
-
504
- ### Patch Changes
505
-
506
- - Updated dependencies []:
507
- - @equinor/fusion-framework-module-signalr@2.0.8
508
-
509
- ## 2.0.6
510
-
511
- ### Patch Changes
512
-
513
- - Updated dependencies []:
514
- - @equinor/fusion-framework-module-signalr@2.0.7
515
- - @equinor/fusion-framework-react-module@3.0.5
516
-
517
- ## 2.0.5
518
-
519
- ### Patch Changes
520
-
521
- - Updated dependencies []:
522
- - @equinor/fusion-framework-module-signalr@2.0.6
523
-
524
- ## 2.0.4
525
-
526
- ### Patch Changes
527
-
528
- - [#1109](https://github.com/equinor/fusion-framework/pull/1109) [`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862) Thanks [@odinr](https://github.com/odinr)! - Change packaged manager from yarn to pnpm
529
-
530
- conflicts of `@types/react` made random outcomes when using `yarn`
531
-
532
- this change should not affect consumer of the packages, but might conflict dependent on local package manager.
533
-
534
- - Updated dependencies [[`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862), [`2dccccd1`](https://github.com/equinor/fusion-framework/commit/2dccccd124fbe3cdde2132c29c27d3da9fc6f1f5), [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272)]:
535
- - @equinor/fusion-framework-react-module@3.0.4
536
- - @equinor/fusion-framework-module-signalr@2.0.5
537
-
538
- ## 2.0.3
539
-
540
- ### Patch Changes
541
-
542
- - d8a439f0: chore(signalr): update peer deps
543
- - Updated dependencies [d8a439f0]
544
- - @equinor/fusion-framework-module-signalr@2.0.3
545
-
546
- All notable changes to this project will be documented in this file.
547
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
548
-
549
- ## 2.0.2 (2023-05-23)
550
-
551
- **Note:** Version bump only for package @equinor/fusion-framework-react-module-signalr
552
-
553
- ## 2.0.1 (2023-05-05)
554
-
555
- **Note:** Version bump only for package @equinor/fusion-framework-react-module-signalr
556
-
557
- ## 2.0.0 (2023-04-16)
558
-
559
- **Note:** Version bump only for package @equinor/fusion-framework-react-module-signalr
560
-
561
- ## 1.0.3 (2023-03-22)
562
-
563
- **Note:** Version bump only for package @equinor/fusion-framework-react-module-signalr
564
-
565
- ## [1.0.2](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module-signalr@1.0.1...@equinor/fusion-framework-react-module-signalr@1.0.2) (2023-03-20)
566
-
567
- **Note:** Version bump only for package @equinor/fusion-framework-react-module-signalr
568
-
569
- ## 1.0.1 (2023-01-30)
570
-
571
- **Note:** Version bump only for package @equinor/fusion-framework-react-module-signalr
572
-
573
- ## [1.0.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module-signalr@0.1.0...@equinor/fusion-framework-react-module-signalr@1.0.0) (2023-01-27)
574
-
575
- **Note:** Version bump only for package @equinor/fusion-framework-react-module-signalr
576
-
577
- ## [1.0.0-alpha.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module-signalr@0.1.0...@equinor/fusion-framework-react-module-signalr@1.0.0-alpha.0) (2023-01-26)
578
-
579
- **Note:** Version bump only for package @equinor/fusion-framework-react-module-signalr
580
-
581
- ## 0.1.0 (2023-01-26)
582
-
583
- ### Features
584
-
585
- - initial code for signalr-module and react-signalr ([c385ee2](https://github.com/equinor/fusion-framework/commit/c385ee2eca6ee58d87e2de955c43c2b75212efe4))
586
- - **react-module-signalr:** create a hook for creating topic on a provider ([b4c1fd5](https://github.com/equinor/fusion-framework/commit/b4c1fd5c35b8b570380201a87a5142b617730a00))
587
- - **react-module-signalr:** expose cjs module ([a0c9b52](https://github.com/equinor/fusion-framework/commit/a0c9b52bd5f05e5419267ff05e6d533b5ea98bcb))
588
- - **react-module-signalr:** improve hook for using SignalR topic ([7eb511f](https://github.com/equinor/fusion-framework/commit/7eb511fb7a3f603aa418e5dfa969bea3b175d41c))
589
-
590
- ### Bug Fixes
591
-
592
- - **react-module-signalr:** resolve circular ref ([f34086d](https://github.com/equinor/fusion-framework/commit/f34086d1710f2a3494feb19dd09079f66a1b5d63))
package/src/index.ts DELETED
@@ -1,21 +0,0 @@
1
- /**
2
- * React integration for the Fusion SignalR module.
3
- *
4
- * Provides hooks for subscribing to SignalR hub topics from React components.
5
- * Use {@link useTopic} for module-scoped access or {@link useProviderTopic}
6
- * when injecting a provider explicitly.
7
- *
8
- * @see {@link enableSignalR} to enable the module in a configurator.
9
- *
10
- * @packageDocumentation
11
- */
12
- export { useSignalRProvider as useProviderTopic } from './useSignalRProvider';
13
- export { useTopic } from './useTopic';
14
-
15
- export { Topic, enableSignalR } from '@equinor/fusion-framework-module-signalr';
16
-
17
- export type {
18
- ISignalRConfigurator,
19
- SignalRHubConfig,
20
- SignalRModule,
21
- } from '@equinor/fusion-framework-module-signalr';
@@ -1,20 +0,0 @@
1
- import { useMemo } from 'react';
2
- import type { ISignalRProvider, Topic } from '@equinor/fusion-framework-module-signalr';
3
-
4
- /**
5
- * Hook for connecting to a SignalR hub topic via the given provider.
6
- *
7
- * @template T - The type of data emitted by the topic
8
- * @param provider - The SignalR provider used to establish the connection
9
- * @param hubId - The id of the hub to connect to
10
- * @param topicId - The id of the topic within the hub to subscribe to
11
- * @returns The connected topic
12
- */
13
- export const useSignalRProvider = <T>(
14
- provider: ISignalRProvider,
15
- hubId: string,
16
- topicId: string,
17
- ): Topic<T> => {
18
- const topic = useMemo(() => provider.connect<T>(hubId, topicId), [provider, hubId, topicId]);
19
- return topic;
20
- };
package/src/useTopic.ts DELETED
@@ -1,20 +0,0 @@
1
- import { useModule } from '@equinor/fusion-framework-react-module';
2
- import { moduleKey } from '@equinor/fusion-framework-module-signalr';
3
-
4
- import { useSignalRProvider } from './useSignalRProvider';
5
-
6
- /**
7
- * Hook for connecting to a SignalR hub topic, resolving the provider from the framework automatically.
8
- *
9
- * @template T - The type of data emitted by the topic
10
- * @param hubId - The id of the hub to connect to
11
- * @param topicId - The id of the topic within the hub to subscribe to
12
- * @returns The connected topic
13
- */
14
- export const useTopic = <T>(
15
- hubId: string,
16
- topicId: string,
17
- ): ReturnType<typeof useSignalRProvider<T>> =>
18
- useSignalRProvider(useModule(moduleKey), hubId, topicId);
19
-
20
- export default useTopic;
package/src/version.ts DELETED
@@ -1,2 +0,0 @@
1
- // Generated by genversion.
2
- export const version = '4.0.4';