@gnolang/tm2-js-client 2.0.4 → 2.1.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.
Files changed (232) hide show
  1. package/CHANGELOG.md +430 -0
  2. package/CONTRIBUTING.md +83 -0
  3. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/defineProperty.cjs +12 -0
  4. package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/defineProperty.mjs +3 -3
  5. package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/toPrimitive.cjs +4 -4
  6. package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/toPrimitive.mjs +3 -3
  7. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.cjs +9 -0
  8. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.mjs +9 -0
  9. package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/typeof.cjs +2 -2
  10. package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/typeof.mjs +2 -2
  11. package/dist/_virtual/_rolldown/runtime.cjs +1 -1
  12. package/dist/index.d.cts +5 -0
  13. package/dist/index.d.mts +5 -0
  14. package/dist/proto/google/protobuf/any.cjs +3 -4
  15. package/dist/proto/google/protobuf/any.cjs.map +1 -1
  16. package/dist/proto/google/protobuf/any.d.cts +3 -4
  17. package/dist/proto/google/protobuf/any.d.cts.map +1 -1
  18. package/dist/proto/google/protobuf/any.d.mts +3 -4
  19. package/dist/proto/google/protobuf/any.d.mts.map +1 -1
  20. package/dist/proto/google/protobuf/any.mjs +3 -3
  21. package/dist/proto/google/protobuf/any.mjs.map +1 -1
  22. package/dist/proto/index.cjs +15 -4
  23. package/dist/proto/index.d.cts +2 -1
  24. package/dist/proto/index.d.mts +2 -1
  25. package/dist/proto/index.mjs +5 -5
  26. package/dist/proto/tm2/abci.cjs +3 -4
  27. package/dist/proto/tm2/abci.cjs.map +1 -1
  28. package/dist/proto/tm2/abci.d.cts +3 -4
  29. package/dist/proto/tm2/abci.d.cts.map +1 -1
  30. package/dist/proto/tm2/abci.d.mts +3 -4
  31. package/dist/proto/tm2/abci.d.mts.map +1 -1
  32. package/dist/proto/tm2/abci.mjs +3 -3
  33. package/dist/proto/tm2/abci.mjs.map +1 -1
  34. package/dist/proto/tm2/multisig.cjs +3 -4
  35. package/dist/proto/tm2/multisig.cjs.map +1 -1
  36. package/dist/proto/tm2/multisig.d.cts +3 -4
  37. package/dist/proto/tm2/multisig.d.cts.map +1 -1
  38. package/dist/proto/tm2/multisig.d.mts +3 -4
  39. package/dist/proto/tm2/multisig.d.mts.map +1 -1
  40. package/dist/proto/tm2/multisig.mjs +3 -3
  41. package/dist/proto/tm2/multisig.mjs.map +1 -1
  42. package/dist/proto/tm2/tx.cjs +15 -7
  43. package/dist/proto/tm2/tx.cjs.map +1 -1
  44. package/dist/proto/tm2/tx.d.cts +4 -3
  45. package/dist/proto/tm2/tx.d.cts.map +1 -1
  46. package/dist/proto/tm2/tx.d.mts +4 -3
  47. package/dist/proto/tm2/tx.d.mts.map +1 -1
  48. package/dist/proto/tm2/tx.mjs +15 -6
  49. package/dist/proto/tm2/tx.mjs.map +1 -1
  50. package/dist/provider/endpoints.cjs.map +1 -1
  51. package/dist/provider/endpoints.d.cts.map +1 -1
  52. package/dist/provider/endpoints.d.mts.map +1 -1
  53. package/dist/provider/endpoints.mjs.map +1 -1
  54. package/dist/provider/errors/errors.cjs +2 -2
  55. package/dist/provider/errors/errors.cjs.map +1 -1
  56. package/dist/provider/errors/errors.d.cts.map +1 -1
  57. package/dist/provider/errors/errors.d.mts.map +1 -1
  58. package/dist/provider/errors/errors.mjs +1 -1
  59. package/dist/provider/errors/errors.mjs.map +1 -1
  60. package/dist/provider/errors/index.cjs +20 -1
  61. package/dist/provider/errors/index.d.cts +2 -1
  62. package/dist/provider/errors/index.d.mts +2 -1
  63. package/dist/provider/errors/index.mjs +2 -2
  64. package/dist/provider/index.cjs +61 -9
  65. package/dist/provider/index.d.cts +7 -1
  66. package/dist/provider/index.d.mts +7 -1
  67. package/dist/provider/index.mjs +10 -10
  68. package/dist/provider/jsonrpc/index.cjs +2 -1
  69. package/dist/provider/jsonrpc/index.d.cts +2 -1
  70. package/dist/provider/jsonrpc/index.d.mts +2 -1
  71. package/dist/provider/jsonrpc/index.mjs +2 -2
  72. package/dist/provider/jsonrpc/jsonrpc.cjs +2 -2
  73. package/dist/provider/jsonrpc/jsonrpc.cjs.map +1 -1
  74. package/dist/provider/jsonrpc/jsonrpc.d.cts +0 -1
  75. package/dist/provider/jsonrpc/jsonrpc.d.cts.map +1 -1
  76. package/dist/provider/jsonrpc/jsonrpc.d.mts +0 -1
  77. package/dist/provider/jsonrpc/jsonrpc.d.mts.map +1 -1
  78. package/dist/provider/jsonrpc/jsonrpc.mjs +2 -1
  79. package/dist/provider/jsonrpc/jsonrpc.mjs.map +1 -1
  80. package/dist/provider/provider.cjs +8 -9
  81. package/dist/provider/provider.cjs.map +1 -1
  82. package/dist/provider/provider.d.cts +2 -1
  83. package/dist/provider/provider.d.cts.map +1 -1
  84. package/dist/provider/provider.d.mts +2 -1
  85. package/dist/provider/provider.d.mts.map +1 -1
  86. package/dist/provider/provider.mjs +43 -26
  87. package/dist/provider/provider.mjs.map +1 -1
  88. package/dist/provider/types/abci.d.cts.map +1 -1
  89. package/dist/provider/types/abci.d.mts.map +1 -1
  90. package/dist/provider/types/common.d.cts +1 -2
  91. package/dist/provider/types/common.d.cts.map +1 -1
  92. package/dist/provider/types/common.d.mts +1 -2
  93. package/dist/provider/types/common.d.mts.map +1 -1
  94. package/dist/provider/types/index.cjs +2 -1
  95. package/dist/provider/types/index.d.cts +2 -1
  96. package/dist/provider/types/index.d.mts +2 -1
  97. package/dist/provider/types/index.mjs +2 -2
  98. package/dist/provider/types/jsonrpc.d.cts.map +1 -1
  99. package/dist/provider/types/jsonrpc.d.mts.map +1 -1
  100. package/dist/provider/utility/adapters.cjs +1 -1
  101. package/dist/provider/utility/adapters.cjs.map +1 -1
  102. package/dist/provider/utility/adapters.d.cts +1 -1
  103. package/dist/provider/utility/adapters.d.cts.map +1 -1
  104. package/dist/provider/utility/adapters.d.mts +1 -1
  105. package/dist/provider/utility/adapters.d.mts.map +1 -1
  106. package/dist/provider/utility/adapters.mjs +1 -1
  107. package/dist/provider/utility/adapters.mjs.map +1 -1
  108. package/dist/provider/utility/errors.utility.cjs.map +1 -1
  109. package/dist/provider/utility/errors.utility.mjs.map +1 -1
  110. package/dist/provider/utility/index.cjs +27 -3
  111. package/dist/provider/utility/index.d.cts +2 -1
  112. package/dist/provider/utility/index.d.mts +2 -1
  113. package/dist/provider/utility/index.mjs +4 -4
  114. package/dist/provider/utility/provider.utility.cjs +0 -1
  115. package/dist/provider/utility/provider.utility.cjs.map +1 -1
  116. package/dist/provider/utility/provider.utility.d.cts +2 -1
  117. package/dist/provider/utility/provider.utility.d.cts.map +1 -1
  118. package/dist/provider/utility/provider.utility.d.mts +2 -1
  119. package/dist/provider/utility/provider.utility.d.mts.map +1 -1
  120. package/dist/provider/utility/provider.utility.mjs +2 -1
  121. package/dist/provider/utility/provider.utility.mjs.map +1 -1
  122. package/dist/provider/utility/requests.utility.cjs +0 -1
  123. package/dist/provider/utility/requests.utility.cjs.map +1 -1
  124. package/dist/provider/utility/requests.utility.d.cts +1 -1
  125. package/dist/provider/utility/requests.utility.d.cts.map +1 -1
  126. package/dist/provider/utility/requests.utility.d.mts +1 -1
  127. package/dist/provider/utility/requests.utility.d.mts.map +1 -1
  128. package/dist/provider/utility/requests.utility.mjs.map +1 -1
  129. package/dist/provider/websocket/index.cjs +2 -1
  130. package/dist/provider/websocket/index.d.cts +2 -1
  131. package/dist/provider/websocket/index.d.mts +2 -1
  132. package/dist/provider/websocket/index.mjs +2 -2
  133. package/dist/provider/websocket/ws.cjs +2 -2
  134. package/dist/provider/websocket/ws.cjs.map +1 -1
  135. package/dist/provider/websocket/ws.d.cts +0 -1
  136. package/dist/provider/websocket/ws.d.cts.map +1 -1
  137. package/dist/provider/websocket/ws.d.mts +0 -1
  138. package/dist/provider/websocket/ws.d.mts.map +1 -1
  139. package/dist/provider/websocket/ws.mjs +2 -1
  140. package/dist/provider/websocket/ws.mjs.map +1 -1
  141. package/dist/services/index.cjs +2 -1
  142. package/dist/services/index.d.cts +2 -1
  143. package/dist/services/index.d.mts +2 -1
  144. package/dist/services/index.mjs +2 -2
  145. package/dist/services/rest/restService.cjs +1 -1
  146. package/dist/services/rest/restService.cjs.map +1 -1
  147. package/dist/services/rest/restService.d.cts +0 -1
  148. package/dist/services/rest/restService.d.cts.map +1 -1
  149. package/dist/services/rest/restService.d.mts +0 -1
  150. package/dist/services/rest/restService.d.mts.map +1 -1
  151. package/dist/services/rest/restService.mjs.map +1 -1
  152. package/dist/services/rest/restService.types.d.cts +1 -1
  153. package/dist/services/rest/restService.types.d.cts.map +1 -1
  154. package/dist/services/rest/restService.types.d.mts +1 -1
  155. package/dist/services/rest/restService.types.d.mts.map +1 -1
  156. package/dist/utility/compact-bit-array.cjs +1 -1
  157. package/dist/utility/compact-bit-array.cjs.map +1 -1
  158. package/dist/utility/compact-bit-array.d.cts +0 -1
  159. package/dist/utility/compact-bit-array.d.cts.map +1 -1
  160. package/dist/utility/compact-bit-array.d.mts +0 -1
  161. package/dist/utility/compact-bit-array.d.mts.map +1 -1
  162. package/dist/utility/compact-bit-array.mjs +1 -1
  163. package/dist/utility/compact-bit-array.mjs.map +1 -1
  164. package/dist/utility/index.cjs +3 -1
  165. package/dist/utility/index.d.cts +2 -1
  166. package/dist/utility/index.d.mts +2 -1
  167. package/dist/utility/index.mjs +2 -2
  168. package/dist/wallet/index.cjs +16 -5
  169. package/dist/wallet/index.d.cts +6 -1
  170. package/dist/wallet/index.d.mts +6 -1
  171. package/dist/wallet/index.mjs +6 -6
  172. package/dist/wallet/key/index.cjs +2 -1
  173. package/dist/wallet/key/index.d.cts +2 -1
  174. package/dist/wallet/key/index.d.mts +2 -1
  175. package/dist/wallet/key/index.mjs +2 -2
  176. package/dist/wallet/key/key.cjs +9 -10
  177. package/dist/wallet/key/key.cjs.map +1 -1
  178. package/dist/wallet/key/key.d.cts +0 -1
  179. package/dist/wallet/key/key.d.cts.map +1 -1
  180. package/dist/wallet/key/key.d.mts +0 -1
  181. package/dist/wallet/key/key.d.mts.map +1 -1
  182. package/dist/wallet/key/key.mjs +1 -1
  183. package/dist/wallet/key/key.mjs.map +1 -1
  184. package/dist/wallet/ledger/index.cjs +2 -1
  185. package/dist/wallet/ledger/index.d.cts +2 -1
  186. package/dist/wallet/ledger/index.d.mts +2 -1
  187. package/dist/wallet/ledger/index.mjs +2 -2
  188. package/dist/wallet/ledger/ledger.cjs +9 -10
  189. package/dist/wallet/ledger/ledger.cjs.map +1 -1
  190. package/dist/wallet/ledger/ledger.d.cts +0 -1
  191. package/dist/wallet/ledger/ledger.d.cts.map +1 -1
  192. package/dist/wallet/ledger/ledger.d.mts +0 -1
  193. package/dist/wallet/ledger/ledger.d.mts.map +1 -1
  194. package/dist/wallet/ledger/ledger.mjs +3 -2
  195. package/dist/wallet/ledger/ledger.mjs.map +1 -1
  196. package/dist/wallet/signer.d.cts.map +1 -1
  197. package/dist/wallet/signer.d.mts.map +1 -1
  198. package/dist/wallet/types/index.cjs +2 -1
  199. package/dist/wallet/types/index.d.cts +2 -1
  200. package/dist/wallet/types/index.d.mts +2 -1
  201. package/dist/wallet/types/index.mjs +2 -2
  202. package/dist/wallet/types/sign.d.cts.map +1 -1
  203. package/dist/wallet/types/sign.d.mts.map +1 -1
  204. package/dist/wallet/types/wallet.d.cts.map +1 -1
  205. package/dist/wallet/types/wallet.d.mts.map +1 -1
  206. package/dist/wallet/utility/index.cjs +8 -1
  207. package/dist/wallet/utility/index.d.cts +2 -1
  208. package/dist/wallet/utility/index.d.mts +2 -1
  209. package/dist/wallet/utility/index.mjs +2 -2
  210. package/dist/wallet/utility/utility.cjs +1 -1
  211. package/dist/wallet/utility/utility.cjs.map +1 -1
  212. package/dist/wallet/utility/utility.d.cts +0 -1
  213. package/dist/wallet/utility/utility.d.cts.map +1 -1
  214. package/dist/wallet/utility/utility.d.mts +0 -1
  215. package/dist/wallet/utility/utility.d.mts.map +1 -1
  216. package/dist/wallet/utility/utility.mjs.map +1 -1
  217. package/dist/wallet/wallet.cjs +18 -18
  218. package/dist/wallet/wallet.cjs.map +1 -1
  219. package/dist/wallet/wallet.d.cts +3 -1
  220. package/dist/wallet/wallet.d.cts.map +1 -1
  221. package/dist/wallet/wallet.d.mts +3 -1
  222. package/dist/wallet/wallet.d.mts.map +1 -1
  223. package/dist/wallet/wallet.mjs +6 -4
  224. package/dist/wallet/wallet.mjs.map +1 -1
  225. package/package.json +39 -36
  226. package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/defineProperty.cjs +0 -12
  227. package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/toPropertyKey.cjs +0 -9
  228. package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/toPropertyKey.mjs +0 -9
  229. package/dist/index.cjs.map +0 -1
  230. package/dist/index.d.cts.map +0 -1
  231. package/dist/index.d.mts.map +0 -1
  232. package/dist/index.mjs.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,430 @@
1
+ # Changelog
2
+
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#284](https://github.com/gnolang/tm2-js-client/pull/284) [`e518a06`](https://github.com/gnolang/tm2-js-client/commit/e518a06751eeb4246772b8e6613fe34731c3f50f) Thanks [@jinoosss](https://github.com/jinoosss)! - Sync `tm2/tx.proto` with upstream `std.Signature`: add the `session_addr` field (introduced by gno account sessions) to `TxSignature`, and regenerate the protobuf bindings. Master-key signatures keep an empty `session_addr`, so the wire encoding is unchanged for existing transactions.
8
+
9
+ ## 2.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - a7473ea: Update deps, fix potential CI build issues. Ensure changeset runs properly
14
+
15
+ All notable changes to `@gnolang/tm2-js-client` are documented in this file.
16
+
17
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
18
+
19
+ This file was reconstructed from git history and npm release metadata. Each release links to the commit that the corresponding npm version was published from. Releases prior to this changelog were not previously tagged in git; tags `v1.0.0`–`v2.0.4` were created retroactively to point at those commits.
20
+
21
+ ## Compatibility with `@gnolang/gno-js-client`
22
+
23
+ `@gnolang/gno-js-client` depends on `@gnolang/tm2-js-client`. The table below lists each `gno-js-client` release's declared `tm2-js-client` floor (caret range, so the latest compatible minor of `tm2-js-client` is also fine):
24
+
25
+ | `gno-js-client` | `tm2-js-client` floor |
26
+ | --------------- | ---------------------------------------------------------- |
27
+ | 2.0.2 | `^2.0.4` |
28
+ | 2.0.0 – 2.0.1 | `^2.0.2` – `^2.0.3` |
29
+ | 1.4.5 | `^1.3.3` |
30
+ | 1.4.1 – 1.4.4 | `^1.3.0` – `^1.3.3` |
31
+ | 1.4.0 | `^1.3.0` |
32
+ | 1.3.2 | `^1.2.4` |
33
+ | 1.3.0 – 1.3.1 | `^1.2.1` – `^1.2.2` |
34
+ | 1.2.0 – 1.2.3 | `^1.1.6` – `^1.2.0` |
35
+ | 1.1.x | `^1.1.x` (tracks closely; e.g. `gno 1.1.7` ⇒ `tm2 ^1.1.5`) |
36
+ | 1.0.x | `^1.0.x` (`gno 1.0.6+` ⇒ `tm2 ^1.0.6`) |
37
+
38
+ When in doubt, prefer the latest `gno-js-client` whose declared `tm2-js-client` floor is at or below the version you're pinning. Crossing a `tm2-js-client` major (e.g. mixing `gno-js-client@1.x` with `tm2-js-client@2.x`) is not supported.
39
+
40
+ ---
41
+
42
+ ## [2.0.4] – 2026-04-01
43
+
44
+ [Compare 2.0.3...2.0.4](https://github.com/gnolang/tm2-js-client/compare/v2.0.3...v2.0.4) · commit [`84ccd38`](https://github.com/gnolang/tm2-js-client/commit/84ccd38c98d8738cc02c02f04eb99347a109f793)
45
+
46
+ ### Fixed
47
+
48
+ - Proto exports were missing from the published bundle ([#260](https://github.com/gnolang/tm2-js-client/pull/260)).
49
+
50
+ ## [2.0.3] – 2026-04-01
51
+
52
+ [Compare 2.0.2...2.0.3](https://github.com/gnolang/tm2-js-client/compare/v2.0.2...v2.0.3) · commit [`872d297`](https://github.com/gnolang/tm2-js-client/commit/872d297)
53
+
54
+ ### Fixed
55
+
56
+ - Disabled tree-shaking in the bundler — multisig exports were being dropped from the published build ([#260](https://github.com/gnolang/tm2-js-client/pull/260)).
57
+
58
+ ## [2.0.2] – 2026-03-31
59
+
60
+ [Compare 2.0.1...2.0.2](https://github.com/gnolang/tm2-js-client/compare/v2.0.1...v2.0.2) · commit [`39d4716`](https://github.com/gnolang/tm2-js-client/commit/39d471679d952de10379bbb573a231348f80303f)
61
+
62
+ ### Changed
63
+
64
+ - Bumped `@gnolang/tm2-rpc` to `v1.0.0` ([#259](https://github.com/gnolang/tm2-js-client/pull/259)).
65
+ - Refactored tests; moved CBA helper methods out of the auto-generated proto files.
66
+
67
+ ## [2.0.1] – 2026-03-31
68
+
69
+ commit [`dd7a3e5`](https://github.com/gnolang/tm2-js-client/commit/dd7a3e5) (off-main; published from the `chore/bump-tm2-rpc` branch before squash-merge)
70
+
71
+ ### Changed
72
+
73
+ - Initial bump of `@gnolang/tm2-rpc` to `v1.0.0`. This was published off-branch; main was squash-merged at `2.0.2` (see [#259](https://github.com/gnolang/tm2-js-client/pull/259)). If you can, prefer `2.0.2` — it includes the same change plus a test refactor.
74
+
75
+ ## [2.0.0] – 2026-03-30
76
+
77
+ [Compare 1.3.3...2.0.0](https://github.com/gnolang/tm2-js-client/compare/v1.3.3...v2.0.0) · commit [`4499e74`](https://github.com/gnolang/tm2-js-client/commit/4499e74176abd7befd8d8c37cfdd26e8db30aec3)
78
+
79
+ The 2.0 line is a major rewrite of the project's tooling and runtime expectations. See **Migration: 1.x → 2.0** below.
80
+
81
+ ### ⚠️ Breaking Changes
82
+
83
+ - **Proto numbers are `bigint`, not `Long`.** Fields previously typed `Long` (e.g. `gas_wanted`, `gas_used`, sequences, heights) are now `bigint`. Any code that constructed or read `Long` values (`Long.fromNumber`, `.toNumber()`, `.toString()`, `.eq()`, …) needs to switch to `bigint` (`BigInt(x)`, `Number(x)`, arithmetic with the `n` suffix). This is a wire-compatible change but a source-incompatible one.
84
+ - **RPC layer moved to `@gnolang/tm2-rpc`.** The internal JSON-RPC / WebSocket transport was extracted to a new package ([allinbits/tm2-rpc](https://github.com/allinbits/tm2-rpc)). Direct importers of the previous `provider/spec` types may need to update import paths.
85
+ - **Tested on Node.js 24.** No `engines` field is enforced, but the test/build matrix moved to Node 24 and earlier majors are no longer covered.
86
+
87
+ ### Added
88
+
89
+ - Dual ESM + CJS distribution. The package now ships as `"type": "module"` with conditional `exports` — `import` resolves to `dist/index.mjs`, `require` resolves to `dist/index.cjs`, with matching `.d.mts` / `.d.cts` types. Both consumer styles continue to work.
90
+
91
+ ### Changed
92
+
93
+ - Build pipeline migrated to **tsdown**.
94
+ - Test framework migrated from **jest** to **vitest**.
95
+ - Package manager switched from **yarn** to **pnpm**.
96
+ - Linting setup modernised; rules unified with sibling JS/TS projects.
97
+ - All runtime and dev dependencies updated to current majors.
98
+
99
+ ### Pre-2.0 dependency bumps included
100
+
101
+ - `@types/node` 24.3.0 → 24.5.2 ([#241](https://github.com/gnolang/tm2-js-client/pull/241))
102
+ - `prettier` 3.6.2 → 3.7.3 ([#246](https://github.com/gnolang/tm2-js-client/pull/246)), 3.7.3 → 3.8.1 ([#250](https://github.com/gnolang/tm2-js-client/pull/250))
103
+ - eslint group bumps ([#242](https://github.com/gnolang/tm2-js-client/pull/242), [#251](https://github.com/gnolang/tm2-js-client/pull/251))
104
+ - actions group bump ([#247](https://github.com/gnolang/tm2-js-client/pull/247))
105
+ - `feat: Version 2.0` ([#256](https://github.com/gnolang/tm2-js-client/pull/256))
106
+
107
+ ### Migration: 1.x → 2.0
108
+
109
+ 1. **Replace `Long` with `bigint`.** Search your codebase for any `Long` usage that came from this package's proto types and convert:
110
+ - `Long.fromNumber(x)` → `BigInt(x)`
111
+ - `value.toNumber()` → `Number(value)`
112
+ - `value.toString()` → `value.toString()` _(unchanged)_
113
+ - `a.add(b)` / `a.eq(b)` → `a + b` / `a === b`
114
+ 2. **Move to a Node 24+ runtime** for both build and test. CI/build images pinned to older Node majors should be updated.
115
+ 3. **Pair with `@gnolang/gno-js-client` `2.0.x`** if you use it (older `gno-js-client` versions depend on `tm2-js-client` 1.x and will not work with 2.x).
116
+ 4. No source changes are required for ESM vs CJS consumers — both paths are still supported via the new conditional `exports`.
117
+ 5. No migration is required for `Provider` / `Wallet` / `Signer` public API shapes — those are preserved.
118
+
119
+ ---
120
+
121
+ ## [1.3.3] – 2025-09-08
122
+
123
+ [Compare 1.3.2...1.3.3](https://github.com/gnolang/tm2-js-client/compare/v1.3.2...v1.3.3) · commit [`9937dbf`](https://github.com/gnolang/tm2-js-client/commit/9937dbf7e7a2369099870d65b2df515db3c8a3a3)
124
+
125
+ ### Added
126
+
127
+ - **Multisig support** ([#235](https://github.com/gnolang/tm2-js-client/pull/235)).
128
+
129
+ ### Fixed
130
+
131
+ - `status` call now correctly forwards the `heightGte` parameter ([#232](https://github.com/gnolang/tm2-js-client/pull/232)).
132
+
133
+ ### Changed
134
+
135
+ - eslint group bump ([#233](https://github.com/gnolang/tm2-js-client/pull/233)).
136
+
137
+ ## [1.3.2] – 2025-09-04
138
+
139
+ commit [`45cb8d2`](https://github.com/gnolang/tm2-js-client/commit/45cb8d238991b03d7dc3fc01cc6aa461208d4a0d)
140
+
141
+ ### Added
142
+
143
+ - `Provider.getAccount()` method ([#231](https://github.com/gnolang/tm2-js-client/pull/231)).
144
+
145
+ ## [1.3.1] – 2025-08-27
146
+
147
+ commit [`dcc065c`](https://github.com/gnolang/tm2-js-client/commit/dcc065cbfa512f111a5d0eaccd26e2026c13fb53)
148
+
149
+ ### Changed
150
+
151
+ - `actions/checkout` 4 → 5 ([#229](https://github.com/gnolang/tm2-js-client/pull/229)).
152
+ - `everything-else` group bump (12 packages) ([#230](https://github.com/gnolang/tm2-js-client/pull/230)).
153
+
154
+ ## [1.3.0] – 2025-07-16
155
+
156
+ commit [`ff60d66`](https://github.com/gnolang/tm2-js-client/commit/ff60d662594a89068ccf1d2482ea92d718fc4b4d)
157
+
158
+ ### ⚠️ Breaking Changes
159
+
160
+ - **Proto field naming changed from camelCase to snake_case.** `Any.typeUrl` → `Any.type_url`, `ResponseDeliverTx.gasWanted/gasUsed` → `gas_wanted/gas_used`, `Tx.responseBase` → `response_base`, etc. Any code that read/wrote those fields directly must be updated. This change aligns the TS proto types with the on-the-wire field names.
161
+
162
+ ### Changed
163
+
164
+ - Regenerated proto bindings to use snake_case field names (`scripts/generate.sh` updated accordingly).
165
+
166
+ ## [1.2.7] – 2025-07-16
167
+
168
+ commit [`d3f6c52`](https://github.com/gnolang/tm2-js-client/commit/d3f6c52beac3f6dbb3f141d904267ddd1009245f)
169
+
170
+ ### Changed
171
+
172
+ - Regenerated proto bindings (intermediate state; superseded by 1.3.0's snake_case rename — recommend skipping straight to 1.3.0).
173
+
174
+ ## [1.2.6] – 2025-07-16
175
+
176
+ commit [`bd7e0f5`](https://github.com/gnolang/tm2-js-client/commit/bd7e0f5f04d1cc65153edabd217dccc5a0c21dc1)
177
+
178
+ ### Changed
179
+
180
+ - `package.json` housekeeping. No source changes.
181
+
182
+ ## [1.2.5] – 2025-07-16
183
+
184
+ commit [`6edd900`](https://github.com/gnolang/tm2-js-client/commit/6edd900dbd91f80f104d208a8b44698dd62f0bd8)
185
+
186
+ ### Changed
187
+
188
+ - `everything-else` group bump (16 packages) ([#200](https://github.com/gnolang/tm2-js-client/pull/200)).
189
+ - `everything-else` group bump (24 packages) ([#224](https://github.com/gnolang/tm2-js-client/pull/224)).
190
+
191
+ ## [1.2.4] – 2025-01-16
192
+
193
+ commit [`66d3056`](https://github.com/gnolang/tm2-js-client/commit/66d30564dc218c9df7204501edc46df3088a86ef)
194
+
195
+ ### Added
196
+
197
+ - `Wallet.fromSigner()` static method ([#199](https://github.com/gnolang/tm2-js-client/pull/199)).
198
+
199
+ ## [1.2.3] – 2025-01-13
200
+
201
+ commit [`2d5afd2`](https://github.com/gnolang/tm2-js-client/commit/2d5afd2c6c9420ec8251e50a7497217debf331fa)
202
+
203
+ ### Added
204
+
205
+ - `Provider.estimateGas()` method ([#192](https://github.com/gnolang/tm2-js-client/pull/192)).
206
+
207
+ ### Changed
208
+
209
+ - `everything-else` group bump (3 packages) ([#182](https://github.com/gnolang/tm2-js-client/pull/182)).
210
+
211
+ ## [1.2.2] – 2024-09-19
212
+
213
+ commit [`23a65fb`](https://github.com/gnolang/tm2-js-client/commit/23a65fb8d31fb69cf377c5d7b09519234cc66986)
214
+
215
+ ### Added
216
+
217
+ - `Provider.getTransaction()` method ([#176](https://github.com/gnolang/tm2-js-client/pull/176)).
218
+
219
+ ### Changed
220
+
221
+ - `everything-else` group bumps ([#171](https://github.com/gnolang/tm2-js-client/pull/171), [#179](https://github.com/gnolang/tm2-js-client/pull/179)).
222
+
223
+ ## [1.2.1] – 2024-06-26
224
+
225
+ commit [`0559605`](https://github.com/gnolang/tm2-js-client/commit/0559605233f44e16ae913b579ca7b8cdf0da412b)
226
+
227
+ ### Changed
228
+
229
+ - Updated `cosmjs` dependency.
230
+ - README updates ([#149](https://github.com/gnolang/tm2-js-client/pull/149)).
231
+
232
+ ## [1.2.0] – 2024-04-29
233
+
234
+ commit [`8555258`](https://github.com/gnolang/tm2-js-client/commit/8555258)
235
+
236
+ ### ⚠️ Breaking Changes
237
+
238
+ - **`time` field removed from the transaction signature payload** ([#144](https://github.com/gnolang/tm2-js-client/pull/144)). Signatures produced by 1.2.0+ will not verify on chains/relays that still expect the old payload, and vice versa. Coordinate any signer/verifier upgrades together.
239
+
240
+ ### Changed
241
+
242
+ - `ts-proto` 1.171.0 → 1.172.0 ([#143](https://github.com/gnolang/tm2-js-client/pull/143)).
243
+
244
+ ## [1.1.7] – 2024-04-06
245
+
246
+ commit [`504c43d`](https://github.com/gnolang/tm2-js-client/commit/504c43d6885c7973514601b7116645da443d8334)
247
+
248
+ ### Added
249
+
250
+ - `Signer` interface is now exported ([#130](https://github.com/gnolang/tm2-js-client/pull/130)).
251
+
252
+ ### Changed
253
+
254
+ - actions group bump ([#138](https://github.com/gnolang/tm2-js-client/pull/138)).
255
+ - `everything-else` group bump (6 packages) ([#141](https://github.com/gnolang/tm2-js-client/pull/141)).
256
+ - `@types/node` 20.11.1 → 20.12.5 ([#140](https://github.com/gnolang/tm2-js-client/pull/140)).
257
+
258
+ ## [1.1.6] – 2024-02-12
259
+
260
+ commit [`299b8a3`](https://github.com/gnolang/tm2-js-client/commit/299b8a3c3ac1bb581449b21206c65ad61e6b737b)
261
+
262
+ ### Added
263
+
264
+ - Escape characters are now properly encoded when generating transactions ([#129](https://github.com/gnolang/tm2-js-client/pull/129)).
265
+
266
+ ### Changed
267
+
268
+ - Dependency bumps: `eslint-plugin-prettier` ([#123](https://github.com/gnolang/tm2-js-client/pull/123)), `@types/node` ([#126](https://github.com/gnolang/tm2-js-client/pull/126)), `prettier` ([#125](https://github.com/gnolang/tm2-js-client/pull/125)), `ts-proto` ([#127](https://github.com/gnolang/tm2-js-client/pull/127), [#128](https://github.com/gnolang/tm2-js-client/pull/128)), `eslint` ([#122](https://github.com/gnolang/tm2-js-client/pull/122)).
269
+
270
+ ## [1.1.5] – 2023-12-04
271
+
272
+ commit [`9f82891`](https://github.com/gnolang/tm2-js-client/commit/9f82891d74229044c40f0fc71edddd60189e36d4)
273
+
274
+ ### Changed
275
+
276
+ - Dependency bumps: `semver` ([#83](https://github.com/gnolang/tm2-js-client/pull/83)), `axios` ([#110](https://github.com/gnolang/tm2-js-client/pull/110)), `typescript` ([#115](https://github.com/gnolang/tm2-js-client/pull/115)), `@types/node` ([#118](https://github.com/gnolang/tm2-js-client/pull/118)), `ts-proto` ([#121](https://github.com/gnolang/tm2-js-client/pull/121)), `eslint-config-prettier` ([#120](https://github.com/gnolang/tm2-js-client/pull/120)), `eslint` ([#119](https://github.com/gnolang/tm2-js-client/pull/119)), `@cosmjs/amino` 0.31.0 → 0.32.0 ([#116](https://github.com/gnolang/tm2-js-client/pull/116)), `@cosmjs/crypto` 0.31.0 → 0.32.0 ([#112](https://github.com/gnolang/tm2-js-client/pull/112)), `prettier` 3.0.0 → 3.1.0 ([#106](https://github.com/gnolang/tm2-js-client/pull/106)).
277
+
278
+ ## [1.1.4] – 2023-09-25
279
+
280
+ commit [`c198d1a`](https://github.com/gnolang/tm2-js-client/commit/c198d1a39690b30f4948b5829bd80536e885988b)
281
+
282
+ ### Changed
283
+
284
+ - Switched JSON-RPC request IDs to UUIDs ([#88](https://github.com/gnolang/tm2-js-client/pull/88)). Mirrors the WS provider change in 1.1.3 for the JSON-RPC provider.
285
+
286
+ ## [1.1.3] – 2023-09-24
287
+
288
+ commit [`906c995`](https://github.com/gnolang/tm2-js-client/commit/906c99543946aba23a7949773ccd01d756d9f767)
289
+
290
+ ### Changed
291
+
292
+ - WebSocket provider: request IDs are now UUIDs (was numeric counter); WS connection timeout increased ([#85](https://github.com/gnolang/tm2-js-client/pull/85)).
293
+
294
+ ## [1.1.2] – 2023-09-22
295
+
296
+ commit [`3a30b5f`](https://github.com/gnolang/tm2-js-client/commit/3a30b5f816ff7111aec876461b4be849ff8225aa)
297
+
298
+ ### Fixed
299
+
300
+ - Correctly reference `ABCIErrorKey` ([#84](https://github.com/gnolang/tm2-js-client/pull/84)).
301
+
302
+ ## [1.1.1] – 2023-09-21
303
+
304
+ commit [`579b69d`](https://github.com/gnolang/tm2-js-client/commit/579b69d09fd04a55616c4137ccf61d9216aa9f7d)
305
+
306
+ ### Changed
307
+
308
+ - Previously private `Wallet` fields are now exported (allows subclassing / external utilities).
309
+
310
+ ## [1.1.0] – 2023-09-13
311
+
312
+ commit [`87de815`](https://github.com/gnolang/tm2-js-client/commit/87de8156b451a4da034eefce551af58c39683d8c)
313
+
314
+ ### ⚠️ Breaking Changes
315
+
316
+ - **`Wallet.sendTransaction()` return type changed.** It now returns the broadcast result rather than the raw hash; callers that destructured or relied on the previous shape need to update. See [#78](https://github.com/gnolang/tm2-js-client/pull/78).
317
+
318
+ ### Changed
319
+
320
+ - Dependency bumps: `jest-websocket-mock` ([#82](https://github.com/gnolang/tm2-js-client/pull/82)), `eslint` ([#81](https://github.com/gnolang/tm2-js-client/pull/81)), `@types/node` ([#80](https://github.com/gnolang/tm2-js-client/pull/80)), `ws` 8.13.0 → 8.14.1 ([#79](https://github.com/gnolang/tm2-js-client/pull/79)).
321
+
322
+ ## [1.0.6] – 2023-09-06
323
+
324
+ commit [`a0ea2ab`](https://github.com/gnolang/tm2-js-client/commit/a0ea2ab353c1d2f59b068811401ab3ba89fb8d3d)
325
+
326
+ ### Added
327
+
328
+ - `Wallet` API now supports custom `sendTransaction` endpoints (e.g. `/broadcast_tx_commit` vs `/broadcast_tx_sync`).
329
+
330
+ ## [1.0.5] – 2023-09-06
331
+
332
+ commit [`cf2928b`](https://github.com/gnolang/tm2-js-client/commit/cf2928bb18d2cad6ffd5f983c766e6656a90bf7c)
333
+
334
+ ### Added
335
+
336
+ - `sendTransaction` now surfaces broadcast errors instead of swallowing them ([#59](https://github.com/gnolang/tm2-js-client/pull/59)).
337
+
338
+ ### Changed
339
+
340
+ - Dependency bumps: `prettier` 2.x → 3.0 ([#55](https://github.com/gnolang/tm2-js-client/pull/55)), `ts-proto` ([#69](https://github.com/gnolang/tm2-js-client/pull/69)), `jest` ([#58](https://github.com/gnolang/tm2-js-client/pull/58)), `eslint`/`eslint-config-prettier` ([#68](https://github.com/gnolang/tm2-js-client/pull/68), [#70](https://github.com/gnolang/tm2-js-client/pull/70), [#71](https://github.com/gnolang/tm2-js-client/pull/71), [#72](https://github.com/gnolang/tm2-js-client/pull/72), [#75](https://github.com/gnolang/tm2-js-client/pull/75)), `typescript` 5.1 → 5.2 ([#76](https://github.com/gnolang/tm2-js-client/pull/76)), `@typescript-eslint/*` ([#60](https://github.com/gnolang/tm2-js-client/pull/60), [#62](https://github.com/gnolang/tm2-js-client/pull/62)), `@types/node` ([#67](https://github.com/gnolang/tm2-js-client/pull/67), [#73](https://github.com/gnolang/tm2-js-client/pull/73)), `axios` 1.4 → 1.5 ([#74](https://github.com/gnolang/tm2-js-client/pull/74)), `ts-proto` ([#77](https://github.com/gnolang/tm2-js-client/pull/77)).
341
+
342
+ ## [1.0.4] – 2023-07-03
343
+
344
+ commit [`b05acbb`](https://github.com/gnolang/tm2-js-client/commit/b05acbb70a443314da43b2f26318e85d232069a0)
345
+
346
+ ### Changed
347
+
348
+ - Bumped `@cosmjs/*` dependencies.
349
+
350
+ ## [1.0.3] – 2023-07-03
351
+
352
+ commit [`7a41adf`](https://github.com/gnolang/tm2-js-client/commit/7a41adfd6da2257912875e8100e993f126ebf614)
353
+
354
+ ### Fixed
355
+
356
+ - Account fetch ABCI query response parsing ([#44](https://github.com/gnolang/tm2-js-client/pull/44)).
357
+
358
+ ### Changed
359
+
360
+ - Dependency bumps: `eslint`, `ts-proto`, `typescript`, `@types/node`, `@typescript-eslint/*`, `ts-jest`, `protobufjs` ([#33](https://github.com/gnolang/tm2-js-client/pull/33), [#34](https://github.com/gnolang/tm2-js-client/pull/34), [#41](https://github.com/gnolang/tm2-js-client/pull/41), [#43](https://github.com/gnolang/tm2-js-client/pull/43), [#45](https://github.com/gnolang/tm2-js-client/pull/45), [#47](https://github.com/gnolang/tm2-js-client/pull/47), [#48](https://github.com/gnolang/tm2-js-client/pull/48), [#49](https://github.com/gnolang/tm2-js-client/pull/49), [#50](https://github.com/gnolang/tm2-js-client/pull/50), [#51](https://github.com/gnolang/tm2-js-client/pull/51), [#52](https://github.com/gnolang/tm2-js-client/pull/52)).
361
+
362
+ ## [1.0.2] – 2023-06-16
363
+
364
+ commit [`e5d2918`](https://github.com/gnolang/tm2-js-client/commit/e5d2918bc4a219c80118161aa8df485f3873c3c7)
365
+
366
+ ### Fixed
367
+
368
+ - ABCI query against the WebSocket provider when fetching balances ([#32](https://github.com/gnolang/tm2-js-client/pull/32)).
369
+
370
+ ### Changed
371
+
372
+ - Dependency bumps: `@types/node`, `@types/ws`, `@typescript-eslint/parser` ([#29](https://github.com/gnolang/tm2-js-client/pull/29), [#30](https://github.com/gnolang/tm2-js-client/pull/30), [#31](https://github.com/gnolang/tm2-js-client/pull/31)).
373
+
374
+ ## [1.0.1] – 2023-06-08
375
+
376
+ commit [`b12c390`](https://github.com/gnolang/tm2-js-client/commit/b12c390fe3d71e7eb87ccce16f98223b35186fcc)
377
+
378
+ ### Changed
379
+
380
+ - Dependency bumps: `@types/node`, `ts-proto`, `eslint`, `@typescript-eslint/*`, `@types/jest`, `typescript` ([#21](https://github.com/gnolang/tm2-js-client/pull/21), [#23](https://github.com/gnolang/tm2-js-client/pull/23), [#24](https://github.com/gnolang/tm2-js-client/pull/24), [#25](https://github.com/gnolang/tm2-js-client/pull/25), [#26](https://github.com/gnolang/tm2-js-client/pull/26), [#27](https://github.com/gnolang/tm2-js-client/pull/27), [#28](https://github.com/gnolang/tm2-js-client/pull/28)).
381
+
382
+ ## [1.0.0] – 2023-05-16
383
+
384
+ commit [`40f01db`](https://github.com/gnolang/tm2-js-client/commit/40f01db) (head of `main` at the time of the `1.0.0` npm publish)
385
+
386
+ Initial public release.
387
+
388
+ ### Added
389
+
390
+ - `Provider` abstraction with JSON-RPC and WebSocket implementations.
391
+ - `Signer` abstraction with `Key` (raw Secp256k1) and `Ledger` implementations.
392
+ - `Wallet` API for account-scoped interaction with TM2 chains.
393
+ - Core proto types for TM2 (`tx`, `abci`, `google.protobuf.Any`).
394
+ - Balance/account/status query methods.
395
+ - `Wallet.getPrivateKey()` accessor for the key signer ([#2](https://github.com/gnolang/tm2-js-client/pull/2)).
396
+ - Configurable address prefix on `Wallet` creation ([#3](https://github.com/gnolang/tm2-js-client/pull/3)).
397
+ - Balance-fetch response handling fix in initial proto wiring ([#1](https://github.com/gnolang/tm2-js-client/pull/1)).
398
+
399
+ [2.0.4]: https://github.com/gnolang/tm2-js-client/releases/tag/v2.0.4
400
+ [2.0.3]: https://github.com/gnolang/tm2-js-client/releases/tag/v2.0.3
401
+ [2.0.2]: https://github.com/gnolang/tm2-js-client/releases/tag/v2.0.2
402
+ [2.0.1]: https://github.com/gnolang/tm2-js-client/releases/tag/v2.0.1
403
+ [2.0.0]: https://github.com/gnolang/tm2-js-client/releases/tag/v2.0.0
404
+ [1.3.3]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.3.3
405
+ [1.3.2]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.3.2
406
+ [1.3.1]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.3.1
407
+ [1.3.0]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.3.0
408
+ [1.2.7]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.7
409
+ [1.2.6]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.6
410
+ [1.2.5]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.5
411
+ [1.2.4]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.4
412
+ [1.2.3]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.3
413
+ [1.2.2]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.2
414
+ [1.2.1]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.1
415
+ [1.2.0]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.0
416
+ [1.1.7]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.7
417
+ [1.1.6]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.6
418
+ [1.1.5]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.5
419
+ [1.1.4]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.4
420
+ [1.1.3]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.3
421
+ [1.1.2]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.2
422
+ [1.1.1]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.1
423
+ [1.1.0]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.0
424
+ [1.0.6]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.6
425
+ [1.0.5]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.5
426
+ [1.0.4]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.4
427
+ [1.0.3]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.3
428
+ [1.0.2]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.2
429
+ [1.0.1]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.1
430
+ [1.0.0]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.0
@@ -0,0 +1,83 @@
1
+ # Contributing to `@gnolang/tm2-js-client`
2
+
3
+ Thanks for your interest in contributing! This document covers the bits that aren't obvious from the code — primarily our release flow.
4
+
5
+ ## Development setup
6
+
7
+ ```bash
8
+ pnpm install
9
+ pnpm build
10
+ pnpm test
11
+ pnpm lint
12
+ ```
13
+
14
+ ## Releasing: Changesets
15
+
16
+ Versioning, changelog generation, git tagging, and npm publishing are all driven by [Changesets](https://github.com/changesets/changesets). You should not edit `CHANGELOG.md`, bump the version in `package.json`, or run `npm publish` by hand.
17
+
18
+ ### Adding a changeset to your PR
19
+
20
+ Any PR that affects the published package must include a changeset. PRs that only touch internal tooling (CI, contributor docs, tests not exposed via the build) do not need one.
21
+
22
+ From the repo root:
23
+
24
+ ```bash
25
+ pnpm changeset
26
+ ```
27
+
28
+ The CLI will prompt you to:
29
+
30
+ 1. Pick a bump type — `patch` for bug fixes, `minor` for backwards-compatible features, `major` for breaking changes. Follow [Semantic Versioning](https://semver.org/).
31
+ 2. Write a short summary. The summary becomes the bullet point in the published changelog, so write it for end users — describe the user-facing change, not the implementation. Markdown is supported.
32
+
33
+ This creates a Markdown file under `.changeset/` (e.g. `.changeset/quiet-pandas-jump.md`). Commit it as part of your PR.
34
+
35
+ If you forget, you can also create the file manually:
36
+
37
+ ```markdown
38
+ ---
39
+ "@gnolang/tm2-js-client": patch
40
+ ---
41
+
42
+ Short, user-facing description of the change.
43
+ ```
44
+
45
+ ### How releases happen
46
+
47
+ The `Release` GitHub Actions workflow (`.github/workflows/release.yaml`) runs on every push to `main`:
48
+
49
+ - **If there are pending changesets in `.changeset/`**, the workflow opens (or updates) a PR titled **"chore: version packages"**. That PR consumes the changesets, bumps `package.json`, and writes the new entries into `CHANGELOG.md`.
50
+ - **When that PR is merged**, the workflow runs again, sees no pending changesets, and instead builds the package, publishes it to npm, and pushes a git tag for the new version.
51
+
52
+ In short: **you write the changeset, the bot does the rest.** Maintainers review the version PR like any other PR before merging.
53
+
54
+ ### Useful local commands
55
+
56
+ ```bash
57
+ # Add a changeset interactively
58
+ pnpm changeset
59
+
60
+ # See which changesets are pending and what version bump they imply
61
+ pnpm changeset:status
62
+
63
+ # Apply pending changesets locally (bumps package.json, updates CHANGELOG.md, deletes consumed changesets).
64
+ # You normally don't run this manually — the release workflow does it via the version PR.
65
+ pnpm version
66
+
67
+ # Build and publish to npm. Also bot-only in normal flow.
68
+ pnpm release
69
+ ```
70
+
71
+ ### Repo secrets required
72
+
73
+ The release workflow needs an `NPM_TOKEN` repository secret (an npm automation token with publish rights to `@gnolang/tm2-js-client`). `GITHUB_TOKEN` is provided automatically.
74
+
75
+ ### Pre-changesets history
76
+
77
+ Versions `1.0.0` through `2.0.4` predate this workflow and were released manually; their entries in `CHANGELOG.md` were reconstructed from git history and npm metadata. From `2.0.5` onward, the changelog is generated by Changesets.
78
+
79
+ ## Pull requests
80
+
81
+ - Keep PRs focused — one logical change per PR.
82
+ - Run `pnpm lint` and `pnpm test` before pushing.
83
+ - Include a changeset (see above) unless your change does not affect published output.
@@ -0,0 +1,12 @@
1
+ const require_toPropertyKey = require("./toPropertyKey.cjs");
2
+ //#region \0@oxc-project+runtime@0.143.0/helpers/esm/defineProperty.js
3
+ function _defineProperty(e, r, t) {
4
+ return (r = require_toPropertyKey.default(r)) in e ? Object.defineProperty(e, r, {
5
+ value: t,
6
+ enumerable: !0,
7
+ configurable: !0,
8
+ writable: !0
9
+ }) : e[r] = t, e;
10
+ }
11
+ //#endregion
12
+ exports.default = _defineProperty;
@@ -1,5 +1,5 @@
1
- import { toPropertyKey } from "./toPropertyKey.mjs";
2
- //#region \0@oxc-project+runtime@0.122.0/helpers/defineProperty.js
1
+ import toPropertyKey from "./toPropertyKey.mjs";
2
+ //#region \0@oxc-project+runtime@0.143.0/helpers/esm/defineProperty.js
3
3
  function _defineProperty(e, r, t) {
4
4
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
5
5
  value: t,
@@ -9,4 +9,4 @@ function _defineProperty(e, r, t) {
9
9
  }) : e[r] = t, e;
10
10
  }
11
11
  //#endregion
12
- export { _defineProperty };
12
+ export { _defineProperty as default };
@@ -1,14 +1,14 @@
1
1
  const require_typeof = require("./typeof.cjs");
2
- //#region \0@oxc-project+runtime@0.122.0/helpers/toPrimitive.js
2
+ //#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPrimitive.js
3
3
  function toPrimitive(t, r) {
4
- if ("object" != require_typeof._typeof(t) || !t) return t;
4
+ if ("object" != require_typeof.default(t) || !t) return t;
5
5
  var e = t[Symbol.toPrimitive];
6
6
  if (void 0 !== e) {
7
7
  var i = e.call(t, r || "default");
8
- if ("object" != require_typeof._typeof(i)) return i;
8
+ if ("object" != require_typeof.default(i)) return i;
9
9
  throw new TypeError("@@toPrimitive must return a primitive value.");
10
10
  }
11
11
  return ("string" === r ? String : Number)(t);
12
12
  }
13
13
  //#endregion
14
- exports.toPrimitive = toPrimitive;
14
+ exports.default = toPrimitive;
@@ -1,5 +1,5 @@
1
- import { _typeof } from "./typeof.mjs";
2
- //#region \0@oxc-project+runtime@0.122.0/helpers/toPrimitive.js
1
+ import _typeof from "./typeof.mjs";
2
+ //#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPrimitive.js
3
3
  function toPrimitive(t, r) {
4
4
  if ("object" != _typeof(t) || !t) return t;
5
5
  var e = t[Symbol.toPrimitive];
@@ -11,4 +11,4 @@ function toPrimitive(t, r) {
11
11
  return ("string" === r ? String : Number)(t);
12
12
  }
13
13
  //#endregion
14
- export { toPrimitive };
14
+ export { toPrimitive as default };
@@ -0,0 +1,9 @@
1
+ const require_typeof = require("./typeof.cjs");
2
+ const require_toPrimitive = require("./toPrimitive.cjs");
3
+ //#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPropertyKey.js
4
+ function toPropertyKey(t) {
5
+ var i = require_toPrimitive.default(t, "string");
6
+ return "symbol" == require_typeof.default(i) ? i : i + "";
7
+ }
8
+ //#endregion
9
+ exports.default = toPropertyKey;
@@ -0,0 +1,9 @@
1
+ import _typeof from "./typeof.mjs";
2
+ import toPrimitive from "./toPrimitive.mjs";
3
+ //#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPropertyKey.js
4
+ function toPropertyKey(t) {
5
+ var i = toPrimitive(t, "string");
6
+ return "symbol" == _typeof(i) ? i : i + "";
7
+ }
8
+ //#endregion
9
+ export { toPropertyKey as default };
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.122.0/helpers/typeof.js
1
+ //#region \0@oxc-project+runtime@0.143.0/helpers/esm/typeof.js
2
2
  function _typeof(o) {
3
3
  "@babel/helpers - typeof";
4
4
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -8,7 +8,7 @@ function _typeof(o) {
8
8
  }, _typeof(o);
9
9
  }
10
10
  //#endregion
11
- Object.defineProperty(exports, "_typeof", {
11
+ Object.defineProperty(exports, "default", {
12
12
  enumerable: true,
13
13
  get: function() {
14
14
  return _typeof;
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.122.0/helpers/typeof.js
1
+ //#region \0@oxc-project+runtime@0.143.0/helpers/esm/typeof.js
2
2
  function _typeof(o) {
3
3
  "@babel/helpers - typeof";
4
4
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -8,4 +8,4 @@ function _typeof(o) {
8
8
  }, _typeof(o);
9
9
  }
10
10
  //#endregion
11
- export { _typeof };
11
+ export { _typeof as default };
@@ -15,7 +15,7 @@ var __copyProps = (to, from, except, desc) => {
15
15
  }
16
16
  return to;
17
17
  };
18
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
19
19
  value: mod,
20
20
  enumerable: true
21
21
  }) : target, mod));