🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@cap-js/db-service

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cap-js/db-service - npm Package Compare versions

Comparing version
2.5.1
to
2.6.0
+14
-0
CHANGELOG.md

@@ -7,2 +7,16 @@ # Changelog

## [2.6.0](https://github.com/cap-js/cds-dbs/compare/db-service-v2.5.1...db-service-v2.6.0) (2025-10-23)
### Added
* **`flattening`:** allow flattening of `n`-ary structures in `list` ([#1337](https://github.com/cap-js/cds-dbs/issues/1337)) ([7ec18f2](https://github.com/cap-js/cds-dbs/commit/7ec18f24dba80ba31ad4e46f816c17fa64cba91a))
* **`flattening`:** allow flattening of structures with exactly one leaf ([7ec18f2](https://github.com/cap-js/cds-dbs/commit/7ec18f24dba80ba31ad4e46f816c17fa64cba91a))
### Fixed
* **`@cds.search`:** properly exclude an association from being searched ([#1385](https://github.com/cap-js/cds-dbs/issues/1385)) ([9ed4245](https://github.com/cap-js/cds-dbs/commit/9ed42458417c15dc33409befd0ef40889f04a69f))
* tree table with expand ([#1363](https://github.com/cap-js/cds-dbs/issues/1363)) ([bdad412](https://github.com/cap-js/cds-dbs/commit/bdad412f0362165b532ce35261773e5ecc7c696a))
## [2.5.1](https://github.com/cap-js/cds-dbs/compare/db-service-v2.5.0...db-service-v2.5.1) (2025-09-30)

@@ -9,0 +23,0 @@

+7
-1

@@ -353,3 +353,9 @@ const cds = require('@sap/cds')

columnsIn.push(ref)
if (from.args || columnsFiltered.find(c => this.column_name(c) === name)) {
const foreignkey4 = element._foreignKey4
if (
from.args ||
columnsFiltered.find(c => this.column_name(c) === name) ||
// foreignkey needs to be included when the association is expanded
(foreignkey4 && q.SELECT.columns.some(c => c.element?.isAssociation && c.element.name === foreignkey4))
) {
columnsOut.push(ref.as ? { ref: [ref.as], as: name } : ref)

@@ -356,0 +362,0 @@ }

+1
-14

@@ -6,16 +6,3 @@ const cds = require('@sap/cds')

// REVISIT: remove old path with cds^8
let _compareJson
const compareJson = (...args) => {
if (!_compareJson) {
try {
// new path
_compareJson = require('@sap/cds/libx/_runtime/common/utils/compareJson').compareJson
} catch {
// old path
_compareJson = require('@sap/cds/libx/_runtime/cds-services/services/utils/compareJson').compareJson
}
}
return _compareJson(...args)
}
const compareJson = require('@sap/cds/libx/_runtime/common/utils/compareJson').compareJson

@@ -22,0 +9,0 @@ const handledDeep = Symbol('handledDeep')

@@ -82,2 +82,5 @@ 'use strict'

if (column?.isAssociation || columnName.includes('.')) {
if(!annotationValue)
continue
const ref = columnName.split('.')

@@ -84,0 +87,0 @@ if(ref.length > 1) skipDefaultSearchableElements = true

{
"name": "@cap-js/db-service",
"version": "2.5.1",
"version": "2.6.0",
"description": "CDS base database service",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/cap-js/cds-dbs/tree/main/db-service#cds-base-database-service",

Sorry, the diff of this file is too big to display