Release v2.4.1
-
#434 by @bobsingor – Fixed memory leak where image encoder workers were never terminated when the engine was destroyed:
- Added optional
destroy()method toImageDataConverterinterface for resource cleanup - Updated
createWorkerPoolImageConverterandcreateHybridImageConverterto attachdestroy()that terminates the encoder worker pool - Updated
PdfEngine.destroy()to callimageConverter.destroy?.()to clean up encoder workers
Previously, each viewer instance would leave 2 encoder workers running after destruction.
- Added optional
-
#434 by @bobsingor – Fixed memory leak in
EmbedPdfContainerwhere Preact components were not unmounted on disconnect:- Added
render(null, this.root)indisconnectedCallback()to properly unmount Preact components - This triggers the cleanup chain: plugin destroy, engine destroy, and worker termination
Previously, navigating between pages would leave workers running (1 PDFium + 2 encoder workers per viewer instance).
- Added
astro@6.0.0-beta.7
-
#14888
4cd3fe4Thanks @OliverSpeir! - Updatesastro add cloudflareto better setup types, by adding./worker-configuration.d.tsto tsconfig includes and agenerate-typesscript to package.json -
#15349
a257c4cThanks @ascorbic! - Passes collection name to live content loadersLive content collection loaders now receive the collection name as part of their parameters. This is helpful for loaders that manage multiple collections or need to differentiate behavior based on the collection being accessed.
export function storeLoader({ field, key }) { return { name: 'store-loader', loadCollection: async ({ filter, collection }) => { // ... }, loadEntry: async ({ filter, collection }) => { // ... }, }; }
-
#15394
5520f89Thanks @florian-lefebvre! - Fixes a case where using the Fonts API withnetlify devwouldn't work because of query parameters -
#15385
9e16d63Thanks @matthewp! - Fixes content layer loaders that use dynamic importsContent collection loaders can now use
await import()andimport.meta.glob()to dynamically import modules during build. Previously, these would fail with "Vite module runner has been closed." -
#15386
a0234a3Thanks @OliverSpeir! - Updatesastro add cloudflareto use the latest validcompatibility_datein the wrangler config, if available -
#15362
dbf71c0Thanks @jcayzac! - FixesinferSizebeing kept in the HTML attributes of the emitted<img>when that option is used with an image that is not remote. -
Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
- @astrojs/markdown-remark@7.0.0-beta.4
@astrojs/node@10.0.0-beta.1
- Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
@astrojs/netlify@7.0.0-beta.6
- Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
- @astrojs/underscore-redirects@1.0.0
@astrojs/vercel@10.0.0-beta.1
- Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
@astrojs/markdown-remark@7.0.0-beta.4
- Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
create-astro@5.0.0-beta.3
-
#15344
9d87f77Thanks @matthewp! - Fixes a hang that could occur when the npm registry is slow or unresponsive by adding a 10 second timeout to the version check -
#15350
d758b68Thanks @matthewp! - Errors when--addand--no-installflags are used together, as--addrequires dependencies to be installed