Happydev
e0844852d3
Fix ?inline
and ?raw
css query suffixes inlined in style tags in development ( #6426 )
...
* test: add test cases
* test: add another expectation
* fix: don't crawl inline and raw css queries
* chore: changeset
2023-03-06 08:06:55 -05:00
李瑞丰
cd8469947b
Remove redundant comments when astro add
update astro.config.mjs
( #6412 )
...
* Remove redundant comments when update
* add \n
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-03-03 09:41:11 -06:00
Erika
0abd1d3e42
Use undici's FormData for polyfilling ( #6413 )
...
* fix(webapi): Use undici's FormData instead of a polyfill
* chore: changeset
2023-03-03 14:47:24 +01:00
Houston (Bot)
5c95f4f95a
[ci] release ( #6377 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-02 14:32:38 -06:00
Bjorn Lu
45501c531b
Teardown compiler to improve rendering perf ( #6391 )
...
* Teardown compiler to improve rendering perf
* Upgrade compiler to minor
* Try hacky test guard
* Nicer teardown flow
2023-03-02 14:54:07 +00:00
Juan Martín Seery
0e378c3b87
fix(vercel): update getRequest to use undici ( #6380 )
...
* fix(vercel): update getRequest to use undici
* Changeset
* haha ts-expect-error is a double-edged sword
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-03-01 19:00:52 +00:00
Bjorn Lu
ee8b2a0672
Fix astro sync config merge ( #6392 )
...
* Fix astro sync config merge
* Fix getViteConfig type
2023-03-01 15:19:19 +00:00
Joaquín Sánchez
02a7266e3c
fix: don't mix Vite plugins when spawning temporary Vite server ( #6368 )
...
* fix: don't mix Vite plugins when spawning temporary Vite server
* chore: include command to `createVite` options
* chore: use `command` and exclude `preview`
* chore: add test
* fix(test): remove command check from apply fn
* chore: add hint about filtering vite plugins and command
* chore: apply suggestion
Co-authored-by: Ben Holmes <hey@bholmes.dev>
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-02-27 15:26:11 -06:00
Erika
95164bfdd2
Add a warning when using encoding
in SSR and headers
on objects in endpoints ( #6358 )
...
* fix(endpoints): Add a warning when trying to set encoding and headers in SSR
* fix(endpoint): Oops, it'd be great if it actually worked
* fix(endpoint): Fix import path
* fix(endpoint): Add link to docs
* Update packages/astro/src/core/endpoint/index.ts
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* fix: don't output encoding warning if endpoint is pre-rendered
* Update packages/astro/src/core/endpoint/index.ts
* Update packages/astro/src/core/endpoint/index.ts
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-27 12:07:13 -06:00
Nate Moore
754c5ca9aa
Respect original package.json
indentation ( #6375 )
...
* fix(#6338 ): respect original indentation
* chore: add changeset
2023-02-27 10:09:54 -06:00
Houston (Bot)
71743aeca7
[ci] release ( #6359 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-27 08:55:42 -05:00
Matthew Phillips
d94aae7765
Only apply head propagation in trees that need it ( #6363 )
2023-02-24 17:28:15 -05:00
Kacper Potyrała
c87c16cfad
Add missing flags to help action ( #6352 )
...
* add missing flags to help action
* add proper changeset
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-24 16:17:28 -06:00
Reece McDonald
26bf12ef3c
[Lit] render DSD attributes based on shadowRootOptions
( #6351 )
...
* [Lit] render DSD attributes based on `shadowRootOptions`
## Changes
- Update `@astrojs/lit`’s `server.js` to properly render elements with `delegatesFocus: false` set in their `shadowRootOptions`.
- Logic is based on `@lit-labs/ssr` [latest implementation as found here](b0c3f82ef0/packages/labs/ssr/src/lib/render-value.ts (L738)
)
## Testing
A test was added to ensure an element with `delegatesFocus` set to true has this attribute properly included in the rendered static markup.
* chore: add changeset
2023-02-24 12:10:56 -06:00
Emanuele Stoppa
5aa6580f77
fix: bump undici
to v5.20.0 ( #6355 )
...
* fix: bump `undici` to v5.20.0
* fix(cookies): Hopefully the last time we mess with undici and cookies
* chore: add @astrojs/telemetry to changeset
---------
Co-authored-by: Princesseuh <princssdev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-24 12:10:33 -06:00
Houston (Bot)
a848a723f6
[ci] release ( #6287 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-23 14:50:11 -06:00
Nate Moore
504c7bacb8
Use getSetCookie, if available ( #6347 )
...
* fix: use getSetCookie, if available
* fix: explicitly use entries
* fix(image): be defensive on node@18.14.1
* chore: update changeset
* ci: skip test in 18.14.1
2023-02-23 13:41:00 -06:00
Raphael Bossek
075b87e8b7
Update MDX integration to es-module-lexer@1.1.1 ( #6296 )
...
* Update MDX integration to es-module-lexer@1.1.1
* Added missing pnpm-lock.yaml file
* Create lucky-flowers-wonder.md
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-23 09:20:06 -06:00
Happydev
f91a7f376c
fix(content): ensure underscore ignores only child paths of the content directory. ( #6330 )
...
* test: add test fixture
* test: add cc config file
* migrate to unit test instead
* fix: only include child folders in ignore list
* chore: changeset
2023-02-23 09:19:33 -06:00
Emanuele Stoppa
63dda6dedd
fix(astro): correctly change configuration when node adapter is added ( #6333 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-22 20:53:56 +00:00
wulinsheng123
ccd72e6bb4
fix #6020 ( #6320 )
2023-02-22 09:49:49 -05:00
Miles Pernicious
7f61e8fe36
[create-astro] Execute the 'git' step as the final interaction ( #6314 )
...
* [create-astro] Execute the 'git' step as the final interaction
This ensures the initialized repository has all configuration
changes commited in the first commit
* Add changeset
2023-02-21 10:48:06 -06:00
李瑞丰
d0dbee872f
create-astro
help info add --typescript
flag (#6294 )
...
* create-astro help info add --typescript flag
* changeset
* changeset
2023-02-21 10:33:52 -06:00
Bjorn Lu
2eb73cb9d1
Use .mjs extension when building for netlify edge and vercel serverless ( #6317 )
2023-02-21 22:14:47 +08: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
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
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
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
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
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
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
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
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
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
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
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
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
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