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.10.3
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.11.0
Choose a head ref
  • 18 commits
  • 94 files changed
  • 17 contributors

Commits on Jun 17, 2024

  1. fix(astro): duplicated brackets are generated in data collections. (#…

    …11275)
    
    * fix(astro): duplicated brackets are generated in data collections.
    
    This PR fixed #11274
    
    * Create duplicated-brackets-generation.md
    syhily authored Jun 17, 2024
    Copy the full SHA
    bab700d View commit details

Commits on Jun 18, 2024

  1. fix(astro): prevent ESM imports being passed directly to getImage (#1…

    …1279)
    
    * fix(astro): prevent ESM imports being passed directly to getImage
    
    * Apply suggestions from code review
    
    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    
    ---------
    
    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    ascorbic and sarah11918 authored Jun 18, 2024
    Copy the full SHA
    9a08d74 View commit details
  2. [ci] format

    ascorbic authored and astrobot-houston committed Jun 18, 2024
    Copy the full SHA
    080156f View commit details
  3. fix(astro): don't run middlewarein dev for prerendered 404 (#11273)

    ascorbic authored Jun 18, 2024
    Copy the full SHA
    cb4d078 View commit details

Commits on Jun 19, 2024

  1. fix: support HTTP/2 in astro dev (#11284)

    * wip
    
    * chore: add tests
    
    * Add changeset
    
    * Add comments
    ascorbic authored Jun 19, 2024
    Copy the full SHA
    f4b029b View commit details
  2. [ci] format

    ascorbic authored and astrobot-houston committed Jun 19, 2024
    Copy the full SHA
    bc3c329 View commit details
  3. fix(rewrite): allow to rewrite 404 and take base into consideration (

    …#11272)
    
    * fix(rewrite): allow to rewrite 404
    
    * add changesets
    
    * rebase
    
    * apply suggestion
    
    * Update .changeset/honest-shirts-trade.md
    
    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    
    ---------
    
    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    ematipico and florian-lefebvre authored Jun 19, 2024
    Copy the full SHA
    ea987d7 View commit details
  4. [ci] format

    ematipico authored and astrobot-houston committed Jun 19, 2024
    Copy the full SHA
    c44f7f4 View commit details
  5. feat: 500.astro improvements (#11134)

    * feat: better error handling
    
    * feat: allow passing props to render context render
    
    * feat: work on tests
    
    * Update 500.astro
    
    * feat: test preview custom 500
    
    * feat: test for custom 500 failing
    
    * feat: add changeset
    
    * Update rich-dolls-compete.md
    
    * Delete packages/astro/e2e/custom-500.test.js
    
    * Apply suggestions from code review
    
    Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
    
    * fix: merge
    
    * Update packages/astro/test/custom-500.test.js
    
    Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
    
    * Apply suggestions from code review
    
    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    
    * Update packages/astro/src/core/app/index.ts
    
    * feat: update
    
    ---------
    
    Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    Co-authored-by: Matthew Phillips <matthew@skypack.dev>
    4 people authored Jun 19, 2024
    Copy the full SHA
    9042be0 View commit details
  6. [ci] format

    matthewp authored and astrobot-houston committed Jun 19, 2024
    Copy the full SHA
    5c56324 View commit details
  7. feat: add ShikiTransformer support to the <Code /> component (#11197

    )
    
    * feat: add `transformers` prop to `<Code />` component
    
    * chore: changeset
    
    * Update .changeset/fluffy-carrots-search.md
    
    Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
    
    * chore: add example
    
    * fix: changelog example typo
    
    Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
    
    * fix: change backdrop-filter to filter
    
    Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
    
    * Update .changeset/fluffy-carrots-search.md
    
    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    
    ---------
    
    Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
    Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
    Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    5 people authored Jun 19, 2024
    Copy the full SHA
    4b46bd9 View commit details
  8. [ci] format

    matthewp authored and astrobot-houston committed Jun 19, 2024
    Copy the full SHA
    246bd7a View commit details
  9. fix(astro): type generation for empty collections (#11264)

    * fix(astro): type generation for empty collections
    
    * Update .changeset/light-bugs-shake.md
    
    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    
    ---------
    
    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    Fryuni and florian-lefebvre authored Jun 19, 2024
    Copy the full SHA
    5a9c9a6 View commit details
  10. [ci] format

    ematipico authored and astrobot-houston committed Jun 19, 2024
    Copy the full SHA
    42a6ece View commit details

Commits on Jun 20, 2024

  1. chore: update biome (#11288)

    ematipico authored Jun 20, 2024
    Copy the full SHA
    53e8bb6 View commit details
  2. bug: removes type override from defineAction (#11292)

    * bug: removes type override
    
    * add changeset
    
    * Update .changeset/quiet-doors-eat.md
    
    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    
    ---------
    
    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    jdtjenkins and florian-lefebvre authored Jun 20, 2024
    Copy the full SHA
    7f8f347 View commit details
  3. fix: allow cookies to be set in rewritten responses (#11280)

    * fix: allow cookies to be set in rewritten responses
    
    * Merge cookies
    
    * Add support for endpoints and more tests
    ascorbic authored Jun 20, 2024
    Copy the full SHA
    fd3645f View commit details
  4. [ci] release (#11276)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    astrobot-houston and github-actions[bot] authored Jun 20, 2024
    Copy the full SHA
    58a3211 View commit details
Showing with 1,158 additions and 454 deletions.
  1. +13 −4 biome.json
  2. +1 −1 examples/basics/package.json
  3. +1 −1 examples/blog/package.json
  4. +1 −1 examples/component/package.json
  5. +1 −1 examples/container-with-vitest/package.json
  6. +1 −1 examples/framework-alpine/package.json
  7. +1 −1 examples/framework-lit/package.json
  8. +1 −1 examples/framework-multiple/package.json
  9. +1 −1 examples/framework-preact/package.json
  10. +1 −1 examples/framework-react/package.json
  11. +1 −1 examples/framework-solid/package.json
  12. +1 −1 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. +1 −1 examples/ssr/package.json
  21. +1 −1 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. +1 −1 examples/with-mdx/package.json
  28. +1 −1 examples/with-nanostores/package.json
  29. +1 −1 examples/with-tailwindcss/package.json
  30. +1 −1 examples/with-vitest/package.json
  31. +5 −5 package.json
  32. +70 −0 packages/astro/CHANGELOG.md
  33. +9 −0 packages/astro/components/Code.astro
  34. +2 −1 packages/astro/package.json
  35. +3 −4 packages/astro/playwright.config.js
  36. +1 −1 packages/astro/src/actions/runtime/virtual/server.ts
  37. +10 −5 packages/astro/src/assets/internal.ts
  38. +13 −1 packages/astro/src/assets/types.ts
  39. +14 −35 packages/astro/src/container/pipeline.ts
  40. +3 −2 packages/astro/src/content/runtime-assets.ts
  41. +14 −6 packages/astro/src/content/types-generator.ts
  42. +19 −4 packages/astro/src/core/app/index.ts
  43. +12 −43 packages/astro/src/core/app/pipeline.ts
  44. +0 −10 packages/astro/src/core/base-pipeline.ts
  45. +16 −44 packages/astro/src/core/build/pipeline.ts
  46. +13 −0 packages/astro/src/core/cookies/cookies.ts
  47. +1 −1 packages/astro/src/core/cookies/response.ts
  48. +0 −4 packages/astro/src/core/create-vite.ts
  49. +23 −12 packages/astro/src/core/errors/errors-data.ts
  50. +22 −6 packages/astro/src/core/render-context.ts
  51. +7 −1 packages/astro/src/core/request.ts
  52. +55 −0 packages/astro/src/core/routing/rewrite.ts
  53. +16 −47 packages/astro/src/vite-plugin-astro-server/pipeline.ts
  54. +3 −1 packages/astro/src/vite-plugin-astro-server/request.ts
  55. +45 −104 packages/astro/src/vite-plugin-astro-server/route.ts
  56. +54 −0 packages/astro/test/astro-cookies.test.js
  57. +37 −0 packages/astro/test/astro-dev-http2.test.js
  58. +26 −0 packages/astro/test/astro-sync.test.js
  59. +11 −0 packages/astro/test/core-image.test.js
  60. +122 −0 packages/astro/test/custom-500.test.js
  61. +3 −0 packages/astro/test/fixtures/astro-cookies/src/pages/from-endpoint.ts
  62. +5 −0 packages/astro/test/fixtures/astro-cookies/src/pages/from.astro
  63. +18 −0 packages/astro/test/fixtures/astro-cookies/src/pages/rewrite-target.astro
  64. +4 −0 packages/astro/test/fixtures/astro-cookies/src/pages/to-endpoint.ts
  65. +24 −0 packages/astro/test/fixtures/astro-dev-http2/.cert/cert.pem
  66. +28 −0 packages/astro/test/fixtures/astro-dev-http2/.cert/key.pem
  67. +26 −0 packages/astro/test/fixtures/astro-dev-http2/astro.config.ts
  68. +8 −0 packages/astro/test/fixtures/astro-dev-http2/package.json
  69. +17 −0 packages/astro/test/fixtures/astro-dev-http2/src/pages/index.astro
  70. +8 −0 packages/astro/test/fixtures/content-collections-empty-dir/src/content/config.ts
  71. +4 −2 packages/astro/test/fixtures/core-image-base/tsconfig.json
  72. BIN packages/astro/test/fixtures/core-image-errors/src/images/penguin.png
  73. +7 −0 packages/astro/test/fixtures/core-image-errors/src/pages/get-image-import-passed.astro
  74. +4 −2 packages/astro/test/fixtures/core-image/tsconfig.json
  75. +4 −0 packages/astro/test/fixtures/custom-500-failing/astro.config.mjs
  76. +8 −0 packages/astro/test/fixtures/custom-500-failing/package.json
  77. +19 −0 packages/astro/test/fixtures/custom-500-failing/src/pages/500.astro
  78. +12 −0 packages/astro/test/fixtures/custom-500-failing/src/pages/index.astro
  79. +4 −0 packages/astro/test/fixtures/custom-500/astro.config.mjs
  80. +8 −0 packages/astro/test/fixtures/custom-500/package.json
  81. +17 −0 packages/astro/test/fixtures/custom-500/src/pages/500.astro
  82. +12 −0 packages/astro/test/fixtures/custom-500/src/pages/index.astro
  83. +1 −1 packages/astro/test/fixtures/i18n-routing-manual/src/middleware.js
  84. +12 −0 packages/astro/test/fixtures/i18n-routing-manual/src/pages/404.astro
  85. +13 −0 packages/astro/test/fixtures/middleware space/src/pages/integration-post.astro
  86. +13 −0 packages/astro/test/fixtures/middleware space/src/pages/integration-pre.astro
  87. +11 −0 packages/astro/test/fixtures/rewrite-trailing-slash-never/astro.config.mjs
  88. +8 −0 packages/astro/test/fixtures/rewrite-trailing-slash-never/package.json
  89. +3 −0 packages/astro/test/fixtures/rewrite-trailing-slash-never/src/pages/foo.astro
  90. +8 −0 packages/astro/test/fixtures/rewrite-trailing-slash-never/src/pages/index.astro
  91. +5 −0 packages/astro/test/i18n-routing-manual.test.js
  92. +55 −6 packages/astro/test/rewrite.test.js
  93. +22 −1 packages/astro/test/test-utils.js
  94. +99 −72 pnpm-lock.yaml
17 changes: 13 additions & 4 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"files": {
"ignore": [
"vendor",
@@ -20,7 +20,6 @@
"benchmark/results/",
".changeset",
"pnpm-lock.yaml",
"package.json",
"*.astro"
]
},
@@ -30,7 +29,7 @@
"linter": { "enabled": false },
"javascript": {
"formatter": {
"trailingComma": "es5",
"trailingCommas": "es5",
"quoteStyle": "single",
"semicolons": "always"
}
@@ -44,5 +43,15 @@
"indentStyle": "space",
"trailingCommas": "none"
}
}
},
"overrides": [
{
"include": ["package.json"],
"json": {
"formatter": {
"lineWidth": 1
}
}
}
]
}
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.10.3"
"astro": "^4.11.0"
}
}
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.1.1",
"@astrojs/rss": "^4.0.6",
"@astrojs/sitemap": "^3.1.6",
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}
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.10.3"
"astro": "^4.11.0"
},
"peerDependencies": {
"astro": "^4.0.0"
2 changes: 1 addition & 1 deletion examples/container-with-vitest/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
"test": "vitest run"
},
"dependencies": {
"astro": "^4.10.3",
"astro": "^4.11.0",
"@astrojs/react": "^3.6.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
2 changes: 1 addition & 1 deletion examples/framework-alpine/package.json
Original file line number Diff line number Diff line change
@@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.10",
"alpinejs": "^3.14.0",
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}
2 changes: 1 addition & 1 deletion examples/framework-lit/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^4.3.0",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "^4.10.3",
"astro": "^4.11.0",
"lit": "^3.1.4"
}
}
2 changes: 1 addition & 1 deletion examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
"@astrojs/vue": "^4.5.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.10.3",
"astro": "^4.11.0",
"preact": "^10.22.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
2 changes: 1 addition & 1 deletion examples/framework-preact/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.0",
"@preact/signals": "^1.2.3",
"astro": "^4.10.3",
"astro": "^4.11.0",
"preact": "^10.22.0"
}
}
2 changes: 1 addition & 1 deletion examples/framework-react/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"@astrojs/react": "^3.6.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.10.3",
"astro": "^4.11.0",
"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.4.0",
"astro": "^4.10.3",
"astro": "^4.11.0",
"solid-js": "^1.8.17"
}
}
2 changes: 1 addition & 1 deletion examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^5.6.0",
"astro": "^4.10.3",
"astro": "^4.11.0",
"svelte": "^4.2.18"
}
}
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.5.0",
"astro": "^4.10.3",
"astro": "^4.11.0",
"vue": "^3.4.29"
}
}
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.3.1",
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}
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.10.3"
"astro": "^4.11.0"
},
"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.3.1",
"astro": "^4.10.3",
"astro": "^4.11.0",
"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.10.3"
"astro": "^4.11.0"
}
}
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.10.3"
"astro": "^4.11.0"
}
}
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.10.3"
"astro": "^4.11.0"
}
}
2 changes: 1 addition & 1 deletion examples/ssr/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^8.3.1",
"@astrojs/svelte": "^5.6.0",
"astro": "^4.10.3",
"astro": "^4.11.0",
"svelte": "^4.2.18"
}
}
2 changes: 1 addition & 1 deletion examples/starlog/package.json
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.10.3",
"astro": "^4.11.0",
"sass": "^1.77.5",
"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.10.3"
"astro": "^4.11.0"
}
}
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.3.1",
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}
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.10.3"
"astro": "^4.11.0"
}
}
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.10.3",
"astro": "^4.11.0",
"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.10.3"
"astro": "^4.11.0"
}
}
2 changes: 1 addition & 1 deletion examples/with-mdx/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^3.1.1",
"@astrojs/preact": "^3.5.0",
"astro": "^4.10.3",
"astro": "^4.11.0",
"preact": "^10.22.0"
}
}
2 changes: 1 addition & 1 deletion examples/with-nanostores/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.0",
"@nanostores/preact": "^0.5.1",
"astro": "^4.10.3",
"astro": "^4.11.0",
"nanostores": "^0.10.3",
"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.1.1",
"@astrojs/tailwind": "^5.1.0",
"@types/canvas-confetti": "^1.6.4",
"astro": "^4.10.3",
"astro": "^4.11.0",
"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.10.3",
"astro": "^4.11.0",
"vitest": "^1.6.0"
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -16,10 +16,10 @@
"dev": "turbo run dev --concurrency=40 --parallel --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --filter=\"@benchmark/*\"",
"format": "pnpm run format:code && pnpm run format:imports",
"format:ci": "pnpm run format:code:ci && pnpm run format:imports:ci",
"format:code": "biome format ./ --write && prettier -w \"**/*\" --ignore-unknown --cache",
"format:code:ci": "biome format ./ && prettier -w \"**/*\" --ignore-unknown --cache --check",
"format:imports": "biome check --apply .",
"format:imports:ci": "biome ci .",
"format:code": "biome format --write && prettier -w \"**/*\" --ignore-unknown --cache",
"format:code:ci": "biome format && prettier -w \"**/*\" --ignore-unknown --cache --check",
"format:imports": "biome check --formatter-enabled=false --write",
"format:imports:ci": "biome ci --formatter-enabled=false",
"test": "turbo run test --concurrency=1 --filter=astro --filter=create-astro --filter=\"@astrojs/*\"",
"test:citgm": "pnpm -r --filter=astro test",
"test:match": "cd packages/astro && pnpm run test:match",
@@ -52,7 +52,7 @@
},
"devDependencies": {
"@astrojs/check": "^0.7.0",
"@biomejs/biome": "1.7.1",
"@biomejs/biome": "1.8.1",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.5",
"@eslint/eslintrc": "^3.1.0",
70 changes: 70 additions & 0 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,75 @@
# astro

## 4.11.0

### Minor Changes

- [#11197](https://github.com/withastro/astro/pull/11197) [`4b46bd9`](https://github.com/withastro/astro/commit/4b46bd9bdcbb302f294aa27b8aa07099e104fa17) Thanks [@braebo](https://github.com/braebo)! - Adds [`ShikiTransformer`](https://shiki.style/packages/transformers#shikijs-transformers) support to the [`<Code />`](https://docs.astro.build/en/reference/api-reference/#code-) component with a new `transformers` prop.

Note that `transformers` only applies classes and you must provide your own CSS rules to target the elements of your code block.

```astro
---
import { transformerNotationFocus } from '@shikijs/transformers';
import { Code } from 'astro:components';

const code = `const foo = 'hello'
const bar = ' world'
console.log(foo + bar) // [!code focus]
`;
---

<Code {code} lang="js" transformers={[transformerNotationFocus()]} />

<style is:global>
pre.has-focused .line:not(.focused) {
filter: blur(1px);
}
</style>
```

- [#11134](https://github.com/withastro/astro/pull/11134) [`9042be0`](https://github.com/withastro/astro/commit/9042be049157ce859355f911565bc0c3d68f0aa1) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Improves the developer experience of the `500.astro` file by passing it a new `error` prop.

When an error is thrown, the special `src/pages/500.astro` page now automatically receives the error as a prop. This allows you to display more specific information about the error on a custom 500 page.

```astro
---
// src/pages/500.astro
interface Props {
error: unknown;
}

const { error } = Astro.props;
---

<div>{error instanceof Error ? error.message : 'Unknown error'}</div>
```

If an error occurs rendering this page, your host's default 500 error page will be shown to your visitor in production, and Astro's default error overlay will be shown in development.

### Patch Changes

- [#11280](https://github.com/withastro/astro/pull/11280) [`fd3645f`](https://github.com/withastro/astro/commit/fd3645fe8364ec5e280b6802d1468867890d463c) Thanks [@ascorbic](https://github.com/ascorbic)! - Fixes a bug that prevented cookies from being set when using experimental rewrites

- [#11275](https://github.com/withastro/astro/pull/11275) [`bab700d`](https://github.com/withastro/astro/commit/bab700d69085b1de8f03fc1b0b31651f709cbfe3) Thanks [@syhily](https://github.com/syhily)! - Drop duplicated brackets in data collections schema generation.

- [#11272](https://github.com/withastro/astro/pull/11272) [`ea987d7`](https://github.com/withastro/astro/commit/ea987d7da589ead9aa4b550f167f5e2f6c939d2e) Thanks [@ematipico](https://github.com/ematipico)! - Fixes a case where rewriting `/` would cause an issue, when `trailingSlash` was set to `"never"`.

- [#11272](https://github.com/withastro/astro/pull/11272) [`ea987d7`](https://github.com/withastro/astro/commit/ea987d7da589ead9aa4b550f167f5e2f6c939d2e) Thanks [@ematipico](https://github.com/ematipico)! - Reverts a logic where it wasn't possible to rewrite `/404` in static mode. It's **now possible** again

- [#11264](https://github.com/withastro/astro/pull/11264) [`5a9c9a6`](https://github.com/withastro/astro/commit/5a9c9a60e7c32aa461b86b5bc667cb955e23d4d9) Thanks [@Fryuni](https://github.com/Fryuni)! - Fixes type generation for empty content collections

- [#11279](https://github.com/withastro/astro/pull/11279) [`9a08d74`](https://github.com/withastro/astro/commit/9a08d74bc00ae2c3bc254f99580a22ce4df1d002) Thanks [@ascorbic](https://github.com/ascorbic)! - Improves type-checking and error handling to catch case where an image import is passed directly to `getImage()`

- [#11292](https://github.com/withastro/astro/pull/11292) [`7f8f347`](https://github.com/withastro/astro/commit/7f8f34799528ed0b2011e1ea273bd0636f6e767d) Thanks [@jdtjenkins](https://github.com/jdtjenkins)! - Fixes a case where `defineAction` autocomplete for the `accept` prop would not show `"form"` as a possible value

- [#11273](https://github.com/withastro/astro/pull/11273) [`cb4d078`](https://github.com/withastro/astro/commit/cb4d07819f0dbdfd94bc4f084edf7720ada01323) Thanks [@ascorbic](https://github.com/ascorbic)! - Corrects an inconsistency in dev where middleware would run for prerendered 404 routes.
Middleware is not run for prerendered 404 routes in production, so this was incorrect.

- [#11284](https://github.com/withastro/astro/pull/11284) [`f4b029b`](https://github.com/withastro/astro/commit/f4b029b08264268c68fc81ea25b264e81f47e683) Thanks [@ascorbic](https://github.com/ascorbic)! - Fixes an issue that would break `Astro.request.url` and `Astro.request.headers` in `astro dev` if HTTP/2 was enabled.

HTTP/2 is now enabled by default in `astro dev` if `https` is configured in the Vite config.

## 4.10.3

### Patch Changes
Loading