chain-db-ts
Advanced tools
Comparing version
@@ -5,2 +5,8 @@ # Changelog | ||
## [1.0.0-rc.3] - 2025-03-11 | ||
### Changed | ||
- Added support to older version while using the `getCurrentDocId()` method. | ||
## [1.0.0-rc.2] - 2025-03-05 | ||
@@ -7,0 +13,0 @@ |
import { ChainDB } from './chain-db'; | ||
import { Criteria, CriteriaAdvanced, DocId, TableDoc } from './types'; | ||
declare class Table<Model> { | ||
/** | ||
* The current document data | ||
*/ | ||
currentDoc: Model; | ||
@@ -5,0 +8,0 @@ private name; |
@@ -271,3 +271,5 @@ "use strict"; | ||
Table.prototype.getCurrentDocId = function () { | ||
return this.currentDoc.doc_id; | ||
var _doc = this.currentDoc; | ||
// Support to applications using older versions | ||
return _doc.doc_id ? _doc.doc_id : ''; | ||
}; | ||
@@ -274,0 +276,0 @@ /** |
import { ChainDB } from './chain-db'; | ||
import { Criteria, CriteriaAdvanced, DocId, TableDoc } from './types'; | ||
declare class Table<Model> { | ||
/** | ||
* The current document data | ||
*/ | ||
currentDoc: Model; | ||
@@ -5,0 +8,0 @@ private name; |
@@ -266,3 +266,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
Table.prototype.getCurrentDocId = function () { | ||
return this.currentDoc.doc_id; | ||
var _doc = this.currentDoc; | ||
// Support to applications using older versions | ||
return _doc.doc_id ? _doc.doc_id : ''; | ||
}; | ||
@@ -269,0 +271,0 @@ /** |
{ | ||
"name": "chain-db-ts", | ||
"version": "1.0.0-rc.2", | ||
"version": "1.0.0-rc.3", | ||
"description": "Chain DB Client for Javascript/Typescript Node apps.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
@@ -1,4 +0,4 @@ | ||
# Chain DB TypeScript Client | ||
# Chain DB TS / JS Client (Node) | ||
A TypeScript client for [Chain DB](https://github.com/wpdas/chain-db), a simple database that maintains a history of changes, allowing you to track how your data evolves over time. | ||
A TypeScript / JavaScript client for [Chain DB](https://github.com/wpdas/chain-db), a secure database system with built-in history tracking, offering AES-256-GCM encryption, atomic operations with rollback capability, and automatic backups. | ||
@@ -5,0 +5,0 @@ ## Installation |
104640
0.46%2198
0.46%