0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-17 23:11:29 -05:00
Commit graph

6847 commits

Author SHA1 Message Date
Matthew Phillips
a83e362ee4
Prevent usage of astro:content in the client ()
* Prevent usage of astro:content in the client

* Fix build errors

* Update .changeset/neat-dots-hear.md

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

* Throw an AstroError

* Just throw

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-08-27 16:35:44 -04:00
Bjorn Lu
9eccca53e3
Remove lingering env.d.ts files () 2024-08-28 00:00:46 +08:00
Bjorn Lu
ccce6d2061
Improve e2e setup () 2024-08-28 00:00:19 +08:00
Emanuele Stoppa
b601e47aff
chore: enable useImportType rule () 2024-08-27 16:49:42 +01:00
HiDeoo
ed7bbd990f
fix(markdoc): use astro components defined with extends () 2024-08-27 16:49:04 +01:00
Matthew Phillips
7315050fc1
Deprecate Astro.glob ()
This deprecated Astro.glob, see the changeset for details.
2024-08-27 10:51:15 -04:00
Emanuele Stoppa
05139ef8b4
feat(next): add Astro.routePattern ()
* feat: add `Astro.route`

* change logic and add test

* rebase

* rebase

* rename to `Astro.routePattern`

* chore: added more tests

* update test

* add leading slash
2024-08-27 15:45:16 +01:00
Matt Kane
0a92f1a3da [ci] format 2024-08-27 12:13:42 +00:00
Matt Kane
45b599c4d4
fix: ensure vite is not imported by runtime utils () 2024-08-27 13:12:50 +01:00
Eduardo Cereto Carvalho
2bb72c6396
docs: Content Layer API Example small fix ()
* Update astro.ts

small fix to example

* Create odd-otters-look.md

---------

Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-27 11:17:30 +01:00
Ben Holmes
b81b70332d [ci] format 2024-08-26 21:54:39 +00:00
Ben Holmes
20d47aa85a
Actions: give better guidance when a Response is returned by an Action ()
* feat: add error for invalid handler data

* refactor: remove redirect from ctx object

* chore: changeset

* chore: fix redirect codes

* fix: move redirect out of actionApiContext constructor

* refactor(test): reuse redirects const

* wip: bump timeouts

* wip: more bumps
2024-08-26 17:53:51 -04:00
Yuta Osawa
f1df1b3b46
Prevent Partytown integration from inserting a 'null' string into the body () 2024-08-26 21:36:35 +08:00
Stephan de Vries
1ffaae04cf
Fix typo in MissingImageDimension error message ()
* Fix typo in `MissingImageDimension` error message

* Update .changeset/perfect-socks-dress.md

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-08-26 14:28:16 +01:00
voidfill
497324c4e8
fix(astro): Prevent prefetching of same urls with different hashes ()
* fix(astro): prevent prefetching of the same urls with different hashes

* add changeset

* Update packages/astro/src/prefetch/index.ts

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

* Update .changeset/nasty-ladybugs-whisper.md

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

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-08-26 12:28:27 +01:00
Bjorn Lu
6fcaab84de
Make vite-plugin-fileurl a pre plugin () 2024-08-25 20:23:07 +08:00
Houston (Bot)
5966accdc1
[ci] release (alpha) ()
* [ci] release (alpha)

* Update packages/astro/CHANGELOG.md

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

* links to existing experimental docs instead of ones that don't exist yet!

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-23 12:46:18 -05:00
Emanuele Stoppa
7c0ccfc269
feat: change default value of checkOrigin ()
* feat: change default value of `checkOrigin`

* feedback

* feedback

* change `checkOrigin`
2024-08-23 16:07:20 +01:00
Matthew Phillips
e9e2139bf7
Remove legacy route prioritization ()
* Remove legacy route prioritization

* oops

* Add a changeset

* Remove bad merge stuff
2024-08-23 08:58:43 -05:00
Houston (Bot)
cf65476b27
[ci] release ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-22 16:56:59 -04:00
Ben Holmes
3f7630afd6
Actions: fix bad action result for actions with empty return value ()
* fix: correctly handle empty action response

* fix(test): add logout button test

* chore: changeset
2024-08-22 07:02:48 -04:00
Ben Holmes
4db5c74dd1 [ci] format 2024-08-22 09:52:18 +00:00
Ben Holmes
62e97a20f7
Actions: Allow effect chaining on form input validators ()
* feat: support effects on form validators

* feat: support object passthrough on form input

* feat: support infinitely nested effects with simplified types

* feat(test): ensure arbitrary schemas work with form data

* chore: changeset

* fix: support zod pipe()
2024-08-22 05:51:24 -04:00
Ben Holmes
260c4be050
Actions: expose ActionAPIContext ()
* feat: expose ActionAPIContext

* feat: expose ActionAPIContext
2024-08-22 05:51:06 -04:00
Houston (Bot)
22ceb48302
[ci] release ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-21 17:08:38 -04:00
Chris Swithinbank
9f943c1344
Fix file loader for JSON object files ()
* Add `filePath` to `file()` loader entries when JSON file is an object

* Add changeset
2024-08-21 12:17:52 +01:00
Emanuele Stoppa
6814ff07f5
chore: restore error and deprecate it ()
* chore: restore error and deprecate it

* change deprecation version

* Update packages/astro/src/core/errors/errors-data.ts
2024-08-21 11:19:21 +02:00
liruifengv
5ea13a8696
[docs]: fix typo () 2024-08-21 08:08:34 +01:00
Florian Lefebvre
ea71b90c9c
feat(next): make astro:env stable ()
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-21 08:38:00 +02:00
Ben Holmes
3416f8a3e1 [ci] format 2024-08-20 18:42:58 +00:00
Ben Holmes
b9a585c3fb
chore: remove unused astro error () 2024-08-20 14:42:02 -04:00
Ben Holmes
3691a626fb
[Actions] Fix middleware warning static mode ()
* fix: remove static usage warning with isPrendered flag

* fix(test): cookie is empty for prerendered routes in dev

* chore: add test route

* chore: changeset
2024-08-20 14:41:44 -04:00
Matthew Phillips
4cd6c43e22
Use GET and preload links on Server Islands ()
* Use GET and preload links on Server Islands

Use origin/next

Remove since

* Add test to verify large islands work

* Update based on feedback

* Merge conflict fixed

* Update test
2024-08-20 13:53:04 -04:00
Houston (Bot)
7e2f142a5a
[ci] release ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-20 16:35:33 +02:00
Sarah Rainsberger
41c3fcb618
[docs] update link to astro:env RFC ()
* [docs] revert link to astro:env RFC

* Create fair-trees-crash.md

* typo fix
2024-08-20 16:10:17 +02:00
Erika
9a2aaa01ea
fix(assets): Remove TLA by making compiledContent async ()
* fix(assets): Remove TLA by making compiledContent async

* fix: actually use the functions I just added lol

* chore: changeset
2024-08-20 15:52:08 +02:00
Erika
cfa6a47ac7
feat: remove the squoosh image service ()
* feat: remove the squoosh image service

* fix: build

* chore: changeset
2024-08-20 15:12:48 +02:00
Princesseuh
787fed8504
Merge branch 'main' into next 2024-08-20 14:29:50 +02:00
Erika
c6622adaeb
Deprecate the Squoosh image service () 2024-08-20 14:28:52 +02:00
Bjorn Lu
1fd84b6bbc
Remove unused code in internal scripts () 2024-08-20 18:25:04 +08:00
Bjorn Lu
6617491c3b
Cleanup unused JSX code ()
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-20 17:39:51 +08:00
liruifengv
88b6dca63b
[docs] fix indents () 2024-08-20 10:26:36 +01:00
Emanuele Stoppa
b5584248b1 [ci] format 2024-08-20 06:46:46 +00:00
Emanuele Stoppa
86a33915ff
fix: adapter features messaging ()
* fix: adapter features messaging

* Apply suggestions from code review

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

* Update .changeset/long-months-burn.md

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
2024-08-20 07:45:59 +01:00
Matthew Phillips
fc81b01bcd
Prevent race condition in Vercel adapter on Node 18 () 2024-08-19 15:45:02 -04:00
Houston (Bot)
f239242d90
[ci] release (alpha) ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-19 14:37:39 -04:00
Florian Lefebvre
c6400ab99c
fix: injectTypes path () 2024-08-19 20:04:51 +02:00
Sarah Rainsberger
826dc2a85a [ci] format 2024-08-19 15:28:04 +00:00
Sarah Rainsberger
ad919776ca
[docs] pattern to preserve ignoring files prefixed with an underscore ()
* [docs] `pattern` to preserve ignoring files prefixed with an underscore

* simplify examples with only md not mdx

Co-authored-by: Matt Kane <m@mk.gg>

* remove strange line full of tabs

* Update packages/astro/src/@types/astro.ts

* Apply suggestions from code review

* fix regex

---------

Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-08-19 16:27:12 +01:00
Bjorn Lu
b67742961a
Disable server.ws vite config for loading config files () 2024-08-19 22:52:42 +08:00