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 #2

Open
wants to merge 3,494 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3494 commits
Select commit Hold shift + click to select a range
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
e3d7b3e
feat(cloudflare,netlify): stabilize astro:env secrets support (#496)
florian-lefebvre Jan 7, 2025
d51ac07
feat(cloudflare,netlify): stabilize astro:env secrets support (#496)
florian-lefebvre Jan 7, 2025
8b9d530
Process empty markdown body for remark/rehype plugins (#12920)
bluwy Jan 7, 2025
a761945
fix(deps): update all non-major dependencies (#457)
renovate[bot] Jan 7, 2025
9618164
fix(deps): update all non-major dependencies (#457)
renovate[bot] Jan 7, 2025
a29e6bf
fix(deps): update all non-major dependencies (#457)
renovate[bot] Jan 7, 2025
f6989c7
fix(deps): update all non-major dependencies (#457)
renovate[bot] Jan 7, 2025
03f15c4
chore: update adapters to better support astro v5 (#454)
alexanderniebuhr Jan 7, 2025
ff5d1f4
chore: update adapters to better support astro v5 (#454)
alexanderniebuhr Jan 7, 2025
20bb67e
chore: update adapters to better support astro v5 (#454)
alexanderniebuhr 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)
outslept 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
0888511
feat: upgrade underscore-redirects (#501)
florian-lefebvre Jan 13, 2025
77013fd
feat: upgrade underscore-redirects (#501)
florian-lefebvre Jan 13, 2025
d508e90
feat: upgrade underscore-redirects (#501)
florian-lefebvre Jan 13, 2025
0de93dc
[ci] release (#497)
github-actions[bot] Jan 13, 2025
3de8cd4
[ci] release (#497)
github-actions[bot] Jan 13, 2025
63dfbff
[ci] release (#497)
github-actions[bot] Jan 13, 2025
a6959f4
[ci] release (#497)
github-actions[bot] 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
fe35831
fix(deps): update all non-major dependencies (#503)
renovate[bot] Jan 14, 2025
0201787
fix(deps): update all non-major dependencies (#503)
renovate[bot] Jan 14, 2025
90bb351
fix(deps): update all non-major dependencies (#503)
renovate[bot] Jan 14, 2025
c16cca6
fix(deps): update all non-major dependencies (#503)
renovate[bot] Jan 14, 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
e7f8194
Remove internal vue handling in cloudflare integration (#506)
bluwy Jan 17, 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
2ca5b4b
fix(vercel): copy static assets after all integrations (#508)
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
bce2964
fix: correctly handle wildcard hosts in preview (#514)
ascorbic Jan 22, 2025
a369ecc
[ci] release (#507)
github-actions[bot] Jan 22, 2025
5293995
[ci] release (#507)
github-actions[bot] Jan 22, 2025
95ccbb3
[ci] release (#507)
github-actions[bot] 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
ef430a4
fix(vercel): handle integration static assets in non-static sites (#516)
ascorbic Jan 23, 2025
9b931db
[ci] release (#517)
github-actions[bot] Jan 23, 2025
0f3e23b
chore(node): add tests for preview host (#518)
ascorbic Jan 23, 2025
9e209c5
fix(vercel): update middleware esbuild settings (#519)
ascorbic Jan 23, 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
037495d
feat: content layer typings (#12666)
Thodor12 Jan 30, 2025
0f10384
[ci] format
ascorbic Jan 30, 2025
2ab0a61
chore: remove lit from readme (#13092)
ematipico Jan 30, 2025
f1133a1
fix: use vercel routing utils (#525)
ascorbic Jan 30, 2025
428bb7b
[ci] release (#520)
github-actions[bot] Jan 30, 2025
f6b7839
[ci] release (#13086)
astrobot-houston Jan 30, 2025
740eb60
fix: exclude Vite requests from trailing slash handling (#13095)
ascorbic Jan 30, 2025
23e631c
[ci] format
ascorbic Jan 30, 2025
3b10b97
[ci] release (#13096)
astrobot-houston Jan 30, 2025
187c4d3
fix: exclude tailwind package when installing integration (#13106)
ascorbic Jan 31, 2025
6430aee
[ci] release (#13108)
astrobot-houston Jan 31, 2025
cbd056c
fix(deps): update all non-major dependencies (#13074)
renovate[bot] Jan 31, 2025
23978dd
fix: remove special handling for injected endpoint slashes (#13111)
ascorbic Jan 31, 2025
c33eccb
[ci] format
ascorbic Jan 31, 2025
3a26e45
fix: correctly handle pathname for dynamic routing in rewrite (#13113)
unprintable123 Jan 31, 2025
0fa5c82
fix(i18n): server island request (#13112)
ematipico Jan 31, 2025
2a85bd7
[ci] format
ematipico Jan 31, 2025
7ccf950
[ci] release (#13114)
astrobot-houston Jan 31, 2025
c497491
chore(preact): upgrade @preact/preset-vite (#12950)
Marabyte Feb 3, 2025
b71bd10
fix: correct handling of collapsing slashes (#13130)
ascorbic Feb 4, 2025
d60c742
fix: ignore trailing slash for endpoints with file extensions (#13131)
ascorbic Feb 4, 2025
40f5f6f
Fix typo (#13126)
kantuni Feb 4, 2025
f98e29d
[ci] release (#13129)
astrobot-houston Feb 4, 2025
e76aa83
fix(routing): skip middleware for external redirects (#13133)
ematipico Feb 4, 2025
6b69db9
[ci] format
ematipico Feb 4, 2025
828b7b3
fix(deps): update all non-major dependencies (#13124)
renovate[bot] Feb 4, 2025
ac43580
Tailwind v4 onboarding enhancements (#13119)
Hacksore Feb 4, 2025
d1384b8
[ci] format
florian-lefebvre Feb 4, 2025
817fe55
[ci] release (#13135)
astrobot-houston Feb 4, 2025
43a37c1
Merge branch 'main' of ../../temp/adapters into move-node
ematipico Feb 5, 2025
b91c35a
fix: deps and test utils
ematipico Feb 5, 2025
d04177d
fix: tsconfig
ematipico Feb 5, 2025
1e533b9
fix(deps): update dependency tailwindcss to v4 (#13125)
renovate[bot] Feb 6, 2025
cdc3437
fix: pin `@vercel/routing-utils` (#528)
ascorbic Feb 6, 2025
2b3179b
[ci] release (#529)
github-actions[bot] Feb 6, 2025
9f54f0e
fix: tests and skip few of them
ematipico Feb 6, 2025
df7eb74
Merge pull request #13141 from withastro/move-node
ematipico Feb 6, 2025
bba875a
[ci] format
ematipico Feb 6, 2025
64c9a1e
Merge branch 'main' of ../../temp/adapters into move-netlify
ematipico Feb 6, 2025
2000f52
chore: fix tests and build
ematipico Feb 6, 2025
81a708d
chore: fix linting issues
ematipico Feb 6, 2025
ff03099
chore: use correct testing suite
ematipico Feb 6, 2025
8d0ab54
chore: fix linting
ematipico Feb 6, 2025
d15d183
chore: reduce severity
ematipico Feb 6, 2025
db32b91
Merge pull request #13146 from withastro/move-netlify
ematipico Feb 6, 2025
4e7d97f
[ci] format
ematipico Feb 6, 2025
3f3c487
Merge branch 'main' of ../../temp/adapters into move-vercel
ematipico Feb 6, 2025
64b118a
chore: move vercel adapter to code
ematipico Feb 6, 2025
efef413
Merge pull request #13147 from withastro/move-vercel
ematipico Feb 7, 2025
2e9c12a
[ci] format
ematipico Feb 7, 2025
a7776b8
Merge branch 'main' of ../../temp/adapters into move-cloudflare
ematipico Feb 7, 2025
9b8042a
chore: move cloudflare adapter to core monorepo
ematipico Feb 7, 2025
0063ecb
chore: fix linting issues
ematipico Feb 7, 2025
3607b5b
Merge pull request #13150 from withastro/move-cloudflare
ematipico Feb 7, 2025
00f56d9
[ci] format
ematipico Feb 7, 2025
8b223ee
chore: print snapshot release error output (#13151)
ascorbic Feb 7, 2025
c0be893
chore: fix repo URL (#13185)
ascorbic Feb 7, 2025
74c0bbe
chore: fix linting issues, integration tests (#13187)
ematipico Feb 7, 2025
7bc8256
fix: error message text (#13188)
ematipico Feb 7, 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
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .changeset/lorem-ipsum-dolor

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/mean-icons-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes the wording of the an error message
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:0-18
FROM mcr.microsoft.com/devcontainers/javascript-node:1-18

# Install playwright
RUN npm install -g @playwright/test
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/examples.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:0-18
FROM mcr.microsoft.com/devcontainers/javascript-node:1-18

# Install latest pnpm
RUN npm install -g pnpm
Expand Down
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = false

[{.*,*.md,*.json,*.toml,*.yml,}]
[{.*,*.md,*.json,*.toml,*.yml,*.json5}]
indent_style = space
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
59e8c71786fd1c154904b3fefa7d26d88f4d92d2
# Change formatting (#10180)
062623438b5dfd66682a967edc7b7c91bd29e888
# Update to trailingComma: 'all' (#11640)
72c7ae9901de927ae8d9d5be63cbaef4f976422c
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/---01-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ body:
Thank you for taking the time to file a bug report! Please fill out this form as completely as possible.

✅ I am using the **latest version of Astro** and all plugins.
✅ I am using a version of Node that Astro supports (`>=18.14.1`)
✅ I am using a version of Node that Astro supports (`v18.17.1` or `v20.3.0` or higher.)
- type: textarea
id: astro-info
attributes:
Expand Down Expand Up @@ -42,7 +42,7 @@ body:
id: bug-reproduction
attributes:
label: Link to Minimal Reproducible Example
description: 'Use [astro.new](https://astro.new) to create a minimal reproduction of the problem. **A minimal reproduction is required** so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be auto-closed. Not sure how to create a minimal example? [Read our guide](https://docs.astro.build/en/guides/troubleshooting/#creating-minimal-reproductions)'
description: 'Use [StackBlitz](https://astro.new/repro) to create a minimal reproduction of the problem. **A minimal reproduction is required** so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be auto-closed. Not sure how to create a minimal example? [Read our guide](https://docs.astro.build/en/guides/troubleshooting/#creating-minimal-reproductions)'
placeholder: 'https://stackblitz.com/abcd1234'
validations:
required: true
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: 💁 Support
url: https://astro.build/chat
about: 'This issue tracker is not for support questions. Join us on Discord for assistance!'
- name: 📘 Documentation
url: https://github.com/withastro/docs
about: File an issue or make an improvement to the docs website.
Expand All @@ -9,6 +12,3 @@ contact_links:
- name: 👾 Chat
url: https://astro.build/chat
about: Our Discord server is active, come join us!
- name: 💁 Support
url: https://astro.build/chat
about: 'This issue tracker is not for support questions. Join us on Discord for assistance!'
2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@
- packages/integrations/vue/**

'docs pr':
- packages/astro/src/@types/astro.ts
- packages/astro/src/types/public/**
- packages/astro/src/core/errors/errors-data.ts
20 changes: 19 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", "schedule:weekly", "group:allNonMajor"],
"extends": [
"config:recommended",
"schedule:weekly",
"group:allNonMajor",
":disablePeerDependencies",
"regexManagers:biomeVersions",
],
"labels": ["dependencies"],
"rangeStrategy": "bump",
"postUpdateOptions": ["pnpmDedupe"],
"ignorePaths": ["**/node_modules/**"],
"packageRules": [
// TODO: remove once the tailwind integration is removed
{
"matchPackageNames": ["tailwindcss"],
"ignorePaths": ["packages/integrations/tailwind"]
}
],
"ignoreDeps": [
// manually bumping deps
"@biomejs/biome",
"@types/node",
"astro-embed", // TODO: investigate upgrade (zod import issues with atproto)
"drizzle-orm", // TODO: investigate upgrade (has type issues)
"sharp",

// manually bumping workflow actions
Expand All @@ -19,5 +36,6 @@

// follow vite deps version
"postcss-load-config",
"esbuild",
],
}
74 changes: 37 additions & 37 deletions .github/scripts/announce.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { globby as glob } from 'globby';
import { fileURLToPath } from 'node:url';
import { readFile } from 'node:fs/promises';
import { fileURLToPath } from 'node:url';
import { globby as glob } from 'globby';
import { setOutput } from './utils.mjs';

const { GITHUB_REF = 'main' } = process.env;
const baseUrl = new URL(`https://github.com/withastro/astro/blob/${GITHUB_REF}/`);

const emojis = ['🎉', '🥳', '🚀', '🧑‍🚀', '🎊', '🏆', '✅', '🤩', '🤖', '🙌'];
const emojis = ['🎉', '🥳', '🚀', '🧑', '🎊', '🏆', '✅', '🤩', '🤖', '🙌'];
const descriptors = [
'new releases',
'hot and fresh updates',
Expand All @@ -18,34 +18,34 @@ const descriptors = [
'updates',
];
const verbs = [
"just went out!",
"just launched!",
"now available!",
"in the wild!",
"now live!",
"hit the registry!",
"to share!",
"for you!",
"for y’all! 🤠",
"comin’ your way!",
"comin’ atcha!",
"comin’ in hot!",
"freshly minted on the blockchain! (jk)",
"[is] out (now with 100% more reticulated splines!)",
"(as seen on TV!)",
"just dropped!",
"– artisanally hand-crafted just for you.",
"– oh happy day!",
"– enjoy!",
"now out. Be the first on your block to download!",
"made with love 💕",
"[is] out! Our best [version] yet!",
"[is] here. DOWNLOAD! DOWNLOAD! DOWNLOAD!",
"... HUZZAH!",
"[has] landed!",
"landed! The internet just got a little more fun.",
"– from our family to yours.",
"– go forth and build!"
'just went out!',
'just launched!',
'now available!',
'in the wild!',
'now live!',
'hit the registry!',
'to share!',
'for you!',
'for y’all! 🤠',
'comin’ your way!',
'comin’ atcha!',
'comin’ in hot!',
'freshly minted on the blockchain! (jk)',
'[is] out (now with 100% more reticulated splines!)',
'(as seen on TV!)',
'just dropped!',
'– artisanally hand-crafted just for you.',
'– oh happy day!',
'– enjoy!',
'now out. Be the first on your block to download!',
'made with love 💕',
'[is] out! Our best [version] yet!',
'[is] here. DOWNLOAD! DOWNLOAD! DOWNLOAD!',
'... HUZZAH!',
'[has] landed!',
'landed! The internet just got a little more fun.',
'– from our family to yours.',
'– go forth and build!',
];
const extraVerbs = [
'new',
Expand All @@ -72,7 +72,7 @@ const plurals = new Map([

function pluralize(text) {
return text.replace(/(\[([^\]]+)\])/gm, (_, _full, match) =>
plurals.has(match) ? plurals.get(match) : `${match}s`
plurals.has(match) ? plurals.get(match) : `${match}s`,
);
}

Expand All @@ -91,7 +91,7 @@ async function generatePackageMap() {
const pkgFile = fileURLToPath(new URL(pkg, packageRoot));
const content = await readFile(pkgFile).then((res) => JSON.parse(res.toString()));
packageMap.set(content.name, `./packages/${pkg.replace('/package.json', '')}`);
})
}),
);
}

Expand All @@ -110,7 +110,7 @@ async function generateMessage() {
version,
url: new URL(`${p}/CHANGELOG.md#${version.replace(/\./g, '')}`, baseUrl).toString(),
};
})
}),
);

const emoji = item(emojis);
Expand All @@ -122,7 +122,7 @@ async function generateMessage() {
if (packages.length === 1) {
const { name, version, url } = packages[0];
message += `${emoji} \`${name}@${version}\` ${singularlize(
verb
verb,
)}\nRead the [release notes →](<${url}>)\n`;
} else {
message += `${emoji} Some ${descriptor} ${pluralize(verb)}\n\n`;
Expand All @@ -141,7 +141,7 @@ async function generateMessage() {
message += `\nAlso ${item(extraVerbs)}:`;

const remainingPackages = packages.filter((p) => p.name !== name);
for (const { name, version, url } of remainingPackages) {
for (const { name, version, _url } of remainingPackages) {
message += `\n• \`${name}@${version}\``;
}

Expand All @@ -159,7 +159,7 @@ async function generateMessage() {

async function run() {
const content = await generateMessage();
console.log(content);
console.info(content);
setOutput('DISCORD_MESSAGE', content);
}

Expand Down
54 changes: 35 additions & 19 deletions .github/scripts/bundle-size.mjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { build } from 'esbuild';
import { existsSync } from 'node:fs';
import { build } from 'esbuild';

const CLIENT_RUNTIME_PATH = 'packages/astro/src/runtime/client/';

function formatBytes(bytes, decimals = 2) {
if (bytes === 0) return '0 B';
if (bytes === 0) return '0 B';

const k = 1024;
const dm = decimals < 0 ? 0 : decimals;
const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
const k = 1024;
const dm = decimals < 0 ? 0 : decimals;
const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];

const i = Math.floor(Math.log(bytes) / Math.log(k));
const i = Math.floor(Math.log(bytes) / Math.log(k));

return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
}

export default async function checkBundleSize({ github, context }) {
Expand All @@ -24,7 +24,7 @@ export default async function checkBundleSize({ github, context }) {
pull_number: PR_NUM,
});
const clientRuntimeFiles = files.filter((file) => {
return file.filename.startsWith(CLIENT_RUNTIME_PATH) && file.status !== 'removed'
return file.filename.startsWith(CLIENT_RUNTIME_PATH) && file.status !== 'removed';
});
if (clientRuntimeFiles.length === 0) return;

Expand All @@ -35,17 +35,24 @@ export default async function checkBundleSize({ github, context }) {
const output = await bundle(clientRuntimeFiles);

for (let [filename, { oldSize, newSize, sourceFile }] of Object.entries(output)) {
filename = ['idle', 'load', 'media', 'only', 'visible'].includes(filename) ? `client:${filename}` : filename;
const prefix = (newSize - oldSize) === 0 ? '' : (newSize - oldSize) > 0 ? '+ ' : '- ';
filename = ['idle', 'load', 'media', 'only', 'visible'].includes(filename)
? `client:${filename}`
: filename;
const prefix = newSize - oldSize === 0 ? '' : newSize - oldSize > 0 ? '+ ' : '- ';
const change = `${prefix}${formatBytes(newSize - oldSize)}`;
table.push(`| [\`${filename}\`](https://github.com/${context.repo.owner}/${context.repo.repo}/tree/${context.payload.pull_request.head.ref}/${sourceFile}) | ${formatBytes(oldSize)} | ${formatBytes(newSize)} | ${change} |`);
table.push(
`| [\`${filename}\`](https://github.com/${context.repo.owner}/${context.repo.repo}/tree/${context.payload.pull_request.head.ref}/${sourceFile}) | ${formatBytes(oldSize)} | ${formatBytes(newSize)} | ${change} |`,
);
}

const { data: comments } = await github.rest.issues.listComments({
...context.repo,
issue_number: PR_NUM
})
const comment = comments.find(comment => comment.user.login === 'github-actions[bot]' && comment.body.includes('Bundle Size Check'));
issue_number: PR_NUM,
});
const comment = comments.find(
(comment) =>
comment.user.login === 'github-actions[bot]' && comment.body.includes('Bundle Size Check'),
);
const method = comment ? 'updateComment' : 'createComment';
const payload = comment ? { comment_id: comment.id } : { issue_number: PR_NUM };
await github.rest.issues[method]({
Expand All @@ -60,27 +67,36 @@ ${table.join('\n')}`,
}

async function bundle(files) {

const { metafile } = await build({
entryPoints: [...files.map(({ filename }) => filename), ...files.map(({ filename }) => `main/${filename}`).filter(f => existsSync(f))],
entryPoints: [
...files.map(({ filename }) => filename),
...files.map(({ filename }) => `main/${filename}`).filter((f) => existsSync(f)),
],
bundle: true,
minify: true,
sourcemap: false,
target: ['es2018'],
outdir: 'out',
external: ['astro:*', 'aria-query', 'axobject-query'],
metafile: true,
})
});

return Object.entries(metafile.outputs).reduce((acc, [filename, info]) => {
filename = filename.slice('out/'.length);
if (filename.startsWith('main/')) {
filename = filename.slice('main/'.length).replace(CLIENT_RUNTIME_PATH, '').replace('.js', '');
const oldSize = info.bytes;
return Object.assign(acc, { [filename]: Object.assign(acc[filename] ?? { oldSize: 0, newSize: 0 }, { oldSize }) });
return Object.assign(acc, {
[filename]: Object.assign(acc[filename] ?? { oldSize: 0, newSize: 0 }, { oldSize }),
});
}
filename = filename.replace(CLIENT_RUNTIME_PATH, '').replace('.js', '');
const newSize = info.bytes;
return Object.assign(acc, { [filename]: Object.assign(acc[filename] ?? { oldSize: 0, newSize: 0 }, { newSize, sourceFile: Object.keys(info.inputs).find(src => src.endsWith('.ts')) }) });
return Object.assign(acc, {
[filename]: Object.assign(acc[filename] ?? { oldSize: 0, newSize: 0 }, {
newSize,
sourceFile: Object.keys(info.inputs).find((src) => src.endsWith('.ts')),
}),
});
}, {});
}
Loading
Loading