@cap-js-community/common 0.3.3 → 0.3.4

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
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## Version 0.3.4 - 2026-01-20
9
+
10
+ ### Fixed
11
+
12
+ - Fix journal migration check for draft entities
13
+
8
14
  ## Version 0.3.3 - 2026-01-07
9
15
 
10
16
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js-community/common",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "CAP Node.js Community Common",
5
5
  "homepage": "https://cap.cloud.sap/",
6
6
  "engines": {
@@ -559,7 +559,10 @@ function journalModeCheck(csnBuild, csnProd, whitelist, options) {
559
559
  }
560
560
  visitPersistenceEntities(
561
561
  csnBuild,
562
- (definitionBuild) => {
562
+ (definitionBuild, { draft } = {}) => {
563
+ if (draft) {
564
+ return;
565
+ }
563
566
  const definitionProd = csnProd.definitions[definitionBuild.name];
564
567
  if (definitionProd) {
565
568
  if (definitionBuild["@cds.persistence.journal"] && !definitionProd["@cds.persistence.journal"]) {
@@ -616,6 +619,9 @@ function visitPersistenceEntities(csn, onEntity, filter) {
616
619
  if (partOfService) {
617
620
  const _compositeEntities = compositeEntities(csn.definitions, name);
618
621
  _compositeEntities.forEach((name) => {
622
+ if (filter && !filter.includes(name)) {
623
+ return;
624
+ }
619
625
  const definition = csn.definitions[name];
620
626
  definition.name = name;
621
627
  onEntity(definition, { draft: true });