@estiva-app/protocol 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 +31 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,37 @@ Every entry answers the wire question explicitly, including when the answer is
|
|
|
4
4
|
nothing (ADR 0002 §4b). A change to the bytes an app publishes is a MAJOR — in
|
|
5
5
|
`0.x`, a MINOR — even when no TypeScript signature moved.
|
|
6
6
|
|
|
7
|
+
## 0.1.1 — 2026-08-27
|
|
8
|
+
|
|
9
|
+
**Wire behaviour: unchanged.** Nothing in `src/` changed except the version
|
|
10
|
+
constant. The `dist/` a consumer receives is byte-identical to 0.1.0's apart from
|
|
11
|
+
that string, and no builder, tag layout, id computation or signature input moved.
|
|
12
|
+
|
|
13
|
+
**This release exists to exercise the release path, and that is the honest
|
|
14
|
+
description of it.** ADR 0002 §4c decided that releases publish through trusted
|
|
15
|
+
publishing (OIDC) with no npm credential in GitHub. 0.1.0 could not test that: a
|
|
16
|
+
package's first publish is necessarily manual, because a trusted publisher is
|
|
17
|
+
configured on a package that already exists. So until this tag, §4c was a
|
|
18
|
+
decision nobody had executed, and the trusted publisher was configured and
|
|
19
|
+
unexercised — the state in which a misconfiguration is cheapest to find and most
|
|
20
|
+
likely to be discovered at the worst moment instead.
|
|
21
|
+
|
|
22
|
+
What it carries, for completeness rather than as a reason to upgrade:
|
|
23
|
+
|
|
24
|
+
- **`npm run typecheck` worked in CI and failed on a fresh clone.** It was
|
|
25
|
+
`tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json`; the second pass
|
|
26
|
+
typechecks `test/**/*.ts`, which import `../dist/index.js` on purpose because
|
|
27
|
+
dist is what ships, so TypeScript resolves them to `dist/index.d.ts` — which
|
|
28
|
+
does not exist until something builds. CI runs `build` first, so it was green.
|
|
29
|
+
A fresh clone got eleven `TS2307`s that read as a broken package. Now
|
|
30
|
+
`npm run build && tsc -p tsconfig.test.json`, which is one `tsc` invocation
|
|
31
|
+
fewer, since the build already typechecks `src`.
|
|
32
|
+
|
|
33
|
+
**A consumer on `^0.1.0` needs to do nothing.** The range already admits this
|
|
34
|
+
version, neither changed file ships in the tarball's functional surface
|
|
35
|
+
(`tsconfig.test.json` is not in `files`, and `scripts` do not run for a
|
|
36
|
+
consumer), and the only observable difference is `PROTOCOL_VERSION`.
|
|
37
|
+
|
|
7
38
|
## 0.1.0 — 2026-08-27
|
|
8
39
|
|
|
9
40
|
First release. SHA-3.
|
package/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
/** Bumped by hand with the version in package.json — `test/version.test.ts`
|
|
47
47
|
* pins the two together. It exists so "the upgrade reached the app" can be
|
|
48
48
|
* checked by grepping a built bundle rather than by trusting a lockfile. */
|
|
49
|
-
export declare const PROTOCOL_VERSION = "0.1.
|
|
49
|
+
export declare const PROTOCOL_VERSION = "0.1.1";
|
|
50
50
|
export { type NostrTag, type UnsignedEvent, type SignedEvent, type Profile, type ThreadRef, type ChannelVisibility, type ChannelKind, type MemberRole, type Label, type ResolutionAction, KIND, MAX_EMOJI_CHARS, MAX_MESSAGE_BYTES, MAX_MENTIONS, MAX_RATIONALE_BYTES, RELAY_AUTH_TOLERANCE_SECS, ASSERTION_SUBTYPE, computeEventId, toNostrSeconds, canonicalChannelName, threadTags, addr, relayAuthUrl, buildProfile, parseProfile, buildCreateChannel, buildDeleteChannel, buildEditChannelMetadata, buildAddMember, buildReaction, buildDeletion, buildMessage, buildResolution, buildFile, buildComponent, buildHighlight, buildUnsignedRelayAuthEvent, } from './events.js';
|
|
51
51
|
export { type AddressPointer, convertBits, bech32Encode, bech32Decode, encodeNaddr, decodeNaddr, pointerToAddress, addressToPointer, addrToNaddr, naddrToAddr, referenceToPointer, NADDR_RE, findNaddrs, stripNaddrs, } from './nip19.js';
|
|
52
52
|
export { type AuthEventArgs, TIMESTAMP_TOLERANCE_SECS, normalizeUrl, buildUnsignedAuthEvent, base64, authorizationHeaderFor, authorizationHeader, } from './nip98.js';
|
package/dist/index.js
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
/** Bumped by hand with the version in package.json — `test/version.test.ts`
|
|
47
47
|
* pins the two together. It exists so "the upgrade reached the app" can be
|
|
48
48
|
* checked by grepping a built bundle rather than by trusting a lockfile. */
|
|
49
|
-
export const PROTOCOL_VERSION = '0.1.
|
|
49
|
+
export const PROTOCOL_VERSION = '0.1.1';
|
|
50
50
|
export {
|
|
51
51
|
// constants
|
|
52
52
|
KIND, MAX_EMOJI_CHARS, MAX_MESSAGE_BYTES, MAX_MENTIONS, MAX_RATIONALE_BYTES, RELAY_AUTH_TOLERANCE_SECS, ASSERTION_SUBTYPE,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@estiva-app/protocol",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "The Estiva wire format: Buzz-shaped Nostr event builders, NIP-01 ids, NIP-19 naddr, NIP-98 HTTP auth, and the relay clients. Speaks the protocol; interprets nothing.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsc -p tsconfig.json",
|
|
45
45
|
"test": "npm run build && node --test test/*.test.mjs test/*.test.ts",
|
|
46
|
-
"typecheck": "
|
|
46
|
+
"typecheck": "npm run build && tsc -p tsconfig.test.json",
|
|
47
47
|
"prepublishOnly": "npm run build",
|
|
48
48
|
"verify:live": "node scripts/verify-live.mjs"
|
|
49
49
|
},
|
package/src/index.ts
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
/** Bumped by hand with the version in package.json — `test/version.test.ts`
|
|
48
48
|
* pins the two together. It exists so "the upgrade reached the app" can be
|
|
49
49
|
* checked by grepping a built bundle rather than by trusting a lockfile. */
|
|
50
|
-
export const PROTOCOL_VERSION = '0.1.
|
|
50
|
+
export const PROTOCOL_VERSION = '0.1.1'
|
|
51
51
|
|
|
52
52
|
export {
|
|
53
53
|
// types
|