Commit graph

5149 commits

Author SHA1 Message Date
Sarah Rainsberger
18acae3edc
[error docs] update link for client-side scripts (#6423) 2023-03-06 14:36:40 -04:00
ematipico
8b49d1781d [ci] format 2023-03-06 17:03:18 +00:00
Emanuele Stoppa
a4a74ab70c
feat(cli): add help flags to various commands (#6394)
Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>
2023-03-06 16:58:56 +00:00
Dennis Morello
b087b83fe2
Add getStaticPaths type helpers to infer params and props (#6150)
* feat(astro): add InferGetStaticParamsType and InferGetStaticPropsType type helpers

* chore(astro): added changeset
2023-03-06 11:38:42 -05:00
Houston (Bot)
19fe4cb629
[ci] release (#6414)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-06 11:30:38 -05:00
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
Bjorn Lu
13f6f591e3
Improve server-stress benchmark comment (#6405) 2023-03-03 11:55:31 +08:00
Brian McManus
4a18d27f97
Fix marketing typo by just removing extra info (#6410) 2023-03-02 15:47:13 -06:00
Brian McManus
e66847b36e
Update devcontainer names (#6409)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-03-02 14:48:37 -06:00
Kanad Gupta
f4bf41bb27
fix: use official MDX extension (#6408)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-03-02 14:48:17 -06: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
Emanuele Stoppa
f208b5f897
ci: use one action for comments (#6406)
* ci: use single action for comments

* Update .github/workflows/benchmark.yml

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

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-03-02 16:10:56 +00: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
Emanuele Stoppa
2678264f51
ci: correctly update comment in action (#6397) 2023-03-01 16:23:24 +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
Emanuele Stoppa
c1ca84a8c1
ci: add workflow dispatch (#6386) 2023-03-01 14:02:35 +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
weakish
9f0ae4e6eb
Update doc link in non-html-pages example README (#6369) 2023-02-25 19:54:36 +01: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
Nate Moore
4d75396362
enable ci for merge_group (#6361) 2023-02-24 13:57:02 -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
Nate Moore
098341f17a
ci: don't pin pnpm/action-setup exactly (#6348) 2023-02-24 09:52:43 -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
Brian McManus
48b54d92ea
Fixes example README links to open in codespaces (#6346) 2023-02-23 11:20:19 -06:00
natemoo-re
178f74c9a7 [ci] format 2023-02-23 15:36:28 +00:00
Brian McManus
7da05febea
Enhanced Astro codespace support (#6288)
* Enhanced Astro codespace support

Enhances the base devcontainer and Dockerfile to provide a smoother
development experience out of the box for contributors.

Adds a devcontainer per example so that we can add buttons on astro.new
that will launch users straight into the appropriate example app.

* Cleanup devcontainers and pin base image

* Update .devcontainer/example-welcome-message.txt

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>

---------

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
2023-02-23 09:34:37 -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
Chris Swithinbank
5e86b011dc
Improve portfolio example icon support (#6343) 2023-02-23 15:48:01 +01:00