@cap-js/sqlite 1.7.1 → 1.7.3
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 +14 -0
- package/lib/SQLiteService.js +2 -2
- package/package.json +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@
|
|
|
4
4
|
- The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
5
5
|
- This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [1.7.3](https://github.com/cap-js/cds-dbs/compare/sqlite-v1.7.2...sqlite-v1.7.3) (2024-07-09)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
* expand reach of `cds.features.ieee754compatible` to `int64` ([#722](https://github.com/cap-js/cds-dbs/issues/722)) ([7eef5e9](https://github.com/cap-js/cds-dbs/commit/7eef5e9c5ec286285b2552abd1e673175c59fdc1))
|
|
13
|
+
|
|
14
|
+
## [1.7.2](https://github.com/cap-js/cds-dbs/compare/sqlite-v1.7.1...sqlite-v1.7.2) (2024-06-19)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
* **deps:** update dependency better-sqlite3 to v11 ([#669](https://github.com/cap-js/cds-dbs/issues/669)) ([7167ec5](https://github.com/cap-js/cds-dbs/commit/7167ec53d2e530bfa81def394acfa857e7d5b4fa))
|
|
20
|
+
|
|
7
21
|
## [1.7.1](https://github.com/cap-js/cds-dbs/compare/sqlite-v1.7.0...sqlite-v1.7.1) (2024-05-16)
|
|
8
22
|
|
|
9
23
|
|
package/lib/SQLiteService.js
CHANGED
|
@@ -217,10 +217,10 @@ class SQLiteService extends SQLService {
|
|
|
217
217
|
Timestamp: undefined,
|
|
218
218
|
// int64 is stored as native int64 for best comparison
|
|
219
219
|
// Reading int64 as string to not loose precision
|
|
220
|
-
Int64: expr => `CAST(${expr} as TEXT)
|
|
220
|
+
Int64: cds.env.features.ieee754compatible ? expr => `CAST(${expr} as TEXT)` : undefined,
|
|
221
221
|
// REVISIT: always cast to string in next major
|
|
222
222
|
// Reading decimal as string to not loose precision
|
|
223
|
-
Decimal: cds.env.features.
|
|
223
|
+
Decimal: cds.env.features.ieee754compatible ? expr => `CAST(${expr} as TEXT)` : undefined,
|
|
224
224
|
// Binary is not allowed in json objects
|
|
225
225
|
Binary: expr => `${expr} || ''`,
|
|
226
226
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cap-js/sqlite",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "CDS database service for SQLite",
|
|
5
5
|
"homepage": "https://github.com/cap-js/cds-dbs/tree/main/sqlite#cds-database-service-for-sqlite",
|
|
6
6
|
"repository": {
|
|
@@ -22,16 +22,12 @@
|
|
|
22
22
|
"lib",
|
|
23
23
|
"CHANGELOG.md"
|
|
24
24
|
],
|
|
25
|
-
"engines": {
|
|
26
|
-
"node": ">=16",
|
|
27
|
-
"npm": ">=8"
|
|
28
|
-
},
|
|
29
25
|
"scripts": {
|
|
30
26
|
"test": "jest --silent"
|
|
31
27
|
},
|
|
32
28
|
"dependencies": {
|
|
33
29
|
"@cap-js/db-service": "^1.9.0",
|
|
34
|
-
"better-sqlite3": "^
|
|
30
|
+
"better-sqlite3": "^11.0.0"
|
|
35
31
|
},
|
|
36
32
|
"peerDependencies": {
|
|
37
33
|
"@sap/cds": ">=7.6"
|