@sap/xsodata 8.2.0 → 8.3.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.
- package/CHANGELOG.md +10 -0
- package/lib/http/simpleHttpResponse.js +5 -2
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
|
8
8
|
|
|
9
9
|
## Unreleased
|
|
10
10
|
|
|
11
|
+
## [8.3.0] - 2026-01-09
|
|
12
|
+
|
|
13
|
+
* FOSS related security updates
|
|
14
|
+
* Add support for node 24
|
|
15
|
+
* Batch responses additional CRLF fix
|
|
16
|
+
|
|
17
|
+
## [8.2.1] - 2025-03-21
|
|
18
|
+
|
|
19
|
+
* FOSS related security updates
|
|
20
|
+
|
|
11
21
|
## [8.2.0] - 2024-10-23
|
|
12
22
|
|
|
13
23
|
* Add support for Node 22
|
|
@@ -13,6 +13,10 @@ function SimpleResponse() {
|
|
|
13
13
|
this.data = '';
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
SimpleResponse.prototype._isBatchCRLFEnabled = function () {
|
|
17
|
+
return (typeof process !== 'undefined' && process.env && process.env.XSODATA_ENABLE_BATCH_CRLF === 'true');
|
|
18
|
+
};
|
|
19
|
+
|
|
16
20
|
SimpleResponse.prototype.writeHead = function (code, headers) {
|
|
17
21
|
this.statusCode = code;
|
|
18
22
|
_.assign(this.headers, headers);
|
|
@@ -50,10 +54,9 @@ SimpleResponse.prototype.writeToBatchResponse = function (response,contentId) {
|
|
|
50
54
|
}
|
|
51
55
|
response.write('\r\n'); // end of header
|
|
52
56
|
response.write(this.data);
|
|
53
|
-
if (this.data.length > 0 ) {
|
|
57
|
+
if (this._isBatchCRLFEnabled() && this.data.length > 0 ) {
|
|
54
58
|
response.write('\r\n'); //as used in OData_Specification_V2.0 batch samples
|
|
55
59
|
}
|
|
56
|
-
|
|
57
60
|
};
|
|
58
61
|
|
|
59
62
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/xsodata",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"description": "Expose data from a HANA database as OData V2 service with help of .xsodata files.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "SEE LICENSE IN developer-license-3.1.txt",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"unit-tests": "node ./node_modules/mocha/bin/_mocha test/**/test*.js",
|
|
18
18
|
"cover-unit-tests": "nyc --reporter=text --reporter=html --all --include lib/ npm run unit-tests",
|
|
19
19
|
"cover-scenario-tests": "nyc --reporter=text --reporter=html --all --include lib/ --check-coverage true --lines 80 --branches 68 --functions 86 --statements 80 npm run scenario-tests",
|
|
20
|
-
"cover-jenkins": "nyc --reporter=text --reporter=html --all --include lib/ --check-coverage true --lines 80 --branches 68 --functions 86 --statements 80 npm run all-tests-jenkins",
|
|
20
|
+
"cover-jenkins": "nyc --reporter=text --reporter=html --reporter=lcov --report-dir=.nyc_output --all --include lib/ --check-coverage true --lines 80 --branches 68 --functions 86 --statements 80 npm run all-tests-jenkins",
|
|
21
21
|
"report": "npm run get-jwt && node ./node_modules/mocha/bin/_mocha test/**/test*.js test_apps/test_**/**/test*.js --reporter mocha-simple-html-reporter --reporter-options output=report_all.html",
|
|
22
22
|
"report-unit-tests": "node ./node_modules/mocha/bin/_mocha test/**/test*.js --reporter mocha-simple-html-reporter --reporter-options output=report_unit.html",
|
|
23
23
|
"report-scenario-tests": "npm run get-jwt && node ./node_modules/mocha/bin/_mocha test_apps/test_**/**/test*.js --reporter mocha-simple-html-reporter --reporter-options output=report_scenario.html",
|
|
@@ -49,25 +49,25 @@
|
|
|
49
49
|
".npmignore"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@sap/xsenv": "5.
|
|
53
|
-
"@sap/xssec": "3.6.
|
|
52
|
+
"@sap/xsenv": "5.6.1",
|
|
53
|
+
"@sap/xssec": "3.6.2",
|
|
54
54
|
"async": "3.2.6",
|
|
55
|
-
"big.js": "
|
|
56
|
-
"body-parser": "1.20.
|
|
57
|
-
"hdb": "0.19.
|
|
55
|
+
"big.js": "7.0.1",
|
|
56
|
+
"body-parser": "1.20.4",
|
|
57
|
+
"hdb": "0.19.12",
|
|
58
58
|
"lodash": "4.17.21",
|
|
59
|
-
"negotiator": "0.
|
|
59
|
+
"negotiator": "1.0.0",
|
|
60
60
|
"rwlock": "5.0.0",
|
|
61
61
|
"xml-writer": "1.7.0"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
|
-
"node": "^18 || ^20 || ^22"
|
|
64
|
+
"node": "^18 || ^20 || ^22 || ^24"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@sap/hana-client": "2.
|
|
67
|
+
"@sap/hana-client": "2.24.21",
|
|
68
68
|
"chai": "4.3.10",
|
|
69
69
|
"expect": "1.20.2",
|
|
70
|
-
"filter-node-package": "
|
|
70
|
+
"filter-node-package": "6.0.0",
|
|
71
71
|
"jison": "0.4.18",
|
|
72
72
|
"jshint": "2.13.6",
|
|
73
73
|
"mocha": "10.7.3",
|