Commit graph

3224 commits

Author SHA1 Message Date
bluwy
1aea58f14a [ci] format 2023-03-06 14:58:51 +00:00
Bjorn Lu
c5bac09a42
Add page render benchmark (#6415) 2023-03-06 22:55:44 +08:00
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
Bjorn Lu
9d236c9417
Remove unused benchmarks (#6396)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-03-04 13:16:53 +08: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
natemoo-re
4ec781bd89 [ci] format 2023-03-02 20:37:26 +00: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
Bjorn Lu
f4937949d6
Refactor benchmark script (#6376)
* Add timer setting

* Setup benchmark code

* Setup memory benchmark

* Add compare function

* Add result preview

* Setup results preview

* Simplify script for CI

* Update CI

* Cleanup

* Temp remove fork guard

* Fix stuff

* Fix again

* Fix quotes

* Fix multiline output

* Simplify title

* Fix memory numbers

* Remove astro bin dir

* Fix gc

* Add repo guards

* Fix wrong call

* Set max space size

* Remove guard

* Bump memory a bit

* Organize neatly

* Update readme

* Try large md

* Try no gc

* Revert markdown and gc changes

* Test sha

* Try ref

* Try 128mb

* Set 256

* Add guard

* Apply suggestions from code review

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

* Add docs comment

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-03-01 08:46:06 +00:00
natemoo-re
045262ee99 [ci] format 2023-02-27 21:28:07 +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
natemoo-re
ff2e4dac7b [ci] format 2023-02-27 16:11:41 +00: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
bluwy
780c583b0e [ci] format 2023-02-26 01:53:18 +00:00
Vick Vasquez
67c58c48c7
fix: remove duplicate exit key from create template (#6360) 2023-02-26 09:51:26 +08: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
natemoo-re
b0aca3c66a [ci] format 2023-02-24 18:13:07 +00: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
John Beene
de3d79e06b
fix: too many files opened for collections with many entries (#6313)
* fix: too many files opened for collections with many entries

* Update packages/astro/src/content/types-generator.ts

* Update packages/astro/src/content/types-generator.ts

* Update packages/astro/src/content/types-generator.ts

* Update packages/astro/src/content/types-generator.ts

* Update packages/astro/src/content/types-generator.ts

* Update packages/astro/src/content/types-generator.ts

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-23 14:05:17 -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
natemoo-re
eed2c85513 [ci] format 2023-02-23 15:22:22 +00: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
matthewp
3b1871a726 [ci] format 2023-02-22 14:51:37 +00:00
wulinsheng123
ccd72e6bb4
fix #6020 (#6320) 2023-02-22 09:49:49 -05:00
natemoo-re
79ef8c97a2 [ci] format 2023-02-21 16:50:11 +00: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
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
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