-
Fixed an upgrade to this version of javascript-modules-engine that hung every node of a Jahia 8.2.3.x cluster with no JavaScript module installed. (#846)
-
Added maven.jahia.com to the Maven repositories javascript-modules uses to download its dependencies. (#820)
-
buildNodeUrlnow autocollects cache dependencies for the content it links to, preventing 404 errors when the linked content is renamed or moved. (#783, #810)This mechanism is enabled by default but can be disabled on a per-view basis by setting
"cache.autocollectDependencies": "false"in the view's properties, or on a per-call basis with the newautocollectDependency: falseoption inbuildNodeUrl.When a view links to more than 100 contents, a change in a folder that holds many of them also refreshes the view.
-
Introduced
<JImage>andgetImagePropsto render responsive images from an image node:srcsetandsizesare derived from the image's intrinsic size,altfalls back to the image title, andwidth/heightare set to prevent layout shifts. (#789)On a default Jahia instance every candidate serves the original file. A DAM (Cloudinary, Keepeek) or an image resizer (Cloudimage) is required for the resizing to take effect.
-
Added support for children in client-only islands:
<Island clientOnly>now passes its children to the component. (#807)Use
clientOnly="hide-children-while-loading"to hide them until the component is loaded, for instance when they must only be displayed in a modal.If an existing client-only component renders its
children, the placeholder now ends up inside it, and it must match the type of the component'schildrenprop. -
Bumped embedded dependencies. (#658, #664, #793)
Dependency From (JSM 1.2.0) To (JSM 1.3.0) devalue 5.6.4 6.0.0 i18next 25.7.3 26.4.2 react 19.2.3 19.3.0 react-dom 19.2.3 19.3.0 react-i18next 16.5.0 17.0.14 We decided to upgrade i18next and react-i18next in a minor version because, as far as we're aware, the breaking changes remove deprecated features that were never put in place in recent codebases. If this assumption is incorrect, please reach out to us.
-
Added an
absoluteoption tobuildEndpointUrl,buildNodeUrlandbuildModuleFileUrl, which prefixes the URL with the server origin or with an origin passed as a string.<meta property="og:url" content={buildNodeUrl(currentNode, { absolute: true })} />
In preview and edit, Jahia removes the origin from a page URL in an
hreforsrcattribute, so use the URL in an attribute such ascontentthere. -
Expose
JCRStoreProviderin TypeScript types. (#790)
-
We have migrated our build pipelines and test suites to Vite 8 and Rolldown to ensure JS Modules work with the latest versions of this stack. (#668)
This is not a breaking change, we support all Vite versions from 6 to 8.
-
Handle GraphQL subrequests correctly. (#681)
-
jahia-deploynow fails when Jahia installs nothing, instead of printing{}and exiting successfully. -
npm init @jahia/modulecan now scaffold a project without a single prompt, which makes it usable from scripts, CI pipelines and coding agents: (#715)npm init @jahia/module@latest my-module -- --template hello-world --yes
-
Fixed client-only islands being hydrated instead of rendered in the browser, which logged a hydration error in the console for each island. (#807)
-
buildNodeUrldefault mode detection has been improved to preserve links within the editframe ineditmode. Other modes are unaffected. (#788) -
Fixed absolute areas with
readOnly="children"so they can be edited on their owning page. (#679) -
server.render.addCacheDependency({ uuid }, renderContext)now correctly registers the dependency, instead of doing nothing. (#792)