Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: withastro/astro
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: astro@4.9.2
Choose a base ref
...
head repository: withastro/astro
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: astro@4.9.3
Choose a head ref
  • 15 commits
  • 131 files changed
  • 15 contributors

Commits on May 27, 2024

  1. fix(assets): ensure valid mime types in picture component (#11147)

    * test: Add test for Picture MIME types
    
    * fix(assets): Fix MIME type generation in Picture component
    
    * chore: changeset
    
    * fix: Trust mrmime to handle an undefined lookup argument
    
    * fix: Use image.src as fallback argument to mrmime
    
    ---------
    
    Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
    kitschpatrol and Princesseuh authored May 27, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    IvanGoncharov Ivan Goncharov
    Copy the full SHA
    2d93902 View commit details

Commits on May 28, 2024

  1. Changelog: Fix typo (#11162)

    tordans authored May 28, 2024
    Copy the full SHA
    fdd4f92 View commit details
  2. Changelog: Fix link (#11163)

    tordans authored May 28, 2024
    Copy the full SHA
    6b97634 View commit details

Commits on May 29, 2024

  1. fix(runtime): check head+content component before throwing an error (#…

    …11141)
    
    * fix(runtime): check head+content component before throwing an error
    
    * add test
    ematipico authored May 29, 2024
    Copy the full SHA
    19df89f View commit details
  2. [ci] format

    ematipico authored and astrobot-houston committed May 29, 2024
    Copy the full SHA
    369069a View commit details
  3. 🐛 removed deprecated items from lit integration (#11164)

    * 🐛 removed deprecated items from lit integration
    
    * 🚀 update minified
    
    * 🐛 need `Document`
    scottnath authored May 29, 2024
    Copy the full SHA
    cf9b2ff View commit details
  4. [ci] format

    matthewp authored and astrobot-houston committed May 29, 2024
    Copy the full SHA
    6a93b53 View commit details

Commits on May 30, 2024

  1. fix(deps): update all non-major dependencies (#11151)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: bluwy <bjornlu.dev@gmail.com>
    renovate[bot] and bluwy authored May 30, 2024
    Copy the full SHA
    464b0a1 View commit details

Commits on May 31, 2024

  1. fix: guard asset global usage (#11171)

    * fix: guard global usage
    
    * chore: changeset
    Princesseuh authored May 31, 2024
    Copy the full SHA
    ff8004f View commit details

Commits on Jun 4, 2024

  1. Retain client scripts in content cache (#11170)

    * Retain client scripts in content cache
    
    * Add test
    matthewp authored Jun 4, 2024
    Copy the full SHA
    ba20c71 View commit details
  2. [ci] format

    matthewp authored and astrobot-houston committed Jun 4, 2024
    Copy the full SHA
    bf013cb View commit details
  3. Update install-package.ts (#11183)

    pnpx was removed in pnpm v7 and replaced by pnpm exec and pnpm dlx.
    
    pnpm dlx works the same as yarn dlx.
    66Leo66 authored Jun 4, 2024
    Copy the full SHA
    3cfa2ac View commit details

Commits on Jun 5, 2024

  1. fix: better isPromise check for proxy objects (#11178)

    theoephraim authored Jun 5, 2024
    Copy the full SHA
    1734c49 View commit details
  2. [ci] format

    bluwy authored and astrobot-houston committed Jun 5, 2024
    Copy the full SHA
    13c0010 View commit details
  3. [ci] release (#11158)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    astrobot-houston and github-actions[bot] authored Jun 5, 2024
    Copy the full SHA
    587e75f View commit details
Showing with 1,443 additions and 1,322 deletions.
  1. +1 −0 .github/renovate.json5
  2. +1 −1 examples/basics/package.json
  3. +1 −1 examples/blog/package.json
  4. +1 −1 examples/component/package.json
  5. +2 −2 examples/container-with-vitest/package.json
  6. +2 −2 examples/framework-alpine/package.json
  7. +2 −2 examples/framework-lit/package.json
  8. +4 −4 examples/framework-multiple/package.json
  9. +2 −2 examples/framework-preact/package.json
  10. +2 −2 examples/framework-react/package.json
  11. +1 −1 examples/framework-solid/package.json
  12. +2 −2 examples/framework-svelte/package.json
  13. +1 −1 examples/framework-vue/package.json
  14. +1 −1 examples/hackernews/package.json
  15. +1 −1 examples/integration/package.json
  16. +1 −1 examples/middleware/package.json
  17. +1 −1 examples/minimal/package.json
  18. +1 −1 examples/non-html-pages/package.json
  19. +1 −1 examples/portfolio/package.json
  20. +2 −2 examples/ssr/package.json
  21. +2 −2 examples/starlog/package.json
  22. +1 −1 examples/toolbar-app/package.json
  23. +1 −1 examples/view-transitions/package.json
  24. +1 −1 examples/with-markdoc/package.json
  25. +1 −1 examples/with-markdown-plugins/package.json
  26. +1 −1 examples/with-markdown-shiki/package.json
  27. +2 −2 examples/with-mdx/package.json
  28. +2 −2 examples/with-nanostores/package.json
  29. +1 −1 examples/with-tailwindcss/package.json
  30. +1 −1 examples/with-vitest/package.json
  31. +8 −8 package.json
  32. +1 −1 packages/astro-rss/package.json
  33. +26 −2 packages/astro/CHANGELOG.md
  34. +2 −1 packages/astro/components/Picture.astro
  35. +2 −2 packages/astro/e2e/fixtures/actions-blog/package.json
  36. +3 −3 packages/astro/e2e/fixtures/actions-react-19/package.json
  37. +1 −1 packages/astro/e2e/fixtures/astro-component/package.json
  38. +2 −2 packages/astro/e2e/fixtures/client-only/package.json
  39. +1 −1 packages/astro/e2e/fixtures/dev-toolbar/package.json
  40. +1 −1 packages/astro/e2e/fixtures/error-cyclic/package.json
  41. +1 −1 packages/astro/e2e/fixtures/error-sass/package.json
  42. +3 −3 packages/astro/e2e/fixtures/errors/package.json
  43. +1 −1 packages/astro/e2e/fixtures/hmr/package.json
  44. +1 −1 packages/astro/e2e/fixtures/hydration-race/package.json
  45. +2 −2 packages/astro/e2e/fixtures/multiple-frameworks/package.json
  46. +1 −1 packages/astro/e2e/fixtures/namespaced-component/package.json
  47. +2 −2 packages/astro/e2e/fixtures/nested-in-preact/package.json
  48. +2 −2 packages/astro/e2e/fixtures/nested-in-react/package.json
  49. +2 −2 packages/astro/e2e/fixtures/nested-in-solid/package.json
  50. +2 −2 packages/astro/e2e/fixtures/nested-in-svelte/package.json
  51. +2 −2 packages/astro/e2e/fixtures/nested-in-vue/package.json
  52. +2 −2 packages/astro/e2e/fixtures/nested-recursive/package.json
  53. +1 −1 packages/astro/e2e/fixtures/preact-compat-component/package.json
  54. +1 −1 packages/astro/e2e/fixtures/preact-component/package.json
  55. +1 −1 packages/astro/e2e/fixtures/preact-lazy-component/package.json
  56. +1 −1 packages/astro/e2e/fixtures/svelte-component/package.json
  57. +1 −1 packages/astro/e2e/fixtures/view-transitions/package.json
  58. +18 −18 packages/astro/package.json
  59. +1 −1 packages/astro/performance/fixtures/md/package.json
  60. +1 −1 packages/astro/performance/fixtures/mdoc/package.json
  61. +1 −1 packages/astro/performance/fixtures/mdx/package.json
  62. +1 −1 packages/astro/src/assets/utils/proxy.ts
  63. +2 −2 packages/astro/src/cli/install-package.ts
  64. +1 −0 packages/astro/src/core/build/plugins/plugin-content.ts
  65. +20 −1 packages/astro/src/runtime/server/render/astro/render.ts
  66. +3 −1 packages/astro/src/runtime/server/util.ts
  67. +49 −0 packages/astro/test/container.test.js
  68. +20 −0 packages/astro/test/core-image.test.js
  69. +17 −0 packages/astro/test/experimental-content-collections-render.test.js
  70. +1 −1 packages/astro/test/fixtures/0-css/package.json
  71. +1 −1 packages/astro/test/fixtures/alias-tsconfig-baseurl-only/package.json
  72. +1 −1 packages/astro/test/fixtures/alias-tsconfig/package.json
  73. +1 −1 packages/astro/test/fixtures/alias/package.json
  74. +1 −1 packages/astro/test/fixtures/astro-basic/package.json
  75. +2 −2 packages/astro/test/fixtures/astro-children/package.json
  76. +1 −1 packages/astro/test/fixtures/astro-client-only/package.json
  77. +1 −1 packages/astro/test/fixtures/astro-dynamic/package.json
  78. +1 −1 packages/astro/test/fixtures/astro-expr/package.json
  79. +1 −1 packages/astro/test/fixtures/astro-fallback/package.json
  80. +1 −1 packages/astro/test/fixtures/astro-slot-with-client/package.json
  81. +2 −2 packages/astro/test/fixtures/astro-slots-nested/package.json
  82. +1 −1 packages/astro/test/fixtures/before-hydration/package.json
  83. +1 −1 packages/astro/test/fixtures/build-assets/package.json
  84. +1 −1 packages/astro/test/fixtures/component-library-shared/package.json
  85. +2 −2 packages/astro/test/fixtures/component-library/package.json
  86. +6 −0 packages/astro/test/fixtures/core-image/src/pages/picturecomponent.astro
  87. +1 −1 packages/astro/test/fixtures/css-dangling-references/package.json
  88. +1 −1 packages/astro/test/fixtures/entry-file-names/package.json
  89. +2 −2 packages/astro/test/fixtures/fetch/package.json
  90. +1 −1 packages/astro/test/fixtures/hydration-race/package.json
  91. +2 −2 packages/astro/test/fixtures/jsx/package.json
  92. +2 −2 packages/astro/test/fixtures/postcss/package.json
  93. +1 −1 packages/astro/test/fixtures/preact-compat-component/package.json
  94. +1 −1 packages/astro/test/fixtures/preact-component/package.json
  95. +1 −1 packages/astro/test/fixtures/reexport-astro-containing-client-component/package.json
  96. +1 −1 packages/astro/test/fixtures/slots-preact/package.json
  97. +1 −1 packages/astro/test/fixtures/slots-svelte/package.json
  98. +1 −1 packages/astro/test/fixtures/solid-component/package.json
  99. +1 −1 packages/astro/test/fixtures/ssr-env/package.json
  100. +1 −1 packages/astro/test/fixtures/ssr-scripts/package.json
  101. +1 −1 packages/astro/test/fixtures/static-build-frameworks/package.json
  102. +1 −1 packages/astro/test/fixtures/static-build/package.json
  103. +1 −1 packages/astro/test/fixtures/svelte-component/package.json
  104. +1 −1 packages/astro/test/fixtures/vue-with-multi-renderer/package.json
  105. +1 −1 packages/db/package.json
  106. +3 −3 packages/db/test/fixtures/ticketing-example/package.json
  107. +2 −2 packages/integrations/alpinejs/package.json
  108. +1 −1 packages/integrations/alpinejs/test/fixtures/basics/package.json
  109. +1 −1 packages/integrations/alpinejs/test/fixtures/directive/package.json
  110. +1 −1 packages/integrations/alpinejs/test/fixtures/plugin-script-import/package.json
  111. +6 −0 packages/integrations/lit/CHANGELOG.md
  112. +3 −9 packages/integrations/lit/client-shim.js
  113. +4 −10 packages/integrations/lit/client-shim.min.js
  114. +2 −2 packages/integrations/lit/package.json
  115. +2 −2 packages/integrations/markdoc/package.json
  116. +1 −1 packages/integrations/markdoc/test/fixtures/render-with-components/package.json
  117. +4 −4 packages/integrations/mdx/package.json
  118. +1 −1 packages/integrations/mdx/test/fixtures/mdx-infinite-loop/package.json
  119. +3 −3 packages/integrations/preact/package.json
  120. +3 −3 packages/integrations/react/package.json
  121. +1 −1 packages/integrations/sitemap/package.json
  122. +1 −1 packages/integrations/solid/package.json
  123. +4 −4 packages/integrations/svelte/package.json
  124. +1 −1 packages/integrations/tailwind/package.json
  125. +3 −3 packages/integrations/vercel/package.json
  126. +2 −2 packages/integrations/vue/package.json
  127. +1 −1 packages/integrations/web-vitals/package.json
  128. +3 −3 packages/markdown/remark/package.json
  129. +1 −1 packages/studio/package.json
  130. +1,089 −1,102 pnpm-lock.yaml
  131. +3 −3 scripts/package.json
1 change: 1 addition & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
],
"labels": ["dependencies"],
"rangeStrategy": "bump",
"postUpdateOptions": ["pnpmDedupe"],
"ignorePaths": ["**/node_modules/**"],
"ignoreDeps": [
// manually bumping deps
2 changes: 1 addition & 1 deletion examples/basics/package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.9.2"
"astro": "^4.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/blog/package.json
Original file line number Diff line number Diff line change
@@ -14,6 +14,6 @@
"@astrojs/mdx": "^3.0.1",
"@astrojs/rss": "^4.0.6",
"@astrojs/sitemap": "^3.1.5",
"astro": "^4.9.2"
"astro": "^4.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/component/package.json
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^4.9.2"
"astro": "^4.9.3"
},
"peerDependencies": {
"astro": "^4.0.0"
4 changes: 2 additions & 2 deletions examples/container-with-vitest/package.json
Original file line number Diff line number Diff line change
@@ -12,14 +12,14 @@
"test": "vitest run"
},
"dependencies": {
"astro": "^4.9.2",
"astro": "^4.9.3",
"@astrojs/react": "^3.4.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"vitest": "^1.6.0"
},
"devDependencies": {
"@types/react-dom": "^18.3.0",
"@types/react": "^18.3.2"
"@types/react": "^18.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/framework-alpine/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.10",
"alpinejs": "^3.13.10",
"astro": "^4.9.2"
"alpinejs": "^3.14.0",
"astro": "^4.9.3"
}
}
4 changes: 2 additions & 2 deletions examples/framework-lit/package.json
Original file line number Diff line number Diff line change
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/lit": "^4.0.1",
"@astrojs/lit": "^4.1.0",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "^4.9.2",
"astro": "^4.9.3",
"lit": "^3.1.3"
}
}
8 changes: 4 additions & 4 deletions examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
@@ -16,14 +16,14 @@
"@astrojs/solid-js": "^4.2.0",
"@astrojs/svelte": "^5.4.0",
"@astrojs/vue": "^4.3.0",
"@types/react": "^18.3.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.9.2",
"preact": "^10.21.0",
"astro": "^4.9.3",
"preact": "^10.22.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"solid-js": "^1.8.17",
"svelte": "^4.2.16",
"svelte": "^4.2.17",
"vue": "^3.4.27"
}
}
4 changes: 2 additions & 2 deletions examples/framework-preact/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.3.0",
"@preact/signals": "^1.2.3",
"astro": "^4.9.2",
"preact": "^10.21.0"
"astro": "^4.9.3",
"preact": "^10.22.0"
}
}
4 changes: 2 additions & 2 deletions examples/framework-react/package.json
Original file line number Diff line number Diff line change
@@ -12,9 +12,9 @@
},
"dependencies": {
"@astrojs/react": "^3.4.0",
"@types/react": "^18.3.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.9.2",
"astro": "^4.9.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
2 changes: 1 addition & 1 deletion examples/framework-solid/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^4.2.0",
"astro": "^4.9.2",
"astro": "^4.9.3",
"solid-js": "^1.8.17"
}
}
4 changes: 2 additions & 2 deletions examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^5.4.0",
"astro": "^4.9.2",
"svelte": "^4.2.16"
"astro": "^4.9.3",
"svelte": "^4.2.17"
}
}
2 changes: 1 addition & 1 deletion examples/framework-vue/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^4.3.0",
"astro": "^4.9.2",
"astro": "^4.9.3",
"vue": "^3.4.27"
}
}
2 changes: 1 addition & 1 deletion examples/hackernews/package.json
Original file line number Diff line number Diff line change
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^8.2.5",
"astro": "^4.9.2"
"astro": "^4.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/integration/package.json
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^4.9.2"
"astro": "^4.9.3"
},
"peerDependencies": {
"astro": "^4.0.0"
2 changes: 1 addition & 1 deletion examples/middleware/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^8.2.5",
"astro": "^4.9.2",
"astro": "^4.9.3",
"html-minifier": "^4.0.0"
},
"devDependencies": {
2 changes: 1 addition & 1 deletion examples/minimal/package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.9.2"
"astro": "^4.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/non-html-pages/package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.9.2"
"astro": "^4.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/portfolio/package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.9.2"
"astro": "^4.9.3"
}
}
4 changes: 2 additions & 2 deletions examples/ssr/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^8.2.5",
"@astrojs/svelte": "^5.4.0",
"astro": "^4.9.2",
"svelte": "^4.2.16"
"astro": "^4.9.3",
"svelte": "^4.2.17"
}
}
4 changes: 2 additions & 2 deletions examples/starlog/package.json
Original file line number Diff line number Diff line change
@@ -10,8 +10,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.9.2",
"sass": "^1.77.1",
"astro": "^4.9.3",
"sass": "^1.77.3",
"sharp": "^0.33.3"
}
}
2 changes: 1 addition & 1 deletion examples/toolbar-app/package.json
Original file line number Diff line number Diff line change
@@ -15,6 +15,6 @@
"./app": "./dist/app.js"
},
"devDependencies": {
"astro": "^4.9.2"
"astro": "^4.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/view-transitions/package.json
Original file line number Diff line number Diff line change
@@ -12,6 +12,6 @@
"devDependencies": {
"@astrojs/tailwind": "^5.1.0",
"@astrojs/node": "^8.2.5",
"astro": "^4.9.2"
"astro": "^4.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/with-markdoc/package.json
Original file line number Diff line number Diff line change
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^0.11.0",
"astro": "^4.9.2"
"astro": "^4.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/with-markdown-plugins/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^5.1.0",
"astro": "^4.9.2",
"astro": "^4.9.3",
"hast-util-select": "^6.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",
2 changes: 1 addition & 1 deletion examples/with-markdown-shiki/package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.9.2"
"astro": "^4.9.3"
}
}
4 changes: 2 additions & 2 deletions examples/with-mdx/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^3.0.1",
"@astrojs/preact": "^3.3.0",
"astro": "^4.9.2",
"preact": "^10.21.0"
"astro": "^4.9.3",
"preact": "^10.22.0"
}
}
4 changes: 2 additions & 2 deletions examples/with-nanostores/package.json
Original file line number Diff line number Diff line change
@@ -13,8 +13,8 @@
"dependencies": {
"@astrojs/preact": "^3.3.0",
"@nanostores/preact": "^0.5.1",
"astro": "^4.9.2",
"astro": "^4.9.3",
"nanostores": "^0.10.3",
"preact": "^10.21.0"
"preact": "^10.22.0"
}
}
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"@astrojs/mdx": "^3.0.1",
"@astrojs/tailwind": "^5.1.0",
"@types/canvas-confetti": "^1.6.4",
"astro": "^4.9.2",
"astro": "^4.9.3",
"autoprefixer": "^10.4.19",
"canvas-confetti": "^1.9.3",
"postcss": "^8.4.38",
2 changes: 1 addition & 1 deletion examples/with-vitest/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^4.9.2",
"astro": "^4.9.3",
"vitest": "^1.6.0"
}
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -52,25 +52,25 @@
"astro-benchmark": "workspace:*"
},
"devDependencies": {
"@astrojs/check": "^0.6.0",
"@astrojs/check": "^0.7.0",
"@biomejs/biome": "1.7.1",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@eslint/eslintrc": "^3.0.2",
"@changesets/cli": "^2.27.5",
"@eslint/eslintrc": "^3.1.0",
"@types/node": "^18.17.8",
"esbuild": "^0.21.2",
"eslint": "^9.2.0",
"esbuild": "^0.21.4",
"eslint": "^9.3.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-regexp": "^2.5.0",
"eslint-plugin-regexp": "^2.6.0",
"globby": "^14.0.1",
"only-allow": "^1.2.1",
"organize-imports-cli": "^0.10.0",
"prettier": "^3.2.5",
"prettier-plugin-astro": "^0.13.0",
"prettier-plugin-astro": "^0.14.0",
"tiny-glob": "^0.2.9",
"turbo": "^1.13.3",
"typescript": "~5.4.5",
"typescript-eslint": "^7.8.0"
"typescript-eslint": "^7.11.0"
},
"pnpm": {
"packageExtensions": {
2 changes: 1 addition & 1 deletion packages/astro-rss/package.json
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@
"xml2js": "0.6.2"
},
"dependencies": {
"fast-xml-parser": "^4.3.6",
"fast-xml-parser": "^4.4.0",
"kleur": "^4.1.5"
}
}
28 changes: 26 additions & 2 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,37 @@
# astro

## 4.9.3

### Patch Changes

- [#11171](https://github.com/withastro/astro/pull/11171) [`ff8004f`](https://github.com/withastro/astro/commit/ff8004f6a7b2aab4c6ac367f13744a341c3c5462) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Guard globalThis.astroAsset usage in proxy code to avoid errors in wonky situations

- [#11178](https://github.com/withastro/astro/pull/11178) [`1734c49`](https://github.com/withastro/astro/commit/1734c49f516ff7d778d6724a0db6d39649921b4b) Thanks [@theoephraim](https://github.com/theoephraim)! - Improves `isPromise` utility to check the presence of `then` on an object before trying to access it - which can cause undesired side-effects on Proxy objects

- [#11183](https://github.com/withastro/astro/pull/11183) [`3cfa2ac`](https://github.com/withastro/astro/commit/3cfa2ac7e51d7bea96980403c393f9bcda1e9375) Thanks [@66Leo66](https://github.com/66Leo66)! - Suggest `pnpm dlx` instead of `pnpx` in update check.

- [#11147](https://github.com/withastro/astro/pull/11147) [`2d93902`](https://github.com/withastro/astro/commit/2d93902f4c51dcc62b077b0546ead688e6f32c63) Thanks [@kitschpatrol](https://github.com/kitschpatrol)! - Fixes invalid MIME types in Picture source elements for jpg and svg extensions, which was preventing otherwise valid source variations from being shown by the browser

- [#11141](https://github.com/withastro/astro/pull/11141) [`19df89f`](https://github.com/withastro/astro/commit/19df89f87c74205ebc76aeac43ca20b00694acec) Thanks [@ematipico](https://github.com/ematipico)! - Fixes an internal error that prevented the `AstroContainer` to render the `Content` component.

You can now write code similar to the following to render content collections:

```js
const entry = await getEntry(collection, slug);
const { Content } = await entry.render();
const content = await container.renderToString(Content);
```

- [#11170](https://github.com/withastro/astro/pull/11170) [`ba20c71`](https://github.com/withastro/astro/commit/ba20c718a4ccd1009bdf81f8265956bff1d19d05) Thanks [@matthewp](https://github.com/matthewp)! - Retain client scripts in content cache

## 4.9.2

### Patch Changes

- [#11138](https://github.com/withastro/astro/pull/11138) [`98e0372`](https://github.com/withastro/astro/commit/98e0372cfd47a3e025be2ac68d1e9ebf06cf548b) Thanks [@ematipico](https://github.com/ematipico)! - You can now pass `props` when rendering a component using the Container APIs:

```js
import { experimental_AstroContainer as AstroContainer } from 'astro/contaienr';
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
import Card from '../src/components/Card.astro';

const container = await AstroContainer.create();
@@ -56,7 +80,7 @@
});
```

For a complete reference, see the [Container API docs](/en/reference/container-reference/).
For a complete reference, see the [Container API docs](https://docs.astro.build/en/reference/container-reference/).

For a feature overview, and to give feedback on this experimental API, see the [Container API roadmap discussion](https://github.com/withastro/roadmap/pull/916).

3 changes: 2 additions & 1 deletion packages/astro/components/Picture.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import { type LocalImageProps, type RemoteImageProps, getImage } from 'astro:assets';
import * as mime from 'mrmime';
import type { GetImageResult, ImageOutputFormat } from '../dist/@types/astro';
import { isESMImportedImage, resolveSrc } from '../dist/assets/utils/imageKind';
import { AstroError, AstroErrorData } from '../dist/core/errors/index.js';
@@ -99,7 +100,7 @@ if (import.meta.env.DEV) {
return (
<source
srcset={srcsetAttribute}
type={'image/' + image.options.format}
type={mime.lookup(image.options.format ?? image.src) ?? `image/${image.options.format}`}
{...sourceAdditionalAttributes}
/>
);
Loading