@rxap/service-worker 21.0.1-dev.1 → 22.0.0-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 +28 -0
- package/compodoc/changelog.html +26 -0
- package/compodoc/dependencies.html +6 -6
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +38 -38
- 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 +2 -2
- 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 +3 -3
- package/docs/markdown/classes/CheckForUpdateService.md +3 -3
- package/docs/markdown/classes/DialogUpdateService.md +3 -3
- package/docs/markdown/classes/LogUpdateService.md +3 -3
- 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 +2 -2
- package/docs/wiki/Class.CheckForUpdateService.md +2 -2
- package/docs/wiki/Class.DialogUpdateService.md +2 -2
- package/docs/wiki/Class.LogUpdateService.md +2 -2
- 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 +256 -136
- package/fesm2022/rxap-service-worker.mjs.map +1 -1
- package/package.json +15 -15
- package/types/rxap-service-worker.d.ts +55 -60
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "22.0.0-dev.0",
|
|
3
3
|
"name": "@rxap/service-worker",
|
|
4
4
|
"description": "Provides services and components to simplify the management of service worker updates in Angular applications. It includes features such as automatic updates, dialog prompts for updates, and logging of update events. The package also offers utilities to unregister service workers and initialize peer dependencies.\n",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@nx/devkit": "
|
|
7
|
+
"@nx/devkit": "24.0.6",
|
|
8
8
|
"tslib": "2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@angular/common": "^
|
|
12
|
-
"@angular/core": "^
|
|
13
|
-
"@angular/service-worker": "^
|
|
14
|
-
"@rxap/environment": "^
|
|
15
|
-
"@rxap/life-cycle": "^
|
|
11
|
+
"@angular/common": "^22.3.0",
|
|
12
|
+
"@angular/core": "^22.3.0",
|
|
13
|
+
"@angular/service-worker": "^22.3.0",
|
|
14
|
+
"@rxap/environment": "^22.0.0-dev.0",
|
|
15
|
+
"@rxap/life-cycle": "^22.0.0-dev.0",
|
|
16
16
|
"rxjs": "^7.8.2"
|
|
17
17
|
},
|
|
18
18
|
"author": {
|
|
@@ -38,35 +38,35 @@
|
|
|
38
38
|
"packageGroup": [
|
|
39
39
|
{
|
|
40
40
|
"package": "@angular/common",
|
|
41
|
-
"version": "
|
|
41
|
+
"version": "22.3.0"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"package": "@angular/core",
|
|
45
|
-
"version": "
|
|
45
|
+
"version": "22.3.0"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"package": "@angular/platform-browser",
|
|
49
|
-
"version": "
|
|
49
|
+
"version": "22.3.0"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"package": "@angular/router",
|
|
53
|
-
"version": "
|
|
53
|
+
"version": "22.3.0"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"package": "@angular/service-worker",
|
|
57
|
-
"version": "
|
|
57
|
+
"version": "22.3.0"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"package": "@rxap/environment",
|
|
61
|
-
"version": "
|
|
61
|
+
"version": "22.0.0-dev.0"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"package": "@rxap/life-cycle",
|
|
65
|
-
"version": "
|
|
65
|
+
"version": "22.0.0-dev.0"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"package": "@rxap/utilities",
|
|
69
|
-
"version": "16.5.2
|
|
69
|
+
"version": "16.5.2"
|
|
70
70
|
}
|
|
71
71
|
]
|
|
72
72
|
},
|
|
@@ -1,66 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { ElementRef, EnvironmentProviders, InjectionToken, Provider } from "@angular/core";
|
|
6
|
+
import { VersionEvent } from "@angular/service-worker";
|
|
7
|
+
import { Environment } from "@rxap/environment";
|
|
8
|
+
export declare const UPDATE_AVAILABLE_EVENT: InjectionToken<VersionEvent>;
|
|
9
|
+
export declare class ServiceWorkerUpdateDialogComponent {
|
|
10
|
+
readonly dialog: import("@angular/core").Signal<ElementRef<HTMLDialogElement>>;
|
|
11
|
+
readonly closeDialog: import("@angular/core").OutputEmitterRef<void>;
|
|
12
|
+
readonly updateAvailableEvent: VersionEvent;
|
|
13
|
+
constructor();
|
|
14
|
+
close(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ServiceWorkerUpdateDialogComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ServiceWorkerUpdateDialogComponent, "rxap-service-worker-update-dialog", never, {}, {
|
|
17
|
+
"closeDialog": "closeDialog";
|
|
18
|
+
}, never, never, true, never>;
|
|
15
19
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AutoUpdateService>;
|
|
20
|
+
export declare class AutoUpdateService {
|
|
21
|
+
private readonly updates;
|
|
22
|
+
start(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutoUpdateService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CheckForUpdateService>;
|
|
26
|
+
export declare class CheckForUpdateService {
|
|
27
|
+
private readonly lifeCycle;
|
|
28
|
+
private readonly updates;
|
|
29
|
+
private _started;
|
|
30
|
+
start(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckForUpdateService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
31
33
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DialogUpdateService>;
|
|
34
|
+
export declare class DialogUpdateService {
|
|
35
|
+
private readonly applicationRef;
|
|
36
|
+
private readonly updates;
|
|
37
|
+
start(): void;
|
|
38
|
+
private openUpdateDialog;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogUpdateService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
40
41
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LogUpdateService>;
|
|
42
|
+
export declare class LogUpdateService {
|
|
43
|
+
private readonly updates;
|
|
44
|
+
start(): void;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LogUpdateService, never>;
|
|
46
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
declare function
|
|
50
|
-
declare function
|
|
51
|
-
declare function
|
|
52
|
-
declare function
|
|
53
|
-
declare
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarUpdateService, never>;
|
|
61
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SnackbarUpdateService>;
|
|
48
|
+
export declare function ProvideServiceWorkerUpdater(...providers: Array<Provider | EnvironmentProviders>): Array<Provider | EnvironmentProviders>;
|
|
49
|
+
export declare function withLogUpdater(): EnvironmentProviders;
|
|
50
|
+
export declare function withDialogUpdater(): EnvironmentProviders;
|
|
51
|
+
export declare function withAutoUpdater(): EnvironmentProviders;
|
|
52
|
+
export declare function withSnackbarUpdater(): EnvironmentProviders;
|
|
53
|
+
export declare class SnackbarUpdateService {
|
|
54
|
+
private readonly snackBar;
|
|
55
|
+
private readonly updates;
|
|
56
|
+
start(): void;
|
|
57
|
+
private openUpdateSnackBar;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarUpdateService, never>;
|
|
59
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
62
60
|
}
|
|
63
|
-
|
|
64
|
-
declare function UnregisterServiceWorker(environment: Environment): void;
|
|
65
|
-
|
|
66
|
-
export { AutoUpdateService, CheckForUpdateService, DialogUpdateService, LogUpdateService, ProvideServiceWorkerUpdater, ServiceWorkerUpdateDialogComponent, SnackbarUpdateService, UPDATE_AVAILABLE_EVENT, UnregisterServiceWorker, withAutoUpdater, withDialogUpdater, withLogUpdater, withSnackbarUpdater };
|
|
61
|
+
export declare function UnregisterServiceWorker(environment: Environment): void;
|