@gnolang/tm2-js-client 2.0.4 → 2.0.5
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 +424 -0
- package/CONTRIBUTING.md +83 -0
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/defineProperty.cjs +12 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/defineProperty.mjs +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/toPrimitive.cjs +4 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/toPrimitive.mjs +3 -3
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.cjs +9 -0
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/typeof.cjs +2 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/typeof.mjs +2 -2
- package/dist/_virtual/_rolldown/runtime.cjs +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.mts +5 -0
- package/dist/proto/google/protobuf/any.cjs +3 -4
- package/dist/proto/google/protobuf/any.cjs.map +1 -1
- package/dist/proto/google/protobuf/any.d.cts +3 -4
- package/dist/proto/google/protobuf/any.d.cts.map +1 -1
- package/dist/proto/google/protobuf/any.d.mts +3 -4
- package/dist/proto/google/protobuf/any.d.mts.map +1 -1
- package/dist/proto/google/protobuf/any.mjs +3 -3
- package/dist/proto/google/protobuf/any.mjs.map +1 -1
- package/dist/proto/index.cjs +15 -4
- package/dist/proto/index.d.cts +2 -1
- package/dist/proto/index.d.mts +2 -1
- package/dist/proto/index.mjs +5 -5
- package/dist/proto/tm2/abci.cjs +3 -4
- package/dist/proto/tm2/abci.cjs.map +1 -1
- package/dist/proto/tm2/abci.d.cts +3 -4
- package/dist/proto/tm2/abci.d.cts.map +1 -1
- package/dist/proto/tm2/abci.d.mts +3 -4
- package/dist/proto/tm2/abci.d.mts.map +1 -1
- package/dist/proto/tm2/abci.mjs +3 -3
- package/dist/proto/tm2/abci.mjs.map +1 -1
- package/dist/proto/tm2/multisig.cjs +3 -4
- package/dist/proto/tm2/multisig.cjs.map +1 -1
- package/dist/proto/tm2/multisig.d.cts +3 -4
- package/dist/proto/tm2/multisig.d.cts.map +1 -1
- package/dist/proto/tm2/multisig.d.mts +3 -4
- package/dist/proto/tm2/multisig.d.mts.map +1 -1
- package/dist/proto/tm2/multisig.mjs +3 -3
- package/dist/proto/tm2/multisig.mjs.map +1 -1
- package/dist/proto/tm2/tx.cjs +6 -7
- package/dist/proto/tm2/tx.cjs.map +1 -1
- package/dist/proto/tm2/tx.d.cts +2 -3
- package/dist/proto/tm2/tx.d.cts.map +1 -1
- package/dist/proto/tm2/tx.d.mts +2 -3
- package/dist/proto/tm2/tx.d.mts.map +1 -1
- package/dist/proto/tm2/tx.mjs +6 -6
- package/dist/proto/tm2/tx.mjs.map +1 -1
- package/dist/provider/endpoints.cjs.map +1 -1
- package/dist/provider/endpoints.d.cts.map +1 -1
- package/dist/provider/endpoints.d.mts.map +1 -1
- package/dist/provider/endpoints.mjs.map +1 -1
- package/dist/provider/errors/errors.cjs +2 -2
- package/dist/provider/errors/errors.cjs.map +1 -1
- package/dist/provider/errors/errors.d.cts.map +1 -1
- package/dist/provider/errors/errors.d.mts.map +1 -1
- package/dist/provider/errors/errors.mjs +1 -1
- package/dist/provider/errors/errors.mjs.map +1 -1
- package/dist/provider/errors/index.cjs +20 -1
- package/dist/provider/errors/index.d.cts +2 -1
- package/dist/provider/errors/index.d.mts +2 -1
- package/dist/provider/errors/index.mjs +2 -2
- package/dist/provider/index.cjs +61 -9
- package/dist/provider/index.d.cts +7 -1
- package/dist/provider/index.d.mts +7 -1
- package/dist/provider/index.mjs +10 -10
- package/dist/provider/jsonrpc/index.cjs +2 -1
- package/dist/provider/jsonrpc/index.d.cts +2 -1
- package/dist/provider/jsonrpc/index.d.mts +2 -1
- package/dist/provider/jsonrpc/index.mjs +2 -2
- package/dist/provider/jsonrpc/jsonrpc.cjs +2 -2
- package/dist/provider/jsonrpc/jsonrpc.cjs.map +1 -1
- package/dist/provider/jsonrpc/jsonrpc.d.cts +0 -1
- package/dist/provider/jsonrpc/jsonrpc.d.cts.map +1 -1
- package/dist/provider/jsonrpc/jsonrpc.d.mts +0 -1
- package/dist/provider/jsonrpc/jsonrpc.d.mts.map +1 -1
- package/dist/provider/jsonrpc/jsonrpc.mjs +2 -1
- package/dist/provider/jsonrpc/jsonrpc.mjs.map +1 -1
- package/dist/provider/provider.cjs +8 -9
- package/dist/provider/provider.cjs.map +1 -1
- package/dist/provider/provider.d.cts +2 -1
- package/dist/provider/provider.d.cts.map +1 -1
- package/dist/provider/provider.d.mts +2 -1
- package/dist/provider/provider.d.mts.map +1 -1
- package/dist/provider/provider.mjs +43 -26
- package/dist/provider/provider.mjs.map +1 -1
- package/dist/provider/types/abci.d.cts.map +1 -1
- package/dist/provider/types/abci.d.mts.map +1 -1
- package/dist/provider/types/common.d.cts +1 -2
- package/dist/provider/types/common.d.cts.map +1 -1
- package/dist/provider/types/common.d.mts +1 -2
- package/dist/provider/types/common.d.mts.map +1 -1
- package/dist/provider/types/index.cjs +2 -1
- package/dist/provider/types/index.d.cts +2 -1
- package/dist/provider/types/index.d.mts +2 -1
- package/dist/provider/types/index.mjs +2 -2
- package/dist/provider/types/jsonrpc.d.cts.map +1 -1
- package/dist/provider/types/jsonrpc.d.mts.map +1 -1
- package/dist/provider/utility/adapters.cjs +1 -1
- package/dist/provider/utility/adapters.cjs.map +1 -1
- package/dist/provider/utility/adapters.d.cts +1 -1
- package/dist/provider/utility/adapters.d.cts.map +1 -1
- package/dist/provider/utility/adapters.d.mts +1 -1
- package/dist/provider/utility/adapters.d.mts.map +1 -1
- package/dist/provider/utility/adapters.mjs +1 -1
- package/dist/provider/utility/adapters.mjs.map +1 -1
- package/dist/provider/utility/errors.utility.cjs.map +1 -1
- package/dist/provider/utility/errors.utility.mjs.map +1 -1
- package/dist/provider/utility/index.cjs +27 -3
- package/dist/provider/utility/index.d.cts +2 -1
- package/dist/provider/utility/index.d.mts +2 -1
- package/dist/provider/utility/index.mjs +4 -4
- package/dist/provider/utility/provider.utility.cjs +0 -1
- package/dist/provider/utility/provider.utility.cjs.map +1 -1
- package/dist/provider/utility/provider.utility.d.cts +2 -1
- package/dist/provider/utility/provider.utility.d.cts.map +1 -1
- package/dist/provider/utility/provider.utility.d.mts +2 -1
- package/dist/provider/utility/provider.utility.d.mts.map +1 -1
- package/dist/provider/utility/provider.utility.mjs +2 -1
- package/dist/provider/utility/provider.utility.mjs.map +1 -1
- package/dist/provider/utility/requests.utility.cjs +0 -1
- package/dist/provider/utility/requests.utility.cjs.map +1 -1
- package/dist/provider/utility/requests.utility.d.cts +1 -1
- package/dist/provider/utility/requests.utility.d.cts.map +1 -1
- package/dist/provider/utility/requests.utility.d.mts +1 -1
- package/dist/provider/utility/requests.utility.d.mts.map +1 -1
- package/dist/provider/utility/requests.utility.mjs.map +1 -1
- package/dist/provider/websocket/index.cjs +2 -1
- package/dist/provider/websocket/index.d.cts +2 -1
- package/dist/provider/websocket/index.d.mts +2 -1
- package/dist/provider/websocket/index.mjs +2 -2
- package/dist/provider/websocket/ws.cjs +2 -2
- package/dist/provider/websocket/ws.cjs.map +1 -1
- package/dist/provider/websocket/ws.d.cts +0 -1
- package/dist/provider/websocket/ws.d.cts.map +1 -1
- package/dist/provider/websocket/ws.d.mts +0 -1
- package/dist/provider/websocket/ws.d.mts.map +1 -1
- package/dist/provider/websocket/ws.mjs +2 -1
- package/dist/provider/websocket/ws.mjs.map +1 -1
- package/dist/services/index.cjs +2 -1
- package/dist/services/index.d.cts +2 -1
- package/dist/services/index.d.mts +2 -1
- package/dist/services/index.mjs +2 -2
- package/dist/services/rest/restService.cjs +1 -1
- package/dist/services/rest/restService.cjs.map +1 -1
- package/dist/services/rest/restService.d.cts +0 -1
- package/dist/services/rest/restService.d.cts.map +1 -1
- package/dist/services/rest/restService.d.mts +0 -1
- package/dist/services/rest/restService.d.mts.map +1 -1
- package/dist/services/rest/restService.mjs.map +1 -1
- package/dist/services/rest/restService.types.d.cts +1 -1
- package/dist/services/rest/restService.types.d.cts.map +1 -1
- package/dist/services/rest/restService.types.d.mts +1 -1
- package/dist/services/rest/restService.types.d.mts.map +1 -1
- package/dist/utility/compact-bit-array.cjs +1 -1
- package/dist/utility/compact-bit-array.cjs.map +1 -1
- package/dist/utility/compact-bit-array.d.cts +0 -1
- package/dist/utility/compact-bit-array.d.cts.map +1 -1
- package/dist/utility/compact-bit-array.d.mts +0 -1
- package/dist/utility/compact-bit-array.d.mts.map +1 -1
- package/dist/utility/compact-bit-array.mjs +1 -1
- package/dist/utility/compact-bit-array.mjs.map +1 -1
- package/dist/utility/index.cjs +3 -1
- package/dist/utility/index.d.cts +2 -1
- package/dist/utility/index.d.mts +2 -1
- package/dist/utility/index.mjs +2 -2
- package/dist/wallet/index.cjs +16 -5
- package/dist/wallet/index.d.cts +6 -1
- package/dist/wallet/index.d.mts +6 -1
- package/dist/wallet/index.mjs +6 -6
- package/dist/wallet/key/index.cjs +2 -1
- package/dist/wallet/key/index.d.cts +2 -1
- package/dist/wallet/key/index.d.mts +2 -1
- package/dist/wallet/key/index.mjs +2 -2
- package/dist/wallet/key/key.cjs +9 -10
- package/dist/wallet/key/key.cjs.map +1 -1
- package/dist/wallet/key/key.d.cts +0 -1
- package/dist/wallet/key/key.d.cts.map +1 -1
- package/dist/wallet/key/key.d.mts +0 -1
- package/dist/wallet/key/key.d.mts.map +1 -1
- package/dist/wallet/key/key.mjs +1 -1
- package/dist/wallet/key/key.mjs.map +1 -1
- package/dist/wallet/ledger/index.cjs +2 -1
- package/dist/wallet/ledger/index.d.cts +2 -1
- package/dist/wallet/ledger/index.d.mts +2 -1
- package/dist/wallet/ledger/index.mjs +2 -2
- package/dist/wallet/ledger/ledger.cjs +9 -10
- package/dist/wallet/ledger/ledger.cjs.map +1 -1
- package/dist/wallet/ledger/ledger.d.cts +0 -1
- package/dist/wallet/ledger/ledger.d.cts.map +1 -1
- package/dist/wallet/ledger/ledger.d.mts +0 -1
- package/dist/wallet/ledger/ledger.d.mts.map +1 -1
- package/dist/wallet/ledger/ledger.mjs +3 -2
- package/dist/wallet/ledger/ledger.mjs.map +1 -1
- package/dist/wallet/signer.d.cts.map +1 -1
- package/dist/wallet/signer.d.mts.map +1 -1
- package/dist/wallet/types/index.cjs +2 -1
- package/dist/wallet/types/index.d.cts +2 -1
- package/dist/wallet/types/index.d.mts +2 -1
- package/dist/wallet/types/index.mjs +2 -2
- package/dist/wallet/types/sign.d.cts.map +1 -1
- package/dist/wallet/types/sign.d.mts.map +1 -1
- package/dist/wallet/types/wallet.d.cts.map +1 -1
- package/dist/wallet/types/wallet.d.mts.map +1 -1
- package/dist/wallet/utility/index.cjs +8 -1
- package/dist/wallet/utility/index.d.cts +2 -1
- package/dist/wallet/utility/index.d.mts +2 -1
- package/dist/wallet/utility/index.mjs +2 -2
- package/dist/wallet/utility/utility.cjs +1 -1
- package/dist/wallet/utility/utility.cjs.map +1 -1
- package/dist/wallet/utility/utility.d.cts +0 -1
- package/dist/wallet/utility/utility.d.cts.map +1 -1
- package/dist/wallet/utility/utility.d.mts +0 -1
- package/dist/wallet/utility/utility.d.mts.map +1 -1
- package/dist/wallet/utility/utility.mjs.map +1 -1
- package/dist/wallet/wallet.cjs +16 -17
- package/dist/wallet/wallet.cjs.map +1 -1
- package/dist/wallet/wallet.d.cts +3 -1
- package/dist/wallet/wallet.d.cts.map +1 -1
- package/dist/wallet/wallet.d.mts +3 -1
- package/dist/wallet/wallet.d.mts.map +1 -1
- package/dist/wallet/wallet.mjs +4 -3
- package/dist/wallet/wallet.mjs.map +1 -1
- package/package.json +38 -36
- package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/defineProperty.cjs +0 -12
- package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/toPropertyKey.cjs +0 -9
- package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/toPropertyKey.mjs +0 -9
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a7473ea: Update deps, fix potential CI build issues. Ensure changeset runs properly
|
|
8
|
+
|
|
9
|
+
All notable changes to `@gnolang/tm2-js-client` are documented in this file.
|
|
10
|
+
|
|
11
|
+
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).
|
|
12
|
+
|
|
13
|
+
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.
|
|
14
|
+
|
|
15
|
+
## Compatibility with `@gnolang/gno-js-client`
|
|
16
|
+
|
|
17
|
+
`@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):
|
|
18
|
+
|
|
19
|
+
| `gno-js-client` | `tm2-js-client` floor |
|
|
20
|
+
| --------------- | ---------------------------------------------------------- |
|
|
21
|
+
| 2.0.2 | `^2.0.4` |
|
|
22
|
+
| 2.0.0 – 2.0.1 | `^2.0.2` – `^2.0.3` |
|
|
23
|
+
| 1.4.5 | `^1.3.3` |
|
|
24
|
+
| 1.4.1 – 1.4.4 | `^1.3.0` – `^1.3.3` |
|
|
25
|
+
| 1.4.0 | `^1.3.0` |
|
|
26
|
+
| 1.3.2 | `^1.2.4` |
|
|
27
|
+
| 1.3.0 – 1.3.1 | `^1.2.1` – `^1.2.2` |
|
|
28
|
+
| 1.2.0 – 1.2.3 | `^1.1.6` – `^1.2.0` |
|
|
29
|
+
| 1.1.x | `^1.1.x` (tracks closely; e.g. `gno 1.1.7` ⇒ `tm2 ^1.1.5`) |
|
|
30
|
+
| 1.0.x | `^1.0.x` (`gno 1.0.6+` ⇒ `tm2 ^1.0.6`) |
|
|
31
|
+
|
|
32
|
+
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.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## [2.0.4] – 2026-04-01
|
|
37
|
+
|
|
38
|
+
[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)
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- Proto exports were missing from the published bundle ([#260](https://github.com/gnolang/tm2-js-client/pull/260)).
|
|
43
|
+
|
|
44
|
+
## [2.0.3] – 2026-04-01
|
|
45
|
+
|
|
46
|
+
[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)
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
- 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)).
|
|
51
|
+
|
|
52
|
+
## [2.0.2] – 2026-03-31
|
|
53
|
+
|
|
54
|
+
[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)
|
|
55
|
+
|
|
56
|
+
### Changed
|
|
57
|
+
|
|
58
|
+
- Bumped `@gnolang/tm2-rpc` to `v1.0.0` ([#259](https://github.com/gnolang/tm2-js-client/pull/259)).
|
|
59
|
+
- Refactored tests; moved CBA helper methods out of the auto-generated proto files.
|
|
60
|
+
|
|
61
|
+
## [2.0.1] – 2026-03-31
|
|
62
|
+
|
|
63
|
+
commit [`dd7a3e5`](https://github.com/gnolang/tm2-js-client/commit/dd7a3e5) (off-main; published from the `chore/bump-tm2-rpc` branch before squash-merge)
|
|
64
|
+
|
|
65
|
+
### Changed
|
|
66
|
+
|
|
67
|
+
- 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.
|
|
68
|
+
|
|
69
|
+
## [2.0.0] – 2026-03-30
|
|
70
|
+
|
|
71
|
+
[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)
|
|
72
|
+
|
|
73
|
+
The 2.0 line is a major rewrite of the project's tooling and runtime expectations. See **Migration: 1.x → 2.0** below.
|
|
74
|
+
|
|
75
|
+
### ⚠️ Breaking Changes
|
|
76
|
+
|
|
77
|
+
- **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.
|
|
78
|
+
- **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.
|
|
79
|
+
- **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.
|
|
80
|
+
|
|
81
|
+
### Added
|
|
82
|
+
|
|
83
|
+
- 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.
|
|
84
|
+
|
|
85
|
+
### Changed
|
|
86
|
+
|
|
87
|
+
- Build pipeline migrated to **tsdown**.
|
|
88
|
+
- Test framework migrated from **jest** to **vitest**.
|
|
89
|
+
- Package manager switched from **yarn** to **pnpm**.
|
|
90
|
+
- Linting setup modernised; rules unified with sibling JS/TS projects.
|
|
91
|
+
- All runtime and dev dependencies updated to current majors.
|
|
92
|
+
|
|
93
|
+
### Pre-2.0 dependency bumps included
|
|
94
|
+
|
|
95
|
+
- `@types/node` 24.3.0 → 24.5.2 ([#241](https://github.com/gnolang/tm2-js-client/pull/241))
|
|
96
|
+
- `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))
|
|
97
|
+
- eslint group bumps ([#242](https://github.com/gnolang/tm2-js-client/pull/242), [#251](https://github.com/gnolang/tm2-js-client/pull/251))
|
|
98
|
+
- actions group bump ([#247](https://github.com/gnolang/tm2-js-client/pull/247))
|
|
99
|
+
- `feat: Version 2.0` ([#256](https://github.com/gnolang/tm2-js-client/pull/256))
|
|
100
|
+
|
|
101
|
+
### Migration: 1.x → 2.0
|
|
102
|
+
|
|
103
|
+
1. **Replace `Long` with `bigint`.** Search your codebase for any `Long` usage that came from this package's proto types and convert:
|
|
104
|
+
- `Long.fromNumber(x)` → `BigInt(x)`
|
|
105
|
+
- `value.toNumber()` → `Number(value)`
|
|
106
|
+
- `value.toString()` → `value.toString()` _(unchanged)_
|
|
107
|
+
- `a.add(b)` / `a.eq(b)` → `a + b` / `a === b`
|
|
108
|
+
2. **Move to a Node 24+ runtime** for both build and test. CI/build images pinned to older Node majors should be updated.
|
|
109
|
+
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).
|
|
110
|
+
4. No source changes are required for ESM vs CJS consumers — both paths are still supported via the new conditional `exports`.
|
|
111
|
+
5. No migration is required for `Provider` / `Wallet` / `Signer` public API shapes — those are preserved.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## [1.3.3] – 2025-09-08
|
|
116
|
+
|
|
117
|
+
[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)
|
|
118
|
+
|
|
119
|
+
### Added
|
|
120
|
+
|
|
121
|
+
- **Multisig support** ([#235](https://github.com/gnolang/tm2-js-client/pull/235)).
|
|
122
|
+
|
|
123
|
+
### Fixed
|
|
124
|
+
|
|
125
|
+
- `status` call now correctly forwards the `heightGte` parameter ([#232](https://github.com/gnolang/tm2-js-client/pull/232)).
|
|
126
|
+
|
|
127
|
+
### Changed
|
|
128
|
+
|
|
129
|
+
- eslint group bump ([#233](https://github.com/gnolang/tm2-js-client/pull/233)).
|
|
130
|
+
|
|
131
|
+
## [1.3.2] – 2025-09-04
|
|
132
|
+
|
|
133
|
+
commit [`45cb8d2`](https://github.com/gnolang/tm2-js-client/commit/45cb8d238991b03d7dc3fc01cc6aa461208d4a0d)
|
|
134
|
+
|
|
135
|
+
### Added
|
|
136
|
+
|
|
137
|
+
- `Provider.getAccount()` method ([#231](https://github.com/gnolang/tm2-js-client/pull/231)).
|
|
138
|
+
|
|
139
|
+
## [1.3.1] – 2025-08-27
|
|
140
|
+
|
|
141
|
+
commit [`dcc065c`](https://github.com/gnolang/tm2-js-client/commit/dcc065cbfa512f111a5d0eaccd26e2026c13fb53)
|
|
142
|
+
|
|
143
|
+
### Changed
|
|
144
|
+
|
|
145
|
+
- `actions/checkout` 4 → 5 ([#229](https://github.com/gnolang/tm2-js-client/pull/229)).
|
|
146
|
+
- `everything-else` group bump (12 packages) ([#230](https://github.com/gnolang/tm2-js-client/pull/230)).
|
|
147
|
+
|
|
148
|
+
## [1.3.0] – 2025-07-16
|
|
149
|
+
|
|
150
|
+
commit [`ff60d66`](https://github.com/gnolang/tm2-js-client/commit/ff60d662594a89068ccf1d2482ea92d718fc4b4d)
|
|
151
|
+
|
|
152
|
+
### ⚠️ Breaking Changes
|
|
153
|
+
|
|
154
|
+
- **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.
|
|
155
|
+
|
|
156
|
+
### Changed
|
|
157
|
+
|
|
158
|
+
- Regenerated proto bindings to use snake_case field names (`scripts/generate.sh` updated accordingly).
|
|
159
|
+
|
|
160
|
+
## [1.2.7] – 2025-07-16
|
|
161
|
+
|
|
162
|
+
commit [`d3f6c52`](https://github.com/gnolang/tm2-js-client/commit/d3f6c52beac3f6dbb3f141d904267ddd1009245f)
|
|
163
|
+
|
|
164
|
+
### Changed
|
|
165
|
+
|
|
166
|
+
- Regenerated proto bindings (intermediate state; superseded by 1.3.0's snake_case rename — recommend skipping straight to 1.3.0).
|
|
167
|
+
|
|
168
|
+
## [1.2.6] – 2025-07-16
|
|
169
|
+
|
|
170
|
+
commit [`bd7e0f5`](https://github.com/gnolang/tm2-js-client/commit/bd7e0f5f04d1cc65153edabd217dccc5a0c21dc1)
|
|
171
|
+
|
|
172
|
+
### Changed
|
|
173
|
+
|
|
174
|
+
- `package.json` housekeeping. No source changes.
|
|
175
|
+
|
|
176
|
+
## [1.2.5] – 2025-07-16
|
|
177
|
+
|
|
178
|
+
commit [`6edd900`](https://github.com/gnolang/tm2-js-client/commit/6edd900dbd91f80f104d208a8b44698dd62f0bd8)
|
|
179
|
+
|
|
180
|
+
### Changed
|
|
181
|
+
|
|
182
|
+
- `everything-else` group bump (16 packages) ([#200](https://github.com/gnolang/tm2-js-client/pull/200)).
|
|
183
|
+
- `everything-else` group bump (24 packages) ([#224](https://github.com/gnolang/tm2-js-client/pull/224)).
|
|
184
|
+
|
|
185
|
+
## [1.2.4] – 2025-01-16
|
|
186
|
+
|
|
187
|
+
commit [`66d3056`](https://github.com/gnolang/tm2-js-client/commit/66d30564dc218c9df7204501edc46df3088a86ef)
|
|
188
|
+
|
|
189
|
+
### Added
|
|
190
|
+
|
|
191
|
+
- `Wallet.fromSigner()` static method ([#199](https://github.com/gnolang/tm2-js-client/pull/199)).
|
|
192
|
+
|
|
193
|
+
## [1.2.3] – 2025-01-13
|
|
194
|
+
|
|
195
|
+
commit [`2d5afd2`](https://github.com/gnolang/tm2-js-client/commit/2d5afd2c6c9420ec8251e50a7497217debf331fa)
|
|
196
|
+
|
|
197
|
+
### Added
|
|
198
|
+
|
|
199
|
+
- `Provider.estimateGas()` method ([#192](https://github.com/gnolang/tm2-js-client/pull/192)).
|
|
200
|
+
|
|
201
|
+
### Changed
|
|
202
|
+
|
|
203
|
+
- `everything-else` group bump (3 packages) ([#182](https://github.com/gnolang/tm2-js-client/pull/182)).
|
|
204
|
+
|
|
205
|
+
## [1.2.2] – 2024-09-19
|
|
206
|
+
|
|
207
|
+
commit [`23a65fb`](https://github.com/gnolang/tm2-js-client/commit/23a65fb8d31fb69cf377c5d7b09519234cc66986)
|
|
208
|
+
|
|
209
|
+
### Added
|
|
210
|
+
|
|
211
|
+
- `Provider.getTransaction()` method ([#176](https://github.com/gnolang/tm2-js-client/pull/176)).
|
|
212
|
+
|
|
213
|
+
### Changed
|
|
214
|
+
|
|
215
|
+
- `everything-else` group bumps ([#171](https://github.com/gnolang/tm2-js-client/pull/171), [#179](https://github.com/gnolang/tm2-js-client/pull/179)).
|
|
216
|
+
|
|
217
|
+
## [1.2.1] – 2024-06-26
|
|
218
|
+
|
|
219
|
+
commit [`0559605`](https://github.com/gnolang/tm2-js-client/commit/0559605233f44e16ae913b579ca7b8cdf0da412b)
|
|
220
|
+
|
|
221
|
+
### Changed
|
|
222
|
+
|
|
223
|
+
- Updated `cosmjs` dependency.
|
|
224
|
+
- README updates ([#149](https://github.com/gnolang/tm2-js-client/pull/149)).
|
|
225
|
+
|
|
226
|
+
## [1.2.0] – 2024-04-29
|
|
227
|
+
|
|
228
|
+
commit [`8555258`](https://github.com/gnolang/tm2-js-client/commit/8555258)
|
|
229
|
+
|
|
230
|
+
### ⚠️ Breaking Changes
|
|
231
|
+
|
|
232
|
+
- **`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.
|
|
233
|
+
|
|
234
|
+
### Changed
|
|
235
|
+
|
|
236
|
+
- `ts-proto` 1.171.0 → 1.172.0 ([#143](https://github.com/gnolang/tm2-js-client/pull/143)).
|
|
237
|
+
|
|
238
|
+
## [1.1.7] – 2024-04-06
|
|
239
|
+
|
|
240
|
+
commit [`504c43d`](https://github.com/gnolang/tm2-js-client/commit/504c43d6885c7973514601b7116645da443d8334)
|
|
241
|
+
|
|
242
|
+
### Added
|
|
243
|
+
|
|
244
|
+
- `Signer` interface is now exported ([#130](https://github.com/gnolang/tm2-js-client/pull/130)).
|
|
245
|
+
|
|
246
|
+
### Changed
|
|
247
|
+
|
|
248
|
+
- actions group bump ([#138](https://github.com/gnolang/tm2-js-client/pull/138)).
|
|
249
|
+
- `everything-else` group bump (6 packages) ([#141](https://github.com/gnolang/tm2-js-client/pull/141)).
|
|
250
|
+
- `@types/node` 20.11.1 → 20.12.5 ([#140](https://github.com/gnolang/tm2-js-client/pull/140)).
|
|
251
|
+
|
|
252
|
+
## [1.1.6] – 2024-02-12
|
|
253
|
+
|
|
254
|
+
commit [`299b8a3`](https://github.com/gnolang/tm2-js-client/commit/299b8a3c3ac1bb581449b21206c65ad61e6b737b)
|
|
255
|
+
|
|
256
|
+
### Added
|
|
257
|
+
|
|
258
|
+
- Escape characters are now properly encoded when generating transactions ([#129](https://github.com/gnolang/tm2-js-client/pull/129)).
|
|
259
|
+
|
|
260
|
+
### Changed
|
|
261
|
+
|
|
262
|
+
- 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)).
|
|
263
|
+
|
|
264
|
+
## [1.1.5] – 2023-12-04
|
|
265
|
+
|
|
266
|
+
commit [`9f82891`](https://github.com/gnolang/tm2-js-client/commit/9f82891d74229044c40f0fc71edddd60189e36d4)
|
|
267
|
+
|
|
268
|
+
### Changed
|
|
269
|
+
|
|
270
|
+
- 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)).
|
|
271
|
+
|
|
272
|
+
## [1.1.4] – 2023-09-25
|
|
273
|
+
|
|
274
|
+
commit [`c198d1a`](https://github.com/gnolang/tm2-js-client/commit/c198d1a39690b30f4948b5829bd80536e885988b)
|
|
275
|
+
|
|
276
|
+
### Changed
|
|
277
|
+
|
|
278
|
+
- 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.
|
|
279
|
+
|
|
280
|
+
## [1.1.3] – 2023-09-24
|
|
281
|
+
|
|
282
|
+
commit [`906c995`](https://github.com/gnolang/tm2-js-client/commit/906c99543946aba23a7949773ccd01d756d9f767)
|
|
283
|
+
|
|
284
|
+
### Changed
|
|
285
|
+
|
|
286
|
+
- WebSocket provider: request IDs are now UUIDs (was numeric counter); WS connection timeout increased ([#85](https://github.com/gnolang/tm2-js-client/pull/85)).
|
|
287
|
+
|
|
288
|
+
## [1.1.2] – 2023-09-22
|
|
289
|
+
|
|
290
|
+
commit [`3a30b5f`](https://github.com/gnolang/tm2-js-client/commit/3a30b5f816ff7111aec876461b4be849ff8225aa)
|
|
291
|
+
|
|
292
|
+
### Fixed
|
|
293
|
+
|
|
294
|
+
- Correctly reference `ABCIErrorKey` ([#84](https://github.com/gnolang/tm2-js-client/pull/84)).
|
|
295
|
+
|
|
296
|
+
## [1.1.1] – 2023-09-21
|
|
297
|
+
|
|
298
|
+
commit [`579b69d`](https://github.com/gnolang/tm2-js-client/commit/579b69d09fd04a55616c4137ccf61d9216aa9f7d)
|
|
299
|
+
|
|
300
|
+
### Changed
|
|
301
|
+
|
|
302
|
+
- Previously private `Wallet` fields are now exported (allows subclassing / external utilities).
|
|
303
|
+
|
|
304
|
+
## [1.1.0] – 2023-09-13
|
|
305
|
+
|
|
306
|
+
commit [`87de815`](https://github.com/gnolang/tm2-js-client/commit/87de8156b451a4da034eefce551af58c39683d8c)
|
|
307
|
+
|
|
308
|
+
### ⚠️ Breaking Changes
|
|
309
|
+
|
|
310
|
+
- **`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).
|
|
311
|
+
|
|
312
|
+
### Changed
|
|
313
|
+
|
|
314
|
+
- 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)).
|
|
315
|
+
|
|
316
|
+
## [1.0.6] – 2023-09-06
|
|
317
|
+
|
|
318
|
+
commit [`a0ea2ab`](https://github.com/gnolang/tm2-js-client/commit/a0ea2ab353c1d2f59b068811401ab3ba89fb8d3d)
|
|
319
|
+
|
|
320
|
+
### Added
|
|
321
|
+
|
|
322
|
+
- `Wallet` API now supports custom `sendTransaction` endpoints (e.g. `/broadcast_tx_commit` vs `/broadcast_tx_sync`).
|
|
323
|
+
|
|
324
|
+
## [1.0.5] – 2023-09-06
|
|
325
|
+
|
|
326
|
+
commit [`cf2928b`](https://github.com/gnolang/tm2-js-client/commit/cf2928bb18d2cad6ffd5f983c766e6656a90bf7c)
|
|
327
|
+
|
|
328
|
+
### Added
|
|
329
|
+
|
|
330
|
+
- `sendTransaction` now surfaces broadcast errors instead of swallowing them ([#59](https://github.com/gnolang/tm2-js-client/pull/59)).
|
|
331
|
+
|
|
332
|
+
### Changed
|
|
333
|
+
|
|
334
|
+
- 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)).
|
|
335
|
+
|
|
336
|
+
## [1.0.4] – 2023-07-03
|
|
337
|
+
|
|
338
|
+
commit [`b05acbb`](https://github.com/gnolang/tm2-js-client/commit/b05acbb70a443314da43b2f26318e85d232069a0)
|
|
339
|
+
|
|
340
|
+
### Changed
|
|
341
|
+
|
|
342
|
+
- Bumped `@cosmjs/*` dependencies.
|
|
343
|
+
|
|
344
|
+
## [1.0.3] – 2023-07-03
|
|
345
|
+
|
|
346
|
+
commit [`7a41adf`](https://github.com/gnolang/tm2-js-client/commit/7a41adfd6da2257912875e8100e993f126ebf614)
|
|
347
|
+
|
|
348
|
+
### Fixed
|
|
349
|
+
|
|
350
|
+
- Account fetch ABCI query response parsing ([#44](https://github.com/gnolang/tm2-js-client/pull/44)).
|
|
351
|
+
|
|
352
|
+
### Changed
|
|
353
|
+
|
|
354
|
+
- 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)).
|
|
355
|
+
|
|
356
|
+
## [1.0.2] – 2023-06-16
|
|
357
|
+
|
|
358
|
+
commit [`e5d2918`](https://github.com/gnolang/tm2-js-client/commit/e5d2918bc4a219c80118161aa8df485f3873c3c7)
|
|
359
|
+
|
|
360
|
+
### Fixed
|
|
361
|
+
|
|
362
|
+
- ABCI query against the WebSocket provider when fetching balances ([#32](https://github.com/gnolang/tm2-js-client/pull/32)).
|
|
363
|
+
|
|
364
|
+
### Changed
|
|
365
|
+
|
|
366
|
+
- 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)).
|
|
367
|
+
|
|
368
|
+
## [1.0.1] – 2023-06-08
|
|
369
|
+
|
|
370
|
+
commit [`b12c390`](https://github.com/gnolang/tm2-js-client/commit/b12c390fe3d71e7eb87ccce16f98223b35186fcc)
|
|
371
|
+
|
|
372
|
+
### Changed
|
|
373
|
+
|
|
374
|
+
- 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)).
|
|
375
|
+
|
|
376
|
+
## [1.0.0] – 2023-05-16
|
|
377
|
+
|
|
378
|
+
commit [`40f01db`](https://github.com/gnolang/tm2-js-client/commit/40f01db) (head of `main` at the time of the `1.0.0` npm publish)
|
|
379
|
+
|
|
380
|
+
Initial public release.
|
|
381
|
+
|
|
382
|
+
### Added
|
|
383
|
+
|
|
384
|
+
- `Provider` abstraction with JSON-RPC and WebSocket implementations.
|
|
385
|
+
- `Signer` abstraction with `Key` (raw Secp256k1) and `Ledger` implementations.
|
|
386
|
+
- `Wallet` API for account-scoped interaction with TM2 chains.
|
|
387
|
+
- Core proto types for TM2 (`tx`, `abci`, `google.protobuf.Any`).
|
|
388
|
+
- Balance/account/status query methods.
|
|
389
|
+
- `Wallet.getPrivateKey()` accessor for the key signer ([#2](https://github.com/gnolang/tm2-js-client/pull/2)).
|
|
390
|
+
- Configurable address prefix on `Wallet` creation ([#3](https://github.com/gnolang/tm2-js-client/pull/3)).
|
|
391
|
+
- Balance-fetch response handling fix in initial proto wiring ([#1](https://github.com/gnolang/tm2-js-client/pull/1)).
|
|
392
|
+
|
|
393
|
+
[2.0.4]: https://github.com/gnolang/tm2-js-client/releases/tag/v2.0.4
|
|
394
|
+
[2.0.3]: https://github.com/gnolang/tm2-js-client/releases/tag/v2.0.3
|
|
395
|
+
[2.0.2]: https://github.com/gnolang/tm2-js-client/releases/tag/v2.0.2
|
|
396
|
+
[2.0.1]: https://github.com/gnolang/tm2-js-client/releases/tag/v2.0.1
|
|
397
|
+
[2.0.0]: https://github.com/gnolang/tm2-js-client/releases/tag/v2.0.0
|
|
398
|
+
[1.3.3]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.3.3
|
|
399
|
+
[1.3.2]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.3.2
|
|
400
|
+
[1.3.1]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.3.1
|
|
401
|
+
[1.3.0]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.3.0
|
|
402
|
+
[1.2.7]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.7
|
|
403
|
+
[1.2.6]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.6
|
|
404
|
+
[1.2.5]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.5
|
|
405
|
+
[1.2.4]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.4
|
|
406
|
+
[1.2.3]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.3
|
|
407
|
+
[1.2.2]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.2
|
|
408
|
+
[1.2.1]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.1
|
|
409
|
+
[1.2.0]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.2.0
|
|
410
|
+
[1.1.7]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.7
|
|
411
|
+
[1.1.6]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.6
|
|
412
|
+
[1.1.5]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.5
|
|
413
|
+
[1.1.4]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.4
|
|
414
|
+
[1.1.3]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.3
|
|
415
|
+
[1.1.2]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.2
|
|
416
|
+
[1.1.1]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.1
|
|
417
|
+
[1.1.0]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.1.0
|
|
418
|
+
[1.0.6]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.6
|
|
419
|
+
[1.0.5]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.5
|
|
420
|
+
[1.0.4]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.4
|
|
421
|
+
[1.0.3]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.3
|
|
422
|
+
[1.0.2]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.2
|
|
423
|
+
[1.0.1]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.1
|
|
424
|
+
[1.0.0]: https://github.com/gnolang/tm2-js-client/releases/tag/v1.0.0
|
package/CONTRIBUTING.md
ADDED
|
@@ -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
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
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.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPrimitive.js
|
|
3
3
|
function toPrimitive(t, r) {
|
|
4
|
-
if ("object" != require_typeof.
|
|
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.
|
|
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.
|
|
14
|
+
exports.default = toPrimitive;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
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.
|
|
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, "
|
|
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.
|
|
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));
|