Take bound()'s bind type as a string, name the fix in its refusals, and show the ESME's spelling
Mirror / push (push) Has been cancelled
Test / test (18) (pull_request) Successful in 31s
Test / test (22) (pull_request) Successful in 32s
Test / lint (pull_request) Successful in 23s
Test / test (20) (pull_request) Successful in 31s
Test / test (24) (pull_request) Successful in 31s
Test / test (26) (pull_request) Successful in 32s

This commit is contained in:
2026-09-28 04:07:44 +02:00
parent 9eebd42887
commit 4bdb1e64b0
5 changed files with 20 additions and 11 deletions
+2 -1
View File
@@ -77,7 +77,8 @@
- `session.boundAs` and `session.peerInterfaceVersion` are read-only, and `session.loggedIn` is
removed: read `session.boundAs !== undefined`. A session you wire yourself records the bind it
accepted or had accepted with `session.bound(bindType, declaredVersion)`, which returns `err` for a
bind type or version it cannot record; an assignment to either field now throws a `TypeError`.
bind type or version it cannot record. An assignment to either field does not compile in
TypeScript, and throws a `TypeError` in strict-mode JavaScript, which every module is.
## 0.5.0