@pikku/kysely-sqlite 0.12.15 → 0.12.16

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @pikku/kysely-sqlite
2
2
 
3
+ ## 0.12.16
4
+
5
+ ### Patch Changes
6
+
7
+ - a16b0ba: Persistent workflow services take a required `leaseService` (`WorkflowServiceOptions`) and lock runs and steps on it. The Postgres advisory and MySQL `GET_LOCK` step locks, and Redis's own `SET NX` run and step locks, are removed; `RedisWorkflowService` now takes `(connection, { leaseService, keyPrefix? })`.
8
+ - Updated dependencies [a16b0ba]
9
+ - Updated dependencies [21e9c3a]
10
+ - Updated dependencies [a16b0ba]
11
+ - Updated dependencies [a16b0ba]
12
+ - @pikku/core@0.12.133
13
+ - @pikku/kysely@0.13.33
14
+
3
15
  ## 0.12.15
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -20,13 +20,20 @@ import {
20
20
  createSQLiteKysely,
21
21
  SQLiteKyselyWorkflowService,
22
22
  } from '@pikku/kysely-sqlite'
23
+ import { KyselyLeaseService } from '@pikku/kysely'
23
24
  import Database from 'better-sqlite3'
24
25
 
25
26
  const db = createSQLiteKysely(new Database('app.db'))
26
27
 
27
- const workflowService = new SQLiteKyselyWorkflowService(db)
28
+ const leaseService = new KyselyLeaseService(db)
29
+ await leaseService.init()
30
+
31
+ const workflowService = new SQLiteKyselyWorkflowService(db, { leaseService })
28
32
  ```
29
33
 
34
+ The workflow service locks runs and steps on the `leaseService` you give it;
35
+ register the same instance as the app's `leaseService`.
36
+
30
37
  ## Docs
31
38
 
32
39
  https://pikku.dev/docs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/kysely-sqlite",
3
- "version": "0.12.15",
3
+ "version": "0.12.16",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/pikkujs/pikku.git",
@@ -22,14 +22,14 @@
22
22
  "prepublishOnly": "bun run build"
23
23
  },
24
24
  "dependencies": {
25
- "@pikku/kysely": "^0.13.25",
25
+ "@pikku/kysely": "^0.13.33",
26
26
  "kysely": "^0.29.5"
27
27
  },
28
28
  "peerDependencies": {
29
- "@pikku/core": "^0.12.124"
29
+ "@pikku/core": "^0.12.133"
30
30
  },
31
31
  "devDependencies": {
32
- "@pikku/core": "^0.12.124"
32
+ "@pikku/core": "^0.12.133"
33
33
  },
34
34
  "exports": {
35
35
  ".": "./dist/src/index.js"