@mojaloop/central-ledger 19.7.3 → 19.7.4

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/.nvmrc CHANGED
@@ -1 +1 @@
1
- 22.15.1
1
+ 22.17.0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
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
+ ### [19.7.4](https://github.com/mojaloop/central-ledger/compare/v19.7.3...v19.7.4) (2025-07-14)
6
+
7
+
8
+ ### Chore
9
+
10
+ * use mysql2 dialect ([#1191](https://github.com/mojaloop/central-ledger/issues/1191)) ([4e459e6](https://github.com/mojaloop/central-ledger/commit/4e459e6bf5ad143beeed456ba241a6306d36df07))
11
+
5
12
  ### [19.7.3](https://github.com/mojaloop/central-ledger/compare/v19.7.0...v19.7.3) (2025-07-11)
6
13
 
7
14
 
@@ -2,7 +2,7 @@
2
2
  "PORT": 3001,
3
3
  "HOSTNAME": "http://central-ledger",
4
4
  "DATABASE": {
5
- "DIALECT": "mysql",
5
+ "DIALECT": "mysql2",
6
6
  "HOST": "localhost",
7
7
  "PORT": 3306,
8
8
  "USER": "central_ledger",
@@ -6,8 +6,7 @@ const seedsDirectory = '../seeds'
6
6
  const Config = require('../src/lib/config')
7
7
 
8
8
  module.exports = {
9
- client: 'mysql',
10
- version: '5.5',
9
+ client: 'mysql2',
11
10
  connection: Config.DATABASE.connection,
12
11
  pool: Config.DATABASE.pool,
13
12
  migrations: {
@@ -2,7 +2,7 @@
2
2
  "PORT": 3001,
3
3
  "HOSTNAME": "http://central-ledger",
4
4
  "DATABASE": {
5
- "DIALECT": "mysql",
5
+ "DIALECT": "mysql2",
6
6
  "HOST": "mysql",
7
7
  "PORT": 3306,
8
8
  "USER": "central_ledger",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/central-ledger",
3
- "version": "19.7.3",
3
+ "version": "19.7.4",
4
4
  "description": "Central ledger hosted by a scheme to record and settle transfers",
5
5
  "license": "Apache-2.0",
6
6
  "author": "ModusBox",
@@ -92,7 +92,7 @@
92
92
  "@mojaloop/central-services-health": "15.1.0",
93
93
  "@mojaloop/central-services-logger": "11.9.0",
94
94
  "@mojaloop/central-services-metrics": "12.6.0",
95
- "@mojaloop/central-services-shared": "18.29.0",
95
+ "@mojaloop/central-services-shared": "18.30.0",
96
96
  "@mojaloop/central-services-stream": "11.8.2",
97
97
  "@mojaloop/database-lib": "^11.2.1",
98
98
  "@mojaloop/event-sdk": "14.6.1",
@@ -105,7 +105,7 @@
105
105
  "base64url": "3.0.1",
106
106
  "blipp": "4.0.2",
107
107
  "commander": "14.0.0",
108
- "cron": "4.3.1",
108
+ "cron": "4.3.2",
109
109
  "decimal.js": "10.6.0",
110
110
  "docdash": "2.0.2",
111
111
  "event-stream": "4.0.1",
@@ -162,9 +162,6 @@
162
162
  "swagger2openapi": "7.0.8",
163
163
  "markdown-it": "12.3.2"
164
164
  },
165
- "@now-ims/hapi-now-auth": {
166
- "@hapi/hoek": "9.0.3"
167
- },
168
165
  "jsonwebtoken": "9.0.0",
169
166
  "jsonpointer": "5.0.0",
170
167
  "trim": "0.0.3",
package/src/lib/config.js CHANGED
@@ -44,7 +44,9 @@ module.exports = {
44
44
  port: RC.DATABASE.PORT,
45
45
  user: RC.DATABASE.USER,
46
46
  password: RC.DATABASE.PASSWORD,
47
- database: RC.DATABASE.SCHEMA
47
+ database: RC.DATABASE.SCHEMA,
48
+ decimalNumbers: true,
49
+ jsonStrings: true
48
50
  },
49
51
  pool: {
50
52
  // minimum size