@mojaloop/database-lib 11.1.4-snapshot.2 → 11.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.
@@ -1,7 +1,7 @@
1
1
  version: 2.1
2
2
  setup: true
3
3
  orbs:
4
- build: mojaloop/build@1.0.46
4
+ build: mojaloop/build@1.0.64
5
5
  workflows:
6
6
  setup:
7
7
  jobs:
package/.grype.yaml ADDED
@@ -0,0 +1,14 @@
1
+ disabled: true
2
+
3
+ ignore:
4
+
5
+ # Set output format defaults
6
+ output:
7
+ - "table"
8
+ - "json"
9
+
10
+ # Modify your CircleCI job to check critical count
11
+ search:
12
+ scope: "squashed"
13
+ quiet: false
14
+ check-for-app-update: false
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 18.20.4
1
+ 22.15.0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [11.2.0](https://github.com/mojaloop/database-lib/compare/v11.1.4...v11.2.0) (2025-05-14)
6
+
7
+
8
+ ### Features
9
+
10
+ * node version upgrade to v22.15.0 ([#170](https://github.com/mojaloop/database-lib/issues/170)) ([3780280](https://github.com/mojaloop/database-lib/commit/37802805fc343431c817e20c040ab2c340b932d0))
11
+
12
+ ### [11.1.4](https://github.com/mojaloop/database-lib/compare/v11.1.3...v11.1.4) (2025-03-13)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * process termination handling ([#169](https://github.com/mojaloop/database-lib/issues/169)) ([d0de3e1](https://github.com/mojaloop/database-lib/commit/d0de3e1924ee36ddd5018054140d2962a2353892))
18
+
5
19
  ### [11.1.3](https://github.com/mojaloop/database-lib/compare/v11.1.2...v11.1.3) (2025-02-21)
6
20
 
7
21
  ### [11.1.2](https://github.com/mojaloop/database-lib/compare/v11.1.1...v11.1.2) (2025-01-27)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/database-lib",
3
- "version": "11.1.4-snapshot.2",
3
+ "version": "11.2.0",
4
4
  "description": "Shared database code for central services",
5
5
  "main": "src/index.js",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "release": "standard-version --releaseCommitMessageFormat 'chore(release): {{currentTag}} [skip ci]'"
44
44
  },
45
45
  "dependencies": {
46
- "@mojaloop/central-services-error-handling": "13.0.7",
46
+ "@mojaloop/central-services-error-handling": "13.1.0",
47
47
  "async-exit-hook": "^2.0.1",
48
48
  "knex": "3.1.0",
49
49
  "lodash": "4.17.21",
@@ -71,13 +71,13 @@
71
71
  "yargs-parser": "21.1.1"
72
72
  },
73
73
  "devDependencies": {
74
- "@mojaloop/sdk-standard-components": "19.10.3",
74
+ "@mojaloop/sdk-standard-components": "19.14.0",
75
75
  "audit-ci": "^7.1.0",
76
- "npm-check-updates": "17.1.15",
76
+ "npm-check-updates": "18.0.1",
77
77
  "nyc": "17.1.0",
78
78
  "pre-commit": "1.2.2",
79
79
  "proxyquire": "2.1.3",
80
- "sinon": "19.0.2",
80
+ "sinon": "20.0.0",
81
81
  "standard": "17.1.2",
82
82
  "standard-version": "9.5.0",
83
83
  "tap-spec": "^5.0.0",
package/src/database.js CHANGED
@@ -80,7 +80,9 @@ class Database {
80
80
  this._tables = await this._listTables()
81
81
  await this._setTableProperties()
82
82
 
83
- exitHook(() => this.disconnect())
83
+ exitHook(callback => {
84
+ this.disconnect().finally(callback)
85
+ })
84
86
  }
85
87
 
86
88
  async disconnect () {