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:
^0.21.4
->^0.26.0
Release Notes
withastro/astro (astro)
v0.26.1
Compare Source
v0.26.0
: Astro v0.26.0Compare Source
Migration Guide & What's New: https://docs.astro.build/en/migrate/#migrate-to-v026
Full Changelog: https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#0260
v0.25.4
Compare Source
Patch Changes
22b1432e
Thanks @delucis! - Fix typing ofintegrations
array in user configv0.25.3
Compare Source
Patch Changes
77354c89
Thanks @matthewp! - Prevent CSS from being added to the wrong pagesv0.25.2
Compare Source
Patch Changes
#2894
9d6e0b5d
Thanks @FredKSchott! - Add the "--experimental-integrations" flag to enable 3rd-party integrations.#2893
f2684512
Thanks @FredKSchott! - tailwind: add a default "contents" configuration that works for most Astro projectsv0.25.1
Compare Source
Patch Changes
a0d67b1d
Thanks @natemoo-re! - Add missingexeca
dependencyv0.25.0
Breaking & Minor Changes
#2820 Thanks @FredKSchott! - New Astro Integrations System!
Full Documentation
#2849
72ef7ae6
Thanks @natemoo-re! - Introduce newastro add
command to automatically configure integrations.#2833
79545412
Thanks @natemoo-re! - This PR introduces a new internal CSS parser for@astrojs/compiler
. Seewithastro/compiler#329
for more details.This fixes Astro's support for modern CSS syntax like
@container
,@layer
, and nesting. Note While Astro now correctly parses this modern syntax, it does not automatically compile features for browser compatability purposes.#2824
0a3d3e51
Thanks @bholmesdev! - Change shiki to our default markdown syntax highlighter. This includes updates to all relevant starter projects that used Prism-specific styles.Patch Changes
#2879
80034c6c
Thanks @matthewp! - Netlify AdapterThis change adds a Netlify adapter that uses Netlify Functions. You can use it like so:
#2871
5029382a
Thanks @FredKSchott! - Fix a bug where tailwind integration wouldn't apply to markdown pages#2852
96372e6b
Thanks @bholmesdev! - Fix "isSelfAccepting" exception when using the new @astrojs/react integration in development#2798
4c25a1c2
Thanks @matthewp! - Implement APIs for headers for SSR flag#2855
5e52814d
Thanks @matthewp! - Adds support for the Node adapter (SSR)This provides the first SSR adapter available using the
integrations
API. It is a Node.js adapter that can be used with thehttp
module or any framework that wraps it, like Express.In your astro.config.mjs use:
After performing a build there will be a
dist/server/entry.mjs
module that works like a middleware function. You can use with any framework that supports the Noderequest
andresponse
objects. For example, with Express you can do:#2859
c781b12f
Thanks @natemoo-re! - Ensure private, internal APIs are not enumerable#2835
77ebab8b
Thanks @natemoo-re! - Fix missingpostcss-load-config
dependency#2878
2db97f10
Thanks @bholmesdev! - Move the built-inPrism
component fromastro/components
to@astrojs/prism/component
.#2857
1061d647
Thanks @bholmesdev! - Improve granularity of production build logs. This now lists:import.meta.glob
calls.getStaticPaths
.#2825
1cd7184c
Thanks @hlynursmari1! - Fix island deduplication ignoring props.Re-resolves an issue initially patched in #846 but seemingly lost in the 0.21.0 mega-merge (d84bfe7
).This change makes the component render step account for all props, even if they don't affect the generated HTML, when deduplicating island mounts.#2873
e4025d1f
Thanks @matthewp! - Improves the build by building to a single file for rendering#2815
7b9d042d
Thanks @matthewp! - Allows dynamic routes in SSR to avoid implementing getStaticPaths#2875
55712277
Thanks @FredKSchott! - Generalize output assets to avoid adblocker false positives#2848
981e2a83
Thanks @FredKSchott! - add missing injected "page" scripts into markdown pages#2872
098f6f6b
Thanks @bholmesdev! - FixisSelfAccepting
errors when using the Preact integration with the Astro dev serverUpdated dependencies [
0a3d3e51
,2db97f10
,d763ec18
]:v0.24.1
Compare Source
Patch Changes
#2797
58d8686e
Thanks @matthewp! - Fix for projects with a folder name containing a space#2785
2c4fd919
Thanks @bholmesdev! - Update Astro.props to show object properties on console.log(Astro.props), interating over properties, and anything else outside direct key access#2790
6b34840d
Thanks @natemoo-re! - Improveset:html
behavior fornull
andundefined
values#2772
b4d34e2d
Thanks @FredKSchott! - Improve build performance, especially on large sites#2772
b4d34e2d
Thanks @FredKSchott! - Surface vite warnings to the userv0.24.0
Compare Source
Minor Changes
#2760
77b9c953
Thanks @bholmesdev! - Introduce a new --host flag + host devOption to expose your server on a network IPaf075d81
Thanks @natemoo-re! - Visual redesign of theastro dev
CLI, including newastro --help
andastro --version
outputs.These changes introduce a new startup screen, make it more obvious when a file triggers in-place HMR (
update
) or a full reload (reload
), and improve the way Astro surfaces errors during dev.#2705
72c2c86e
Thanks @natemoo-re! - New default build strategyThis change marks the "static build" as the new default build strategy. If you are unfamiliar with this build strategy check out the migration guide on how to change your code to be compatible with this new bulid strategy.
If you'd like to keep using the old build strategy, use the flag
--legacy-build
both in yourastro dev
andastro build
scripts, for ex:Note that the legacy build is deprecated and will be removed in a future version. You should only use this flag until you have the time to migration your code.
#2705
72c2c86e
Thanks @natemoo-re! - ## Updated<head>
and<body>
behaviorSince
astro@0.21
, Astro placed certain restrictions on what files could use<head>
or<body>
tags. Inastro@0.24
, the restrictions have been lifted. Astro will be able to correctly handle<head>
and<body>
tags in any component, not just those insrc/pages/
orsrc/layouts/
.#2747
05b66bd6
Thanks @natemoo-re! - Escape HTML inside of expressions by default. Please see our migration guide for more details.Patch Changes
#2695
ae8d9256
Thanks @natemoo-re! - UpdateAstro.slots
API with new publichas
andrender
methods.This is a backwards-compatible change—
Astro.slots.default
will still betrue
if the component has been passed adefault
slot.#2755
10843aba
Thanks @natemoo-re! - Add user-configurablesitemapFilter
option.This option can be used to ensure certain pages are excluded from your final sitemap.
#2767
2bb2c2f7
Thanks @natemoo-re! - Update@astrojs/compiler
to0.12.0
#2705
72c2c86e
Thanks @natemoo-re! - Fixes the static build to write to 404.html#2705
72c2c86e
Thanks @natemoo-re! - Fixes use of private .env variables with the static build#2750
79fc3204
Thanks @FredKSchott! - update esbuild@0.14.25#2737
e8d4e568
Thanks @natemoo-re! - Astro's logger has been redesigned for an improved experience! In addition to deduping identical messages, we've surfaced more error details and exposed new events likeupdate
(for in-place HMR) andreload
(for full-reload HMR).#2733
6bf124fb
Thanks @FredKSchott! - Remove a bad dev warning#2768
49c0d997
Thanks @matthewp! - Fixes loading astro/client/* on Windows in dev#2758
499fb6a3
Thanks @natemoo-re! - Add CLI warnings when running a prerelease or outdated version of Astro#2705
72c2c86e
Thanks @natemoo-re! - Replacesend
dependency withsirv
#2732
0ae96bb7
Thanks @bholmesdev! - Update server start message to use localhost for local hostnames#2743
a14075e2
Thanks @bholmesdev! - Fix - show 404 for bad static paths with console message, rather than a 500v0.23.7
Compare Source
Patch Changes
0d37f8e0
]:v0.23.6
Compare Source
Patch Changes
5f91e007
]:v0.23.5
Compare Source
Patch Changes
#2706
b2c37385
Thanks @JuanM04! - Changeddata-astro-raw
tois:raw
internallyUpdated dependencies [
b2c37385
]:v0.23.4
Compare Source
Patch Changes
#2678
caf9135c
Thanks @JuanM04! - Upgraded Vite to v2.8.6#2697
91765d79
Thanks @FredKSchott! - Improve build performance by processingssrPreload
in serial rather than in parallel#2684
c7bbb112
Thanks @natemoo-re! - Fix issue where HMR could be triggered duringastro build
Updated dependencies [
91765d79
]:v0.23.3
Compare Source
Patch Changes
046af364
Thanks @natemoo-re! - Fix HMR regression related to fine-grained.astro
HMR. This fixes HMR for Tailwind and CSS styles when.astro
files are edited.v0.23.2
Compare Source
Patch Changes
#2665
0494f74e
Thanks @natemoo-re! - Improve compatability with third-party Astro packages#2656
fca64073
Thanks @FredKSchott! - fix astro scoping of "@import" inside of style tagsv0.23.1
Compare Source
Patch Changes
ac6d2e8c
Thanks @FredKSchott! - Fix issue with Non-HTML pages in static build for dev#2628
9b7e2ab2
Thanks @JuanM04! - Fixed shiki to work with{ "type": "module" }
#2630
a2128f8e
Thanks @JuanM04! - Fixed incorrect types and imports#2653
17032cd0
Thanks @natemoo-re! - Update@astrojs/compiler
, fixing a bug with self-closing tags that need special consideration like<title />
and<script />
#2654
a0fc5cb5
Thanks @FredKSchott! - Fix an issue where utf8 encoding was skipped in the dev server.#2649
5091d788
Thanks @natemoo-re! - Add fine-grained HMR support for Astro files#2645
2e5c3b51
Thanks @xavikortes! - Fix issue when process.env.LANG was longer than 5 charactersUpdated dependencies [
9b7e2ab2
]:v0.23.0
Compare Source
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
#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
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
]:v0.22.20
Compare Source
Patch Changes
#2491
c7a6ed9a
Thanks @jonathantneal! - Fixed top-level await and other es features with the static build#2479
005751a9
Thanks @natemoo-re! - Add theescapeHTML
utility toastro/internal
#2490
69d5b709
Thanks @matthewp! - Fix for CSS preprocessing using the static build#2491
c7a6ed9a
Thanks @jonathantneal! - Renders server-side HTMLElement as HTML tagv0.22.19
Compare Source
Patch Changes
462e3159
Thanks @matthewp! - Fixes HMR of CSS that is imported from astro, when using the static build flagv0.22.18
Compare Source
Patch Changes
#2423
ebe414f0
Thanks @delucis! - Resolve sitemap URLs in relation to full site path#2443
ed0b46f9
Thanks @natemoo-re! - Fix bug with RSS feed generation.rss()
can now be called multiple times and URLs can now be fully qualified.#2442
dfe1f8b4
Thanks @matthewp! - Allow setting ssr Vite config in the static buildv0.22.17
Compare Source
Patch Changes
#2432
9e1bc175
Thanks @matthewp! - Fixes bugs with apostrophes in the title tag#2414
f2b8372c
Thanks @matthewp! - Adds support for hoisted scripts to the static buildv0.22.16
Compare Source
Patch Changes
3ad236ba
Thanks @matthewp! - Pin the compiler to fix obscure Windows bugv0.22.15
Compare Source
Patch Changes
#2371
85ad1aab
Thanks @natemoo-re! - Add support for styled RSS feeds using the newstylesheet
option#2416
5208c88a
Thanks @matthewp! - Adds Astro.resolve deprecation for the static build#2392
24aa3245
Thanks @obnoxiousnerd! - Support markdown draft pages.Markdown draft pages are markdown pages which have
draft
set in their frontmatter. By default, these will not be built by Astro while runningastro build
. To disable this behavior, you need to setbuildOptions.drafts
totrue
or pass the--drafts
flag while runningastro build
. An exaple of a markdown draft page is:---
src/pages/blog-post.md
v0.22.14
Compare Source
Patch Changes
bcc617f9
Thanks @matthewp! - Prepends site subpath when using --experimental-static-buildv0.22.13
Compare Source
Patch Changes
c8a257ad
Thanks @matthewp! - Improvements performance for building sites with thousands of pages with the static buildv0.22.12
Compare Source
Patch Changes
#2370
a7967530
Thanks @matthewp! - Fixes support for Lit within the static build#2373
92532b88
Thanks @matthewp! - Hydrated component fix with the static buildUpdated dependencies [
20eaddb2
]:v0.22.11
Compare Source
Patch Changes
#2367
2aa5ba5c
Thanks @matthewp! - Fixes use of framework renderers in the static build#2365
20d0cce6
Thanks @matthewp! - Fixes shared CSS within the static buildv0.22.10
Compare Source
Patch Changes
#2335
f008a19c
Thanks @jonathantneal! - Preserve pathnames for sitemap.xml#2358
10074972
Thanks @matthewp! - Fixes the output when using the experimental-static-build flag#2323
69af658b
Thanks @jonathantneal! - Fix issue with plugins running twice in dev and build#2338
c0cb7eea
Thanks @jonathantneal! - Fix preview issues triggered by pageUrlFormat & trailingSlash options#2363
7e0b32c5
Thanks @matthewp! - Fixes use of --experimental-static-build with markdown pagesv0.22.9
Compare Source
Patch Changes
180dfcf2
Thanks @matthewp! - Fix using the Code component in static buildv0.22.8
Compare Source
Patch Changes
71ca0912
Thanks @matthewp! - Fixes subpath support inastro preview
v0.22.7
Compare Source
Patch Changes
#2324
77ef43e6
Thanks @natemoo-re! - Update compiler to remove console.log (sorry everyone!)e0de21ef
Thanks @FredKSchott! - Add<guid>
to RSS feed.#2318
c0204c0a
Thanks @natemoo-re! - Update@astrojs/compiler
to0.7.3
#2319
e6379d51
Thanks @jonathantneal! - Updated @astropub/webapiv0.22.6
Compare Source
Patch Changes
#2299
5fbdd56f
Thanks @tadeuzagallo! - Fix dynamic routes for sites with subpath#2308
e98659b7
Thanks @natemoo-re! - Update the Astro compiler, fixing a number of bugsv0.22.5
Compare Source
Patch Changes
#2305
193ca60f
Thanks @matthewp! - Fixesastro check
errors with import.meta usageUpdated dependencies [
34486676
]:v0.22.4
Compare Source
Patch Changes
9db22b97
Thanks @matthewp! - Fix to allow the static build to build hydrated componentsv0.22.3
Compare Source
Patch Changes
2e55dc26
Thanks @matthewp! - Rolls back a feature flag feature that was breaking the docs sitev0.22.2
Compare Source
Patch Changes
c77cf52e
Thanks @matthewp! - Preserve wasm stack trace when verbose logging is enabledv0.22.1
Compare Source
Patch Changes
db79d2e9
Thanks @matthewp! - Fix for use of remote @import in inline stylesv0.21.13
Compare Source
Patch Changes
b8c821a0
]:Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.