@sap/xsodata
Advanced tools
Comparing version 8.1.0 to 8.1.2
@@ -11,2 +11,10 @@ # Change Log | ||
## [8.1.1] - 2023-11-30 | ||
* Add support for node 20 | ||
* Remove support for node 14 | ||
* Remove support for node 16 | ||
* Update dependencies | ||
* Security fix - update @sap/xssec library to version 3.6.0 | ||
## [8.1.0] - 2023-02-20 | ||
@@ -13,0 +21,0 @@ * Add support Node.js 18 |
@@ -1490,3 +1490,3 @@ 'use strict'; | ||
//check if property is per service definition included | ||
if (this.entityType.properties.with) { | ||
if (typeof this.entityType.properties.with !== "function" && this.entityType.properties.with) { | ||
if (this.entityType.properties.with.indexOf(propertyName) > -1) { | ||
@@ -1493,0 +1493,0 @@ this._SelectedProperties.push(propertyName); |
{ | ||
"name": "@sap/xsodata", | ||
"version": "8.1.0", | ||
"version": "8.1.2", | ||
"description": "Expose data from a HANA database as OData V2 service with help of .xsodata files.", | ||
@@ -12,6 +12,7 @@ "main": "index.js", | ||
"lint": "jshint .", | ||
"all-tests-jenkins": "node ./node_modules/mocha/bin/_mocha --no-color --timeout 20000 'test/**/test*.js' 'test_apps/test_**/**/test*.js'", | ||
"all-tests-jenkins": "npm run get-jwt && node ./node_modules/mocha/bin/_mocha --no-color --timeout 20000 'test/**/test*.js' 'test_apps/test_**/**/test*.js'", | ||
"all-tests-cv": "node ./node_modules/mocha/bin/_mocha --no-color --timeout 20000 'test_apps/test_cv/**/test*.js'", | ||
"scenario-tests": "node ./node_modules/mocha/bin/_mocha --no-color --timeout 20000 test_apps/test_**/**/test*.js", | ||
"scenario-tests": "npm run get-jwt && node ./node_modules/mocha/bin/_mocha --no-color --timeout 20000 test_apps/test_**/**/test*.js", | ||
"all-tests-synonym": "node ./node_modules/mocha/bin/_mocha --no-color --timeout 20000 test_apps/test_synonyms/test_*.js", | ||
"get-jwt": "node ./test_apps/test_authorization/tokenCreation/createTokenSnipplet.js", | ||
"unit-tests": "node ./node_modules/mocha/bin/_mocha test/**/test*.js", | ||
@@ -21,5 +22,5 @@ "cover-unit-tests": "nyc --reporter=text --reporter=html --all --include lib/ npm run unit-tests", | ||
"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", | ||
"report": "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", | ||
"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", | ||
"report-unit-tests": "node ./node_modules/mocha/bin/_mocha test/**/test*.js --reporter mocha-simple-html-reporter --reporter-options output=report_unit.html", | ||
"report-scenario-tests": "node ./node_modules/mocha/bin/_mocha test_apps/test_**/**/test*.js --reporter mocha-simple-html-reporter --reporter-options output=report_scenario.html", | ||
"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", | ||
"gen": "npm run genfilter && npm run genorderby && npm run gensegment && npm run genxso && npm run genxml && npm run genDateTimeParser", | ||
@@ -40,3 +41,4 @@ "genfilter": "jison lib/grammars/filter.jison -o lib/parsers/jison_filter_parser.js", | ||
"odata", | ||
"xsjs" | ||
"xsjs", | ||
"async-xsjs" | ||
], | ||
@@ -47,2 +49,3 @@ "files": [ | ||
"CHANGELOG.md", | ||
"documentation", | ||
"developer-license-3.1.txt", | ||
@@ -53,8 +56,8 @@ "lib", | ||
"dependencies": { | ||
"@sap/xsenv": "3.4.0", | ||
"@sap/xssec": "3.2.17", | ||
"async": "3.2.4", | ||
"@sap/xsenv": "4.2.0", | ||
"@sap/xssec": "3.6.0", | ||
"async": "3.2.5", | ||
"big.js": "6.2.1", | ||
"body-parser": "1.20.1", | ||
"hdb": "0.19.5", | ||
"body-parser": "1.20.2", | ||
"hdb": "0.19.7", | ||
"lodash": "4.17.21", | ||
@@ -66,9 +69,9 @@ "negotiator": "0.6.3", | ||
"engines": { | ||
"node": "^14 || ^16 || ^18" | ||
"node": "^18 || ^20" | ||
}, | ||
"devDependencies": { | ||
"@sap/hana-client": "2.15.19", | ||
"chai": "4.3.7", | ||
"@sap/hana-client": "2.19.13", | ||
"chai": "4.3.10", | ||
"expect": "1.20.2", | ||
"filter-node-package": "3.1.0", | ||
"filter-node-package": "3.2.0", | ||
"jison": "0.4.18", | ||
@@ -75,0 +78,0 @@ "jshint": "2.13.6", |
@@ -5,2 +5,4 @@ XSODATA | ||
Expose data from HANA database artifacts like tables or views as OData V2 service with the help of .xsodata service definition files. | ||
Starting from version 8.1.1 - XSODATA is supported only with @sap/async-xsjs library. @sap/xsjs is deprecated and no new versions will be | ||
released. [see CHANGELOG](./CHANGELOG.md) | ||
@@ -18,8 +20,8 @@ Note: XSOData was developed to provide XS Classic users using XSOData the possibility to migrate to XS Advanced on node.js. | ||
If you are developing an OData service for SAP Business Technology Platform, it is recommended to move to the SAP Cloud Application Programming Model (CP). | ||
The XSODATA solution supports HANA as a service, but does **NOT** support SAP HANA Cloud Services (see also SAP note 3013788). | ||
If you are developing an OData service for SAP Business Technology Platform, it is recommended to move to the SAP Cloud Application Programming Model (CAP). | ||
The XSODATA solution supports HANA as a service, also support was introduced for SAP HANA Cloud Services from XSODATA v8.0.0 and above. | ||
## Usage | ||
* This module is used in the XSJS shim for SAP HANA XSC Engine applications to | ||
* This module is used in the XSJS/ASYNC-XSJS shim for SAP HANA XSC Engine applications to | ||
allow the reuse of .xsodata files from XSC applications on SAP HANA XSA. | ||
@@ -31,3 +33,3 @@ | ||
[For documentation see here](./documentation.md) | ||
[For documentation see here](./documentation) | ||
@@ -55,3 +57,3 @@ ## Warning | ||
* Logging: | ||
When the xsjs application log is enabled then xsodata also writes log information. | ||
When the xsjs/async-xsjs application log is enabled then xsodata also writes log information. | ||
If, in addition, the environment variable XSODATA_LOG_MEMORY_CONSUMPTION is set to 'true' | ||
@@ -103,5 +105,5 @@ xsodata writes also memory consumption information to the logs | ||
* Property Projection: Expose a subset of the table columns as properties of an OData EntityType | ||
* [Automatic OData key generation] (/documentation/generatedKeys.md), e.g. required for aggregated views | ||
* [Automatic OData key generation](/documentation/generatedKeys.md), e.g. required for aggregated views | ||
* Simple and complex associations | ||
* [Data aggregation] (/documentation/aggregations.md) | ||
* [Data aggregation](/documentation/aggregations.md) | ||
* Parameter EntitySets for calculation views | ||
@@ -111,3 +113,3 @@ * ETAG handling | ||
* Cache Control via cache header | ||
* [Custom exits] (/documentation/customExits.md) (JavaScript and SQL Script) for modification and validation requests | ||
* [Custom exits](/documentation/customExits.md) (JavaScript and SQL Script) for modification and validation requests | ||
* Custom exits in batch requests | ||
@@ -118,3 +120,3 @@ * Uses only UTF-8 | ||
* Supported types and type mapping [see here](/documentation/typemapping.md) | ||
* [Supported XSOData features by OSDL] (/documentation/xsodataEbnf.md) | ||
* [Supported XSOData features by OSDL](/documentation/xsodataEbnf.md) | ||
@@ -126,4 +128,4 @@ | ||
* Authentication/Authorisation is not handled by XSOData node module and has to be done by the application using the node module. | ||
* [The module can be used in development mode and productive mode] (/documentation/modes.md) | ||
* [Debug View is available when using the module in development mode] (/documentation/debugView.md) | ||
* [The module can be used in development mode and productive mode](/documentation/modes.md) | ||
* [Debug View is available when using the module in development mode](/documentation/debugView.md) | ||
@@ -130,0 +132,0 @@ ## Features per HANA DB Artifact |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1410924
178
33004
165
3
+ Added@sap/xsenv@4.2.0(transitive)
+ Added@sap/xssec@3.6.0(transitive)
+ Addedasync@3.2.5(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaxios@1.7.9(transitive)
+ Addedbody-parser@1.20.2(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedhdb@0.19.7(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
+ Addedraw-body@2.5.2(transitive)
- Removed@sap/xsenv@3.4.0(transitive)
- Removed@sap/xssec@3.2.17(transitive)
- Removedasync@3.2.4(transitive)
- Removedaxios@0.26.1(transitive)
- Removedbody-parser@1.20.1(transitive)
- Removedhdb@0.19.5(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removedraw-body@2.5.1(transitive)
- Removedvalid-url@1.0.9(transitive)
- Removedyallist@4.0.0(transitive)
Updated@sap/xsenv@4.2.0
Updated@sap/xssec@3.6.0
Updatedasync@3.2.5
Updatedbody-parser@1.20.2
Updatedhdb@0.19.7