@bigmi/react 0.4.5 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  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.
4
4
 
5
+ ## [0.5.0](https://github.com/lifinance/bigmi/compare/v0.4.5...v0.5.0) (2025-08-28)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * change chainId to enum (#31)
11
+
12
+ * change chainId to enum ([#31](https://github.com/lifinance/bigmi/issues/31)) ([4e93517](https://github.com/lifinance/bigmi/commit/4e93517e50353ffe949c7fd7cebd3313a9d2d69e))
13
+
5
14
  ### [0.4.5](https://github.com/lifinance/bigmi/compare/v0.4.4...v0.4.5) (2025-08-27)
6
15
 
7
16
  ### [0.4.4](https://github.com/lifinance/bigmi/compare/v0.4.3...v0.4.4) (2025-08-18)
package/README.md CHANGED
@@ -112,12 +112,10 @@ import { bitcoin, http, createClient } from '@bigmi/core'
112
112
  import { BigmiProvider, createConfig } from '@bigmi/react'
113
113
  import { binance, xverse, phantom } from '@bigmi/client'
114
114
 
115
- const chainId = bitcoin.id
116
-
117
115
  // Create bigmi config object
118
116
  const config = createConfig({
119
117
  chains: [bitcoin],
120
- connectors: [binance({chainId}), xverse({chainId}), phantom({chainId})],
118
+ connectors: [binance(), xverse(), phantom()],
121
119
  client: ({ chain }) => createClient({ chain, transport: http() }),
122
120
  ssr: true // If using Next.js or SSR
123
121
  })
@@ -3,5 +3,4 @@ import type { ResolvedRegister } from '../types.js';
3
3
  import { type ConfigParameter } from './useConfig.js';
4
4
  export type UseConnectorsParameters<config extends Config = Config> = ConfigParameter<config>;
5
5
  export type UseConnectorsReturnType<config extends Config = Config> = GetConnectorsReturnType<config>;
6
- /** https://wagmi.sh/react/api/hooks/useConnectors */
7
6
  export declare function useConnectors<config extends Config = ResolvedRegister['config']>(parameters?: UseConnectorsParameters<config>): UseConnectorsReturnType<config>;
@@ -2,7 +2,6 @@
2
2
  import { getConnectors, watchConnectors, } from '@bigmi/client';
3
3
  import { useSyncExternalStore } from 'react';
4
4
  import { useConfig } from './useConfig.js';
5
- /** https://wagmi.sh/react/api/hooks/useConnectors */
6
5
  export function useConnectors(parameters = {}) {
7
6
  const config = useConfig(parameters);
8
7
  return useSyncExternalStore((onChange) => watchConnectors(config, { onChange }), () => getConnectors(config), () => getConnectors(config));
@@ -1 +1 @@
1
- {"version":3,"file":"useConnectors.js","sourceRoot":"","sources":["../../../src/hooks/useConnectors.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAGL,aAAa,EACb,eAAe,GAChB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;AAE5C,OAAO,EAAwB,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAQhE,qDAAqD;AACrD,MAAM,UAAU,aAAa,CAG3B,aAA8C,EAAE;IAEhD,MAAM,MAAM,GAAG,SAAS,CAAC,UAAU,CAAC,CAAA;IAEpC,OAAO,oBAAoB,CACzB,CAAC,QAAQ,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,EACnD,GAAG,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,EAC3B,GAAG,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,CAC5B,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"useConnectors.js","sourceRoot":"","sources":["../../../src/hooks/useConnectors.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAGL,aAAa,EACb,eAAe,GAChB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;AAE5C,OAAO,EAAwB,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAQhE,MAAM,UAAU,aAAa,CAG3B,aAA8C,EAAE;IAEhD,MAAM,MAAM,GAAG,SAAS,CAAC,UAAU,CAAC,CAAA;IAEpC,OAAO,oBAAoB,CACzB,CAAC,QAAQ,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,EACnD,GAAG,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,EAC3B,GAAG,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,CAC5B,CAAA;AACH,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@bigmi/react";
2
- export declare const version = "0.4.5";
2
+ export declare const version = "0.5.0";
@@ -1,3 +1,3 @@
1
1
  export const name = '@bigmi/react';
2
- export const version = '0.4.5';
2
+ export const version = '0.5.0';
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigmi/react",
3
- "version": "0.4.5",
3
+ "version": "0.5.0",
4
4
  "description": "React primitives for Bitcoin apps.",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",
@@ -29,8 +29,8 @@
29
29
  "hooks"
30
30
  ],
31
31
  "dependencies": {
32
- "@bigmi/client": "^0.4.5",
33
- "@bigmi/core": "^0.4.5"
32
+ "@bigmi/client": "^0.5.0",
33
+ "@bigmi/core": "^0.5.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@tanstack/react-query": ">=5.68.0",
package/package.json.tmp CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigmi/react",
3
- "version": "0.4.5",
3
+ "version": "0.5.0",
4
4
  "description": "React primitives for Bitcoin apps.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -16,7 +16,6 @@ export type UseConnectorsParameters<config extends Config = Config> =
16
16
  export type UseConnectorsReturnType<config extends Config = Config> =
17
17
  GetConnectorsReturnType<config>
18
18
 
19
- /** https://wagmi.sh/react/api/hooks/useConnectors */
20
19
  export function useConnectors<
21
20
  config extends Config = ResolvedRegister['config'],
22
21
  >(
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@bigmi/react'
2
- export const version = '0.4.5'
2
+ export const version = '0.5.0'