quoting-service 17.10.4 → 17.10.5

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
@@ -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
+ ### [17.10.5](https://github.com/mojaloop/quoting-service/compare/v17.10.4...v17.10.5) (2025-07-13)
6
+
7
+
8
+ ### Chore
9
+
10
+ * switch to mysql2 client and fix tests ([#416](https://github.com/mojaloop/quoting-service/issues/416)) ([3512aeb](https://github.com/mojaloop/quoting-service/commit/3512aebd2738dee950942307d97927ebe05abb2c))
11
+
5
12
  ### [17.10.4](https://github.com/mojaloop/quoting-service/compare/v17.10.3...v17.10.4) (2025-07-11)
6
13
 
7
14
 
@@ -33,7 +33,7 @@
33
33
  }
34
34
  },
35
35
  "DATABASE": {
36
- "DIALECT": "mysql",
36
+ "DIALECT": "mysql2",
37
37
  "HOST": "localhost",
38
38
  "PORT": 3306,
39
39
  "USER": "central_ledger",
@@ -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",
@@ -33,7 +33,7 @@
33
33
  }
34
34
  },
35
35
  "DATABASE": {
36
- "DIALECT": "mysql",
36
+ "DIALECT": "mysql2",
37
37
  "HOST": "mysql",
38
38
  "PORT": 3306,
39
39
  "USER": "central_ledger",
@@ -1,2 +1,2 @@
1
- ALTER USER 'central_ledger'@'%' identified WITH mysql_native_password by 'password';
1
+ ALTER USER 'central_ledger'@'%' IDENTIFIED WITH caching_sha2_password BY 'password';
2
2
  FLUSH PRIVILEGES;
@@ -14,7 +14,7 @@ x-quoting-service: &quotingServiceBase
14
14
  - mojaloop/quoting-service
15
15
  - quoting-service
16
16
  args:
17
- - NODE_VERSION=18-alpine3.19
17
+ - NODE_VERSION=lts-alpine
18
18
  environment:
19
19
  - LOG_LEVEL=debug
20
20
  - CSL_LOG_TRANSPORT=file
@@ -82,7 +82,7 @@ services:
82
82
 
83
83
 
84
84
  central-ledger:
85
- image: mojaloop/central-ledger:v17.8.0-snapshot.7
85
+ image: mojaloop/central-ledger:latest
86
86
  container_name: qs_central-ledger
87
87
  ports:
88
88
  - "3001:3001"
@@ -109,7 +109,7 @@ services:
109
109
  - "src/api/index.js"
110
110
 
111
111
  mysql:
112
- image: mysql/mysql-server
112
+ image: mysql:9
113
113
  container_name: qs_mysql
114
114
  ports:
115
115
  - "3306:3306"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "quoting-service",
3
3
  "description": "Quoting Service hosted by a scheme",
4
4
  "license": "Apache-2.0",
5
- "version": "17.10.4",
5
+ "version": "17.10.5",
6
6
  "author": "ModusBox",
7
7
  "contributors": [
8
8
  "Georgi Georgiev <georgi.georgiev@modusbox.com>",
@@ -114,8 +114,8 @@
114
114
  "@mojaloop/central-services-health": "15.1.0",
115
115
  "@mojaloop/central-services-logger": "11.9.0",
116
116
  "@mojaloop/central-services-metrics": "12.6.0",
117
- "@mojaloop/central-services-shared": "18.29.0",
118
- "@mojaloop/central-services-stream": "11.8.1",
117
+ "@mojaloop/central-services-shared": "18.30.0",
118
+ "@mojaloop/central-services-stream": "11.8.2",
119
119
  "@mojaloop/event-sdk": "14.6.1",
120
120
  "@mojaloop/inter-scheme-proxy-cache-lib": "2.6.0",
121
121
  "@mojaloop/ml-number": "11.2.7",
@@ -133,7 +133,7 @@
133
133
  "knex": "3.1.0",
134
134
  "memory-cache": "0.2.0",
135
135
  "minimist": "1.2.8",
136
- "mysql": "2.18.1",
136
+ "mysql2": "^3.14.2",
137
137
  "node-fetch": "3.3.2",
138
138
  "parse-strings-in-object": "2.0.0",
139
139
  "rc": "1.2.8"
package/src/lib/config.js CHANGED
@@ -115,7 +115,9 @@ class Config {
115
115
  port: RC.DATABASE.PORT,
116
116
  user: RC.DATABASE.USER,
117
117
  password: RC.DATABASE.PASSWORD,
118
- database: RC.DATABASE.SCHEMA
118
+ database: RC.DATABASE.SCHEMA,
119
+ decimalNumbers: true,
120
+ jsonStrings: true
119
121
  },
120
122
  pool: {
121
123
  // minimum size