From 19f0a3fb199e38582049c1a8cd8cff812de6975b Mon Sep 17 00:00:00 2001 From: D050513 Date: Wed, 11 Oct 2023 13:31:26 +0200 Subject: [PATCH 1/6] 0.1.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 520efbd..8775da9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@cap-js/change-tracking", "description": "CAP cds-plugin providing change tracking out-of-the-box.", - "version": "1.0.0", + "version": "0.1.0", "main": "cds-plugin.js", "files": [ "index.cds", From 36a54b09c4818d4bfeb6c58d874a9250262771be Mon Sep 17 00:00:00 2001 From: D050513 Date: Wed, 11 Oct 2023 13:37:41 +0200 Subject: [PATCH 2/6] linting --- tests/integration/service-api.test.js | 4 ---- tests/unit/util.test.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/integration/service-api.test.js b/tests/integration/service-api.test.js index ef0817c..d18ae51 100644 --- a/tests/integration/service-api.test.js +++ b/tests/integration/service-api.test.js @@ -12,15 +12,11 @@ jest.setTimeout(5 * 60 * 1000); let adminService = null; let ChangeView = null; -let db = null; -let ChangeEntity = null; describe("change log integration test", () => { beforeAll(async () => { adminService = await cds.connect.to("AdminService"); ChangeView = adminService.entities.ChangeView; - db = await cds.connect.to("sql:my.db"); - ChangeEntity = db.model.definitions["sap.changelog.Changes"]; }); beforeEach(async () => { diff --git a/tests/unit/util.test.js b/tests/unit/util.test.js index baddcbc..f5141ae 100644 --- a/tests/unit/util.test.js +++ b/tests/unit/util.test.js @@ -1,7 +1,7 @@ const chai = require("chai"); const { expect } = require("chai"); const templateProcessor = require("../../lib/template-processor"); -const { getEntityByContextPath, getEntity, hasComposition } = require("../../lib/entity-helper"); +const { getEntityByContextPath } = require("../../lib/entity-helper"); // Configure chai chai.should(); From cd4dd1866a40e7c6440ee0c169b7574574f546ff Mon Sep 17 00:00:00 2001 From: D050513 Date: Wed, 11 Oct 2023 13:42:19 +0200 Subject: [PATCH 3/6] cleanup package.json --- package.json | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 8775da9..7ed94cb 100644 --- a/package.json +++ b/package.json @@ -1,35 +1,31 @@ { "name": "@cap-js/change-tracking", - "description": "CAP cds-plugin providing change tracking out-of-the-box.", "version": "0.1.0", + "description": "CAP cds-plugin providing change tracking out-of-the-box.", + "repository": "cap-js/change-tracking", + "author": "SAP SE (https://www.sap.com)", + "homepage": "https://cap.cloud.sap/", + "license": "SEE LICENSE IN LICENSE", "main": "cds-plugin.js", "files": [ - "index.cds", "lib", - "_i18n" + "_i18n", + "index.cds", + "CHANGELOG.md" ], "scripts": { - "build": "cds build", - "start": "cds run", "lint": "npx eslint .", "test": "npx jest --silent" }, + "peerDependencies": { + "@sap/cds": "^7" + }, "devDependencies": { - "@cap-js/sqlite": "*", - "axios": ">=0.24", - "chai": "^4.3.4", - "chai-as-promised": "^7.1.1", - "chai-subset": "^1.6.0", - "eslint": "^8.0.0", + "@cap-js/sqlite": "^1", + "axios": "^1", + "eslint": "^8", "express": "^4", - "jest": "^29.1.0", - "prettier": "^2.3.0" - }, - "dependencies": { - "@sap/cds-foss": "^4" - }, - "peerDependencies": { - "@sap/cds": ">=6" + "jest": "^29" }, "cds": { "requires": { From ee5a88640c0009476848e855e631f67b830ca883 Mon Sep 17 00:00:00 2001 From: D050513 Date: Wed, 11 Oct 2023 13:46:45 +0200 Subject: [PATCH 4/6] changelog --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b770844 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# Change Log + +All notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning](http://semver.org/). +The format is based on [Keep a Changelog](http://keepachangelog.com/). + +## Version 0.1.0 - TBD + +### Added + +- Initial release (early adopter) \ No newline at end of file From df3d470c88b064c50643a45c35a856ae2f533654 Mon Sep 17 00:00:00 2001 From: D050513 Date: Wed, 11 Oct 2023 13:47:40 +0200 Subject: [PATCH 5/6] npm add -D chai chai-as-promised chai-subset --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 7ed94cb..7248b8a 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,9 @@ "devDependencies": { "@cap-js/sqlite": "^1", "axios": "^1", + "chai": "^4.3.10", + "chai-as-promised": "^7.1.1", + "chai-subset": "^1.6.0", "eslint": "^8", "express": "^4", "jest": "^29" From 6394b1c6ff20e0ba879e486371c33cc44f626a31 Mon Sep 17 00:00:00 2001 From: D050513 Date: Wed, 11 Oct 2023 13:51:17 +0200 Subject: [PATCH 6/6] update description --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7248b8a..25c1c7a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@cap-js/change-tracking", "version": "0.1.0", - "description": "CAP cds-plugin providing change tracking out-of-the-box.", + "description": "CDS plugin providing out-of-the box support for automatic capturing, storing, and viewing of the change records of modeled entities.", "repository": "cap-js/change-tracking", "author": "SAP SE (https://www.sap.com)", "homepage": "https://cap.cloud.sap/",