@litebackup/sdk 0.3.19 → 0.3.20

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.
@@ -114,7 +114,7 @@ export interface paths {
114
114
  };
115
115
  get?: never;
116
116
  put?: never;
117
- /** @description Take the write lock on a database and make the local file the server head, for worker pools that move databases between machines. An existing file becomes the first version when the server has none, is adopted when its hashes match the head, and is fast-forwarded when it is a clean but stale copy. Any other existing file is a conflict and is left untouched. A copy this machine wrote that diverged is saved as the conflict copy <path>.conflict-<time>.sqlite and the head is written in its place. Without a path, the path this machine already uses is taken, which brings an offloaded database back. */
117
+ /** @description Take the write lock on a database and make the local file the server head, for worker pools that move databases between machines. An existing file becomes the first version when the server has none, is adopted when its hashes match the head, and is fast-forwarded when it is a clean but stale copy. An empty file, as an app leaves after opening a new database without writing, counts as no copy; it becomes a new database when the server has none and is replaced by the head otherwise. Any other existing file is a conflict and is left untouched. A copy this machine wrote that diverged is saved as the conflict copy <path>.conflict-<time>.sqlite and the head is written in its place. Without a path, the path this machine already uses is taken, which brings an offloaded database back. */
118
118
  post: operations["acquireDatabase"];
119
119
  delete?: never;
120
120
  options?: never;
@@ -28,7 +28,7 @@ export type LitebackupEvent = Camelize<Schemas["Event"]>;
28
28
  export type EventList = Camelize<Schemas["EventList"]>;
29
29
  export type ShutdownResult = Camelize<Schemas["ShutdownResult"]>;
30
30
  /** The SDK version sent with every call. */
31
- export declare const sdkVersion = "0.3.19";
31
+ export declare const sdkVersion = "0.3.20";
32
32
  /** An error the Litebackup daemon answered with, carrying its code. */
33
33
  export declare class LitebackupError extends Error {
34
34
  /** Such as name_in_use, exists, in_use, not_found, still_open, timeout, or sdk_unsupported. */
package/dist/src/types.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** The SDK version sent with every call. */
2
- export const sdkVersion = "0.3.19";
2
+ export const sdkVersion = "0.3.20";
3
3
  /** An error the Litebackup daemon answered with, carrying its code. */
4
4
  export class LitebackupError extends Error {
5
5
  /** Such as name_in_use, exists, in_use, not_found, still_open, timeout, or sdk_unsupported. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litebackup/sdk",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "description": "Back up, replicate, and restore SQLite databases with Litebackup",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -25,10 +25,10 @@
25
25
  "prepack": "npm run build"
26
26
  },
27
27
  "optionalDependencies": {
28
- "@litebackup/bin-darwin-arm64": "0.3.19",
29
- "@litebackup/bin-darwin-x64": "0.3.19",
30
- "@litebackup/bin-linux-arm64": "0.3.19",
31
- "@litebackup/bin-linux-x64": "0.3.19"
28
+ "@litebackup/bin-darwin-arm64": "0.3.20",
29
+ "@litebackup/bin-darwin-x64": "0.3.20",
30
+ "@litebackup/bin-linux-arm64": "0.3.20",
31
+ "@litebackup/bin-linux-x64": "0.3.20"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "24.19.2",