@rxap/service-worker 19.2.0-dev.0 → 21.0.1-dev.0

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 (64) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/compodoc/changelog.html +16 -0
  3. package/compodoc/components/ServiceWorkerUpdateDialogComponent.html +50 -56
  4. package/compodoc/dependencies.html +7 -7
  5. package/compodoc/js/search/search_index.js +2 -2
  6. package/compodoc/properties.html +1 -1
  7. package/docs/documentation.json +73 -73
  8. package/docs/html/classes/AutoUpdateService.html +2 -2
  9. package/docs/html/classes/CheckForUpdateService.html +2 -2
  10. package/docs/html/classes/DialogUpdateService.html +2 -2
  11. package/docs/html/classes/LogUpdateService.html +2 -2
  12. package/docs/html/classes/ServiceWorkerUpdateDialogComponent.html +3 -3
  13. package/docs/html/classes/SnackbarUpdateService.html +2 -2
  14. package/docs/html/functions/ProvideServiceWorkerUpdater.html +1 -1
  15. package/docs/html/functions/UnregisterServiceWorker.html +1 -1
  16. package/docs/html/functions/withAutoUpdater.html +1 -1
  17. package/docs/html/functions/withDialogUpdater.html +1 -1
  18. package/docs/html/functions/withLogUpdater.html +1 -1
  19. package/docs/html/functions/withSnackbarUpdater.html +1 -1
  20. package/docs/html/index.html +2 -2
  21. package/docs/html/modules.html +1 -1
  22. package/docs/html/variables/UPDATE_AVAILABLE_EVENT.html +1 -1
  23. package/docs/markdown/README.md +1 -1
  24. package/docs/markdown/classes/AutoUpdateService.md +4 -4
  25. package/docs/markdown/classes/CheckForUpdateService.md +4 -4
  26. package/docs/markdown/classes/DialogUpdateService.md +4 -4
  27. package/docs/markdown/classes/LogUpdateService.md +4 -4
  28. package/docs/markdown/classes/ServiceWorkerUpdateDialogComponent.md +7 -7
  29. package/docs/markdown/classes/SnackbarUpdateService.md +3 -3
  30. package/docs/markdown/functions/ProvideServiceWorkerUpdater.md +2 -2
  31. package/docs/markdown/functions/UnregisterServiceWorker.md +2 -2
  32. package/docs/markdown/functions/withAutoUpdater.md +2 -2
  33. package/docs/markdown/functions/withDialogUpdater.md +2 -2
  34. package/docs/markdown/functions/withLogUpdater.md +2 -2
  35. package/docs/markdown/functions/withSnackbarUpdater.md +2 -2
  36. package/docs/markdown/globals.md +2 -2
  37. package/docs/markdown/variables/UPDATE_AVAILABLE_EVENT.md +2 -2
  38. package/docs/wiki/Class.AutoUpdateService.md +3 -3
  39. package/docs/wiki/Class.CheckForUpdateService.md +3 -3
  40. package/docs/wiki/Class.DialogUpdateService.md +3 -3
  41. package/docs/wiki/Class.LogUpdateService.md +3 -3
  42. package/docs/wiki/Class.ServiceWorkerUpdateDialogComponent.md +6 -6
  43. package/docs/wiki/Class.SnackbarUpdateService.md +2 -2
  44. package/docs/wiki/Function.ProvideServiceWorkerUpdater.md +1 -1
  45. package/docs/wiki/Function.UnregisterServiceWorker.md +1 -1
  46. package/docs/wiki/Function.withAutoUpdater.md +1 -1
  47. package/docs/wiki/Function.withDialogUpdater.md +1 -1
  48. package/docs/wiki/Function.withLogUpdater.md +1 -1
  49. package/docs/wiki/Function.withSnackbarUpdater.md +1 -1
  50. package/docs/wiki/Variable.UPDATE_AVAILABLE_EVENT.md +1 -1
  51. package/docs/wiki/globals.md +1 -1
  52. package/fesm2022/rxap-service-worker.mjs +20 -24
  53. package/fesm2022/rxap-service-worker.mjs.map +1 -1
  54. package/package.json +20 -19
  55. package/types/rxap-service-worker.d.ts +71 -0
  56. package/index.d.ts +0 -8
  57. package/lib/auto-update.service.d.ts +0 -9
  58. package/lib/check-for-update.service.d.ts +0 -12
  59. package/lib/dialog-update.service.d.ts +0 -12
  60. package/lib/log-update.service.d.ts +0 -9
  61. package/lib/provide-service-worker-updater.d.ts +0 -6
  62. package/lib/service-worker-update-dialog/service-worker-update-dialog.component.d.ts +0 -13
  63. package/lib/snackbar-update.service.d.ts +0 -9
  64. package/lib/unregister-service-worker.d.ts +0 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## 21.0.1-dev.0 (2026-11-20)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **upgrade:** TestBed.get->inject (removed in angular) + dedupe rxjs to single version
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated angular-environment to 21.0.1-dev.0
10
+ - Updated angular-life-cycle to 21.0.1-dev.0
11
+
12
+ ### ❤️ Thank You
13
+
14
+ - Merzough Münker
15
+
16
+ ## 19.2.0 (2026-11-20)
17
+
18
+ This was a version bump only for angular-service-worker to align it with other projects, there were no code changes.
19
+
1
20
  ## 19.2.0-dev.0 (2026-06-19)
2
21
 
3
22
  ### 🚀 Features
@@ -82,6 +82,22 @@
82
82
  <div class="content getting-started">
83
83
  <div class="content-data">
84
84
 
85
+ <h2>21.0.1-dev.0 (2026-11-20)</h2>
86
+ <h3>🩹 Fixes</h3>
87
+ <ul>
88
+ <li><strong>upgrade:</strong> TestBed.get-&gt;inject (removed in angular) + dedupe rxjs to single version</li>
89
+ </ul>
90
+ <h3>🧱 Updated Dependencies</h3>
91
+ <ul>
92
+ <li>Updated angular-environment to 21.0.1-dev.0</li>
93
+ <li>Updated angular-life-cycle to 21.0.1-dev.0</li>
94
+ </ul>
95
+ <h3>❤️ Thank You</h3>
96
+ <ul>
97
+ <li>Merzough Münker</li>
98
+ </ul>
99
+ <h2>19.2.0 (2026-11-20)</h2>
100
+ <p>This was a version bump only for angular-service-worker to align it with other projects, there were no code changes.</p>
85
101
  <h2>19.2.0-dev.0 (2026-06-19)</h2>
86
102
  <h3>🚀 Features</h3>
87
103
  <ul>
@@ -156,13 +156,6 @@
156
156
  </tr>
157
157
 
158
158
 
159
- <tr>
160
- <td class="col-md-3">imports</td>
161
- <td class="col-md-9">
162
- <code>NgSwitch</code>
163
- <code>NgSwitchCase</code>
164
- </td>
165
- </tr>
166
159
 
167
160
  <tr>
168
161
  <td class="col-md-3">styleUrls</td>
@@ -270,7 +263,7 @@
270
263
  </tr>
271
264
  <tr>
272
265
  <td class="col-md-2" colspan="2">
273
- <div class="io-line">Defined in <a href="" data-line="34" class="link-to-prism">src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts:34</a></div>
266
+ <div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts:28</a></div>
274
267
  </td>
275
268
  </tr>
276
269
  </tbody>
@@ -303,8 +296,8 @@
303
296
 
304
297
  <tr>
305
298
  <td class="col-md-4">
306
- <div class="io-line">Defined in <a href="" data-line="42"
307
- class="link-to-prism">src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts:42</a></div>
299
+ <div class="io-line">Defined in <a href="" data-line="36"
300
+ class="link-to-prism">src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts:36</a></div>
308
301
  </td>
309
302
  </tr>
310
303
 
@@ -356,7 +349,7 @@
356
349
  </tr>
357
350
  <tr>
358
351
  <td class="col-md-4">
359
- <div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts:31</a></div>
352
+ <div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts:25</a></div>
360
353
  </td>
361
354
  </tr>
362
355
 
@@ -383,7 +376,7 @@
383
376
  </tr>
384
377
  <tr>
385
378
  <td class="col-md-4">
386
- <div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts:36</a></div>
379
+ <div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts:30</a></div>
387
380
  </td>
388
381
  </tr>
389
382
 
@@ -397,10 +390,6 @@
397
390
 
398
391
  <div class="tab-pane fade tab-source-code" id="source">
399
392
  <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
400
- NgSwitch,
401
- NgSwitchCase,
402
- } from &#x27;@angular/common&#x27;;
403
- import {
404
393
  AfterViewInit,
405
394
  Component,
406
395
  ElementRef,
@@ -416,10 +405,7 @@ export const UPDATE_AVAILABLE_EVENT &#x3D; new InjectionToken&lt;VersionEvent&gt
416
405
 
417
406
  @Component({
418
407
  selector: &#x27;rxap-service-worker-update-dialog&#x27;,
419
- imports: [
420
- NgSwitch,
421
- NgSwitchCase,
422
- ],
408
+ imports: [],
423
409
  templateUrl: &#x27;./service-worker-update-dialog.component.html&#x27;,
424
410
  styleUrls: [&#x27;./service-worker-update-dialog.component.scss&#x27;]
425
411
  })
@@ -448,42 +434,50 @@ export class ServiceWorkerUpdateDialogComponent implements AfterViewInit {
448
434
 
449
435
  <div class="tab-pane fade " id="templateData">
450
436
  <pre class="line-numbers"><code class="language-html">&lt;dialog #dialog
451
- class&#x3D;&quot;max-w-6xl rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6&quot;&gt;
437
+ class&#x3D;&quot;max-w-6xl rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6&quot;&gt;
452
438
  &lt;h2 class&#x3D;&quot;text-2xl font-bold&quot; i18n&gt;A new application version is available&lt;/h2&gt;
453
- &lt;ng-container [ngSwitch]&#x3D;&quot;$any(updateAvailableEvent).type&quot;&gt;
454
- &lt;table *ngSwitchCase&#x3D;&quot;&#x27;VERSION_DETECTED&#x27;&quot; class&#x3D;&quot;table-auto&quot;&gt;
455
- &lt;tr&gt;
456
- &lt;th i18n&gt;Version hash&lt;/th&gt;
457
- &lt;td&gt;{{$any(updateAvailableEvent)[&#x27;version&#x27;].hash}}&lt;/td&gt;
458
- &lt;/tr&gt;
459
- &lt;/table&gt;
460
- &lt;table *ngSwitchCase&#x3D;&quot;&#x27;VERSION_INSTALLATION_FAILED&#x27;&quot; class&#x3D;&quot;table-auto&quot;&gt;
461
- &lt;tr&gt;
462
- &lt;th i18n&gt;Version hash&lt;/th&gt;
463
- &lt;td&gt;{{$any(updateAvailableEvent)[&#x27;version&#x27;].hash}}&lt;/td&gt;
464
- &lt;/tr&gt;
465
- &lt;tr&gt;
466
- &lt;th i18n&gt;Version installation error&lt;/th&gt;
467
- &lt;td&gt;{{$any(updateAvailableEvent)[&#x27;error&#x27;]}}&lt;/td&gt;
468
- &lt;/tr&gt;
469
- &lt;/table&gt;
470
- &lt;table *ngSwitchCase&#x3D;&quot;&#x27;VERSION_READY&#x27;&quot; class&#x3D;&quot;table-auto&quot;&gt;
471
- &lt;tr&gt;
472
- &lt;th i18n&gt;Current version hash&lt;/th&gt;
473
- &lt;td&gt;{{$any(updateAvailableEvent)[&#x27;currentVersion&#x27;].hash}}&lt;/td&gt;
474
- &lt;/tr&gt;
475
- &lt;tr&gt;
476
- &lt;th i18n&gt;Last version hash&lt;/th&gt;
477
- &lt;td&gt;{{$any(updateAvailableEvent)[&#x27;latestVersion&#x27;].hash}}&lt;/td&gt;
478
- &lt;/tr&gt;
479
- &lt;/table&gt;
480
- &lt;table *ngSwitchCase&#x3D;&quot;&#x27;NoNewVersionDetectedEvent&#x27;&quot; class&#x3D;&quot;table-auto&quot;&gt;
481
- &lt;tr&gt;
482
- &lt;th i18n&gt;Version hash&lt;/th&gt;
483
- &lt;td&gt;{{$any(updateAvailableEvent)[&#x27;version&#x27;].hash}}&lt;/td&gt;
484
- &lt;/tr&gt;
485
- &lt;/table&gt;
486
- &lt;/ng-container&gt;
439
+ @switch ($any(updateAvailableEvent).type) {
440
+ @case (&#x27;VERSION_DETECTED&#x27;) {
441
+ &lt;table class&#x3D;&quot;table-auto&quot;&gt;
442
+ &lt;tr&gt;
443
+ &lt;th i18n&gt;Version hash&lt;/th&gt;
444
+ &lt;td&gt;{{$any(updateAvailableEvent)[&#x27;version&#x27;].hash}}&lt;/td&gt;
445
+ &lt;/tr&gt;
446
+ &lt;/table&gt;
447
+ }
448
+ @case (&#x27;VERSION_INSTALLATION_FAILED&#x27;) {
449
+ &lt;table class&#x3D;&quot;table-auto&quot;&gt;
450
+ &lt;tr&gt;
451
+ &lt;th i18n&gt;Version hash&lt;/th&gt;
452
+ &lt;td&gt;{{$any(updateAvailableEvent)[&#x27;version&#x27;].hash}}&lt;/td&gt;
453
+ &lt;/tr&gt;
454
+ &lt;tr&gt;
455
+ &lt;th i18n&gt;Version installation error&lt;/th&gt;
456
+ &lt;td&gt;{{$any(updateAvailableEvent)[&#x27;error&#x27;]}}&lt;/td&gt;
457
+ &lt;/tr&gt;
458
+ &lt;/table&gt;
459
+ }
460
+ @case (&#x27;VERSION_READY&#x27;) {
461
+ &lt;table class&#x3D;&quot;table-auto&quot;&gt;
462
+ &lt;tr&gt;
463
+ &lt;th i18n&gt;Current version hash&lt;/th&gt;
464
+ &lt;td&gt;{{$any(updateAvailableEvent)[&#x27;currentVersion&#x27;].hash}}&lt;/td&gt;
465
+ &lt;/tr&gt;
466
+ &lt;tr&gt;
467
+ &lt;th i18n&gt;Last version hash&lt;/th&gt;
468
+ &lt;td&gt;{{$any(updateAvailableEvent)[&#x27;latestVersion&#x27;].hash}}&lt;/td&gt;
469
+ &lt;/tr&gt;
470
+ &lt;/table&gt;
471
+ }
472
+ @case (&#x27;NoNewVersionDetectedEvent&#x27;) {
473
+ &lt;table class&#x3D;&quot;table-auto&quot;&gt;
474
+ &lt;tr&gt;
475
+ &lt;th i18n&gt;Version hash&lt;/th&gt;
476
+ &lt;td&gt;{{$any(updateAvailableEvent)[&#x27;version&#x27;].hash}}&lt;/td&gt;
477
+ &lt;/tr&gt;
478
+ &lt;/table&gt;
479
+ }
480
+ }
487
481
  &lt;button (click)&#x3D;&quot;close()&quot; class&#x3D;&quot;px-4 py-2 rounded bg-primary-500&quot; i18n&gt;Update&lt;/button&gt;
488
482
  &lt;/dialog&gt;
489
483
  </code></pre>
@@ -521,7 +515,7 @@ export class ServiceWorkerUpdateDialogComponent implements AfterViewInit {
521
515
  <script src="../js/libs/htmlparser.js"></script>
522
516
  <script src="../js/libs/deep-iterator.js"></script>
523
517
  <script>
524
- var COMPONENT_TEMPLATE = '<div><dialog #dialog class="max-w-6xl rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6"> <h2 class="text-2xl font-bold" i18n>A new application version is available</h2> <ng-container [ngSwitch]="$any(updateAvailableEvent).type"> <table *ngSwitchCase="\'VERSION_DETECTED\'" class="table-auto"> <tr> <th i18n>Version hash</th> <td>{{$any(updateAvailableEvent)[\'version\'].hash}}</td> </tr> </table> <table *ngSwitchCase="\'VERSION_INSTALLATION_FAILED\'" class="table-auto"> <tr> <th i18n>Version hash</th> <td>{{$any(updateAvailableEvent)[\'version\'].hash}}</td> </tr> <tr> <th i18n>Version installation error</th> <td>{{$any(updateAvailableEvent)[\'error\']}}</td> </tr> </table> <table *ngSwitchCase="\'VERSION_READY\'" class="table-auto"> <tr> <th i18n>Current version hash</th> <td>{{$any(updateAvailableEvent)[\'currentVersion\'].hash}}</td> </tr> <tr> <th i18n>Last version hash</th> <td>{{$any(updateAvailableEvent)[\'latestVersion\'].hash}}</td> </tr> </table> <table *ngSwitchCase="\'NoNewVersionDetectedEvent\'" class="table-auto"> <tr> <th i18n>Version hash</th> <td>{{$any(updateAvailableEvent)[\'version\'].hash}}</td> </tr> </table> </ng-container> <button (click)="close()" class="px-4 py-2 rounded bg-primary-500" i18n>Update</button></dialog></div>'
518
+ var COMPONENT_TEMPLATE = '<div><dialog #dialog class="max-w-6xl rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6"> <h2 class="text-2xl font-bold" i18n>A new application version is available</h2> @switch ($any(updateAvailableEvent).type) { @case (\'VERSION_DETECTED\') { <table class="table-auto"> <tr> <th i18n>Version hash</th> <td>{{$any(updateAvailableEvent)[\'version\'].hash}}</td> </tr> </table> } @case (\'VERSION_INSTALLATION_FAILED\') { <table class="table-auto"> <tr> <th i18n>Version hash</th> <td>{{$any(updateAvailableEvent)[\'version\'].hash}}</td> </tr> <tr> <th i18n>Version installation error</th> <td>{{$any(updateAvailableEvent)[\'error\']}}</td> </tr> </table> } @case (\'VERSION_READY\') { <table class="table-auto"> <tr> <th i18n>Current version hash</th> <td>{{$any(updateAvailableEvent)[\'currentVersion\'].hash}}</td> </tr> <tr> <th i18n>Last version hash</th> <td>{{$any(updateAvailableEvent)[\'latestVersion\'].hash}}</td> </tr> </table> } @case (\'NoNewVersionDetectedEvent\') { <table class="table-auto"> <tr> <th i18n>Version hash</th> <td>{{$any(updateAvailableEvent)[\'version\'].hash}}</td> </tr> </table> } } <button (click)="close()" class="px-4 py-2 rounded bg-primary-500" i18n>Update</button></dialog></div>'
525
519
  var COMPONENTS = [{'name': 'ServiceWorkerUpdateDialogComponent', 'selector': 'rxap-service-worker-update-dialog'}];
526
520
  var DIRECTIVES = [];
527
521
  var ACTUAL_COMPONENT = {'name': 'ServiceWorkerUpdateDialogComponent'};
@@ -101,7 +101,7 @@
101
101
  </ol>
102
102
  <ul class="dependencies-list">
103
103
  <li>
104
- <b>@nx/devkit</b> : 20.5.0</li>
104
+ <b>@nx/devkit</b> : 22.7.5</li>
105
105
  <li>
106
106
  <b>tslib</b> : 2.6.2</li>
107
107
  </ul>
@@ -113,17 +113,17 @@
113
113
  </ol>
114
114
  <ul class="dependencies-list">
115
115
  <li>
116
- <b>@angular/common</b> : ^19.2.1</li>
116
+ <b>@angular/common</b> : ^21.2.9</li>
117
117
  <li>
118
- <b>@angular/core</b> : ^19.2.1</li>
118
+ <b>@angular/core</b> : ^21.2.9</li>
119
119
  <li>
120
- <b>@angular/service-worker</b> : ^19.2.1</li>
120
+ <b>@angular/service-worker</b> : ^21.2.9</li>
121
121
  <li>
122
- <b>@rxap/environment</b> : ^19.2.0-dev.0</li>
122
+ <b>@rxap/environment</b> : ^21.0.1-dev.0</li>
123
123
  <li>
124
- <b>@rxap/life-cycle</b> : ^19.0.5-dev.0</li>
124
+ <b>@rxap/life-cycle</b> : ^21.0.1-dev.0</li>
125
125
  <li>
126
- <b>rxjs</b> : ^7.8.1</li>
126
+ <b>rxjs</b> : ^7.8.2</li>
127
127
  </ul>
128
128
 
129
129