Commit graph

5192 commits

Author SHA1 Message Date
bluwy
f218188b25 [ci] format 2023-02-21 14:17:00 +00:00
Bjorn Lu
2eb73cb9d1
Use .mjs extension when building for netlify edge and vercel serverless (#6317) 2023-02-21 22:14:47 +08:00
Christofer J. Ekervhén
2a6d09e5d2
Fix import of type HTMLAttributes in blog example (#6322)
* Fix extend type HTMLAttributes in blog example

* Update examples/blog/src/components/HeaderLink.astro

Co-authored-by: Christofer J. Ekervhén <45903979+ChrisEke@users.noreply.github.com>

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-02-21 14:21:19 +01:00
Erika
5e26bc891c
fix(cookies): Update Undici to 5.20 and fix cookies behaviour (#6323)
* fix(cookies): Update Undici to 5.20 and fix cookies behaviour

* chore: changeset
2023-02-21 14:18:17 +01:00
Dan Jutan
d3df40af2e
Docs: Image README clarifications (#6290)
* hosted on other domains -> accessed by url

* these work like remote images

* including images in public

* Update packages/integrations/image/README.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update packages/integrations/image/README.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update packages/integrations/image/README.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update packages/integrations/image/README.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update packages/integrations/image/README.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update packages/integrations/image/README.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* reorder remote first

* Update packages/integrations/image/README.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update packages/integrations/image/README.md

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

---------

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-02-18 13:59:48 -05:00
Happydev
a156ecbb7f
fix(content-collections): warn about allowJs only when content directory exists (#6293)
* warn only when `content` directory exists

* chore: changeset
2023-02-18 09:24:33 -05:00
Erika
a8577278e0
Add documentation for unknown errors (#6285)
* feat(errors): Add documentation for unknown errors

* docs(errors): Misc refactors

* docs(errors): Remove unnecessary messages

* docs(errors): Add guidance around UnknownError

* Update packages/astro/src/core/errors/errors-data.ts

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

---------

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-02-17 20:30:58 +01:00
vic1707
4fcefa34f9
update ChangeFreq to support typescript configurations with string literal (#6262)
* update `ChangeFreq`

* `pnpm exec changeset`

* use @Princesseuh suggested change

* Revert "use @Princesseuh suggested change"

This reverts commit a1e5660c25.

* use @Princesseuh suggested change and an `as`
2023-02-17 12:46:00 -06:00
Houston (Bot)
2e4ca0370a
[ci] release (#6279)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-17 13:44:15 -05:00
matthewp
ff70614083 [ci] format 2023-02-17 18:21:11 +00:00
Nate Moore
61113dd731
Fix prerendered page handling on Deno (#6284)
* fix(deno): handle prerendered pages

* test(deno): add prerender test

* fix: defensively access vite.build.rollupOptions.external

* fix(deno): support other formats of rollupOptions.external

* fix(deno): crawl prerendered files for match

* fix(deno): ignore deno error in server file

* fix(deno): cross-platform serve file
2023-02-17 13:19:19 -05:00
natemoo-re
ed92730925 [ci] format 2023-02-17 17:05:52 +00:00
Nate Moore
933c651fb1
Backwards compatible fix for --camelCase css vars in style attribute (#6268)
* fix(#6264): backward-compat fix for camelCase css vars in style

* chore: add changeset
2023-02-17 11:04:08 -06:00
Matthew Phillips
bb18010137
Pin undici (#6282) 2023-02-17 11:46:10 -05:00
matthewp
54166393be [ci] format 2023-02-17 16:00:41 +00:00
Matthew Phillips
609b249c8d
Revert "Deno fix #6131 (#6248)" (#6281)
* Revert "Deno fix #6131 (#6248)"

This reverts commit ef5cea4dc5.

* Create gold-months-live.md
2023-02-17 10:58:53 -05:00
李瑞丰
7a717d64a4
Update README.md (#6274) 2023-02-17 09:03:37 -06:00
Bjorn Lu
d9474d467e
Bump Vite to 4.1 (#6277) 2023-02-17 22:16:25 +08:00
Houston (Bot)
a486104692
[ci] release (#6269)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-17 14:48:21 +01:00
Erika
0f5d122cd5
fix(create-astro): Pin giget to 1.0.0 (#6278) 2023-02-17 14:45:47 +01:00
natemoo-re
f9fdf984f1 [ci] format 2023-02-16 21:34:56 +00:00
Julien Barbay
dbffee4e38
fix: add property name to rss errors (#6259)
* fix: add property name to rss errors

* Create good-snails-attend.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-16 15:33:12 -06:00
Houston (Bot)
17869bf749
[ci] release (#6267)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-16 15:15:51 -06:00
natemoo-re
c7dee0ada3 [ci] format 2023-02-16 20:30:05 +00:00
Nate Moore
066b4b4efc
Improve create-astro error handling (#6266)
* fix(create-astro): improve error handling for tasks that use spinner display

* refactor: timeout after 60s

* chore: remove unused file
2023-02-16 14:28:15 -06:00
Houston (Bot)
fb4e79bf1f
[ci] release (#6261)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-16 14:36:33 -05:00
Erika
9286e10568
fix(cookies): Fix cookies not being all returned on Node 16 after Undici upgrade (#6265)
* fix(cookies): Fix cookies not being all returned on Node 16 after Undici upgrade

* test(cookies): Oops
2023-02-16 20:26:00 +01:00
Ben Holmes
2fec478487
Fix: recursive getCollection() hanging (#6257)
* fix: avoid trying to SSR md?astroPropagatedAssets

* test: layout prop with recursive getCollection

* chore: changeset
2023-02-16 12:32:50 -05:00
Yan Thomas
802ae458fe
Clarify SVG image gotcha info (#6254)
* Clarify SVG image gotcha info

* More wording improvements!

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-02-16 11:30:27 -06:00
Chris Swithinbank
0fe74b6648
Only inject Vercel analytics in production (#6258)
* Only inject Vercel analytics in production

* Add changeset
2023-02-16 09:19:08 -06:00
natemoo-re
241c178354 [ci] format 2023-02-16 15:18:31 +00:00
wulinsheng123
ef5cea4dc5
Deno fix #6131 (#6248)
* fix: #6131

* fix: delete

* update code

* fix: fix bug

* add some tests

* fix route error

* delete comment

* delete trash code

---------

Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-02-16 09:16:07 -06:00
Bjorn Lu
0049fda62f
Support rehype plugins that inject namespaced attributes 2 (#6253) 2023-02-16 18:53:30 +08:00
Houston (Bot)
66acc6a65c
[ci] release (#6251)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-15 22:54:16 +08:00
Bjorn Lu
0fbcf838a7
Revert previous mdx breaking change (#6252) 2023-02-15 22:44:11 +08:00
bluwy
2ace02ece9 [ci] format 2023-02-15 14:30:50 +00:00
Bjorn Lu
5c7c7e463d
Fix unmount Svelte slots (#6250) 2023-02-15 22:28:59 +08:00
Houston (Bot)
4b89c2b553
[ci] release (#6239)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-15 08:05:27 -05:00
bluwy
7a6c09fac0 [ci] format 2023-02-15 09:08:55 +00:00
Bjorn Lu
4f6ecba4c1
Support rehype plugins that inject namespaced attributes (#6243)
* Support rehype plugins that inject namespaced attributes

* Fix rehype property casing
2023-02-15 17:06:33 +08:00
Bjorn Lu
1c678f7ebf
Fix hydration path for circular imports (#6244) 2023-02-15 16:49:57 +08:00
Gérald Gounot
ac3649bb58
Add support for SVG images to  @astrojs/image (#6118)
* @astrojs/image: add support for SVG images

* @astrojs/image: add tests for SVG images

* @astrojs/image: update README.md with SVG format info

* Add minor changeset for @astrojs/image
2023-02-15 09:21:41 +01:00
Shinya Fujino
87e0c10365
Update pnpm version from 7.5.0 to 7.9.5 (#6232) 2023-02-14 15:56:06 -06:00
bholmesdev
16cb5bc6a1 [ci] format 2023-02-14 14:28:58 +00:00
Ben Holmes
deacd5443a
Run integration config hook on astro sync (#6238)
* refactor: move sync to core

* fix: runHookConfigSetup in CLI

* chore: changeset

* fix: sync import on test-utils

* fix: use syncCli in check
2023-02-14 09:26:30 -05:00
MoustaphaDev
e00e934140 [ci] format 2023-02-13 22:21:23 +00:00
Happydev
c397be324f
fix: add support for js/mjs file extensions for Content Collections config file (#6229)
* test: add fixture

* test: add test case

* test: fix tests

* feat: support mjs/ js file extensions for cc config

* chore: sync lockfile

* test: make assertion more specific

* test: make template minimal

* chore: add changeset

* feat: add warning when `allowJs` is `false`

* improve warning

* extract tsconfig loader to another function

* rename to more descriptive variable

* apply review suggestion

Co-authored-by: Ben Holmes <hey@bholmes.dev>

---------

Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-02-13 22:19:16 +00:00
Houston (Bot)
27a0b6339b
[ci] release (#6200)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-13 15:26:13 -05:00
matthewp
6d4810b08b [ci] format 2023-02-13 19:50:21 +00:00
Matthew Phillips
a7f18051b1
Prevent hydration mismatches in Preact (#6215) 2023-02-13 14:48:36 -05:00