0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
Commit graph

7283 commits

Author SHA1 Message Date
Nate Moore
a1c31665cb
Ensure appEntrypoint is referenced in Vue components (#9490)
* fix(#6827): ensure `appEntrypoint` is referenced in Vue components

* chore: add test

* chore: add changeset

* fix: windows handling

* Update packages/integrations/vue/src/index.ts

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

* chore: address review feedback

* chore: update lockfile

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-05 13:30:53 -06:00
Arsh
bd3f36e6ab [ci] format 2024-01-05 18:28:59 +00:00
Arsh
22a5405b4a
fix(vercel): include 404.html as fallback in the static adapter (#9591)
* include 404.html as fallback

* add changeset

* include only when 404.astro exists

* add test

* route.component -> route.pathname
2024-01-05 23:57:48 +05:30
Sarah Rainsberger
64a8470ddb
[docs] update config reference (#9621) 2024-01-05 10:48:47 -04:00
Bjorn Lu
5156c74050
Fix limitInputPixels type (#9622)
* Fix limitInputPixels type

* Use sharp options
2024-01-05 14:47:00 +00:00
임동현(Ivan)
d87a97e109 [ci] format 2024-01-05 13:59:48 +00:00
임동현(Ivan)
401fd3e8c8
feat: Add APIRoute second generic (#9618) 2024-01-05 21:58:49 +08:00
Jacob Lamb
47b951b388
chore: UpdatepossibleConfigFiles (#9600)
* Add `.ts` to list of `possibleConfigFiles`

* Add more options

* Create many-rules-kick.md

* Update .changeset/many-rules-kick.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-05 10:17:20 +00:00
Arsh
218ea0781b [ci] format 2024-01-04 16:38:10 +00:00
Arsh
bd8fa7acd2
chore(vercel): deprecate speedInsights (#9598)
* deprecate speedInsights config

* add changeset
2024-01-04 16:37:13 +00:00
Marvin
2e4d110a87
[solidjs integration] Update solidjs dependency (#9355)
* update solidjs dependency

* update lockfile

* solidjs integration: update vite-plugin-solid

* update lockfile

* solidjs integration: decrease required version to match vite plugin

* Update moody-years-worry.md

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-04 16:25:53 +00:00
Houston (Bot)
e862d070b4
[ci] release (#9580)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-04 15:16:31 +00:00
Patrick Miller
825ba1a598 [ci] format 2024-01-04 11:38:04 +00:00
Patrick Miller
37021044dd
Render async SolidJS components (#6791)
* Render async SolidJS components

* Add renderer-specific hydration script to allow for proper SolidJS hydration

* Add support for Solid.js 1.8.x

* Address documentation feedback

* Rebuild pnpm lock file based on main branch

* Address PR feedback from ematipico

---------

Co-authored-by: Johannes Spohr <johannes.spohr@futurice.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-04 11:37:08 +00:00
Bjorn Lu
3b4e629ac8
Improve astro add deps error reporting (#9593) 2024-01-04 11:16:53 +00:00
Martin Trapp
82bad5d620
Fixes page titles in the browser's drop-down for back / forward navigation when using view transitions (#9586)
* Fixes titles in the browser's dropdown for back / forwards traversals through the browser history

* Improve names of constants

* Reword the changset description
2024-01-04 11:15:35 +00:00
Bjorn Lu
00fcf82eb7
Fix ts errors for component template (#9602) 2024-01-04 11:06:37 +00:00
Alex Jet
6834b3d3fe [ci] format 2024-01-04 11:02:19 +00:00
Alex Jet
0903ef9049
feat: add preact-ssr-prepass (#9524)
* feat: add preact-ssr-prepass

* added more info to changelog

* fix example in changelog

* fix changelog description

* fix tab in code of changelog

* Update .changeset/blue-bobcats-remain.md

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-04 11:01:08 +00:00
Arsh
a1b324b31b [ci] format 2024-01-04 11:00:47 +00:00
Arsh
9fd24a546c
fix(routing): trailingSlash on endpoints (#9597)
* fix(routing): applies trailingSlash on endpoints

* add changeset

* add test

* Update .changeset/funny-lobsters-promise.md

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-01-04 10:59:48 +00:00
Sarah Rainsberger
2814984ab9 [ci] format 2024-01-04 01:38:49 +00:00
Sarah Rainsberger
de15b4a891
[docs] update config-reference for 4.1.0 docs release (#9595)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-01-03 21:37:52 -04:00
Erika
fbc2697653
feat: update extended client:visible to use an object instead of a string (#9596)
* Revert "feat: support setting rootMargin for `client:visible` (#9363)"

This reverts commit 769826edbd.

* feat: update extended `client:visible` to use an object instead of a string

* Apply suggestions from code review

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* test: add a test

* nit: comment

* test: write the test some other way to try to convince playwright

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-03 19:44:04 -05:00
Jenna Smith
da307e4a08
feat: add extendable CSSProperties interface (#9587)
* feat: add extendable `CSSProperties` interface

* Update .changeset/slow-kiwis-own.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-03 09:39:17 -05:00
Bjorn Lu
fe719e27a8
Add reverted aria audit rules for dev toolbar (#9377)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-01-03 13:34:21 +00:00
Mads Erik Forberg
f85cb1fab6 [ci] format 2024-01-03 13:21:03 +00:00
Mads Erik Forberg
769826edbd
feat: support setting rootMargin for client:visible (#9363)
* feat: support setting rootMargin for `client:visible`

This support adding optional `rootMargin` to the `IntersectionObserver` options.

This gives the developer the optional choice to hydrate a bit before the astro-island enters the viewport.

* chore: update type for client:visible

* chore: added changeset

* chore: update types

* fix: check if value is string

* Update stupid-peas-juggle.md

* fix: update .changeset/stupid-peas-juggle.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-03 13:20:07 +00:00
Alex Sherwin
f33fe3190b
Allow setting all cookie package serialize/parse options (#9063)
* #9062: allow setting all cookie package serialize/parse options

* 9062: fix scripts to original arrangement

* feat: only add specific properties

* Update tiny-days-dance.md

* Add examples to the changeset

* Update .changeset/tiny-days-dance.md

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

* Update .changeset/tiny-days-dance.md

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

* Update .changeset/tiny-days-dance.md

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

* Update .changeset/tiny-days-dance.md

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

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-01-03 13:19:41 +00:00
Bjorn Lu
08402ad584
Add limitInputPixels option for sharp image service (#9546)
* Add limitInputPixels option for sharp image service

* Fix types

* Update docs

Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
2024-01-03 13:19:04 +00:00
简静凡
d239e2cd7c [ci] format 2024-01-03 13:10:02 +00:00
简静凡
e44f6acf99
enhance(prefetch): Adds a 'load' prefetch strategy, and ignores 3g in slow connection detection (#9513)
* [enhance:prefetch] add global ignoreSlowConnection and add none to defaultStrategy enum

* changeset

* change defaultStrategy enum 'none' to 'all', and fix e2e test

* test:e2e prefetch

* update changeset

* rename defaultStrategy.all to defaultStrategy.load

* fix: remove global ignoreSlowConnection config and ignore 3g in slow connection detection

* fix: Revert variable name changes

* Split changeset

---------

Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-03 13:07:58 +00:00
Bjorn Lu
2a8b9c56b9
Support --open with url string (#9573)
* Support --open with url string

* Update jsdoc

* Fix typo

* Document server.open

* Apply suggestions from code review

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-03 13:07:31 +00:00
Austin Merrick
607303be19
Move create-astro async tasks to end (#9470)
* Upgrade @astrojs/cli-kit

* Add tasks to context

* Change steps to use tasks

* Do tasks at end

* Add changeset

* Make labels more consistent

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* Update .changeset/chatty-penguins-sin.md

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

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-03 13:06:57 +00:00
Bjorn Lu
b8a6fa8917
Error on preview if outDir missing (#9544)
* Error on preview if outDir missing

* Update .changeset/four-moles-burn.md

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

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-03 13:05:51 +00:00
Bjorn Lu
ab6049bd58
Set default NODE_ENV for JS API (#9575) 2024-01-03 15:54:30 +08:00
Mati
1099c6412b
Patch set-output deprecation in workflows (#9543) 2024-01-03 14:20:38 +08:00
Martin Trapp
98c69b89cc
Fix history usage of PR 9563 (#9581) 2024-01-02 22:43:09 +01:00
Martin Trapp
d48ab90fb4
Fix history navigation to hash fragment on Firefox when using view transitions (#9563)
* Fix history navigation to hash fragment on Firefox when using view transitions

* Edit changeset

* Improve changeset, add co-authors
2024-01-02 22:18:52 +01:00
Houston (Bot)
d854330571
[ci] release (#9541)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-02 10:26:33 -05:00
Bjorn Lu
ec71f03cfd
Remove telemetry for unhandled errors (#9571) 2024-01-02 23:14:09 +08:00
Canaris
f192fc3a35 [ci] format 2024-01-02 14:53:17 +00:00
Canaris
67e06f9db1
yarn add should be used to install packages instead of yarn install (#9562)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-02 22:52:22 +08:00
Syg
55e49b3ffb [ci] format 2024-01-02 12:13:55 +00:00
Syg
8b873bf1f3
Add 'starlight' to displayed options under 'add' option in CLI (#9559)
* Add 'starlight' to displayed options under 'add' option in CLI

* Create tall-mayflies-deliver.md

* Update tall-mayflies-deliver.md

---------

Co-authored-by: syg <sygint@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-02 12:12:58 +00:00
Mati
86b05491f0 [ci] format 2024-01-02 12:09:35 +00:00
Mati
8cc3d6aa46
Implement i18n's getLocaleByPath function (#9504)
* Implement getLocaleByPath function

* Fix param naming in getLocaleByPath function for users

* Add changeset

* Change changeset to patch astro

* Add i18n getLocaleByPath e2e test

* Add astro e2e i18n in pnpm-lock.yaml
2024-01-02 12:08:17 +00:00
Bjorn Lu
9f6453cf49
Document --host and --port flag for preview (#9572) 2024-01-02 17:45:56 +08:00
Houston (Bot)
35987afeb5 [ci] format 2024-01-02 07:17:00 +00:00
Houston (Bot)
b49bd31377
[ci] update lockfile (#9561)
Co-authored-by: matthewp <matthewp@users.noreply.github.com>
2024-01-02 15:15:46 +08:00