@glw907/cairn-cms 0.58.0 → 0.59.0

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 CHANGED
@@ -2,6 +2,43 @@
2
2
 
3
3
  All notable changes to this project are recorded here, most recent first.
4
4
 
5
+ ## 0.59.0
6
+
7
+ <!-- release-size: minor -->
8
+
9
+ The Media Library learns to clear out images in bulk and to collect the files nothing uses any more.
10
+ Two surfaces ship together, sharing one safety floor: a strict cross-branch usage index built fresh
11
+ per action, and a refusal that commits nothing when usage cannot be verified.
12
+
13
+ Multi-select lands in both the grid and the table. Tick the images you mean, a sticky bar shows the
14
+ count, and one Delete runs the single safe-delete gate across the whole selection. cairn deletes the
15
+ assets nothing references and skips any still in use, reporting them rather than force-deleting one.
16
+ The batch is one commit that removes the manifest rows before the R2 objects, so a bulk delete is
17
+ recoverable from git history the same way a single safe-delete is. The dialog is a plain confirm with
18
+ the count, since nothing in use can be removed this way.
19
+
20
+ Find orphaned files collects stored bytes that drifted loose from content. It pairs a storage
21
+ reconcile with a strict usage read and reports two populations. Orphaned files are stored R2 bytes
22
+ with no manifest row and no reference anywhere across `main` and every open branch; a branch-only
23
+ upload is excluded, because the branch that uploaded it still references it. Broken references are the
24
+ reverse, a manifest row whose bytes are gone, shown as a read-only data-integrity readout with no
25
+ delete. The scan fails closed at detection: a branch it cannot read produces no result and an offer
26
+ to check again, rather than a half-answer that might call an in-use file orphaned.
27
+
28
+ The byte purge is the one irreversible media action. Everything else in the Library edits git-tracked
29
+ state and can be walked back from history, but raw R2 bytes carry no git record, so a purge cannot be
30
+ undone. It gates on a typed-count confirm, and at action time it re-derives the orphan set and
31
+ re-checks the strict usage index, so a key claimed by a new manifest row or referenced on a branch
32
+ since the scan is skipped, never purged. The shipped "Unused" triage facet is renamed to "No
33
+ references found", with the raw-HTML caveat stated where an editor acts: absence of a found reference
34
+ is not proof of disuse, since cairn cannot see an image hidden in raw HTML or a URL hardcoded in a
35
+ template.
36
+
37
+ No consumer action is required. The whole surface is admin-side and additive, with no public surface
38
+ change and no content-format change. An editor walkthrough is in
39
+ [manage the media library](docs/guides/manage-the-media-library.md), and the design rationale is in
40
+ [media storage](docs/explanation/media-storage.md).
41
+
5
42
  ## 0.58.0
6
43
 
7
44
  <!-- release-size: minor -->