Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release & Publish Beta
name: Release & Publish

on:
push:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Install dependencies
uses: ./.github/actions/pnpm-install
- name: Build
run: pnpm release:build
run: pnpm build
- name: Publish to npm
run: |
pnpm release:publish${{ contains(github.ref_name, 'alpha') && ':alpha' || contains(github.ref_name, 'beta') && ':beta' || '' }}
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lint-staged
pnpm pre-commit
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pnpm test
pnpm pre-push
39 changes: 16 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.6.2",
"version": "0.6.3-alpha.3",
"private": true,
"sideEffects": false,
"type": "module",
Expand All @@ -9,12 +9,12 @@
"clean:cache": "pnpm store prune",
"clean:modules": "find . -name \"node_modules\" -type d -prune -exec rm -rf {} +",
"clean:modules:trash": "find . -name \"node_modules\" -type d -prune -exec trash {} +",
"release": "pnpm release:version && pnpm release:build && pnpm standard-version -a",
"release:alpha": "pnpm release:version --preid alpha && pnpm release:build && pnpm standard-version -a --prerelease alpha --skip.changelog",
"release:beta": "pnpm release:version --preid beta && pnpm release:build && pnpm standard-version -a --prerelease beta --skip.changelog",
"regen": "rm -rf pnpm-lock.yaml && pnpm clean:modules && corepack use pnpm@latest",
"release": "pnpm release:version && pnpm build && pnpm standard-version -a -s",
"release:alpha": "pnpm release:version --preid alpha && pnpm build && pnpm standard-version -a -s --prerelease alpha --skip.changelog",
"release:beta": "pnpm release:version --preid beta && pnpm build && pnpm standard-version -a -s --prerelease beta --skip.changelog",
"release:version": "lerna version --no-changelog --no-push --no-git-tag-version --no-private",
"release:build": "pnpm -r --parallel release:build",
"release:publish:build": "pnpm release:build && pnpm -r --parallel build:prerelease",
"release:publish:build": "pnpm -r --parallel build:prerelease",
"release:publish": "pnpm release:publish:build && pnpm -r publish --access public --no-git-checks --tag latest && pnpm release:clean",
"release:publish:alpha": "pnpm release:publish:build && pnpm -r publish --access public --no-git-checks --tag alpha && pnpm release:clean",
"release:publish:beta": "pnpm release:publish:build && pnpm -r publish --access public --no-git-checks --tag beta && pnpm release:clean",
Expand All @@ -24,23 +24,17 @@
"check:write:unsafe": "biome check --write --unsafe",
"check:types": "pnpm -r --parallel check:types",
"check:circular-deps": "pnpm -r --parallel check:circular-deps",
"pre-commit": "pnpm check && pnpm check:types && pnpm check:circular-deps",
"pre-push": "pnpm test",
"prepare": "husky",
"postinstall": "husky",
"test": "pnpm -r --parallel test",
"coverage": "pnpm -r --parallel coverage",
"link:all": "pnpm -r exec pnpm link --global",
"unlink:all": "pnpm -r exec pnpm unlink --global",
"knip:all": "knip",
"knip:check": "knip --dependencies --files --no-config-hints --exclude binaries",
"knip:write": "pnpm knip:check --fix"
},
"lint-staged": {
"*": [
"pnpm pre-commit",
"bash -c 'pnpm knip:check'"
]
"knip:write": "pnpm knip:check --fix",
"pre-commit": "pnpm check && pnpm check:types && pnpm check:circular-deps && pnpm knip:check",
"pre-push": "pnpm test",
"prepare": "husky",
"postinstall": "husky"
},
"standard-version": {
"scripts": {
Expand All @@ -49,20 +43,19 @@
}
},
"devDependencies": {
"@biomejs/biome": "^2.3.5",
"@biomejs/biome": "^2.3.7",
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^20.0.0",
"@types/node": "^24.10.1",
"@types/react": "^19.2.4",
"@types/react": "^19.2.6",
"@types/react-dom": "^19.2.3",
"cpy-cli": "^6.0.0",
"fs-extra": "^11.3.2",
"husky": "^9.1.7",
"knip": "^5.69.1",
"lerna": "9.0.0",
"lint-staged": "^16.2.6",
"knip": "^5.70.1",
"lerna": "9.0.1",
"standard-version": "^9.5.0",
"typescript": "^5.9.3"
},
"packageManager": "pnpm@10.22.0+sha512.bf049efe995b28f527fd2b41ae0474ce29186f7edcb3bf545087bd61fbbebb2bf75362d1307fda09c2d288e1e499787ac12d4fcb617a974718a6051f2eee741c"
"packageManager": "pnpm@10.23.0+sha512.21c4e5698002ade97e4efe8b8b4a89a8de3c85a37919f957e7a0f30f38fbc5bbdd05980ffe29179b2fb6e6e691242e098d945d1601772cad0fef5fb6411e2a4b"
}
10 changes: 7 additions & 3 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bigmi/client",
"version": "0.6.2",
"version": "0.6.3-alpha.3",
"description": "Reactive primitives for Bitcoin apps.",
"type": "module",
"main": "./src/index.ts",
Expand All @@ -14,7 +14,6 @@
"build:postrelease": "node ../../scripts/postrelease.js && rm -rf *.md",
"build:clean": "rm -rf tsconfig.tsbuildinfo ./dist/tsconfig.tsbuildinfo",
"build:version": "node ../../scripts/version.js",
"release:build": "pnpm build",
"clean": "pnpm build:clean && rm -rf dist",
"check:types": "tsc --noEmit",
"check:circular-deps": "madge --circular $(find ./src -name '*.ts' -o -name '*.tsx')",
Expand Down Expand Up @@ -57,7 +56,12 @@
},
"files": [
"dist/**",
"src/**",
"!dist/**/*.tsbuildinfo",
"src/**/*.ts",
"!src/**/*.spec.ts",
"!**/__mocks__/**",
"!*.tmp",
"!*.env",
"!tsconfig.json"
]
}
5 changes: 0 additions & 5 deletions packages/client/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Actions

export {
type ConnectErrorType,
type ConnectParameters,
Expand Down Expand Up @@ -88,9 +86,6 @@ export type {
ConnectVariables,
} from './query/connect.js'
export { connectMutationOptions } from './query/connect.js'

// queries
export { hashFn } from './query/utils.js'
export type { Connector, CreateConnectorFn } from './types/connector.js'
// client types
export type { State } from './types/state.js'
2 changes: 1 addition & 1 deletion packages/client/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const name = '@bigmi/client'
export const version = '0.6.2'
export const version = '0.6.3-alpha.3'
14 changes: 9 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bigmi/core",
"version": "0.6.2",
"version": "0.6.3-alpha.3",
"description": "TypeScript library for Bitcoin apps.",
"type": "module",
"main": "./src/index.ts",
Expand All @@ -16,7 +16,6 @@
"build:postrelease": "node ../../scripts/postrelease.js && rm -rf *.md",
"build:clean": "rm -rf tsconfig.tsbuildinfo ./dist/tsconfig.tsbuildinfo",
"build:version": "node ../../scripts/version.js",
"release:build": "pnpm build",
"clean": "pnpm build:clean && rm -rf dist",
"check:types": "tsc --noEmit",
"check:circular-deps": "madge --circular $(find ./src -name '*.ts' -o -name '*.tsx')",
Expand Down Expand Up @@ -53,18 +52,23 @@
"zustand": "^5.0.8"
},
"devDependencies": {
"@vitest/coverage-v8": "^4.0.8",
"@vitest/coverage-v8": "^4.0.12",
"cpy-cli": "^6.0.0",
"madge": "^8.0.0",
"typescript": "^5.9.3",
"vitest": "^4.0.8"
"vitest": "^4.0.12"
},
"peerDependencies": {
"bs58": "^6.0.0"
},
"files": [
"dist/**",
"src/**",
"!dist/**/*.tsbuildinfo",
"src/**/*.ts",
"!src/**/*.spec.ts",
"!**/__mocks__/**",
"!*.tmp",
"!*.env",
"!tsconfig.json"
]
}
9 changes: 0 additions & 9 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Exporting actions
export { getBalance } from './actions/getBalance.js'
export type {
GetBlockParameters,
Expand Down Expand Up @@ -53,10 +52,8 @@ export type {
WatchBlockNumberReturnType,
} from './actions/watchBlockNumber.js'
export { watchBlockNumber } from './actions/watchBlockNumber.js'
// Exporting chains
export { bitcoin } from './chains/bitcoin.js'
export { defineChain } from './chains/defineChain.js'
// Exporting clients
export {
type PublicActions,
publicActions,
Expand All @@ -65,14 +62,12 @@ export {
type WalletActions,
walletActions,
} from './clients/decorators/wallet.js'
// Exporting errors
export {
InvalidAddressError,
type InvalidAddressErrorType,
} from './errors/address.js'
export { BaseError, type BaseErrorType } from './errors/base.js'
export { BlockNotFoundError } from './errors/block.js'

export { ProviderNotFoundError } from './errors/provider.js'
export {
HttpRequestError,
Expand Down Expand Up @@ -105,10 +100,8 @@ export {
InsufficientUTXOBalanceError,
type InsufficientUTXOBalanceErrorType,
} from './errors/utxo.js'
// Exporting factories
export { createClient, rpcSchema } from './factories/createClient.js'
export { ankr } from './transports/ankr/ankr.js'
// Exporting transports
export { ankrMethods } from './transports/ankr/methods.js'
export { blockchair } from './transports/blockchair/blockchair.js'
export { blockchairMethods } from './transports/blockchair/methods.js'
Expand Down Expand Up @@ -148,7 +141,6 @@ export type {
UTXOWalletSchema,
} from './transports/types.js'
export { utxo } from './transports/utxo.js'
// Exporting types
export type { Account } from './types/account.js'
export {
type Address,
Expand Down Expand Up @@ -197,7 +189,6 @@ export type {
RemoveUndefined,
UnionStrictOmit,
} from './types/utils.js'
// Exporting utils
export { cancelTransaction } from './utils/cancelTransaction.js'
export {
base64ToHex,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const name = '@bigmi/core'
export const version = '0.6.2'
export const version = '0.6.3-alpha.3'
10 changes: 7 additions & 3 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bigmi/react",
"version": "0.6.2",
"version": "0.6.3-alpha.3",
"description": "React primitives for Bitcoin apps.",
"type": "module",
"main": "./src/index.ts",
Expand All @@ -14,7 +14,6 @@
"build:postrelease": "node ../../scripts/postrelease.js && rm -rf *.md",
"build:clean": "rm -rf tsconfig.tsbuildinfo ./dist/tsconfig.tsbuildinfo",
"build:version": "node ../../scripts/version.js",
"release:build": "pnpm build",
"clean": "pnpm build:clean && rm -rf dist",
"check:types": "tsc --noEmit",
"check:circular-deps": "madge --circular $(find ./src -name '*.ts' -o -name '*.tsx')",
Expand Down Expand Up @@ -60,7 +59,12 @@
},
"files": [
"dist/**",
"src/**",
"!dist/**/*.tsbuildinfo",
"src/**/*.ts",
"!src/**/*.spec.ts",
"!**/__mocks__/**",
"!*.tmp",
"!*.env",
"!tsconfig.json"
]
}
1 change: 0 additions & 1 deletion packages/react/src/context.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client'
import type { State } from '@bigmi/client'
import { createContext, createElement, type PropsWithChildren } from 'react'

import { Hydrate } from './hydrate.js'
import type { ResolvedRegister } from './types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const name = '@bigmi/react'
export const version = '0.6.2'
export const version = '0.6.3-alpha.3'
Loading