signalk-backup 1.1.1 → 1.2.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/README.md +1 -1
- package/package.json +3 -3
- package/plugin/config/image-tag.d.ts +1 -1
- package/plugin/config/image-tag.js +1 -1
- package/plugin/config/schema.d.ts.map +1 -1
- package/plugin/config/schema.js +9 -8
- package/plugin/config/schema.js.map +1 -1
- package/public/assets/{AppPanel-qHY3hgKa.js → AppPanel-Wn1uKmbh.js} +2 -2
- package/public/assets/{AppPanel-qHY3hgKa.js.map → AppPanel-Wn1uKmbh.js.map} +1 -1
- package/public/assets/{_virtual_mf-localSharedImportMap___mfe_internal__signalk_mf_2_backup__mf_owner__1-Du7wMbis.js → _virtual_mf-localSharedImportMap___mfe_internal__signalk_mf_2_backup__mf_owner__1-DQ_NEhmC.js} +1 -1
- package/public/assets/dist-B-wbRLEQ.js +5 -0
- package/public/assets/dist-B-wbRLEQ.js.map +1 -0
- package/public/assets/{hostInit-kjS4q64P.js → hostInit-BnTHXPY_.js} +1 -1
- package/public/assets/{remote-C1XOdlZu.js → remote-CVW8SxYG.js} +2 -2
- package/public/assets/{remote-C1XOdlZu.js.map → remote-CVW8SxYG.js.map} +1 -1
- package/public/assets/{virtualExposes-CRxhb0RJ.js → virtualExposes-DOM6glvs.js} +2 -2
- package/public/assets/{virtualExposes-CRxhb0RJ.js.map → virtualExposes-DOM6glvs.js.map} +1 -1
- package/public/remoteEntry.js +1 -1
- package/public/remoteEntry.js.map +1 -1
- package/public/assets/dist-DWxKLhdH.js +0 -5
- package/public/assets/dist-DWxKLhdH.js.map +0 -1
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ The webapp has four tabs:
|
|
|
65
65
|
Most settings live in the **webapp** under Settings. The plugin's SignalK Admin UI config panel is intentionally small and handles only deployment-level options (the schema in [src/config/schema.ts](src/config/schema.ts) is the source of truth — update this list if you bump it):
|
|
66
66
|
|
|
67
67
|
- `managedContainer` — let the plugin manage the backup-server container (default), or point at an external instance
|
|
68
|
-
- `imageTag` —
|
|
68
|
+
- `imageTag` — `auto` (default) runs a specific server version and moves to a newer one when you update this plugin, so backups keep running the version they were tested against and update notices name versions rather than "image rebuild available". Pin a version to stay on it. `latest` follows the floating tag instead, which re-downloads the image (~400MB) on every update check.
|
|
69
69
|
- `externalUrl` — only used when `managedContainer: false`
|
|
70
70
|
- `emitSignalKDeltas` — publish backup health to the SignalK delta stream (default on; disable if you don't want these paths in your delta feed)
|
|
71
71
|
- `databaseExport.{questdb, grafana, signalkDatabase}` — enable per-exporter (default off; users opt in once their DB plugin is producing data)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signalk-backup",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Scheduled deduplicated backups of SignalK config to local storage and Google Drive (via Kopia + rclone)",
|
|
5
5
|
"main": "plugin/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@sinclair/typebox": "^0.34.0",
|
|
60
60
|
"bonjour-service": "^1.4.3",
|
|
61
|
-
"signalk-container-helper": "^0.
|
|
61
|
+
"signalk-container-helper": "^0.11.0",
|
|
62
62
|
"unzipper": "^0.12.3"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"typescript": "^6.0.3",
|
|
88
88
|
"typescript-eslint": "^8.0.0",
|
|
89
89
|
"vite": "^8.2.1",
|
|
90
|
-
"vitest": "^
|
|
90
|
+
"vitest": "^5.0.0"
|
|
91
91
|
},
|
|
92
92
|
"repository": {
|
|
93
93
|
"type": "git",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const BACKUP_SERVER_VERSION = "1.0.
|
|
1
|
+
export declare const BACKUP_SERVER_VERSION = "1.0.1";
|
|
2
2
|
export declare const BACKUP_SERVER_REPO = "dirkwa/signalk-backup-server";
|
|
3
3
|
export declare function isConcreteSemver(tag: string): boolean;
|
|
4
4
|
export declare function compareSemver(a: string, b: string): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Offline floor for "auto", not the target — never couple it to this plugin's own version. See AGENTS.md.
|
|
2
|
-
export const BACKUP_SERVER_VERSION = '1.0.
|
|
2
|
+
export const BACKUP_SERVER_VERSION = '1.0.1';
|
|
3
3
|
// Shared by the startup resolver and the update registration so the two cannot drift.
|
|
4
4
|
export const BACKUP_SERVER_REPO = 'dirkwa/signalk-backup-server';
|
|
5
5
|
// Rejects floating tags: signalk-container treats them as non-semver and pulls the image on every update check.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAGhD,eAAO,MAAM,YAAY;;;;;;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAGhD,eAAO,MAAM,YAAY;;;;;;EA6CvB,CAAA;AAGF,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,eAAe,EAAE,OAAO,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,GAAG;IACjD,cAAc,EAAE,oBAAoB,CAAA;CACrC,CAAA;AAGD,eAAO,MAAM,eAAe,EAAE,MAY7B,CAAA"}
|
package/plugin/config/schema.js
CHANGED
|
@@ -8,14 +8,15 @@ export const ConfigSchema = Type.Object({
|
|
|
8
8
|
'Disable to point at an external backup-server instance via "External URL".'
|
|
9
9
|
}),
|
|
10
10
|
imageTag: Type.String({
|
|
11
|
-
default: '
|
|
11
|
+
default: 'auto',
|
|
12
12
|
title: 'Container image tag',
|
|
13
|
-
description: '"
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
13
|
+
description: '"auto" (default) runs a concrete server version, so update notices read "1.0.0 → 1.0.1" ' +
|
|
14
|
+
'and nothing is downloaded until you take the update. It keeps the version it last ' +
|
|
15
|
+
'resolved and moves on only when a plugin update raises the floor, so boots need no ' +
|
|
16
|
+
'network. Pin a specific version (e.g. "1.0.1") to stay on it. "latest" also runs the ' +
|
|
17
|
+
'newest image, but as a floating tag it is checked by downloading it — about 400MB per ' +
|
|
18
|
+
'check, which matters on a metered link — and reports "image rebuild available" rather ' +
|
|
19
|
+
'than a version.'
|
|
19
20
|
}),
|
|
20
21
|
resolvedImageTag: Type.String({
|
|
21
22
|
default: '',
|
|
@@ -43,7 +44,7 @@ export const ConfigSchema = Type.Object({
|
|
|
43
44
|
// SignalK uses schema `default` only to seed the form, not the runtime config — spread these in start(). See AGENTS.md gotchas.
|
|
44
45
|
export const SCHEMA_DEFAULTS = {
|
|
45
46
|
managedContainer: true,
|
|
46
|
-
imageTag: '
|
|
47
|
+
imageTag: 'auto',
|
|
47
48
|
resolvedImageTag: '',
|
|
48
49
|
externalUrl: '',
|
|
49
50
|
emitSignalKDeltas: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAU,MAAM,mBAAmB,CAAA;AAEhD,wGAAwG;AACxG,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC;IACtC,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC;QAC7B,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,+CAA+C;QACtD,WAAW,EACT,0FAA0F;YAC1F,4EAA4E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