Repository navigation
v0.31.0
Install
npm install -g neotoma@0.31.0| npm | https://www.npmjs.com/package/neotoma/v/0.31.0 |
| Compare | v0.30.0 → v0.31.0 — view diff |
Neotoma v0.31.0 makes neotoma mirror rebuild --clean delete only files the mirror generated (#2939), and adds regression tests that pin guest-link confinement on the subscription and event-stream routes under every access policy (#2937).
What changed for npm package users
neotoma mirror rebuild --cleanremoves a file only when all of these hold: the output root's ownership manifest (.neotoma-mirror-manifest.json) lists it, it is a Markdown output file with no dot-prefixed path segment, it is inside the requested scope, no scope of this rebuild generated it, its content still matches the hash the manifest recorded, and no part of its path is a symbolic link. It removes only folders the mirror created and that are left empty. Before,--cleandeleted every Markdown file under the output path that the run did not write, including files it never created, recursed into subfolders, removed folders it emptied and walked a symlinked root (#2939).- A generated file that was edited since the mirror wrote it is kept and listed in the report.
- A symlinked output root refuses
--clean, and the report says why. - With no manifest, or an invalid or unreadable one,
--cleandeletes nothing from that output root and the report says so. Manifests are written only in output roots the run writes to, removes from or cleans, and a manifest that cannot be read or saved is reported without failing the write, removal or rebuild. - The rebuild report lists the Markdown files under a cleaned folder that were left in place because the manifest does not record them, with one line: delete outdated ones by hand before running
mirror push. - Writing is unchanged. Rebuilds and incremental writes still overwrite a same-name file as before, and incremental removals behave as before. The mirror now also records each file it writes, with its content hash, and each folder it creates, in the manifest of that output root.
--cleanon a profile output folder works within that folder's manifest.
Security hardening
- Guest-link confinement on the subscription and event-stream routes is now pinned by a per-policy test matrix (closed, read_only, submit_only, submitter_scoped, open): a token for page A gets 403 for page B's subscription on every route and still manages page A's own subscription (#2937, refs #2456). This is test-only, with no runtime change.
- Security review:
security_review.md. The diff classifier reportssensitive=false,security:linthas 0 errors, the protected-routes manifest is in sync, and the auth topology matrix passes (18 passed, 1 skipped).
Tests and validation
- Six test files, 174 tests, pass: the mirror manifest unit, scope and spelling tests, the rebuild auth test, the
--cleanend-to-end test, and the guest-token entity binding test. - Type check passes and the automated test catalog is up to date.
npm run openapi:bc-diffreports no breaking changes. The only breaking change is the CLI behavior below.
Breaking changes
mirror rebuild --cleanremoves less than before.- Who: anyone who runs
neotoma mirror rebuild --cleanon a mirror or a profile output folder. - Before:
--cleandeleted any Markdown file the run did not write. - After:
--cleandeletes only files the manifest records. The first--cleanafter upgrading removes nothing and writes the manifest. Files written before the upgrade are not recorded, so they are never removed automatically, even when outdated. - Migration: read the list of files left in place in the rebuild report. Delete the outdated ones by hand, one file at a time. Never delete the whole folder, because it can hold your own files. Do this before using
mirror push. If the mirror folder is in git, commit.neotoma-mirror-manifest.jsonwith the mirror files; if you ignore it instead, a fresh checkout has no manifest and its first--cleanremoves nothing.
- Who: anyone who runs
Commits (v0.30.0 → v0.31.0)
1c1fe52Merge pull request #2943 from markmhendrickson/release/v0.31.0b4763cdchore(release): bump version to v0.31.0 + supplement01816c7Mirror rebuild --clean deletes only files the mirror generated (#2941)4ad395ePin guest link confinement on subscription and event routes under every access policy (#2937)
Full compare: v0.30.0...v0.31.0