Repository navigation
1.10.0
Changes you may notice
-
A
file()entry's id can't be edited. The id (or the slug, when an entry
has no id) shows greyed out with a line explaining why: other content may
refer to the entry by it. Before, the box was editable but the edit was never
saved (#72). -
Lists that are a whole entry are edited inline. An entry that is a list
of strings, numbers or a mix of them shows one box per item instead of cards
(#34). -
The Changes panel's recent commits list only commits that touch the
site's content paths. Commits that changed only other files, such as
package.jsonor a sibling folder, are no longer listed (#68). -
Publishing tells you when it can't confirm the change is live. If the
live page hasn't changed after five minutes, an amber message says the
changes were sent but couldn't be confirmed live yet. Before, it showed a
green tick (#54). -
A site can label any field. A zod 4
.meta({ label, placeholder })
sets the field's label and hint, and this now works for every kind of field:
checkboxes, objects, lists, galleries, blocks, image pickers and references.
A site's label beats AstroAdmin's own guess. See "Labels and placeholders"
in docs/content-collections.md (#81). -
A blank colour looks blank. An empty colour field shows an empty swatch
instead of white, and its hint is a hex example. The × to clear it appears
as soon as a colour is picked (#81).
Bug fixes
- Editing an item in a top-level list of strings or numbers no longer saves
"foo"as{"0":"f","1":"o","2":"o"}(#34). - Escape closes only the topmost window. Pressing Escape in the image library
used to close the gallery or item editor behind it too, losing its unsaved
edits (#35). - For a site in a subfolder of its repository, git responses no longer name
files outside the site. This covers status, renames, diffs, pull results and
the commit log (#68). - A markdown entry with no body no longer gains a blank line after
---when
saved (#71). file()collections:- an entry with a numeric id is found, and its id stays a number; before, a
save added a duplicate entry; - an entry keyed by
slugstays keyed by it, and saving no longer adds an
idto it.
- an entry with a numeric id is found, and its id stays a number; before, a
- Problems on an item of a top-level list now mark that item in the editor.
- A rename shows in the Changes panel and counts towards Commit.
- The git log and file-history
limitis clamped to 1–100. - CmsImage serves the files it doesn't optimise (SVG, GIF, external URLs,
dev originals) under the site'sbase(#78). - CmsImage and CmsVideo find
public/from the site's root, not the
directory the command ran in, soastro dev --root ./siteworks (#79). - A library video opened in its own tab plays; press Play to start it.
Uploaded SVGs still run no script (#80). - Pressing Enter quickly in the commit dialog no longer throws an error.
package.json: added the bin path and repository URL fixes thatnpm pkg fixsuggests, sonpm publishno longer warns (#39).
Tests
npm run test:unit(bun tests/run-unit.js) runs the fast server-less
suite file by file and prints a summary. The shelved SQLite store's tests
are innpm run test:db.- New tests: modal-escape, primitive-top-level-array, git-subdir-routes,
git-log-limit, file-entry-id, file-entry-keys, schema-markers,
changes-panel-renames, publish-live-status and colour-field. The cms-image, cms-video and
image-serving tests have new cases.