clutch-hub-sdk-js 4.2.0 → 4.2.1
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 +306 -0
- package/LICENSE +21 -0
- package/package.json +4 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
## [4.2.1](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v4.2.0...v4.2.1) (2026-09-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* put LICENSE and CHANGELOG.md back in the npm package ([#7](https://github.com/clutchprotocol/clutch-hub-sdk-js/issues/7)) ([d284c71](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/d284c7167b8a04c3c3ee1dd9a3c64e680a547483))
|
|
7
|
+
|
|
8
|
+
## [4.2.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v4.1.0...v4.2.0) (2026-09-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### ⚠ BREAKING CHANGES
|
|
12
|
+
|
|
13
|
+
* adopt SDK v3 — bigint money, dollar display, pre-sign verification
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* adopt SDK v3 — bigint money, dollar display, pre-sign verification ([2dedaf3](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/2dedaf30fa95ce398a3a861eb8d6b17d81d16a8e))
|
|
18
|
+
* BottomSheet, OverlayPanel, Toast primitives for map-first shell ([d867846](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/d867846916482dba092d2d914df8e1db6f9ed47d))
|
|
19
|
+
* dark-theme map tiles across trip cards and network view ([bfd49de](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/bfd49deaf4dfd0b232280a7cdb666c5f409c965e))
|
|
20
|
+
* driver flow on full-screen map with request list/detail sheet ([a6fdec4](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/a6fdec4f76b23c529013a89d538d5108c6bbf31a))
|
|
21
|
+
* encrypted wallet backup and restore ([f0be0a5](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/f0be0a5211756772bffe9d75d58c0f8141c61839))
|
|
22
|
+
* make this an npm workspace holding the SDK and the demo app ([e974923](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/e97492368eade0dd65640ac2c2d6b1fc758e482a))
|
|
23
|
+
* map-first app shell (floating top bar, hub overlay, unified nav) ([aa9049d](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/aa9049d5ac159712fb4f771b5673b632902c2276))
|
|
24
|
+
* pass private key to SDK for auth challenge ([32e1ab1](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/32e1ab1aac0faa32d665b64259f9f6b45ea5a4d7))
|
|
25
|
+
* passenger flow in full-screen map + bottom sheet ([e95a134](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/e95a134364588ff7b734b5194a8164bdfa461ad6))
|
|
26
|
+
* redeem CLT for USDT from the app ([2a53ba4](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/2a53ba46b773a28f671d7a3deb5fae7d26d13320))
|
|
27
|
+
* say what this app does with a private key, before one exists ([974461f](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/974461ff73242b50ac1b02e7abacd78ec23dd450))
|
|
28
|
+
* show a permanent deposit address instead of asking for an amount ([86cf02a](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/86cf02a64831a6c8cfea92a8d760b0e0d854a036))
|
|
29
|
+
* show recent deposits and their state in the top-up panel ([8dd0c19](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/8dd0c19a5f6daf08e54c8a3a8033ce0a90aa9390))
|
|
30
|
+
* stack the menu actions, and drop dark mode ([7cb39bf](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/7cb39bf44b96426b9ddcb5ef822041817f6cacb5))
|
|
31
|
+
* tell testnet users where to get USDT to deposit ([811f258](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/811f2581d8823cb2504773a12ffe01f1114abe95))
|
|
32
|
+
* tell the passenger what accepting an offer costs them ([e17c3ce](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/e17c3ce6f4627b55034c353bceaf3699cf8da27d))
|
|
33
|
+
* theme-aware map tile plumbing (useTheme, getMapTileUrl) ([d28d44e](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/d28d44e9e96a850a634ebe515be4d1af20fb5dee))
|
|
34
|
+
* top up with USDT — deposit panel wired to the payment orchestrator ([5c86648](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/5c8664812fab3ad3c06f29ec7a56909bb97fd4a4))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* delete the production build path, which never worked ([cec9151](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/cec9151414529fce42cbbaf6c7b3199675bc28b6))
|
|
40
|
+
* **deposits:** show when the transfer landed, not when the row appeared ([22c5595](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/22c55955fd5dd165e26007330a16e6c6d703a770)), closes [clutchprotocol/clutch-treasury#9](https://github.com/clutchprotocol/clutch-treasury/issues/9)
|
|
41
|
+
* fetch the deposit address only while the panel is open ([9087dde](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/9087ddebd416260fc9548c481bcefe13c3303b62))
|
|
42
|
+
* formatUsd must accept the decimal strings the hub actually sends ([4fdf22d](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/4fdf22dbfff891ab4fa35579ee46c35ae3e6c5e5))
|
|
43
|
+
* let the app update itself, and let the user choose when ([837fd7b](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/837fd7b74075c35d9cdd0a4ec082d328af17a67c))
|
|
44
|
+
* map tiles no longer need a CARTO API key ([7902ee4](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/7902ee45ac0fbcc311ecc7a91e00c50a093b47a4))
|
|
45
|
+
* show the withdrawal fee before the burn, not after ([567529f](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/567529fa5249cdf68f6e06065a1dffb2dfb16985))
|
|
46
|
+
* start the deposit panel in its loading state; log a failed re-fetch ([72734ee](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/72734ee5695340f8650e66a344db9d60bb5ed6c9))
|
|
47
|
+
* stop serving a stale build, and show the deposit address in full ([4fe1222](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/4fe1222166cabd3ddd028aa772c9694003eb8914))
|
|
48
|
+
* stop serving a stale build, and show the deposit address in full ([39dc917](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/39dc917eaad8165368b5d55432cfb19ce1c0a9f6))
|
|
49
|
+
* the deposit amount is a minimum now, not an exact figure ([610750d](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/610750da757a0211a262d07677b02c8bd85dd0ca))
|
|
50
|
+
* the deposit-list poller must not outlive the panel ([d1a9ff9](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/d1a9ff94ef0db42438eb7b9522f013a811c9e1ac))
|
|
51
|
+
* verify the burn before signing it, and re-read before broadcasting ([2df94c6](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/2df94c6101fac2abc79e1792a3b157a3deae2e1e))
|
|
52
|
+
|
|
53
|
+
## [4.1.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v4.0.0...v4.1.0) (2026-09-10)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Features
|
|
57
|
+
|
|
58
|
+
* bound every hub HTTP request with a timeout ([bdd1b3d](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/bdd1b3dae5f9335c7acd6b0cc2c9bfa3df836809))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Bug Fixes
|
|
62
|
+
|
|
63
|
+
* normalize hash arguments before querying the hub for offers ([1cd0dfd](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/1cd0dfd63616b3ee7554770ec644cce1c6a711fb))
|
|
64
|
+
|
|
65
|
+
## [4.0.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v3.0.0...v4.0.0) (2026-09-04)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### ⚠ BREAKING CHANGES
|
|
69
|
+
|
|
70
|
+
* `requestFaucet` is removed from `ClutchHubSdk` and the
|
|
71
|
+
`FaucetResponse` type is no longer exported. There is no replacement — the
|
|
72
|
+
server endpoint is gone; CLT is obtained by depositing USDT.
|
|
73
|
+
|
|
74
|
+
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
|
75
|
+
|
|
76
|
+
### Features
|
|
77
|
+
|
|
78
|
+
* remove requestFaucet ([a8186f5](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/a8186f555588f781a8c7a1e905e724b343ae2948))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Reverts
|
|
82
|
+
|
|
83
|
+
* the 4.0.0 release commit that npm rejected ([ba16f76](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/ba16f76e6e49b9153dcd0c5e954e926c9f0f0dee))
|
|
84
|
+
* the 4.0.0 release commit, which npm rejected ([fd456d9](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/fd456d98c2f70a3f8d86da82eaaa84289919a0d6))
|
|
85
|
+
* the orphaned 4.0.0 release commit ([9d49388](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/9d49388b45c67ef030dd2d78775b815228c9253e))
|
|
86
|
+
|
|
87
|
+
## [3.0.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v2.0.1...v3.0.0) (2026-07-30)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### ⚠ BREAKING CHANGES
|
|
91
|
+
|
|
92
|
+
* verifying an unsigned transaction now requires a chainId
|
|
93
|
+
pinned via the ClutchHubSdk constructor or expected.chainId.
|
|
94
|
+
|
|
95
|
+
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
96
|
+
* signTransaction's hash preimage and signed payload
|
|
97
|
+
both gained chain_id (inserted after nonce; everything after it shifts
|
|
98
|
+
by one index). fare/amount/balance public types moved from number to
|
|
99
|
+
bigint; the corresponding GraphQL mutation variables changed from
|
|
100
|
+
Int to String. buildAuthChallengeMessage/authChallengeHashHex/
|
|
101
|
+
signAuthChallenge gained a required leading chainId parameter and the
|
|
102
|
+
auth challenge string format changed — no fallback to the old
|
|
103
|
+
two-field format. Requires clutch-node treasury-break and a hub-api
|
|
104
|
+
build with chainInfo/createUnsignedBurn. The orchestrator REST client
|
|
105
|
+
described in the task brief was deliberately not built: it targets a
|
|
106
|
+
payment-orchestrator service that does not exist yet.
|
|
107
|
+
|
|
108
|
+
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
109
|
+
|
|
110
|
+
### Features
|
|
111
|
+
|
|
112
|
+
* v3 wire format — chain_id in signing, bigint amounts, tx verification, Burn ([b677894](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/b677894d92cd39a9444bec93b09226d775145dfd))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### Bug Fixes
|
|
116
|
+
|
|
117
|
+
* fail closed when verifying an unsigned tx with no pinned chainId ([353a5f2](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/353a5f278bb2192cdfa4dbed9c4d850cd1a06042))
|
|
118
|
+
|
|
119
|
+
## [2.0.1](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v2.0.0...v2.0.1) (2026-07-24)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### Bug Fixes
|
|
123
|
+
|
|
124
|
+
* **deps:** bump axios to ^1.18.1, patch bn.js — clears all runtime advisories ([b6a3828](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/b6a3828915979cbf02ee06b1d7721329281349f6))
|
|
125
|
+
|
|
126
|
+
## [2.0.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.22.1...v2.0.0) (2026-07-02)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### ⚠ BREAKING CHANGES
|
|
130
|
+
|
|
131
|
+
* authenticated methods (createUnsigned*, submitTransaction,
|
|
132
|
+
getAccountBalance) now require a private key via the constructor or
|
|
133
|
+
setPrivateKey(), and generateToken requires timestamp + signature. Requires
|
|
134
|
+
clutch-hub-api with the matching auth challenge.
|
|
135
|
+
|
|
136
|
+
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
|
137
|
+
|
|
138
|
+
### Features
|
|
139
|
+
|
|
140
|
+
* sign auth challenge for generateToken ([02c9f1e](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/02c9f1efa9db5cdecdb2ebc52744a9714254420b))
|
|
141
|
+
|
|
142
|
+
## [1.22.1](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.22.0...v1.22.1) (2026-05-28)
|
|
143
|
+
|
|
144
|
+
## [1.22.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.21.0...v1.22.0) (2026-05-22)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Features
|
|
148
|
+
|
|
149
|
+
* **sdk:** add referrer parameter to ride request and offer mutations ([d7a6218](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/d7a6218e7c7c81cc3c2cfc62f1fd7aa96e92e7ef))
|
|
150
|
+
|
|
151
|
+
## [1.21.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.20.0...v1.21.0) (2026-03-29)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
### Features
|
|
155
|
+
|
|
156
|
+
* **sdk:** refactor subscription methods to utilize shared GraphQL WebSocket client ([6b5acb7](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/6b5acb7d5266216dbfc1eb0e9b69b53a6e41aa62))
|
|
157
|
+
|
|
158
|
+
## [1.20.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.19.0...v1.20.0) (2026-03-29)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Features
|
|
162
|
+
|
|
163
|
+
* **sdk:** implement shared GraphQL WebSocket client and token caching ([52e2724](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/52e2724677e7162bf583291f7931cd4895d26cfa))
|
|
164
|
+
|
|
165
|
+
## [1.19.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.18.0...v1.19.0) (2026-03-25)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
### Features
|
|
169
|
+
|
|
170
|
+
* **sdk:** add subscribeAccountBalance method for WebSocket updates ([b8d61ca](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/b8d61caed358afaa9bbd96924c59562704642271))
|
|
171
|
+
|
|
172
|
+
## [1.18.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.17.1...v1.18.0) (2026-03-25)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### Features
|
|
176
|
+
|
|
177
|
+
* **sdk:** implement global JWT caching and deduplication for token generation ([5211cbc](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/5211cbc3067777d1584a3257996dea59bc56033b))
|
|
178
|
+
|
|
179
|
+
## [1.17.1](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.17.0...v1.17.1) (2026-03-25)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
### Bug Fixes
|
|
183
|
+
|
|
184
|
+
* **sdk:** update signHash method to align with Rust node verification ([aa38579](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/aa385799fc0c85406b0faa32349a9a198af709bf))
|
|
185
|
+
|
|
186
|
+
## [1.17.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.16.0...v1.17.0) (2026-03-23)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### Features
|
|
190
|
+
|
|
191
|
+
* **sdk:** add recent trips subscription and listing methods ([61f4298](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/61f42985565dc04249dcb4a491968cc715c25ad5))
|
|
192
|
+
|
|
193
|
+
## [1.16.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.15.0...v1.16.0) (2026-03-22)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
### Features
|
|
197
|
+
|
|
198
|
+
* **sdk:** add requestFaucet method for test CLT retrieval ([a2a3fb2](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/a2a3fb2f5b4ac2c543e8de0d5bdb1c54d5a1336e))
|
|
199
|
+
|
|
200
|
+
## [1.15.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.14.0...v1.15.0) (2026-03-21)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Features
|
|
204
|
+
|
|
205
|
+
* **sdk:** add createUnsignedRideRequestCancel method for ride request cancellation ([ce53521](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/ce53521359b08cf5e594c5ee41e418bc81ffc91c))
|
|
206
|
+
|
|
207
|
+
## [1.14.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.13.0...v1.14.0) (2026-03-21)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
### Features
|
|
211
|
+
|
|
212
|
+
* **sdk:** add createUnsignedRideCancel method for ride cancellation ([0976a49](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/0976a4975b1828d85d32dfcff86de7ff6fa48e4b))
|
|
213
|
+
|
|
214
|
+
## [1.13.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.12.0...v1.13.0) (2026-03-20)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### Features
|
|
218
|
+
|
|
219
|
+
* **sdk:** add GraphQL subscription methods for ride requests, offers, active trips, and completed trips ([5b0f3a2](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/5b0f3a26332e68165ed538ef179652e54c1fcdaa))
|
|
220
|
+
|
|
221
|
+
## [1.12.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.11.0...v1.12.0) (2026-03-19)
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
### Features
|
|
225
|
+
|
|
226
|
+
* **sdk:** add listCompletedTrips method to fetch completed trips ([1339d07](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/1339d07eaa9b1cd5ac805e6864c8bb7a0031eb86))
|
|
227
|
+
|
|
228
|
+
## [1.11.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.10.0...v1.11.0) (2026-03-19)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### Features
|
|
232
|
+
|
|
233
|
+
* **sdk:** add createUnsignedRidePay method and normalize transaction hash handling ([e895918](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/e895918d227be26106372dfe3b06f07e2b2f1350))
|
|
234
|
+
|
|
235
|
+
## [1.10.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.9.0...v1.10.0) (2026-03-19)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
### Features
|
|
239
|
+
|
|
240
|
+
* **sdk:** add listActiveTrips method to fetch active trips in progress ([5af3863](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/5af3863e44e7df768fe010501fb92b91ee66b96d))
|
|
241
|
+
|
|
242
|
+
## [1.9.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.8.0...v1.9.0) (2026-03-19)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
### Features
|
|
246
|
+
|
|
247
|
+
* **sdk:** add createUnsignedRideAcceptance method to fetch unsigned ride acceptance transactions from the GraphQL API ([aefdce2](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/aefdce2ffef841c0d94e8f39dc442561dade1b50))
|
|
248
|
+
|
|
249
|
+
## [1.8.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.7.0...v1.8.0) (2026-03-18)
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
### Features
|
|
253
|
+
|
|
254
|
+
* **sdk:** add listRideOffers method to fetch available ride offers for a specific ride request ([c00de84](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/c00de84d648b7b5c2ea6afddf9defee952951ac1))
|
|
255
|
+
|
|
256
|
+
## [1.7.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.6.0...v1.7.0) (2026-03-18)
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
### Features
|
|
260
|
+
|
|
261
|
+
* **sdk:** add createUnsignedRideOffer method to fetch unsigned ride offers from the GraphQL API ([8351902](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/83519026be3fddaf2f47c11ab052cfb3cc79c726))
|
|
262
|
+
|
|
263
|
+
## [1.6.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.5.0...v1.6.0) (2026-03-17)
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
### Features
|
|
267
|
+
|
|
268
|
+
* **sdk:** add listRideRequests method to fetch available ride requests with optional map bounds filtering ([4c05d48](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/4c05d488f13eb64e7789fa9943d668339b43680a))
|
|
269
|
+
|
|
270
|
+
## [1.5.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.4.0...v1.5.0) (2026-03-17)
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
### Features
|
|
274
|
+
|
|
275
|
+
* **sdk:** add getAccountBalance method to fetch current account balance for a public key ([58d9642](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/58d9642d553f9c19bfd3cb71dad44d04705737b1))
|
|
276
|
+
|
|
277
|
+
## [1.4.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.3.0...v1.4.0) (2026-03-16)
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
### Features
|
|
281
|
+
|
|
282
|
+
* **sdk:** add stripHexPrefix utility function and refactor hex handling in transaction signing ([4365203](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/43652033701e963a85d2e4966402e02b5201617f))
|
|
283
|
+
|
|
284
|
+
## [1.3.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.2.0...v1.3.0) (2025-08-23)
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
### Features
|
|
288
|
+
|
|
289
|
+
* **sdk:** add getPublicKey and isAuthenticated utility methods ([c0ac16e](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/c0ac16e1166cf9d6e4bcb5ae8cc37a17d6ae7028))
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
### Bug Fixes
|
|
293
|
+
|
|
294
|
+
* **auth:** add buffer time to prevent token expiration race conditions ([29b3b53](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/29b3b538dc260c34d80814da4723a5d13a140a48))
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
### Performance Improvements
|
|
298
|
+
|
|
299
|
+
* **sdk:** optimize float64ToUint64 conversion with cached buffers ([43a76b9](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/43a76b91cd05b737a5942a381653419816656fdd))
|
|
300
|
+
|
|
301
|
+
## [1.2.0](https://github.com/clutchprotocol/clutch-hub-sdk-js/compare/v1.1.0...v1.2.0) (2025-08-23)
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### Features
|
|
305
|
+
|
|
306
|
+
* **ci:** enable git commits back to repository in semantic-release ([66016ac](https://github.com/clutchprotocol/clutch-hub-sdk-js/commit/66016aceb0418ef0506ab55c024eaa37d6b28bee))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Mehran Mazhar and Clutch Protocol Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clutch-hub-sdk-js",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "JavaScript SDK for interacting with the clutch-hub-api",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
10
|
-
"src"
|
|
10
|
+
"src",
|
|
11
|
+
"CHANGELOG.md",
|
|
12
|
+
"LICENSE"
|
|
11
13
|
],
|
|
12
14
|
"scripts": {
|
|
13
15
|
"build": "tsc",
|