Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prep v0.1.0 #19

Merged
merged 6 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
35 changes: 17 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
{
"name": "@cap-js/change-tracking",
"description": "CAP cds-plugin providing change tracking out-of-the-box.",
"version": "1.0.0",
"version": "0.1.0",
"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/",
"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",
"@cap-js/sqlite": "^1",
"axios": "^1",
"chai": "^4.3.10",
"chai-as-promised": "^7.1.1",
"chai-subset": "^1.6.0",
"eslint": "^8.0.0",
"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": {
Expand Down
4 changes: 0 additions & 4 deletions tests/integration/service-api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/util.test.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
Loading