Apostrophe 4.10.0: Small Fixes, Big Impact - REST API Enhancements, Vite tweaks, and Import-Export Updates #4812
BoDonkey
announced in
Release Notes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Howdy from Apostrophe Central!
This release cycle was brief, thanks to the upcoming holidays in the United States, but it's packed with impactful refinements and useful improvements to enhance your ApostropheCMS experience. Read on for the details.

Widget rendering options for the REST API
Headless CMS users rejoice! You now have more options for accessing the rendered HTML of areas in REST API responses. Choose between query parameters for fetching the HTML of entire areas or individual widgets. Bonus: the rich text widget now provides full URLs (rather than just internal IDs) for links and inline images during RESTful rendering.
Tweaks to the Apostrophe build
Our beta Vite build tool is shaping up to make ApostropheCMS development faster and more efficient. We’ve added more options to streamline workflows, especially around hot module replacement. Stay tuned in the coming weeks for guidance on taking full advantage of these features. Our stable release is planned for December 18. In the meantime, explore how to migrate your project to ESM and unlock new possibilities and share your experiences in Discord.
Import-Export extension improvements
The Import-Export extension just got better! You can now choose to import all documents as drafts—even if they were published in the original site. This provides more control and flexibility when moving content between projects.
We’ve got one more release planned before the year ends, so stay tuned. In the meantime, remember: a simple
npm updatekeeps your project up-to-date with all the latest and greatest from ApostropheCMS!Apostrophe 4.10.0
Fixes
widges/module.js) and dot-folders (e.g..DS_Store).express-bearer-tokendependency to address a low-severitynpm auditwarning regarding noncompliant cookie names and values. Apostrophedid not actually use any noncompliant cookie names or values, so there was no vulnerability in Apostrophe.
renderPermalinksandrenderImagesmethods of the@apostrophecms/rich-textmodule now correctly resolve the final URLs of page links and inline images in rich text widgets, even when the user has editing privileges. Formerly this was mistakenly prevented by logic intended to preserve the editing experience. The editing experience never actually relied on therendered output.
Adds
template.appendandtemplate.prepend. Usewhen: 'hmr:public'orwhen: 'hmr:apos'that will be evaluated against the current assetoptions.hmrconfiguration.options.modulePreloadPolyfill(defaulttrue) to allow disabling the polyfill preload for e.g. external front-ends.bundleMarkupto the data sent to the external front-end, containing all markup for injecting Apostrophe UI in the front-end.GETREST APIs now support?render-areas=inline. When this parameter is used, an HTML rendering of each widget is added to that specific widget in each area'sitemsarray as a new_renderedproperty. The existing?render-areas=1parameter is still supported to render the entire area as a single_renderedproperty. Note that this older option also causesitemsto be omitted from the response.Changes
postcss-viewport-to-container-toggleplugin in the webpack config.vue-colordirectly in Apostrophe rather than as a dependencytinycolor2to@ctrl/tinycolorApostrophe modules
@apostrophecms/import-export2.5.0 (2024-11-08)This module enables import and export of pages and pieces, with or without related documents such as files, images and other related types.
Adds
importDraftsOnlyDefault: trueoption selects this checkbox by default.@apostrophecms/vite1.0.0-beta.2This extension provides Vite integration for ApostropheCMS projects, enabling module bundling and hot module replacement (HMR) during development.
Adds
postcss-viewport-to-container-togglethat allows the breakpoint preview feature to work.autoprefixerplugin only for apos builds.APOS_ASSET_DEBUG=1).syntheticentrypoints, that will only process the entrypointprologue.Modules/...alias for the public builds (Webpack BC).Modules/alias resolver fails.Modules/alias. It works for both public and private builds in exactly the same way as the JS resolver.Fixes
index.Utilities
@apostrophecms/apostrophe-astro1.1.0This module integrates ApostropheCMS into your Astro application.
Adds
Beta Was this translation helpful? Give feedback.
All reactions