EmDash 1.6.0 was published to npm on November 22, 2026. The most serious fix in it concerns how the media library counts usage: a file linked in content through its /_emdash/api/media/file/ address was not counted as used. A PDF in that situation showed no references at all and could be deleted as if it were left over.
The usage-count bug
The problem was reported in issue #4961 and fixed in PR #4968, merged on November 20. In the PR discussion, a reviewer notes that the person who opened the issue deleted about 280 linked files while the dashboard showed "No tracked references found" for them.
Version 1.6.0 counts these links, but only from the moment an entry is saved. Existing posts and pages keep the old count until someone runs the repair. Until then, the dashboard can report the check as complete while still leaving those links out.
Who needs to act
Any EmDash site that links library files in body text by the file's address, as happens with PDFs and other attachments. The risk falls on teams that use the list of unused media to clean up storage, because a file deleted there is gone for every link that pointed to it.
After upgrading, run one of these before any cleanup:
npx emdash media repair-usage --all;- the
media_usage_repairtool on the site's MCP server; - a
POST /_emdash/api/admin/media-usage/repairrequest.
The alternative the release accepts is saving each affected entry again, which only works on sites with little content. If someone already deleted media based on that list in earlier versions, check the published content for broken links.
External-provider roles and 404 caching
Two other changes in the same release need attention during the upgrade.
Sites that hand sign-in to an external provider, such as Cloudflare Access, could receive a role level from the provider that EmDash does not define. That value was written to the user record, and from then on the user could no longer sign in, even after the provider mapping was fixed. PR #4935 stops invalid values from being written. Anyone who already has a record in that state needs to fix the mapping and set the role column of the users table to a valid level (10, 20, 30, 40 or 50).
PR #4992 changes caching for 404 pages caused by missing content. On routes that already use Astro route caching, that 404 can stay cached for up to 60 seconds. In practice, a post published right after someone visited its address can keep answering 404 for a minute when the purge tag does not match. If you prefer not to store these responses, call Astro.cache.set(false) on the 404 page.
What is still unknown
The release does not say which version introduced the usage-count bug, so the documentation alone does not tell you what time range an audit of deleted files should cover. PR #4992 also notes that the 404 caching behavior was verified locally, not at the Cloudflare edge in production.
If your company is weighing something similar or needs support on this topic, reach me on LinkedIn or WhatsApp.