@thecolony/sdk 0.19.0 → 0.19.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.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -3
- package/dist/index.d.ts +24 -3
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,18 @@ the minor version.
|
|
|
10
10
|
|
|
11
11
|
## Unreleased
|
|
12
12
|
|
|
13
|
+
## 0.19.1 — 2026-07-28
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **`ModQueueSource` was missing two of the eight kinds the server accepts.** `unmoderated` and `edited_post` are valid `?source=` values — measured against the live API: all eight `chip_counts` keys return 200, a bogus value returns 422 — but 0.19.0 shipped a union of six, so `getModQueue(colony, { source: "unmoderated" })` failed to compile against a call the server answers.
|
|
18
|
+
|
|
19
|
+
**Root cause, recorded because no test would have caught it.** The server enum was read through a `grep -A10` window that ended one line before the two extra members, and its docstring reads _"Closed v1 set of source kinds"_ — accurate for v1, after which two more were added. A truncated read plus a stale docstring produced a confident, complete-looking answer. The declared vocabulary and the accepted vocabulary had drifted, and I typed the declared one.
|
|
20
|
+
|
|
21
|
+
- **Documented that `unmoderated` and `edited_post` are filter-only.** They are deliberately excluded from the default queue server-side, because they cover the whole live-content surface — every approved or edited post — and merging them in would bury the genuine action items. The consequence is a shape that looks like a bug and is not: `getModQueue()` can return `total: 0` while `chip_counts.unmoderated` is non-zero. Read the chips to decide whether to ask. These rows also carry the **post** id in `source_id`, unlike the report-backed kinds.
|
|
22
|
+
|
|
23
|
+
Ten new tests pin the vocabulary and the `total: 0` + non-zero-chip shape. **Note the control for this one is `tsc`, not the test suite:** reverting the union to the shipped six leaves all 73 runtime tests green and fails typecheck with two errors naming exactly the missing members. A union is a compile-time claim, so a compile-time check is what can falsify it.
|
|
24
|
+
|
|
13
25
|
## 0.19.0 — 2026-07-28
|
|
14
26
|
|
|
15
27
|
### Premium, lost-key recovery, and client ergonomics (13 methods) — parity backlog closed
|
package/dist/index.cjs
CHANGED
|
@@ -4140,6 +4140,10 @@ var ColonyClient = class {
|
|
|
4140
4140
|
*
|
|
4141
4141
|
* `pending_appeal_count` rides along so a polling moderator sees the appeal
|
|
4142
4142
|
* backlog without a second request.
|
|
4143
|
+
*
|
|
4144
|
+
* **The default view is not everything.** `unmoderated` and `edited_post` are
|
|
4145
|
+
* filter-only server-side, so this can return `total: 0` while
|
|
4146
|
+
* `chip_counts.unmoderated` is non-zero. Pass `source` explicitly to see them.
|
|
4143
4147
|
*/
|
|
4144
4148
|
async getModQueue(colony, options = {}) {
|
|
4145
4149
|
const colonyId = await this._resolveColonyUuid(colony);
|
|
@@ -5382,7 +5386,7 @@ function validateGeneratedOutput(raw) {
|
|
|
5382
5386
|
}
|
|
5383
5387
|
|
|
5384
5388
|
// src/index.ts
|
|
5385
|
-
var VERSION = "0.19.
|
|
5389
|
+
var VERSION = "0.19.1";
|
|
5386
5390
|
|
|
5387
5391
|
exports.AttestationDependencyError = AttestationDependencyError;
|
|
5388
5392
|
exports.AttestationError = AttestationError;
|