From a32fbb00f5f0c081eec349c817bff70c7937fae5 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 26 Sep 2024 09:09:51 -0400 Subject: [PATCH 1/4] feat: add the ability to bust root history cache --- src/blockchain/DataStore.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/blockchain/DataStore.ts b/src/blockchain/DataStore.ts index 79f0398..29fdab2 100644 --- a/src/blockchain/DataStore.ts +++ b/src/blockchain/DataStore.ts @@ -475,7 +475,11 @@ export class DataStore { }); } - public async getRootHistory(): Promise { + public async getRootHistory(bustCache: boolean): Promise { + if (bustCache) { + rootHistoryCache.del(this.storeId); + } + // Check if the root history is cached for this storeId const cachedHistory = rootHistoryCache.get(this.storeId); if (cachedHistory) { From 62e2db290f4b225e04a7271f05892cb51bf21505 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 26 Sep 2024 09:10:22 -0400 Subject: [PATCH 2/4] chore(release): 0.0.1-alpha.89 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c9de46..65b6ee3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.89](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.88...v0.0.1-alpha.89) (2024-09-26) + + +### Features + +* add the ability to bust root history cache ([a32fbb0](https://github.com/DIG-Network/dig-chia-sdk/commit/a32fbb00f5f0c081eec349c817bff70c7937fae5)) + ### [0.0.1-alpha.88](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.87...v0.0.1-alpha.88) (2024-09-25) diff --git a/package-lock.json b/package-lock.json index 33e4ef4..11fce8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.88", + "version": "0.0.1-alpha.89", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.88", + "version": "0.0.1-alpha.89", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.25", diff --git a/package.json b/package.json index f4bebd7..22605b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.88", + "version": "0.0.1-alpha.89", "description": "", "type": "commonjs", "main": "./dist/index.js", From 5c708c9af08a894bf8e91b125f91b1c9021d9209 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 26 Sep 2024 09:11:08 -0400 Subject: [PATCH 3/4] feat: add the ability to bust root history cache --- src/blockchain/DataStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockchain/DataStore.ts b/src/blockchain/DataStore.ts index 29fdab2..0b963d8 100644 --- a/src/blockchain/DataStore.ts +++ b/src/blockchain/DataStore.ts @@ -475,7 +475,7 @@ export class DataStore { }); } - public async getRootHistory(bustCache: boolean): Promise { + public async getRootHistory(bustCache?: boolean): Promise { if (bustCache) { rootHistoryCache.del(this.storeId); } From 1bf9e72217241d8f9257c185cd61e9f6e04e07fb Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 26 Sep 2024 09:11:35 -0400 Subject: [PATCH 4/4] chore(release): 0.0.1-alpha.90 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65b6ee3..79f6652 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.90](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.89...v0.0.1-alpha.90) (2024-09-26) + + +### Features + +* add the ability to bust root history cache ([5c708c9](https://github.com/DIG-Network/dig-chia-sdk/commit/5c708c9af08a894bf8e91b125f91b1c9021d9209)) + ### [0.0.1-alpha.89](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.88...v0.0.1-alpha.89) (2024-09-26) diff --git a/package-lock.json b/package-lock.json index 11fce8a..1b8d6b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.89", + "version": "0.0.1-alpha.90", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.89", + "version": "0.0.1-alpha.90", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.25", diff --git a/package.json b/package.json index 22605b4..e172b75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.89", + "version": "0.0.1-alpha.90", "description": "", "type": "commonjs", "main": "./dist/index.js",