Skip to content

Commit

Permalink
Bump version, update release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mainnet-pat committed Aug 1, 2024
1 parent 638f536 commit ac69d74
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 28 deletions.
12 changes: 11 additions & 1 deletion RELEASE_NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
Newest changes
--------------

2.4.0

* Minor Breaking: Rework Wallet.getHistory method and interfaces with focus on output compatibility with ElectronCash wallet
* `getHistory` gets transaction history of this wallet with most data decoded and ready to present to user
* @note balance calculations are valid only if querying to the blockchain tip (`toHeight` === -1, `count` === -1)
* @note this method is heavy on network calls, if invoked in browser use of cache is advised, @see `Config.UseLocalStorageCache`
* @note this method tries to recreate the history tab view of Electron Cash wallet, however, it may not be 100% accurate if the tnransaction value changes are the same in the same block (ordering)

* watchBlocks now can take a parameter to not skip current block height notification
* getRawHistory now takes optional fromHeight and toHeight parameters according to updated electrum cash protocol

2.3.16

* Add `getHeader` method to network provider
* Add `localStorage` caching behaviour to it steered by `Config.UseLocalStorageCache`
*

2.3.15

Expand Down
4 changes: 2 additions & 2 deletions demo/min/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mainnet-cash/demo-min",
"version": "2.3.16",
"version": "2.4.0",
"private": true,
"main": "index.js",
"license": "MIT",
Expand All @@ -9,7 +9,7 @@
"publish:public": "echo 'noop'"
},
"dependencies": {
"@mainnet-cash/contract": "2.3.16"
"@mainnet-cash/contract": "2.4.0"
},
"devDependencies": {
"webpack": "5.58.1",
Expand Down
6 changes: 3 additions & 3 deletions demo/react-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-next",
"version": "0.1.0",
"version": "2.4.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -9,8 +9,8 @@
"lint": "next lint"
},
"dependencies": {
"@mainnet-cash/indexeddb-storage": "^2.3.16",
"mainnet-js": "^2.3.16",
"@mainnet-cash/indexeddb-storage": "2.4.0",
"mainnet-js": "2.4.0",
"next": "14.2.5",
"react": "^18",
"react-dom": "^18"
Expand Down
6 changes: 3 additions & 3 deletions demo/vue-nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"rollup-plugin-node-polyfills": "^0.2.1"
},
"dependencies": {
"mainnet-js": "2.3.16",
"@mainnet-cash/indexeddb-storage": "2.3.16"
"mainnet-js": "2.4.0",
"@mainnet-cash/indexeddb-storage": "2.4.0"
},
"version": "2.3.16"
"version": "2.4.0"
}
6 changes: 3 additions & 3 deletions demo/vue-vite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-vite",
"version": "2.3.16",
"version": "2.4.0",
"scripts": {
"dev": "vite",
"build": "run-p type-check build-only",
Expand All @@ -13,8 +13,8 @@
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
"dependencies": {
"mainnet-js": "2.3.16",
"@mainnet-cash/indexeddb-storage": "2.3.16",
"mainnet-js": "2.4.0",
"@mainnet-cash/indexeddb-storage": "2.4.0",
"vue": "^3.2.37",
"vue-router": "^4.1.2"
},
Expand Down
4 changes: 2 additions & 2 deletions demo/vue3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mainnet-cash/demo",
"version": "2.3.16",
"version": "2.4.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand All @@ -13,7 +13,7 @@
"dependencies": {
"core-js": "^3.6.5",
"electrum-cash": "^2.0.8",
"mainnet-js": "2.3.16",
"mainnet-js": "2.4.0",
"register-service-worker": "^1.7.1",
"vue": "^3.0.0",
"vue-router": "^4.0.0-0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"**/jest-runner/**"
]
},
"version": "2.3.16",
"version": "2.4.0",
"homepage": "https://mainnet.cash",
"scripts": {
"api:validate": "docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v6.2.1 validate -i /local/swagger/v1/api.yml",
Expand Down
4 changes: 2 additions & 2 deletions packages/contract/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "@mainnet-cash/contract",
"version": "2.3.16",
"version": "2.4.0",
"module": "dist/module/index.js",
"types": "dist/module/index.d.ts",
"exports": {
Expand All @@ -14,7 +14,7 @@
"assert": "^2.1.0",
"cashc": "^0.8.0",
"cashscript": "^0.8.0",
"mainnet-js": "2.3.16",
"mainnet-js": "2.4.0",
"pako": "^2.1.0",
"util": "^0.12.5"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/indexeddb-storage/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "@mainnet-cash/indexeddb-storage",
"version": "2.3.16",
"version": "2.4.0",
"module": "dist/module/index.js",
"types": "dist/module/index.d.ts",
"exports": {
Expand All @@ -11,7 +11,7 @@
"author": "readcash",
"dependencies": {
"dexie": "^3.2.4",
"mainnet-js": "2.3.16"
"mainnet-js": "2.4.0"
},
"devDependencies": {
"fake-indexeddb": "^3.1.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/mainnet-cash/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ info:
url: https://github.com/mainnet-cash/mainnet-js/blob/master/LICENSE
termsOfService: https://mainnet.cash/terms/
title: Mainnet Cash
version: 2.3.16
version: 2.4.0
externalDocs:
description: Find out more about mainnet-js
url: https://mainnet.cash
Expand Down
8 changes: 4 additions & 4 deletions packages/mainnet-cash/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "mainnet-cash",
"version": "2.3.16",
"version": "2.4.0",
"description": "A developer friendly bitcoin cash wallet api This API is currently in active development, breaking changes may be made prior to official release of version 1. **Important:** This library is in active development ",
"module": "index.js",
"scripts": {
Expand All @@ -17,8 +17,8 @@
"license": "MIT",
"private": true,
"dependencies": {
"@mainnet-cash/contract": "2.3.16",
"@mainnet-cash/postgresql-storage": "2.3.16",
"@mainnet-cash/contract": "2.4.0",
"@mainnet-cash/postgresql-storage": "2.4.0",
"body-parser": "^1.19.0",
"camelcase": "^5.3.1",
"connect-timeout": "^1.9.0",
Expand All @@ -28,7 +28,7 @@
"express-openapi-validator": "3.17.2",
"express-rate-limit": "^5.2.3",
"js-yaml": "^3.3.0",
"mainnet-js": "2.3.16",
"mainnet-js": "2.4.0",
"ono": "^5.0.1",
"openapi-sampler": "^1.0.0-beta.15",
"patch-package": "^6.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/mainnet-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/mainnet-cash/mainnet-js/issues"
},
"name": "mainnet-js",
"version": "2.3.16",
"version": "2.4.0",
"homepage": "https://mainnet.cash",
"module": "dist/module/index.js",
"browser": {
Expand Down
4 changes: 2 additions & 2 deletions packages/postgresql-storage/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "@mainnet-cash/postgresql-storage",
"version": "2.3.16",
"version": "2.4.0",
"module": "dist/module/index.js",
"types": "dist/module/index.d.ts",
"exports": {
Expand All @@ -11,7 +11,7 @@
"author": "readcash",
"dependencies": {
"axios": "^0.21.1",
"mainnet-js": "2.3.16",
"mainnet-js": "2.4.0",
"parse-database-url": "^0.3.0",
"pg": "^8.11.3",
"pg-format": "^1.0.4"
Expand Down
2 changes: 1 addition & 1 deletion swagger/v1/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ info:
url: https://github.com/mainnet-cash/mainnet-js/blob/master/LICENSE
termsOfService: https://mainnet.cash/terms/
title: Mainnet Cash
version: 2.3.16
version: 2.4.0
externalDocs:
description: Find out more about mainnet-js
url: https://mainnet.cash
Expand Down

0 comments on commit ac69d74

Please sign in to comment.