@cap-js/change-tracking 1.1.2 → 1.1.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 CHANGED
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/).
6
6
 
7
- ## Version 1.1.3 - TBD
7
+ ## Version 1.1.4 - TBD
8
8
 
9
9
  ### Added
10
10
 
@@ -12,6 +12,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
12
12
 
13
13
  ### Changed
14
14
 
15
+ ## Version 1.1.3 - 27.10.25
16
+
17
+ ### Changed
18
+ - Correctly handle changes on foreign keys when sending them via the document notation on an API level.
19
+
15
20
 
16
21
  ## Version 1.1.2 - 23.10.25
17
22
 
@@ -101,6 +101,10 @@ const templateProcessor = ({ processFn, row, template, isRoot = true, pathOption
101
101
  const segments = pathOptions.segments && [...pathOptions.segments];
102
102
 
103
103
  for (const [tKey, tValue] of template.elements) {
104
+ // When a managed association is marked with @changelog, both foreign key and assoc are in the template. Skip the association as only the foreign key has a change.
105
+ if (template.target.elements[tKey]?.type === 'cds.Association') {
106
+ continue;
107
+ }
104
108
  if (segments) {
105
109
  pathOptions.segments = [...segments];
106
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js/change-tracking",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "CDS plugin providing out-of-the box support for automatic capturing, storing, and viewing of the change records of modeled entities.",
5
5
  "repository": "cap-js/change-tracking",
6
6
  "author": "SAP SE (https://www.sap.com)",