@rxap/service-worker 19.2.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.
- package/CHANGELOG.md +15 -0
- package/compodoc/changelog.html +14 -0
- package/compodoc/components/ServiceWorkerUpdateDialogComponent.html +50 -56
- package/compodoc/dependencies.html +7 -7
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +73 -73
- package/docs/html/classes/AutoUpdateService.html +2 -2
- package/docs/html/classes/CheckForUpdateService.html +2 -2
- package/docs/html/classes/DialogUpdateService.html +2 -2
- package/docs/html/classes/LogUpdateService.html +2 -2
- package/docs/html/classes/ServiceWorkerUpdateDialogComponent.html +3 -3
- package/docs/html/classes/SnackbarUpdateService.html +2 -2
- package/docs/html/functions/ProvideServiceWorkerUpdater.html +1 -1
- package/docs/html/functions/UnregisterServiceWorker.html +1 -1
- package/docs/html/functions/withAutoUpdater.html +1 -1
- package/docs/html/functions/withDialogUpdater.html +1 -1
- package/docs/html/functions/withLogUpdater.html +1 -1
- package/docs/html/functions/withSnackbarUpdater.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/UPDATE_AVAILABLE_EVENT.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AutoUpdateService.md +4 -4
- package/docs/markdown/classes/CheckForUpdateService.md +4 -4
- package/docs/markdown/classes/DialogUpdateService.md +4 -4
- package/docs/markdown/classes/LogUpdateService.md +4 -4
- package/docs/markdown/classes/ServiceWorkerUpdateDialogComponent.md +7 -7
- package/docs/markdown/classes/SnackbarUpdateService.md +3 -3
- package/docs/markdown/functions/ProvideServiceWorkerUpdater.md +2 -2
- package/docs/markdown/functions/UnregisterServiceWorker.md +2 -2
- package/docs/markdown/functions/withAutoUpdater.md +2 -2
- package/docs/markdown/functions/withDialogUpdater.md +2 -2
- package/docs/markdown/functions/withLogUpdater.md +2 -2
- package/docs/markdown/functions/withSnackbarUpdater.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/variables/UPDATE_AVAILABLE_EVENT.md +2 -2
- package/docs/wiki/Class.AutoUpdateService.md +3 -3
- package/docs/wiki/Class.CheckForUpdateService.md +3 -3
- package/docs/wiki/Class.DialogUpdateService.md +3 -3
- package/docs/wiki/Class.LogUpdateService.md +3 -3
- package/docs/wiki/Class.ServiceWorkerUpdateDialogComponent.md +6 -6
- package/docs/wiki/Class.SnackbarUpdateService.md +2 -2
- package/docs/wiki/Function.ProvideServiceWorkerUpdater.md +1 -1
- package/docs/wiki/Function.UnregisterServiceWorker.md +1 -1
- package/docs/wiki/Function.withAutoUpdater.md +1 -1
- package/docs/wiki/Function.withDialogUpdater.md +1 -1
- package/docs/wiki/Function.withLogUpdater.md +1 -1
- package/docs/wiki/Function.withSnackbarUpdater.md +1 -1
- package/docs/wiki/Variable.UPDATE_AVAILABLE_EVENT.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-service-worker.mjs +20 -24
- package/fesm2022/rxap-service-worker.mjs.map +1 -1
- package/package.json +20 -19
- package/types/rxap-service-worker.d.ts +71 -0
- package/index.d.ts +0 -8
- package/lib/auto-update.service.d.ts +0 -9
- package/lib/check-for-update.service.d.ts +0 -12
- package/lib/dialog-update.service.d.ts +0 -12
- package/lib/log-update.service.d.ts +0 -9
- package/lib/provide-service-worker-updater.d.ts +0 -6
- package/lib/service-worker-update-dialog/service-worker-update-dialog.component.d.ts +0 -13
- package/lib/snackbar-update.service.d.ts +0 -9
- package/lib/unregister-service-worker.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
|
|
1
16
|
## 19.2.0 (2026-11-20)
|
|
2
17
|
|
|
3
18
|
This was a version bump only for angular-service-worker to align it with other projects, there were no code changes.
|
package/compodoc/changelog.html
CHANGED
|
@@ -82,6 +82,20 @@
|
|
|
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->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>
|
|
85
99
|
<h2>19.2.0 (2026-11-20)</h2>
|
|
86
100
|
<p>This was a version bump only for angular-service-worker to align it with other projects, there were no code changes.</p>
|
|
87
101
|
<h2>19.2.0-dev.0 (2026-06-19)</h2>
|
|
@@ -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="
|
|
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="
|
|
307
|
-
class="link-to-prism">src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts:
|
|
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="
|
|
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="
|
|
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 '@angular/common';
|
|
403
|
-
import {
|
|
404
393
|
AfterViewInit,
|
|
405
394
|
Component,
|
|
406
395
|
ElementRef,
|
|
@@ -416,10 +405,7 @@ export const UPDATE_AVAILABLE_EVENT = new InjectionToken<VersionEvent>
|
|
|
416
405
|
|
|
417
406
|
@Component({
|
|
418
407
|
selector: 'rxap-service-worker-update-dialog',
|
|
419
|
-
imports: [
|
|
420
|
-
NgSwitch,
|
|
421
|
-
NgSwitchCase,
|
|
422
|
-
],
|
|
408
|
+
imports: [],
|
|
423
409
|
templateUrl: './service-worker-update-dialog.component.html',
|
|
424
410
|
styleUrls: ['./service-worker-update-dialog.component.scss']
|
|
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"><dialog #dialog
|
|
451
|
-
|
|
437
|
+
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">
|
|
452
438
|
<h2 class="text-2xl font-bold" i18n>A new application version is available</h2>
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
<
|
|
456
|
-
<
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
<
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
<
|
|
476
|
-
<
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
<
|
|
484
|
-
</
|
|
485
|
-
|
|
486
|
-
|
|
439
|
+
@switch ($any(updateAvailableEvent).type) {
|
|
440
|
+
@case ('VERSION_DETECTED') {
|
|
441
|
+
<table class="table-auto">
|
|
442
|
+
<tr>
|
|
443
|
+
<th i18n>Version hash</th>
|
|
444
|
+
<td>{{$any(updateAvailableEvent)['version'].hash}}</td>
|
|
445
|
+
</tr>
|
|
446
|
+
</table>
|
|
447
|
+
}
|
|
448
|
+
@case ('VERSION_INSTALLATION_FAILED') {
|
|
449
|
+
<table class="table-auto">
|
|
450
|
+
<tr>
|
|
451
|
+
<th i18n>Version hash</th>
|
|
452
|
+
<td>{{$any(updateAvailableEvent)['version'].hash}}</td>
|
|
453
|
+
</tr>
|
|
454
|
+
<tr>
|
|
455
|
+
<th i18n>Version installation error</th>
|
|
456
|
+
<td>{{$any(updateAvailableEvent)['error']}}</td>
|
|
457
|
+
</tr>
|
|
458
|
+
</table>
|
|
459
|
+
}
|
|
460
|
+
@case ('VERSION_READY') {
|
|
461
|
+
<table class="table-auto">
|
|
462
|
+
<tr>
|
|
463
|
+
<th i18n>Current version hash</th>
|
|
464
|
+
<td>{{$any(updateAvailableEvent)['currentVersion'].hash}}</td>
|
|
465
|
+
</tr>
|
|
466
|
+
<tr>
|
|
467
|
+
<th i18n>Last version hash</th>
|
|
468
|
+
<td>{{$any(updateAvailableEvent)['latestVersion'].hash}}</td>
|
|
469
|
+
</tr>
|
|
470
|
+
</table>
|
|
471
|
+
}
|
|
472
|
+
@case ('NoNewVersionDetectedEvent') {
|
|
473
|
+
<table class="table-auto">
|
|
474
|
+
<tr>
|
|
475
|
+
<th i18n>Version hash</th>
|
|
476
|
+
<td>{{$any(updateAvailableEvent)['version'].hash}}</td>
|
|
477
|
+
</tr>
|
|
478
|
+
</table>
|
|
479
|
+
}
|
|
480
|
+
}
|
|
487
481
|
<button (click)="close()" class="px-4 py-2 rounded bg-primary-500" i18n>Update</button>
|
|
488
482
|
</dialog>
|
|
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
|
|
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> :
|
|
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> : ^
|
|
116
|
+
<b>@angular/common</b> : ^21.2.9</li>
|
|
117
117
|
<li>
|
|
118
|
-
<b>@angular/core</b> : ^
|
|
118
|
+
<b>@angular/core</b> : ^21.2.9</li>
|
|
119
119
|
<li>
|
|
120
|
-
<b>@angular/service-worker</b> : ^
|
|
120
|
+
<b>@angular/service-worker</b> : ^21.2.9</li>
|
|
121
121
|
<li>
|
|
122
|
-
<b>@rxap/environment</b> : ^
|
|
122
|
+
<b>@rxap/environment</b> : ^21.0.1-dev.0</li>
|
|
123
123
|
<li>
|
|
124
|
-
<b>@rxap/life-cycle</b> : ^
|
|
124
|
+
<b>@rxap/life-cycle</b> : ^21.0.1-dev.0</li>
|
|
125
125
|
<li>
|
|
126
|
-
<b>rxjs</b> : ^7.8.
|
|
126
|
+
<b>rxjs</b> : ^7.8.2</li>
|
|
127
127
|
</ul>
|
|
128
128
|
|
|
129
129
|
|