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 was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
[email protected]
Minor Changes
#2489
618a16f5
Thanks @natemoo-re! - Add support for theset:html
andset:text
directives.With the introduction of these directives, unescaped HTML content in expressions is now deprecated. Please migrate to
set:html
in order to continue injecting unescaped HTML in future versions of Astro—you can use<Fragment set:html={content}>
to avoid a wrapper element.set:text
allows you to opt-in to escaping now, but it will soon become the default.#2494
d7149f9b
Thanks @FredKSchott! - Refactor dev server to use vite server internally.This should be an invisible change, and no breaking changes are expected from this change. However, it is a big enough refactor that some unexpected changes may occur. If you've experienced a regression in the dev server, it is most likely a bug!
#2586
d6d35bca
Thanks @tony-sull! - Support for non-HTML pagesThis adds support for generating non-HTML pages form
.js
and.ts
pages during the build. Built file and extensions are based on the source file's name, ex:src/pages/data.json.ts
will be built todist/data.json
.Is this different from SSR? Yes! This feature allows JSON, XML, etc. files to be output at build time. Keep an eye out for full SSR support if you need to build similar files when requested, for example as a serverless function in your deployment host.
Examples
What about
getStaticPaths()
? It just works™.#2424
1abb9ed0
Thanks @natemoo-re! - Upgradevite
to2.8.x
, unvendoringvite
and bringing Astro's dependencies up-to-date.This is a low-level change that you shouldn't have to worry about too much, but it should fix many, many issues with CJS/ESM interoperability. It also allows Astro to stay up-to-date with the
vite
ecosystem. If you run into any unexpected problems, please let us know by opening an issue.#2471
c9bb1147
Thanks @FredKSchott! - Standardize trailing subpath behavior in config.Most users are not aware of the subtle differences between
/foo
and/foo/
. Internally, we have to handle both which means that we are constantly worrying about the format of the URL, needing to add/remove trailing slashes when we go to work with this property, etc. This change transforms allsite
values to use a trailing slash internally, which should help reduce bugs for both users and maintainers.#2548
ba5e2b5e
Thanks @matthewp! - Experimental SSR SupportChanges
This adds a new
--experimental-ssr
flag toastro build
which will result indist/server/
anddist/client/
directories.SSR can be used through this API:
This API will be refined over time.
This only works in Node.js at the moment.
Many features will likely not work correctly, but rendering HTML at least should.
Patch Changes
#2486
6bd165f8
Thanks @matthewp! - Fix for the static build when project contains a space#2424
1abb9ed0
Thanks @natemoo-re! - Fixes HMR of CSS that is imported from astro, when using the static build flag#2522
3e8844fa
Thanks @matthewp! - Fix for CSS superset support and HMR in the static build#2506
187d5128
Thanks @jonathantneal! - Fix an issue rendering content within HTMLElement#2606
96609d4c
Thanks @matthewp! - Fixes 404 to HMR script in the static build#2599
929fae68
Thanks @natemoo-re! - Update@astrojs/compiler
tov0.11.0
, which moves from TinyGo to Go's built-in WASM output. This will be a significant improvement for stability and memory safety.#2532
b210fd00
Thanks @matthewp! - Fixes HMR of .astro modules in astro@next#2552
e81bc3cf
Thanks @matthewp! - Fixes build slowness on large appsThis fixes slowness on large apps, particularly during the static build. Fix is to prevent the Vite dev server plugin from being run during build, as it is not needed.
#2605
87762410
Thanks @matthewp! - Fixes Astro style resolution in the static build#2569
82544e41
Thanks @matthewp! - Fixes pageUrlFormat: 'file' in the static build#2588
10216176
Thanks @matthewp! - Fix for passing children to client component when the component does not render them#2531
ef1d81ef
Thanks @FredKSchott! - Fix issue where hostname was not passed to dev server#2537
b0666286
Thanks @FredKSchott! - Improve debug logs#2511
3d2c1849
Thanks @matthewp! - Bug fix fordefine:vars
with the --experimental-static-build flag#2518
2bc91543
Thanks @JuanM04! - Added the ability to use custom themes and langs with Shiki (<Code />
and@astrojs/markdown-remark
)#2612
39cbe500
Thanks @natemoo-re! - Improve suppport forimport.meta.env
.Prior to this change, all variables defined in
.env
files had to include thePUBLIC_
prefix, meaning that they could potentially be visible to the client if referenced.Now, Astro includes any referenced variables defined in
.env
files onimport.meta.env
during server-side rendering, but only referencedPUBLIC_
variables on the client.#2471
c9bb1147
Thanks @FredKSchott! - Respect subpath URL paths in the fetchContent url property.This fixes an issue where fetchContent() URL property did not include the buildOptions.site path in it.
#2538
16d532fe
Thanks @natemoo-re! - Fix rendering of HTML boolean attributes likeopen
andasync
.Fix rendering of HTML and SVG enumerated attributes like
contenteditable
andspellcheck
.#2570
34317bc0
Thanks @matthewp! - Fixes bug with astro/components not loading in the next release#2581
ec6f148f
Thanks @matthewp! - Fix for resolving relative imports from hoisted scripts in the static build.#2593
40c0e2b3
Thanks @tony-sull! - Dynamic route params should ignore param order when matching paths#2497
6fe1b027
Thanks @JuanM04! - Bumped Shiki version#2594
085468e9
Thanks @natemoo-re! - Upgrade@astrojs/compiler
tov0.10.2
Updated dependencies [
a907a73b
,cfeaa941
,2bc91543
,6fe1b027
,2bc91543
,d71c4620
]:@astrojs/[email protected]
Minor Changes
a907a73b
Thanks @natemoo-re! - Upgrade renderer dependencies for[email protected]
@astrojs/[email protected]
Minor Changes
a907a73b
Thanks @natemoo-re! - Upgrade renderer dependencies for[email protected]
@astrojs/[email protected]
Minor Changes
a907a73b
Thanks @natemoo-re! - Upgrade renderer dependencies for[email protected]
@astrojs/[email protected]
Minor Changes
a907a73b
Thanks @natemoo-re! - Upgrade renderer dependencies for[email protected]
@astrojs/[email protected]
Minor Changes
a907a73b
Thanks @natemoo-re! - Upgrade renderer dependencies for[email protected]
@astrojs/[email protected]
Minor Changes
a907a73b
Thanks @natemoo-re! - Upgrade renderer dependencies for[email protected]
@astrojs/[email protected]
Patch Changes
#2534
cfeaa941
Thanks @JuanM04! - Now you can use local plugins by passing a function instead of animport
#2518
2bc91543
Thanks @JuanM04! - Added the ability to use custom themes and langs with Shiki (<Code />
and@astrojs/markdown-remark
)#2497
6fe1b027
Thanks @JuanM04! - Add Shiki as an alternative to Prism#2518
2bc91543
Thanks @JuanM04! - Addedwrap
to Shiki config#2564
d71c4620
Thanks @JuanM04! - Fixed curly braces inside Shiki codeblocks@astrojs/[email protected]