0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
Commit graph

7933 commits

Author SHA1 Message Date
Emanuele Stoppa
dbb47d62eb feat: implement the next(payload) feature for rerouting 2024-04-23 14:57:23 +01:00
Emanuele Stoppa
242ba26103 fix merge issue 2024-04-22 15:57:07 +01:00
Emanuele Stoppa
e7eb2133ea fix rebase 2024-04-22 15:32:38 +01:00
Emanuele Stoppa
4c6c61fec2 Merge branch 'feat/reroute' into feat/reroute-ssr 2024-04-22 15:30:58 +01:00
Emanuele Stoppa
56f2274907 feat: reroute in SSG (#10843)
* feat: rerouting in ssg

* linting
2024-04-22 15:29:31 +01:00
Emanuele Stoppa
251ab8bb12 feat: implement reroute in dev (#10818)
* chore: implement reroute in dev

* chore: revert naming change

* chore: conditionally create the new request

* chore: handle error

* remove only

* remove only

* chore: add tests and remove logs

* chore: fix regression

* chore: fix regression route matching

* chore: remove unwanted test
2024-04-22 15:29:30 +01:00
Emanuele Stoppa
b9265f85d7 feat: reroute for SSR 2024-04-22 14:59:31 +01:00
Emanuele Stoppa
8da194d3d6 linting 2024-04-22 14:59:29 +01:00
Emanuele Stoppa
1d4f902e29 feat: rerouting in ssg 2024-04-22 14:59:00 +01:00
Emanuele Stoppa
8e32ed8eef
feat: reroute in SSG (#10843)
* feat: rerouting in ssg

* linting
2024-04-22 14:54:12 +01:00
Bjorn Lu
2f4d627815
Refactor MDX postprocess plugin (#10832) 2024-04-22 21:18:27 +08:00
Martin Trapp
a2df344bff
revert handling of JavaScript animations during view transitions (#10841) 2024-04-22 12:18:37 +02:00
Emanuele Stoppa
ba505e39d7
feat: implement reroute in dev (#10818)
* chore: implement reroute in dev

* chore: revert naming change

* chore: conditionally create the new request

* chore: handle error

* remove only

* remove only

* chore: add tests and remove logs

* chore: fix regression

* chore: fix regression route matching

* chore: remove unwanted test
2024-04-22 10:49:59 +01:00
renovate[bot]
68e3b7c59d
chore(deps): update dependency devalue to v5 (#10836)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 13:39:43 +08:00
renovate[bot]
79b738539a
chore(deps): update dependency chai to v5 (#10835)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-04-22 13:38:37 +08:00
renovate[bot]
2727370932
chore(deps): update dependency @types/mime to v4 (#10834)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-04-22 11:28:03 +08:00
Bjorn Lu
237e17c8fe
Update major deps (#10823) 2024-04-20 00:11:20 +08:00
Bjorn Lu
91219a5cf8
Use renovate (#10422)
* Use renovate

* Add more ignore
2024-04-19 08:49:33 -04:00
Damanjeet Singh
f214ae798c
fixed the path to checkout existing blog posts on the home page of the blog starter template (#10814)
Currently the 4th point on home page says: "Check out the included blog posts in src/pages/blog/". It the path here should be "src/content/blog/".
2024-04-19 10:02:17 +02:00
Houston (Bot)
7fda037b27
[ci] release (#10798)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-18 11:35:39 -04:00
Matthew Phillips
6561af9def [ci] format 2024-04-18 15:24:04 +00:00
Matthew Phillips
6313277137
Invalidate CC cache manifest when lockfile or config changes (#10763)
* Invalidate CC cache manifest when lockfile or config changes

* Close the handle and increment manifest version

* debug info

* Provide a reason for cache busting

* Handle compile metadata missing

* Try it this way

* Copy over cached assets as well

* Only restore chunks when cache is valid

* Better handle invalid caches

* Explain when there is no content manifest

* Add tests

* debugging

* Remove debugging

* Update packages/astro/src/core/build/plugins/plugin-content.ts

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

* Update packages/astro/src/core/build/plugins/plugin-content.ts

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

* Review comments

* Add chunks path constant

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-04-18 11:23:05 -04:00
Avinash Reddy
77822a822b
add/cli: update list of integrations (#10811) 2024-04-18 17:03:36 +08:00
Arsh
35e43ecdaa
optimization(runtime): create smaller objects for each Astro global (#10773)
* optimization(runtime): create smaller objects for each Astro global

* add changeset

* Make slots lazy

---------

Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-04-18 08:40:13 +01:00
Robin Gisler
5750ad12be [ci] format 2024-04-18 07:10:24 +00:00
Robin Gisler
0e22462d15
fix(sitemap): Trailing slashes on root url (#10772)
* add tests that reveal issue

* fix trailing slash root page issue

* add changeset
2024-04-18 08:09:25 +01:00
Emanuele Stoppa
914daad18b
test: fix regression upon import sorting (#10802) 2024-04-17 13:01:29 +01:00
Martin Trapp
1452cf69a4 [ci] format 2024-04-17 09:57:24 +00:00
Martin Trapp
dc74afca9f
Fixes an issue with persisted non-text input fields that have the focus during view transition navigation. (#10799)
* Fixes an issue with persisted non-text input fields that have the focus during view transition navigation.

* better check
2024-04-17 10:56:31 +01:00
Emanuele Stoppa
347bdfe550 [ci] format 2024-04-17 08:38:53 +00:00
Emanuele Stoppa
40e8450671
chore: use Biome to format JS files (#10788)
* chore: configuration

* chore: update main commands

* chore: revert formatting package.json

* chore: rebase
2024-04-17 09:37:22 +01:00
Nick Dubelman
d4c91cb109
db: export 'alias' from drizzle-orm/sqlite-core (#10789)
* db: export 'alias' from drizzle-orm/sqlite-core

* chore: changeset

* fix: changeset target

---------

Co-authored-by: Ben Holmes <hey@bholmes.dev>
2024-04-16 17:28:20 -04:00
Houston (Bot)
668d97319c
[ci] release (#10777)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-16 17:07:50 +01:00
Rishi Raj Jain
3e7a12c853
fix: MDX cannot find relative image path without leading ./ (#10754)
Co-authored-by: Oliver Speir <115520730+OliverSpeir@users.noreply.github.com>
2024-04-16 22:13:52 +08:00
Rishi Raj Jain
a92e263beb
fix: use assetsDir in creating vite config (#10732)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-04-16 21:23:50 +08:00
Bjorn Lu
90669472df
Disable streaming for SSG (#10796) 2024-04-16 21:21:19 +08:00
Bjorn Lu
1ce22881c6
Improve sitemap generate performance (#10795) 2024-04-16 19:48:49 +08:00
Houston (Bot)
b2ef6abfff
[ci] update lockfile (#10791)
Co-authored-by: matthewp <matthewp@users.noreply.github.com>
2024-04-15 21:13:11 +08:00
Meghan Denny
b0589d0553
astro/cli/install-package.ts: whichPm may return null if ran in an empty directory (#10782) 2024-04-15 17:12:07 +08:00
Erika
af1af9faee [ci] format 2024-04-15 09:07:35 +00:00
Erika
0684312145
fix(assets): Forward headers from the original request to the internal request to the image (#10775) 2024-04-15 17:06:30 +08:00
Martin Trapp
01cb41763e [ci] format 2024-04-15 08:59:52 +00:00
Martin Trapp
699f4559a2
Make viewTransition.finished wait for animations triggered by viewTransition.ready (#10787) 2024-04-15 16:58:40 +08:00
Farzad
1607face67
Fix @types/cookie dependency (#10776)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-04-15 16:54:42 +08:00
Juraj Kapsz
4dbd545304
fix: picture fallback check (#10783) 2024-04-15 16:52:39 +08:00
Jason
a4e7d6650d [ci] format 2024-04-15 08:06:20 +00:00
Jason
6ebd81dbc4
lint: upgrade eslint to version 9 (#10730) 2024-04-15 16:05:10 +08:00
Bjorn Lu
88ee63a3ba
Remove MDX processor on buildEnd (#10770) 2024-04-15 15:56:53 +08:00
Erika
174ce25f61 [ci] format 2024-04-12 17:58:00 +00:00
Erika
308b5d8c12
fix(add): Fixes astro add modifying baseUrl by accident (#10774)
* fix(add): Fixes `astro add` modifying `baseUrl` by accident

* chore: changeset

* test: add test

* fix: tsconfig not being a json maybe is a mistake, I don't know!

* test: fix

* Update packages/astro/test/fixtures/tsconfig-handling/baseUrl/tsconfig.json

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-04-12 13:56:54 -04:00