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

6925 commits

Author SHA1 Message Date
renovate[bot]
fa0c5fa55e
fix(deps): update all non-major dependencies 2024-12-30 22:29:51 +00:00
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
5ab724c633 [ci] format 2024-12-23 12:21:38 +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
Emanuele Stoppa
98f9e833a5
fix(toolbar): assign label to icons (#12734) 2024-12-20 15:23:35 +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
49cc5d7266 [ci] format 2024-12-19 16:49:51 +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
Emanuele Stoppa
5e9d1bcf80
chore: move files to .mjs (#12765) 2024-12-19 14:24:00 +00:00
Matt Kane
73b6c8b1b3
chore: fix links in session errors (#12787) 2024-12-19 12:28:36 +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
4353fc5ccf
fix: correctly return 404.astro in i18n (#12764) 2024-12-19 11:22:25 +00:00
Matt Kane
45005a581d [ci] format 2024-12-19 11:12:01 +00:00
Matt Kane
1ec5b44ce3
chore(deps): update unstorage and use new syntax (#12783) 2024-12-19 11:10:55 +00:00
Florian Lefebvre
45c3f33387 [ci] format 2024-12-18 14:41:43 +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
a581c152fc [ci] format 2024-12-18 13:57:45 +00:00
Matt Kane
a94e309ebf [ci] format 2024-12-18 13:56:42 +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
Ariel K
ca3ff1504a
docs: Fix typos in config.ts (#12769)
- Replace `ie` with `e.g.`, as we're dealing with examples
- Use brackets to match the styles of previous lines
2024-12-18 11:46:36 +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
Cody Olsen
75de4a8c73 [ci] format 2024-12-16 19:20:28 +00:00
Cody Olsen
0ac0f25c18
fix: add support for react-compiler-runtime (#12735) 2024-12-16 14:19:38 -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
a7935578af [ci] format 2024-12-16 17:02:24 +00: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
25c1e597f1 [ci] format 2024-12-16 14:53:44 +00: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
Emanuele Stoppa
901c21f4f0
test: make tailwind test more stable (#12732) 2024-12-13 14:37:25 +00: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
72f30ddbf3 [ci] format 2024-12-13 07:08:08 +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
799c8676df [ci] format 2024-12-12 13:30:38 +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
eef4b740ff [ci] format 2024-12-11 16:07:47 +00:00