lnurlcash-kit 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.js +8 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
Semantic versioning. While the LUD-25 draft is unmerged, `0.x` minor bumps
|
|
4
4
|
may carry breaking changes; pin an exact version.
|
|
5
5
|
|
|
6
|
+
## 0.1.1 - 2026-08-20
|
|
7
|
+
|
|
8
|
+
- `fetchMintAddress` now populates `nodeCapacityMsat`. The wire field is
|
|
9
|
+
`nodeCapacity`, and the response was spread through unmapped, so the typed
|
|
10
|
+
field was always `undefined` - inherited from lnurl-wallet, where the same
|
|
11
|
+
bug hides the mint's channel capacity in the UI. `nodeNumChannels` and
|
|
12
|
+
`nodeNumPeers` were never affected: those names match the wire.
|
|
13
|
+
- The conformance vectors now come from the published
|
|
14
|
+
`lnurlcash-conformance` package rather than a git ref, so the suite runs
|
|
15
|
+
against a released, attested set of vectors. Test-only; nothing consumers
|
|
16
|
+
install changes.
|
|
17
|
+
|
|
6
18
|
## 0.1.0 - 2026-08-20
|
|
7
19
|
|
|
8
20
|
First release. The protocol layer of
|
package/dist/index.js
CHANGED
|
@@ -494,8 +494,14 @@ var fetchMintAddress = async (url, options = {}) => {
|
|
|
494
494
|
if (body?.tag !== "withdrawRequest" || typeof body.callback !== "string" || typeof body.payLink !== "string" || typeof body.maxWithdrawable !== "number") {
|
|
495
495
|
throw new ProtocolError("Not a mint address response (unexpected shape).");
|
|
496
496
|
}
|
|
497
|
-
const { mintPubkey, ...rest } = body;
|
|
498
|
-
return {
|
|
497
|
+
const { mintPubkey, nodeCapacity, ...rest } = body;
|
|
498
|
+
return {
|
|
499
|
+
...rest,
|
|
500
|
+
nodePubkey: mintPubkey,
|
|
501
|
+
// Renamed fields have to be mapped, not spread: the spread carries the
|
|
502
|
+
// wire name through, so the typed one would read undefined forever.
|
|
503
|
+
nodeCapacityMsat: typeof nodeCapacity === "number" ? nodeCapacity : void 0
|
|
504
|
+
};
|
|
499
505
|
};
|
|
500
506
|
var callbackRequest = async (callback, params, options) => {
|
|
501
507
|
const opts = resolveOptions(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lnurlcash-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "LNURLcash (LUD-25) bearer note client for TypeScript - mint, rotate, split, merge, melt, and verify offline",
|
|
5
5
|
"author": "TheCryptoDonkey",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/node": "^26.2.0",
|
|
63
|
-
"lnurlcash-conformance": "
|
|
63
|
+
"lnurlcash-conformance": "^0.1.0",
|
|
64
64
|
"tsup": "^8.5.0",
|
|
65
65
|
"typescript": "^5.7.0",
|
|
66
66
|
"vitest": "^3.0.0"
|