chore(deps): update dependency astro to v2.8.0 #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.6.4
->2.8.0
Release Notes
withastro/astro (astro)
v2.8.0
Compare Source
Minor Changes
#7532
9e5fafa2b
Thanks @ematipico! - Theastro/middleware
module exports a new utility calledtrySerializeLocals
.This utility can be used by adapters to validate their
locals
before sending itto the Astro middleware.
This function will throw a runtime error if the value passed is not serializable, so
consumers will need to handle that error.
#7532
9e5fafa2b
Thanks @ematipico! - Astro exposes the middleware file path to the integrations in the hookastro:build:ssr
The
middlewareEntryPoint
is only defined if the user has created an Astro middleware.#7432
6e9c29579
Thanks @ematipico! - Adds a new commandastro info
, useful for sharing debugging information about your current environment when you need help!Output
#7532
9e5fafa2b
Thanks @ematipico! - Theastro/middleware
module exports a new API calledcreateContext
.This a low-level API that adapters can use to create a context that can be consumed by middleware functions.
#7532
9e5fafa2b
Thanks @ematipico! - Introduced a new build option for SSR, calledbuild.excludeMiddleware
.When enabled, the code that belongs to be middleware won't be imported
by the final pages/entry points. The user is responsible for importing it and
calling it manually.
Patch Changes
9e5fafa2b
Thanks @ematipico! - Correctly track the middleware during the SSR build.v2.7.4
Compare Source
Patch Changes
#7544
47b756e3e
Thanks @johannesspohr! - Batch async iterator buffering to reduce numbers of calls tosetTimeout
#7565
5ffdec758
Thanks @bluwy! - Fix style crawling logic for CSS HMRv2.7.3
Compare Source
Patch Changes
#7527
9e2426f75
Thanks @natemoo-re! - Default registry logic to fallback to NPM if registry command fails (sorry, Bun users!)#7542
cdc28326c
Thanks @natemoo-re! - Fix bug when usingdefine:vars
with astyle
object#7521
19c2d43ea
Thanks @knpwrs! - AddProps
generic forAPIRoute
type#7531
2172dd4f0
Thanks @wackbyte! - Fix serialization ofundefined
in framework component props#7539
1170877b5
Thanks @jc1144096387! - Update registry logic, improving edge cases (http support, redirects, registries ending with '/')v2.7.2
Compare Source
Patch Changes
#7273
6dfd7081b
Thanks @bluwy! - Fix error stacktrace from Vite SSR runtime#7370
83016795e
Thanks @bluwy! - Simplify nested hydration flow#7488
d3247851f
Thanks @natemoo-re! - PasscompressHTML
setting to server adapters#7491
a3928016c
Thanks @bluwy! - Fix CSS error line offset#7494
2726098bc
Thanks @itsmatteomanf! - Replaces the instance ofsetTimeout()
in the runtime to usequeueMicrotask()
, to resolve limitations on Cloudflare Workers.#7509
f4fea3b02
Thanks @ematipico! - Correctly emit pre-rendered pages whenbuild.split
is set totrue
v2.7.1
Compare Source
Patch Changes
#7490
601403744
Thanks @ematipico! - Fix the URL that belongs toentryPoints
in the hookastro:build:ssr
. The paths were created with the wrong output directory.#7459
869197aaf
Thanks @bluwy! - Fix missing styles for Markdoc files in development#7440
2b7539952
Thanks @bluwy! - Removeslash
package#7476
478cd9d8f
Thanks @hirasso! - Allow astro to be installed underneath a folder with leading slashes#7479
57e603038
Thanks @bluwy! - Handle esbuild 0.18 changes#7381
f359d77b1
Thanks @matthewp! - Prevent accidental inclusion of page CSS in dev modeUpdated dependencies [
2b7539952
]:v2.7.0
Compare Source
Minor Changes
#7353
76fcdb84d
Thanks @bholmesdev! - Remove legacy handling for MDX content collections. Ensure you are using@astrojs/mdx
v0.18 or above.#7385
8e2923cc6
Thanks @ematipico! -Astro.locals
is now exposed to the adapter API. Node Adapter can now pass in alocals
object in the SSR handler middleware.#7220
459b5bd05
Thanks @ematipico! - Shipped a new SSR build configuration mode:split
.When enabled, Astro will "split" the single
entry.mjs
file and instead emit a separate file to render each individual page during the build process.These files will be emitted inside
dist/pages
, mirroring the directory structure of your page files insrc/pages/
, for example:To enable, set
build.split: true
in your Astro config:#7220
459b5bd05
Thanks @ematipico! - The Astro hookastro:build:ssr
now receives a new option in their payload, calledentryPoints
.entryPoints
is defined as aMap<RouteData, URL>
, whereRouteData
represents the information of a Astro route andURL
is the path to the physical file emitted at the end of the build.Patch Changes
#7438
30bb36371
Thanks @bluwy! - Fixastro:build:setup
hookupdateConfig
utility, where the configuration wasn't correctly updated when the hook was fired.#7436
3943fa390
Thanks @kossidts! - Fix an issue related to the documentation. Destructure the argument of the function to customize the Astro dev server based on the command run.#7424
7877a06d8
Thanks @bholmesdev! - Update internal types for more stable builds for Astro maintainers.#7427
e314a04bf
Thanks @ematipico! - Correctly emit the middleware code during the build phase. The file emitted is nowdist/middleware.mjs
#7423
33cdc8622
Thanks @bmenant! - Ensure injected/_image
endpoint for image optimization is not prerendered on hybrid output.v2.6.6
Compare Source
Patch Changes
#7418
2b34fc492
Thanks @ematipico! - Correctly type the optionserver.open
#7429
89a483520
Thanks @delucis! - Fix telemetry reporting for integrations that return an arrayv2.6.5
Compare Source
Patch Changes
#7414
bb644834e
Thanks @bluwy! - Simplify telemetry Vite version detection#7399
d2020c29c
Thanks @natemoo-re! - Fix edge case where injected routes would cause builds to fail in a PNPM workspaceConfiguration
📅 Schedule: Branch creation - "every weekend on the 3rd week of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.