Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from withastro:main #133

Open
wants to merge 6,377 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6377 commits
Select commit Hold shift + click to select a range
2ee8412
[ci] format
ematipico Dec 3, 2024
52c8f98
feat: make basics link point to final article (#12600)
Princesseuh Dec 3, 2024
44af543
[ci] release (#12606)
astrobot-houston Dec 3, 2024
19b3ac0
fix(upgrade): verify `astro` installation before upgrade to prevent f…
apatel369 Dec 4, 2024
f56d349
ci: update repro link (#12620)
ematipico Dec 4, 2024
62939ad
Remove misleading warning when using a custom renderer (#12461)
kyr0 Dec 4, 2024
29bcdf5
Improve serverEntrypoint codegen (#12566)
bluwy Dec 4, 2024
0e4fecb
fix: handle uppercase image file extensions (#12623)
ascorbic Dec 4, 2024
b073014
[ci] format
ascorbic Dec 4, 2024
24edead
chore: use the `/repro` route for reproduction (#12627)
ematipico Dec 4, 2024
348c71e
fix(db): import base virtual module ID (#12628)
ascorbic Dec 4, 2024
74bfad0
fix: experimental svg types (#12625)
ematipico Dec 4, 2024
350b3da
[docs] removes link in config reference (#12630)
sarah11918 Dec 4, 2024
e6b8017
fix custom `assetFileNames` issue (#12449)
apatel369 Dec 4, 2024
176fe9f
[ci] format
ematipico Dec 4, 2024
dec0305
fix: don't apply duplicate class to images (#12631)
ascorbic Dec 4, 2024
6b6e18d
fix(i18n): pass search params to fallback (#12547)
mtwilliams-code Dec 5, 2024
10fdf3d
[ci] format
ematipico Dec 5, 2024
8a551c1
Clean up content layer sync in build and sync api (#12633)
bluwy Dec 5, 2024
22e405a
fix: use correct datastore location in test environment (#12640)
ascorbic Dec 5, 2024
ff18b9c
chore: better warning (#12642)
ematipico Dec 5, 2024
9cda184
[ci] format
ematipico Dec 5, 2024
8704c54
[docs] update error message URLs (#12645)
sarah11918 Dec 5, 2024
03958d9
Improve Zod error messages and user config error messages (#12634)
delucis Dec 5, 2024
48ca399
fix: correctly copy to clipboard in `astro info` (#12641)
ascorbic Dec 5, 2024
86abfa5
[ci] format
ascorbic Dec 5, 2024
5b9b618
fix(@astrojs/rss): use standard rss content type, add utf-8 charset (…
kunyan Dec 5, 2024
306c9f9
Keep clientAddress on cloned requests (#12613)
matthewp Dec 5, 2024
d14d967
[ci] format
ematipico Dec 5, 2024
e216250
fix(ssr): duplicate custom headers (#12518)
ematipico Dec 5, 2024
a5b1735
[ci] release (#12617)
astrobot-houston Dec 5, 2024
87231b1
Bugfix/extra whitespace in code (#12570)
GrimLink Dec 5, 2024
f13417b
Only parse frontmatter at top of file (#12646)
bluwy Dec 5, 2024
a71e9b9
Fix frontmatter parsing with utf8 bom (#12664)
bluwy Dec 6, 2024
8f8f15c
fix(routing): don't attach locals to request (#12647)
ematipico Dec 6, 2024
72c1d5d
[ci] format
ematipico Dec 6, 2024
e21c7e6
[error message] updates docs link (#12653)
sarah11918 Dec 6, 2024
a9373c0
fix: do not freeze process.env in dev (#12585)
florian-lefebvre Dec 9, 2024
2b53588
[ci] format
florian-lefebvre Dec 9, 2024
a203d5d
fix: catch image errors correctly (#12695)
ascorbic Dec 9, 2024
163cfd6
[ci] release (#12650)
astrobot-houston Dec 9, 2024
1c4a032
fix: escape image filenames (#12697)
ascorbic Dec 9, 2024
7dc2fca
chore: fix vite peer dependency issue for vue integration (#12688)
yoyo837 Dec 10, 2024
495f46b
fix(svg): conditional opt-in (#12694)
ematipico Dec 10, 2024
70cbd47
[ci] format
ematipico Dec 10, 2024
0d1eab5
fix: escape content module import paths (#12705)
ascorbic Dec 10, 2024
3169593
fix: xclip process runtime (#12658)
jurajkapsz Dec 10, 2024
f6c4214
fix: correctly check isOnline with port (#12706)
ascorbic Dec 10, 2024
2aaed2d
fix(middleware): don't import via entrypoint (#12707)
ematipico Dec 10, 2024
97c9265
Add React 19 stable as peer dependency for React integration (#12678)
bskimball Dec 11, 2024
b01c74a
fix: strip query string before checking md extension (#12712)
ascorbic Dec 11, 2024
d33c215
[ci] format
ascorbic Dec 11, 2024
99266fa
chore: refactor query param strip (#12714)
ascorbic Dec 11, 2024
b3dfd9b
[ci] format
ematipico Dec 11, 2024
929ce28
[ci] release (#12698)
astrobot-houston Dec 11, 2024
618de28
🐛 Fix isDbError()-guard does not work (#12416)
abegehr Dec 11, 2024
dff04a4
[ci] format
ematipico Dec 11, 2024
110fc01
chore: remove unused imports (#12696)
florian-lefebvre Dec 11, 2024
51ced3d
[ci] format
florian-lefebvre Dec 11, 2024
f1f3bc0
[ci] format
astrobot-houston Dec 11, 2024
ccc5ad1
fix(i18n): manual routing with rewrite (#12718)
ematipico Dec 11, 2024
14dffcc
fix(actions): support trailing slash (#12657)
darkmaga Dec 11, 2024
eef4b74
[ci] format
ematipico Dec 11, 2024
358eae8
chore: fixes the version of astrojs/db (#12719)
ascorbic Dec 12, 2024
e3bfd93
fix(i18n): parse params and props correctly with fallback (#12709)
mtwilliams-code Dec 12, 2024
799c867
[ci] format
ematipico Dec 12, 2024
029661d
fix: use atomic writes for data store file operations (#12715)
ascorbic Dec 13, 2024
72f30dd
[ci] format
ascorbic Dec 13, 2024
ee66a45
Adds `closedby` to dialog interface (#12728)
argyleink Dec 13, 2024
8b1cecd
Add inert attribute to boolean list (#12729)
JoeMorgan Dec 13, 2024
901c21f
test: make tailwind test more stable (#12732)
ematipico Dec 13, 2024
7c7398c
fix(cli): let sync throw in check (#12726)
florian-lefebvre Dec 13, 2024
564ac6c
feat: route manifest refactor (#12597)
florian-lefebvre Dec 16, 2024
25c1e59
[ci] format
florian-lefebvre Dec 16, 2024
33ae732
[ci] release (#12716)
astrobot-houston Dec 16, 2024
c879f50
Revert "fix custom `assetFileNames` issue (#12449)" (#12746)
matthewp Dec 16, 2024
a793557
[ci] format
matthewp Dec 16, 2024
d891d5d
[ci] release (#12748)
astrobot-houston Dec 16, 2024
039d022
Clean sourcemaps from static output (#12749)
matthewp Dec 16, 2024
0ac0f25
fix: add support for `react-compiler-runtime` (#12735)
stipsan Dec 16, 2024
75de4a8
[ci] format
matthewp Dec 16, 2024
391df0e
Add changeset (#12755)
matthewp Dec 16, 2024
a44cfb8
[ci] release (#12753)
astrobot-houston Dec 16, 2024
95795f8
Remove debug logging from output (#12756)
matthewp Dec 16, 2024
3ff00a6
[ci] release (#12759)
astrobot-houston Dec 17, 2024
483da89
Adds types for `?url&inline` & `?url&no-inline` import queries (#12758)
delucis Dec 17, 2024
8da2318
fix: invoke vite.build with up to date configuration during astro:bui…
rbsummers Dec 17, 2024
ca3ff15
docs: Fix typos in config.ts (#12769)
anaxite Dec 18, 2024
3dc02c5
feat(assets): Use entity-tags to revalidate cached remote images (#12…
oliverlynch Dec 18, 2024
b4fec3c
Sessions API (#12441)
ascorbic Dec 18, 2024
a94e309
[ci] format
ematipico Dec 18, 2024
a581c15
[ci] format
astrobot-houston Dec 18, 2024
36c1e06
fix: clear the content layer cache when the Astro config changes (#12…
ascorbic Dec 18, 2024
c9d5110
feat(actions): getActionPath() (#12721)
florian-lefebvre Dec 18, 2024
45c3f33
[ci] format
ematipico Dec 18, 2024
1ec5b44
chore(deps): update unstorage and use new syntax (#12783)
ascorbic Dec 19, 2024
45005a5
[ci] format
ematipico Dec 19, 2024
4353fc5
fix: correctly return 404.astro in i18n (#12764)
ematipico Dec 19, 2024
e56af4a
chore: changeset (#12786)
ematipico Dec 19, 2024
3f557b2
[ci] release (#12762)
astrobot-houston Dec 19, 2024
73b6c8b
chore: fix links in session errors (#12787)
ascorbic Dec 19, 2024
5e9d1bc
chore: move files to `.mjs` (#12765)
ematipico Dec 19, 2024
f632b94
fix: pass raw frontmatter to when parsing markdown in glob loader (#1…
ascorbic Dec 19, 2024
49cc5d7
[ci] format
ascorbic Dec 19, 2024
f3d8385
update comment in packages/astro/src/types/public/common.ts (#12782)
fhiromasa Dec 20, 2024
739dbfb
fix(deps): upgrade Vite (#12799)
ascorbic Dec 20, 2024
5f4c543
[ci] release (#12790)
astrobot-houston Dec 20, 2024
7b0cb85
fix: better logs for invalid content config (#12798)
ascorbic Dec 20, 2024
98f9e83
fix(toolbar): assign label to icons (#12734)
ematipico Dec 20, 2024
70a9f0b
Fix server island script breaking when charset is added to content-ty…
louisescher Dec 23, 2024
5ab724c
[ci] format
ematipico Dec 23, 2024
1fab2f2
patch: update partytown dependencies (#12822)
stdavis Dec 24, 2024
ebe2aa9
fix(@astrojs/rss): revert incorrect Content-Type header applied for R…
SapphicMoe Dec 26, 2024
f706899
Fix sync-examples workflow (#12562)
bluwy Dec 31, 2024
96c4b92
fix: make `reference()` a sync transform (#12781)
ascorbic Jan 2, 2025
8809b85
Fix Vue & Svelte server renderer types (#12776)
aminevg Jan 2, 2025
440d8a5
fix: session regeneration (#12864)
kaytwo Jan 2, 2025
892dd9f
fix: pass cookie options to delete (#12820)
ascorbic Jan 2, 2025
524c855
fix(core): add error log for server islands (#12768)
ematipico Jan 2, 2025
ac00c64
[ci] format
ematipico Jan 2, 2025
e109002
fix: pass emulated entry to getCollection filter function (#12875)
ascorbic Jan 2, 2025
f12f111
fix: missing log (#12814)
ematipico Jan 2, 2025
7fb2184
fix: injected route entrypoint (#12816)
ematipico Jan 2, 2025
161df28
[ci] release (#12801)
astrobot-houston Jan 2, 2025
7b5dc6f
fix: add noindex to server island headers (#12827)
Jan 2, 2025
579bd93
fix: wait for content layer sync before starting dev server (#12818)
ascorbic Jan 2, 2025
a6a4a66
[ci] format
ascorbic Jan 2, 2025
6bbb3f5
Bump vitest to v3 beta (#12876)
bluwy Jan 3, 2025
d7e97a7
fix: add render() to stub content type defs (#12884)
ascorbic Jan 3, 2025
5997af8
fix(deps): update dependency htmlparser2 to v10 (#12857)
renovate[bot] Jan 3, 2025
e2dc04b
chore(deps): update dependency undici to v7 (#12580)
renovate[bot] Jan 3, 2025
047589d
fix(deps): update dependency @astrojs/node to v9 (#12687)
renovate[bot] Jan 3, 2025
cbd9bab
fix(deps): update dependency @preact/signals to v2 (#12811)
renovate[bot] Jan 3, 2025
78bcad9
chore(deps): update dependency @codspeed/vitest-plugin to v4 (#12742)
renovate[bot] Jan 3, 2025
73a0788
Fix sourcemap warning in server islands plugin (#12877)
bluwy Jan 3, 2025
fbac92f
fix: clone session data on .set() (#12883)
kaytwo Jan 5, 2025
3acc654
fix: match index files only by using entire basename (#12815)
ericswpark Jan 5, 2025
694e4cd
[ci] format
ascorbic Jan 5, 2025
7fdbd43
fix(underscore-redirects): force type (#12904)
florian-lefebvre Jan 6, 2025
383c2ab
chore(examples): add node types dep (#12905)
ascorbic Jan 6, 2025
2d89492
fix: don't match all paths when returning empty array from getStaticP…
ascorbic Jan 6, 2025
dbf1275
fix: pass server island route to astro:build:done routes (#12907)
florian-lefebvre Jan 6, 2025
96dade6
[ci] format
florian-lefebvre Jan 6, 2025
011fa0f
fix: do not generate a stub for content types (#12909)
florian-lefebvre Jan 6, 2025
88b493c
fix: do not generate a stub for content types (#12909)
florian-lefebvre Jan 6, 2025
84b0796
[ci] release (#12878)
astrobot-houston Jan 6, 2025
9a3b48c
Make MDX integration check noop (#12913)
bluwy Jan 7, 2025
2ffc0fc
fix: Reflect the configuration for esbuild (#12676)
koyopro Jan 7, 2025
216cb2b
[ci] format
bluwy Jan 7, 2025
8b9d530
Process empty markdown body for remark/rehype plugins (#12920)
bluwy Jan 7, 2025
aeb7e1a
fix(mdx): don't import image component when no images are used (#12921)
ascorbic Jan 7, 2025
0770810
[ci] format
ascorbic Jan 7, 2025
ad2a752
fix(routing): multiple decoding (#12927)
ematipico Jan 8, 2025
21aa25c
Fix biome correctness checks (#12929)
bluwy Jan 8, 2025
44841fc
fix: conditionally import image style (#12925)
ascorbic Jan 8, 2025
0c0c66b
feat: improve astro:env config error (#12912)
florian-lefebvre Jan 8, 2025
fd12a26
fix output path logging for build.format: preserve (#12918)
lameuler Jan 8, 2025
3caa337
feat(underscore-redirects): update API to support new hook (#12924)
florian-lefebvre Jan 8, 2025
d486836
chore: add test for astro:route:setup hook (#12933)
florian-lefebvre Jan 8, 2025
dbb04f3
fix: invalidate data store module when dev server starts (#12938)
ascorbic Jan 8, 2025
30edb6d
fix(routing): don't trigger get of headers (#12937)
ematipico Jan 8, 2025
8e64bb7
feat(assets): Store remote cached images in binary format (#12926)
oliverlynch Jan 9, 2025
2c99b52
[ci] format
ascorbic Jan 9, 2025
3d47e6b
pass original locals to the 404 page render (#12935)
AirBorne04 Jan 9, 2025
9962b09
[ci] format
ematipico Jan 9, 2025
5f16a4c
[ci] release (#12919)
astrobot-houston Jan 9, 2025
673a518
fix(container): compiling error with pnpm (#12934)
ematipico Jan 9, 2025
ce842c9
chore: add `funding` to the main package (#12946)
ematipico Jan 9, 2025
a20a4d7
Fix markdoc render code block in if tag (#12930)
bluwy Jan 9, 2025
bbb1bc9
fix: add starlog example viewport (#12941)
codenomnom Jan 9, 2025
35d77b4
chore: better types (#12944)
ematipico Jan 9, 2025
0414f61
[ci] format
ematipico Jan 9, 2025
3c2292f
fix: explicitly set dev mode for data store (#12947)
ascorbic Jan 9, 2025
df0c566
[ci] format
ascorbic Jan 9, 2025
51ab7b5
Support checking react 19 components (#12948)
bluwy Jan 10, 2025
db447f2
Adds blocking and disabled attributes to the TypeScript definition of…
martrapp Jan 10, 2025
1c36331
[ci] format
martrapp Jan 10, 2025
faf74af
Improve Static Asset Generation Performance (#12922)
adamchal Jan 10, 2025
3a267f3
Revert "Make MDX integration check noop (#12913)" (#12959)
bluwy Jan 10, 2025
2f9ba98
[ci] release (#12945)
astrobot-houston Jan 10, 2025
f00c2dd
fix(errors): fix error messages rendering incorrectly (#12942)
liruifengv Jan 10, 2025
1f9571b
Version transitions in CLI outputs (#12739)
gnify Jan 10, 2025
4b7a2ce
fix: check if content layer files have changed before writing (#12962)
ascorbic Jan 10, 2025
bee7df7
Add inline mdx component test (#12965)
bluwy Jan 10, 2025
d864e09
fix: delete old entry when frontmatter slug changed (#12966)
ascorbic Jan 10, 2025
971cfe5
[ci] format
ascorbic Jan 10, 2025
57be349
Fix i18n current locale (#12839)
mtwilliams-code Jan 10, 2025
971fde7
[ci] format
ematipico Jan 10, 2025
cca3bc9
fix: correct more typos (#12971)
szepeviktor Jan 13, 2025
c7642fb
Remove custom optimizeDeps.include in react integration (#12923)
bluwy Jan 13, 2025
3aff68a
Remove encryption of empty props to allow server island cacheability …
kaytwo Jan 13, 2025
80067c0
fix: load env earlier (#12977)
florian-lefebvre Jan 13, 2025
6c68269
[ci] release (#12960)
astrobot-houston Jan 13, 2025
3d89e62
fix: align esbuild to vite (#12361)
LunaticMuch Jan 13, 2025
7a0855b
fix(deps): update all non-major dependencies (#12579)
renovate[bot] Jan 13, 2025
0ef1613
Fix component render in markdoc when `nodes.document.render` is `null…
bluwy Jan 13, 2025
c30070b
fix: 404 and 500 route matching (#12182)
braden-w Jan 13, 2025
ea603ae
Add warnings if multiple JSX renderers are used (#12887)
louisescher Jan 14, 2025
1072c76
[ci] format
ematipico Jan 14, 2025
1a026af
fix: 404 status in dev (#12980)
florian-lefebvre Jan 14, 2025
0968069
[ci] release (#12978)
astrobot-houston Jan 15, 2025
2d259cf
fix: better handling of resync and restarts in content layer (#12984)
ascorbic Jan 16, 2025
9f34e3f
[ci] format
ascorbic Jan 16, 2025
2e12f1d
fix: defer validation of reference entries (#12990)
ascorbic Jan 16, 2025
9b0a624
[ci] format
ascorbic Jan 16, 2025
bbf1d88
fix: handle requests for double slash in dev (#12733)
ascorbic Jan 16, 2025
df90e6d
[ci] format
ascorbic Jan 16, 2025
78fd73a
fix: actions codegen types (#12995)
florian-lefebvre Jan 16, 2025
627aec3
fix: do not inject env vars into non-source files (#13001)
ascorbic Jan 17, 2025
80c6801
Remove react integration ssr.external config (#12996)
bluwy Jan 17, 2025
429aa75
Fix server islands for prerender-only sites (#12982)
bluwy Jan 17, 2025
22eafff
[ci] format
bluwy Jan 17, 2025
9ce0038
fix: audit incorrectly flagging images as above the fold (#12993) (#…
Kynson Jan 20, 2025
7babf22
[ci] format
ascorbic Jan 20, 2025
cf30880
fix: upgrade Vite and update tests (#13011)
ascorbic Jan 20, 2025
9cc46f6
[ci] format
ascorbic Jan 20, 2025
f64b73c
feat(server-islands): only encode ETAGO delimiter (#11513)
kurtextrem Jan 20, 2025
3357ff6
fix(deps): update all non-major dependencies (#13008)
renovate[bot] Jan 20, 2025
d065182
Revert "feat(server-islands): only encode ETAGO delimiter (#11513)" (…
ascorbic Jan 20, 2025
0a0b197
[ci] release (#12991)
astrobot-houston Jan 20, 2025
1d272f6
fix: allow imports of Markdown files as raw text (#13026)
ascorbic Jan 21, 2025
bf119db
[ci] format
ascorbic Jan 21, 2025
8911bda
Update for WAI-ARIA 1.2 (#12986)
wetheredge Jan 21, 2025
f576519
Revert "Revert "feat(server-islands): only encode ETAGO delimiter (#1…
florian-lefebvre Jan 21, 2025
8fb3bea
chore: ignore jsonc files (#13029)
ematipico Jan 21, 2025
820eee3
fix(alpinejs): start on DOMContentLoaded (#13014)
jasonlav Jan 22, 2025
31668a1
[ci] format
florian-lefebvre Jan 22, 2025
4d0846b
Add rel links to sitemap and rss feed in blog starter kit (#13043)
ttmc Jan 22, 2025
d5fb7a3
[ci] format
florian-lefebvre Jan 22, 2025
8f520f1
Improve errors for invalid IDs in content collections (#12892)
louisescher Jan 22, 2025
a90f79f
[ci] format
ascorbic Jan 22, 2025
821d642
[ci] release (#13027)
astrobot-houston Jan 23, 2025
c7f1366
Fix get relative locale (#13045)
mtwilliams-code Jan 24, 2025
1a14b53
fix: correct broken import formatting (#13058)
ascorbic Jan 24, 2025
3c90d8f
Adds experimental support for disabling streaming (#13036)
artmsilva Jan 24, 2025
46ec06e
[ci] format
ematipico Jan 24, 2025
e36837f
fix: correctly handle multiple wildcard path aliases (#13059)
ascorbic Jan 24, 2025
1017bca
chore: adds wontfix label action (#13062)
ascorbic Jan 24, 2025
736b9b9
chore: fix a typo in the action message (#13063)
ascorbic Jan 24, 2025
0879cc2
[ci] release (#13056)
astrobot-houston Jan 27, 2025
db252e0
feat(markdown): add support for TOML frontmatter in Markdown files. (…
colinbate Jan 29, 2025
2ed4bd9
feat(tailwind): support v4 (#13049)
florian-lefebvre Jan 29, 2025
0f3be31
feat: new virtual module `astro:config` (#13084)
ematipico Jan 29, 2025
e621712
feat(routing): external redirects (#12979)
ematipico Jan 29, 2025
5361755
feat: redirect trailing slashes on on-demand rendered pages (#12994)
ascorbic Jan 29, 2025
18a2699
[ci] format
ematipico Jan 29, 2025
c3ed9ee
fix: docs and types (#13087)
ematipico Jan 29, 2025
1c42fb4
[ci] format
florian-lefebvre Jan 29, 2025
61ef2d9
chore: upgrade Vite and update tests (#13076)
sapphi-red Jan 29, 2025
23881e7
docs: update `integrations` JSDoc to replace Tailwind integration (#1…
ArmandPhilippot Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 5 additions & 0 deletions .changeset/blue-jokes-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/internal-helpers': minor
---

Adds `collapseDuplicateTrailingSlashes` function
11 changes: 11 additions & 0 deletions .changeset/blue-spies-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'astro': minor
---

Redirects trailing slashes for on-demand pages

When the `trailingSlash` option is set to `always` or `never`, on-demand rendered pages will now redirect to the correct URL when the trailing slash doesn't match the configuration option. This was previously the case for static pages, but now works for on-demand pages as well.

Now, it doesn't matter whether your visitor navigates to `/about/`, `/about`, or even `/about///`. In production, they'll always end up on the correct page. For GET requests, the redirect will be a 301 (permanent) redirect, and for all other request methods, it will be a 308 (permanent, and preserve the request method) redirect.

In development, you'll see a helpful 404 page to alert you of a trailing slash mismatch so you can troubleshoot routes.
6 changes: 4 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.7.0/schema.json",
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "withastro/astro" }],
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["@example/*", "@test/*"]
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
}
9 changes: 9 additions & 0 deletions .changeset/curvy-penguins-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@astrojs/tailwind': major
---

Deprecates the integration

Tailwind CSS now offers a Vite plugin which is the preferred way to use Tailwind 4 in Astro. Please uninstall `@astrojs/tailwind` and follow the [Tailwind documentation for manual installation](https://tailwindcss.com/docs/installation/framework-guides/astro).

This updated major version is only provided as a convenience for existing projects until they are able to migrate to the new plugin. It offers no additional functionality and is no longer recommended, but may continue to be used in your projects until it is removed entirely.
5 changes: 5 additions & 0 deletions .changeset/four-chairs-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Updates `astro add tailwind` to add the `@tailwindcss/vite` plugin instead of the `@astrojs/tailwind` integration
24 changes: 24 additions & 0 deletions .changeset/lazy-pandas-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
'@astrojs/markdown-remark': minor
---

Adds support for TOML frontmatter in `.md` and `.mdx` files

Astro 5.2 automatically identifies the format of your Markdown and MDX frontmatter based on the delimiter used. With `+++` as a delimiter (instead of the `---` YAML code fence), your frontmatter will automatically be recognized and parsed as [TOML](https://toml.io).

This is useful for adding existing content files with TOML frontmatter to your project from another framework such as Hugo.

TOML frontmatter can also be used with [content collections](https://docs.astro.build/guides/content-collections/), and files with different frontmatter languages can live together in the same project.

No configuration is required to use TOML frontmatter in your content files. Your delimiter will indicate your chosen frontmatter language:

```md
+++
date = 2025-01-30
title = 'Use TOML frontmatter in Astro!'
[author]
name = 'Colin Bate'
+++

# Support for TOML frontmatter is here!
```
22 changes: 22 additions & 0 deletions .changeset/light-pants-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
'astro': minor
---

Adds support for redirecting to external sites with the [`redirects`](https://docs.astro.build/en/reference/configuration-reference/#redirects) configuration option.

Now, you can redirect routes either internally to another path or externally by providing a URL beginning with `http` or `https`:

```js
// astro.config.mjs
import {defineConfig} from "astro/config"

export default defineConfig({
redirects: {
"/blog": "https://example.com/blog",
"/news": {
status: 302,
destination: "https://example.com/news"
}
}
})
```
5 changes: 5 additions & 0 deletions .changeset/many-fans-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Returns a more helpful 404 page in dev if there is a trailing slash mismatch between the route requested and the `trailingSlash` configuration
5 changes: 0 additions & 5 deletions .changeset/pretty-pumpkins-work.md

This file was deleted.

39 changes: 39 additions & 0 deletions .changeset/stupid-glasses-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
'astro': minor
---

Adds a new experimental virtual module `astro:config` that exposes a type-safe subset of your `astro.config.mjs` configuration

The virtual module exposes two sub-paths for controlled access to your configuration:
- `astro:config/client`: exposes config information that is safe to expose to the client.
- `astro:config/server`: exposes additional information that is safe to expose to the server, such as file/dir paths.

To enable this new virtual module, add the `experimental.serializeManifest` feature flag to your Astro config:

```js
// astro.config.mjs
import {defineConfig} from "astro/config"
export default defineConfig({
experimental: {
serializeManifest: true
}
})
```

Then, you can access the module in any file inside your project to import and use values from your Astro config:

```js
// src/utils.js
import { trailingSlash } from "astro:config/client";

function addForwardSlash(path) {
if (trailingSlash === "always") {
return path.endsWith("/") ? path : path + "/"
} else {
return path
}
}

```

For a complete overview, and to give feedback on this experimental API, see the [Serialized Manifest RFC](https://github.com/withastro/roadmap/blob/feat/serialised-config/proposals/0051-serialized-manifest.md).
13 changes: 13 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:1-18

# Install playwright
RUN npm install -g @playwright/test

# Install latest pnpm
RUN npm install -g pnpm

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& curl -sSL https://dl.google.com/linux/direct/google-chrome-stable_current_$(dpkg --print-architecture).deb -o /tmp/chrome.deb \
&& apt-get -y install /tmp/chrome.deb

COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt
34 changes: 34 additions & 0 deletions .devcontainer/basics/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Basics",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/basics",

"portsAttributes": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [4321],

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Server": "pnpm start --host"
},

"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
34 changes: 34 additions & 0 deletions .devcontainer/blog/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Blog",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/blog",

"portsAttributes": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [4321],

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Server": "pnpm start --host"
},

"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
21 changes: 21 additions & 0 deletions .devcontainer/component/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Component Template",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/component",

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"customizations": {
"codespaces": {
"openFiles": ["src/MyComponent.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
27 changes: 27 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "Contribute to Astro",
"build": {
"dockerfile": "Dockerfile"
},

"features": {
"ghcr.io/devcontainers/features/desktop-lite:1": {}
},

"postCreateCommand": "pnpm install && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Astro tests": "pnpm run test"
},

"customizations": {
"codespaces": {
"openFiles": ["README.md", "CONTRIBUTING.md"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
34 changes: 34 additions & 0 deletions .devcontainer/docs/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Docs Site",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/docs",

"portsAttributes": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [4321],

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Server": "pnpm start --host"
},

"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
5 changes: 5 additions & 0 deletions .devcontainer/example-welcome-message.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
👋 Welcome to "Astro" in GitHub Codespaces!

🛠️ Your environment is fully setup with all the required software.

🚀 The example app should automatically start soon in a new terminal tab.
6 changes: 6 additions & 0 deletions .devcontainer/examples.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:1-18

# Install latest pnpm
RUN npm install -g pnpm

COPY example-welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt
34 changes: 34 additions & 0 deletions .devcontainer/framework-alpine/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Alpine",
"build": {
"dockerfile": "../examples.Dockerfile"
},

"workspaceFolder": "/workspaces/astro/examples/framework-alpine",

"portsAttributes": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [4321],

"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

"waitFor": "postCreateCommand",

"postAttachCommand": {
"Server": "pnpm start --host"
},

"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}
Loading