0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
Commit graph

4252 commits

Author SHA1 Message Date
Chloe Arciniega
ebe2aa95c7
fix(@astrojs/rss): revert incorrect Content-Type header applied for RSS XML file (#12829)
* fix: revert content-type changes

* chore: changeset
2024-12-26 08:52:34 +00:00
Scott Davis
1fab2f2ef6
patch: update partytown dependencies (#12822) 2024-12-24 11:21:20 +00:00
Louis Escher
70a9f0b984
Fix server island script breaking when charset is added to content-type (#12810) 2024-12-23 12:20:39 +00:00
Matt Kane
7b0cb852f6
fix: better logs for invalid content config (#12798)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2024-12-20 15:08:43 +00:00
Houston (Bot)
5f4c543609
[ci] release (#12790)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-20 12:10:36 +00:00
Matt Kane
739dbfba42
fix(deps): upgrade Vite (#12799) 2024-12-20 12:01:14 +00:00
Hiromasa Fujimori
f3d83854aa
update comment in packages/astro/src/types/public/common.ts (#12782) 2024-12-20 07:17:39 +00:00
Matt Kane
f632b94527
fix: pass raw frontmatter to when parsing markdown in glob loader (#12789) 2024-12-19 16:49:01 +00:00
Houston (Bot)
3f557b2e32
[ci] release (#12762)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-19 12:23:46 +00:00
Emanuele Stoppa
e56af4a3d7
chore: changeset (#12786) 2024-12-19 12:21:13 +00:00
Matt Kane
1ec5b44ce3
chore(deps): update unstorage and use new syntax (#12783) 2024-12-19 11:10:55 +00:00
Florian Lefebvre
c9d51107d0
feat(actions): getActionPath() (#12721)
* feat(actions): getActionPath()

* feat: take trailing slash into account

* fix

* fix

* Update wise-boxes-develop.md

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

* Update .changeset/wise-boxes-develop.md

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

---------

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-12-18 14:37:52 +00:00
Matt Kane
36c1e0697d
fix: clear the content layer cache when the Astro config changes (#12767)
* fix: clear the content layer cache when the Astro config changes

* Use deterministic-object-hash

* Switch back to safe-stringify

* Whitespace
2024-12-18 14:01:56 +00:00
Matt Kane
b4fec3c7d1
Sessions API (#12441)
* wip: experimental sessions

* feat: adds session options (#12450)

* feat: add session config

* chore: add session config docs

* Fix

* Expand doc

* Handle schema

* Remove example

* Format

* Lock

* Fix schema

* Update packages/astro/src/types/public/config.ts

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/astro/src/types/public/config.ts

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Add link to Sessions RFC in config.ts

* Move session into experimental

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Lock

* feat: prototype session support (#12471)

* feat: add session object

* Add tests and fix logic

* Fixes

* Allow string as cookie option

* wip: implement sessions (#12478)

* feat: implement sessions

* Add middleware

* Action middleware test

* Support URLs

* Remove comment

* Changes from review

* Update test

* Ensure test file is run

* ci: changeset base

* ci: exit from changeset pre mode

* Lockfile

* Update base

* fix: use virtual import for storage drivers (#12520)

* fix: use virtual import for storage drivers

* Don't try to resolve anythign in build

* Fix test

* Polyfill node:url

* Handle custom drivers directly

* No need for path

* Update packages/astro/src/core/session.ts

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Fix jsdoc

* fix: set default storage path

* Update changeset config for now

* Revert config workaround

* Lock

* Remove unneeded ts-expect-error directive

* fix: [sessions] import storage driver in manifest (#12654)

* wip

* wip

* Export manifest in middleware

* Changeset conf

* Pass session to edge middleware

* Support initial session data

* Persist edge session on redirect

* Remove middleware-related changes

* Refactor

* Remove vite plugin

* Format

* Simplify import

* Handle missing config

* Handle async resolution

* Lockfile

* feat(sessions): implement ttl and flash (#12693)

* feat(sessions): implement ttl and flash

* chore: add unit tests

* Make set arg an object

* Add more tests

* Add test fixtures

* Add comment

* Remove session.flash for now (#12745)

* Changeset

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2024-12-18 13:55:49 +00:00
oliverlynch
3dc02c57e4
feat(assets): Use entity-tags to revalidate cached remote images (#12426)
* feat(assets): Store etag to refresh cached images without a full download

* Seperate loading and revalidating functions

* Add changeset

* Updates based on requested changes

* Wording changes, use stale cache on failure to revalidate

* Add If-Modified-Since as cache revalidation method

* Update .changeset/red-poems-pay.md

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

---------

Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2024-12-18 13:20:12 +00:00
Alberto Matías Vega
8da2318551
fix: invoke vite.build with up to date configuration during astro:build:setup hook when target is "client" (#12763)
Co-authored-by: Alberto Matías <alberto.matias@bestsecret.com>
2024-12-17 13:40:36 +00:00
Chris Swithinbank
483da89cf6
Adds types for ?url&inline & ?url&no-inline import queries (#12758)
* Add types for Vite inline/no-inline import queries

* Add changeset

* Remove plain `?no-inline` type

* Update changeset
2024-12-17 11:50:51 +00:00
Houston (Bot)
3ff00a6655
[ci] release (#12759)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-16 22:02:50 -05:00
Matthew Phillips
95795f85db
Remove debug logging from output (#12756) 2024-12-16 16:25:27 -05:00
Houston (Bot)
a44cfb874a
[ci] release (#12753)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-16 14:51:44 -05:00
Matthew Phillips
391df0e410
Add changeset (#12755) 2024-12-16 14:50:11 -05:00
Matthew Phillips
039d022b1b
Clean sourcemaps from static output (#12749)
* Clean sourcemaps from static output

* Add changeset

* Update test to look at frontend sourcemaps
2024-12-16 14:19:11 -05:00
Houston (Bot)
d891d5dff5
[ci] release (#12748)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-16 12:40:13 -05:00
Matthew Phillips
c879f501ff
Revert "fix custom assetFileNames issue (#12449)" (#12746)
* Revert "fix custom `assetFileNames` issue (#12449)"

This reverts commit e6b8017239.

This change caused source maps to be left in the client folder, exposing them into the server.

* Add changeset
2024-12-16 12:01:37 -05:00
Houston (Bot)
33ae7320e8
[ci] release (#12716)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-16 16:29:28 +01:00
Florian Lefebvre
564ac6c2f2
feat: route manifest refactor (#12597)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-12-16 15:52:54 +01:00
Florian Lefebvre
7c7398c046
fix(cli): let sync throw in check (#12726) 2024-12-13 16:37:08 +01:00
JoeMorgan
8b1cecd6b4
Add inert attribute to boolean list (#12729)
* added changeset

* added changeset
2024-12-13 13:59:02 +00:00
Adam Argyle
ee66a45b25
Adds closedby to dialog interface (#12728)
* Adds `closedby` to dialog interface

Standards status https://chromestatus.com/feature/5097714453577728

* Add changeset

---------

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2024-12-13 10:40:23 +00:00
Matt Kane
029661daa9
fix: use atomic writes for data store file operations (#12715)
* fix: use atomic writes for data store file operations

* Put tmp alongside the target

* Implement locking

* Refactor

* Wording
2024-12-13 07:07:21 +00:00
mtwilliams
e3bfd93969
fix(i18n): parse params and props correctly with fallback (#12709)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-12-12 13:29:46 +00:00
Matt Kane
358eae83b7
chore: fixes the version of astrojs/db (#12719) 2024-12-12 10:29:18 +00:00
Magomed Chabaev
14dffcc3af
fix(actions): support trailing slash (#12657)
* fix(actions): support trailing slash

* refactoring
2024-12-11 16:06:57 +00:00
Emanuele Stoppa
ccc5ad1676
fix(i18n): manual routing with rewrite (#12718) 2024-12-11 15:23:50 +00:00
Anton Begehr
618de283f5
🐛 Fix isDbError()-guard does not work (#12416)
* isDbError() does not work
Fixes #12400

* lint&format

* Update packages/db/src/runtime/virtual.ts

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

* use isDbError instead of "instanceof LibsqlError"

* unused imports

* mv isDbError to utils

* Update .changeset/breezy-radios-grab.md

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-12-11 12:23:53 +00:00
Houston (Bot)
929ce28325
[ci] release (#12698)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-11 11:07:58 +00:00
Matt Kane
b01c74aecc
fix: strip query string before checking md extension (#12712) 2024-12-11 10:21:44 +00:00
Brian Kimball
97c9265754
Add React 19 stable as peer dependency for React integration (#12678)
* Add React 19 as peer dependency

* Add React 19 as peer dependency

---------

Co-authored-by: bskimball <brian.kimball@bdkonline.com>
2024-12-11 09:02:41 +00:00
Emanuele Stoppa
2aaed2d2a9
fix(middleware): don't import via entrypoint (#12707)
* fix(middleware): don't import via entrypoint

* fix(middleware): don't import via entrypoint
2024-12-10 20:48:38 +00:00
Matt Kane
f6c4214042
fix: correctly check isOnline with port (#12706) 2024-12-10 20:00:58 +00:00
Juraj Kapsz
316959355c
fix: xclip process runtime (#12658)
xclip process made `spawnSync` not [to return](https://nodejs.org/api/child_process.html#child_processspawnsynccommand-args-options:~:text=with%20the%20exception%20that%20the%20function%20will%20not%20return%20until%20the%20child%20process%20has%20fully%20closed). Further info at [Stack Overflow](https://stackoverflow.com/questions/52169670/node-child-process-execsync-hangs-with-xclip).

Also updated the xclip arguments as per man pages for better
familiarity, although the used arguments worked.
2024-12-10 12:43:44 +00:00
Matt Kane
0d1eab560d
fix: escape content module import paths (#12705) 2024-12-10 10:23:07 +00:00
Emanuele Stoppa
495f46bca7
fix(svg): conditional opt-in (#12694)
* fix(svg): conditional opt-in

* add todo

* Update packages/astro/src/assets/utils/node/emitAsset.ts

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-12-10 09:53:58 +00:00
Amumu
7dc2fca2ee
chore: fix vite peer dependency issue for vue integration (#12688)
* chore: fix peer dependency issue for vue integration

* add changesets
2024-12-10 08:37:56 +00:00
Matt Kane
1c4a032247
fix: escape image filenames (#12697) 2024-12-09 15:54:33 +00:00
Houston (Bot)
163cfd67f5
[ci] release (#12650)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-09 16:38:09 +01:00
Matt Kane
a203d5dd58
fix: catch image errors correctly (#12695) 2024-12-09 15:10:17 +00:00
Florian Lefebvre
a9373c0c9a
fix: do not freeze process.env in dev (#12585)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-12-09 13:29:44 +01:00
Sarah Rainsberger
e21c7e67fd
[error message] updates docs link (#12653) 2024-12-06 09:14:06 -04:00
Bjorn Lu
a71e9b93b3
Fix frontmatter parsing with utf8 bom (#12664) 2024-12-06 18:08:39 +08:00