Skip to content

Cloudhal 0.3.12

Choose a tag to compare

@github-actions github-actions released this 22 Oct 13:03
· 118 commits to main since this release
Immutable release. Only release title and notes can be modified.
16bc60c

All @cloudhal/* packages and create-cloudhal at 0.3.12.

Changes

  • @cloudhal/core-ts/locale-paths: the locale URL helpers (localeRouting, localizedPath, localeUrl) move from the renderer into core-ts, browser-safe, with itemUrl(site, origin, item) for a page's or entry's public URL. @cloudhal/astro-renderer/locales re-exports them unchanged.
  • Studio shows changes that are not live yet: a badge beside Publish with the count ("2 changes", or "Not published" before the first publish) and a tooltip by kind ("3 changes aren't live yet · 2 articles and 1 page"). It comes from the new GET /api/sites/:siteId/pending (site:read): counts of what a publish would add, change and remove, by kind; adding or removing a page counts once. Studio refreshes it after every write to the site, on window focus and every 30 s.
  • Studio links to the live site: a "View site" button in the top bar (also in the site switcher and the ⌘K palette), "Live at" and "Last published" on the overview, "View live" and "Copy link" on published pages and articles, and the full address under the slug and path fields ("Live at" when the live snapshot serves it, "Will be at" until then). After a site publish the toast offers "View site" and "Copy link", as do rollback and approval toasts. Marking a page or article published now says it goes live with the next site publish, with a "Publish site" action, instead of "Page published".

Upgrade

npm install @cloudhal/cli@0.3.12 @cloudhal/core-ts@0.3.12 @cloudhal/astro-renderer@0.3.12 @cloudhal/cloudflare@0.3.12
npx cloudhal deploy

Docs: https://cloudhal.dev/docs/start/installation#upgrading