@workglow/indexeddb 0.3.1 → 0.3.2
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/dist/job-queue/IndexedDbJobStore.d.ts +2 -6
- package/dist/job-queue/IndexedDbJobStore.d.ts.map +1 -1
- package/dist/job-queue/IndexedDbMessageQueue.d.ts +1 -14
- package/dist/job-queue/IndexedDbMessageQueue.d.ts.map +1 -1
- package/dist/job-queue/IndexedDbQueueStorage.d.ts +8 -0
- package/dist/job-queue/IndexedDbQueueStorage.d.ts.map +1 -1
- package/dist/job-queue/browser.js +29 -99
- package/dist/job-queue/browser.js.map +7 -7
- package/dist/job-queue/createIndexedDbQueue.d.ts +1 -3
- package/dist/job-queue/createIndexedDbQueue.d.ts.map +1 -1
- package/dist/job-queue/node.js +29 -99
- package/dist/job-queue/node.js.map +7 -7
- package/dist/migrations/indexedDbQueueMigrations.d.ts +4 -10
- package/dist/migrations/indexedDbQueueMigrations.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1,25 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright
|
|
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
|
-
*
|
|
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
|
-
*
|
|
16
|
-
*
|
|
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
|
|
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.
|
|
4
|
+
"version": "0.3.2",
|
|
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.
|
|
58
|
-
"@workglow/storage": "0.3.
|
|
59
|
-
"@workglow/util": "0.3.
|
|
57
|
+
"@workglow/job-queue": "0.3.2",
|
|
58
|
+
"@workglow/storage": "0.3.2",
|
|
59
|
+
"@workglow/util": "0.3.2"
|
|
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.
|
|
75
|
-
"@workglow/storage": "0.3.
|
|
76
|
-
"@workglow/util": "0.3.
|
|
74
|
+
"@workglow/job-queue": "0.3.2",
|
|
75
|
+
"@workglow/storage": "0.3.2",
|
|
76
|
+
"@workglow/util": "0.3.2"
|
|
77
77
|
},
|
|
78
78
|
"files": [
|
|
79
79
|
"dist",
|