@workglow/indexeddb 0.3.1 → 0.3.3

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.
@@ -1,25 +1,19 @@
1
1
  /**
2
2
  * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
3
+ * Copyright 2026 Steven Roussey <sroussey@gmail.com>
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { PrefixColumn } from "@workglow/job-queue";
7
7
  import type { IndexedDbMigration, IndexedDbMigrationGroup } from "./IndexedDbMigrationRunner";
8
8
  /**
9
- * Initial migration set for the IndexedDB queue object store identified by
9
+ * Migration set for the IndexedDB queue object store identified by
10
10
  * `tableName`.
11
11
  *
12
12
  * Component name is `queue:indexeddb:<tableName>` so two queues with
13
13
  * different table names get tracked independently in `_storage_migrations`.
14
14
  *
15
- * v1 is FROZEN byte-for-byte against the pre-PR shape (097b4afa) it
16
- * creates the `queue_status_run_after` compound index and reads `run_after`
17
- * from each row. The rename to `queue_status_visible_at` lives in v2,
18
- * which also walks every existing row and copies `run_after → visible_at`
19
- * synchronously inside the upgrade transaction.
20
- *
21
- * Schema (post v2): a single object store keyed by `id` plus four compound
22
- * indexes (queue/status, queue/status/visible_at, queue/job_run_id,
15
+ * Schema: a single object store keyed by `id` plus four compound indexes
16
+ * (queue/status, queue/status/visible_at, queue/job_run_id,
23
17
  * queue/fingerprint/status). When `prefixes` is non-empty the prefix
24
18
  * columns are prepended to every index key path so per-tenant queries can
25
19
  * be served directly by the index.
@@ -1 +1 @@
1
- {"version":3,"file":"indexedDbQueueMigrations.d.ts","sourceRoot":"","sources":["../../src/migrations/indexedDbQueueMigrations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE9F;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,SAAS,YAAY,EAAE,GAChC,kBAAkB,EAAE,CAuGtB;AAED,iFAAiF;AACjF,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,SAAS,YAAY,EAAE,GAChC,uBAAuB,CAKzB"}
1
+ {"version":3,"file":"indexedDbQueueMigrations.d.ts","sourceRoot":"","sources":["../../src/migrations/indexedDbQueueMigrations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE9F;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,SAAS,YAAY,EAAE,GAChC,kBAAkB,EAAE,CAyBtB;AAED,iFAAiF;AACjF,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,SAAS,YAAY,EAAE,GAChC,uBAAuB,CAKzB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@workglow/indexeddb",
3
3
  "type": "module",
4
- "version": "0.3.1",
4
+ "version": "0.3.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/workglow-dev/libs.git",
@@ -54,9 +54,9 @@
54
54
  }
55
55
  },
56
56
  "peerDependencies": {
57
- "@workglow/job-queue": "0.3.1",
58
- "@workglow/storage": "0.3.1",
59
- "@workglow/util": "0.3.1"
57
+ "@workglow/job-queue": "0.3.3",
58
+ "@workglow/storage": "0.3.3",
59
+ "@workglow/util": "0.3.3"
60
60
  },
61
61
  "peerDependenciesMeta": {
62
62
  "@workglow/job-queue": {
@@ -71,9 +71,9 @@
71
71
  },
72
72
  "devDependencies": {
73
73
  "fake-indexeddb": "^6.2.4",
74
- "@workglow/job-queue": "0.3.1",
75
- "@workglow/storage": "0.3.1",
76
- "@workglow/util": "0.3.1"
74
+ "@workglow/job-queue": "0.3.3",
75
+ "@workglow/storage": "0.3.3",
76
+ "@workglow/util": "0.3.3"
77
77
  },
78
78
  "files": [
79
79
  "dist",