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

4860 commits

Author SHA1 Message Date
Bjorn Lu
3988bbcc9e
Add shiki lang path compat (#8996) 2023-11-06 17:58:42 +08:00
Erika
910eb00fe0
fix(assets): Propagate sizes attribute on all sources (#8986)
* fix(assets): Propagate `sizes` attribute on all sources

* refactor: small refactor exposed srcSet types

* test: update test with a sizes

* chore: changeset

* fix: use a type import
2023-11-02 21:34:04 +01:00
Houston (Bot)
3cb1098d45
[ci] release (#8982)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-02 14:13:43 -04:00
Matthew Phillips
ab7e745cc9
Increase the scroll restoration throttle time (#8981)
* Increase the scroll restoration throttle time

* Add changeset

* Update packages/astro/src/transitions/router.ts

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

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-11-02 08:42:14 -04:00
natemoo-re
74fa4adba0 [ci] format 2023-11-01 21:03:36 +00:00
Marvin
937522fb70
fix: toStyleString omit nullish values (#8940)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-11-01 16:02:00 -05:00
Houston (Bot)
ca10dd7a7a
[ci] release (#8980)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-01 15:29:34 -05:00
Alexander Niebuhr
0ee7c9aac9
fix(underscore-redirects): fix dynamic pattern regression (#8979) 2023-11-01 14:51:15 -05:00
Houston (Bot)
ea16b45c0d
[ci] release (#8975)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-01 13:22:41 -04:00
matthewp
bf1fd0fa76 [ci] format 2023-11-01 17:14:06 +00:00
Erika
cc3278bb69
feat(dev-overlay): Add a tooltip on plugin hover / focus (#8978)
* feat(dev-overlay): Add a tooltip on plugin hover / focus

* chore: changeset

* test: add test
2023-11-01 13:11:57 -04:00
Matthew Phillips
40a0616797
Prevent the route announcer from being visible (#8977)
* Prevent the route announcer from being visible

* Update the number of expected styles in the tests
2023-11-01 13:11:45 -04:00
Erika
d0dc18cd1c
feat: new event to toggle a plugin from itself (#8968) 2023-11-01 17:56:59 +01:00
Alexander Niebuhr
6bc2153d0f
feat(underscore-redirects): add base to input paths (#8953)
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Bjorn Lu <34116392+bluwy@users.noreply.github.com>
2023-11-01 16:01:31 +01:00
lilnasy
f6b53a2e69 [ci] format 2023-11-01 13:56:36 +00:00
Arsh
2da33b7a13
fix(slots): consume eagerly rendered slot after one use (#8929)
* render slots lazily

* add test

* add changeset

* refactor

* reword changeset
2023-11-01 19:23:38 +05:30
Houston (Bot)
4a0fec969f
[ci] release (#8934)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-01 08:23:32 -05:00
Elian ☕️
6169b6e561
Undo the halloween theme (#8959)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-11-01 08:20:45 -05:00
Erika
262cef2487
refactor: dev overlay to make it easier to work with VT (#8966) 2023-10-31 23:35:32 +01:00
matthewp
463e03633e [ci] format 2023-10-31 19:49:13 +00:00
Matthew Phillips
430c470ace
Move VT route announcer styles to a class (#8965) 2023-10-31 15:46:44 -04:00
Martin Trapp
ef8964c04d
Three small improvements for handling client-only in view transitions (#8964)
* client-only fixes

* typo
2023-10-31 20:16:03 +01:00
Eva Decker
35cd810f0f
chore(deps): Upgrade Zod to @latest (#8762)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-10-30 10:02:59 -05:00
wktk
71455c16c3
fix(create-astro): TypeScript installation failure with yarn (#8939)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-10-30 12:22:18 +01:00
Sarah Rainsberger
46d3043a3f
[docs] remove outdated anchor links (#8941) 2023-10-28 11:44:09 -03:00
Erika
5fed432b0c
test: add test setup for dev overlay (#8932) 2023-10-27 16:05:43 +02:00
matthewp
15acd86028 [ci] format 2023-10-27 12:14:07 +00:00
Matthew Phillips
c77f55d9c0
Prevent passing slot names as props (#8930)
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Nate Moore <7118177+natemoo-re@users.noreply.github.com>
2023-10-27 08:11:46 -04:00
HiDeoo
ca90b47cfc
Fix dev overlay UI Toolkit component names (#8928)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-10-27 12:09:05 +02:00
Florian Lefebvre
e21fef7da2
fix(partytown): allow overriding the lib option (close #8760) (#8892)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-27 17:54:41 +08:00
Luca Di Gianventura
01c801108f
Fix: Markdoc Integration build when root folder contains spaces (#8759)
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-10-27 17:45:02 +08:00
Nate Moore
35c5265dc2
Update page partials link in CHANGELOG (#8927)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-26 12:33:30 -05:00
Houston (Bot)
7a35aedbef
[ci] release (#8917)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-26 11:34:52 -04:00
Matthew Phillips
fe4079f05b
Partials (#8755)
* Fragment support

* Add a changeset

* Linting

* debuggin

* Rename to partial

* Update the chagneset

* Make work with mdx

* Update .changeset/brave-pots-drop.md

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

* Update .changeset/brave-pots-drop.md

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

* Update .changeset/brave-pots-drop.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-26 10:14:10 -04:00
Bjorn Lu
ec7f531682
Fix examples smoke test fail (#8923) 2023-10-26 19:13:43 +08:00
Bjorn Lu
c8976440ff
Prevent bumping peer deps (#8893) 2023-10-26 18:07:02 +08:00
Houston (Bot)
28e56309a0
[ci] update lockfile (#8721)
* [ci] update lockfile

* fix ts-expect-error issue

---------

Co-authored-by: matthewp <matthewp@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2023-10-25 15:00:43 -07:00
Alexander Niebuhr
8c3d4a859a
fix noop overwrite image service regression (#8880)
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2023-10-25 16:01:43 -04:00
Erika
e99586787b
feat: Add a dev overlay (#8757)
* feat: initial commit for dev overlay

* fix: lockfile

* fix: build

* chore: get ci in a better state

* feat: client-server communication

* fix: better position for xray

* refactor: move icons to separate files

* refactor: cleanup components

* feat: home screen

* refactor: rename icon

* feat: flag the feature

* fix: cleanup

* fix: lockfile

* feat: minimize button

* Update packages/astro/src/@types/astro.ts

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

* refactor: cleanup

* feat: add ability to go to component for hydrated components

* refactor: consistent logic between audit and xray

* chore: changeset

* Apply suggestions from code review

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

* fix: unchonky the SVGs

* fix: button a11y

* refactor: move common highlight utilities to a dedicated file

* fix: allow tabbing on highlights

* fix: allow tooltip clickable sections to be tabbed to

* feat: allow using defined icons as plugin icons

* refactor: remove unnecessary resolve

* Update .changeset/large-stingrays-fry.md

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

* Update .changeset/large-stingrays-fry.md

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

* nit: use append

* style: small tweaks to minimize button styling

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-10-25 17:40:37 +02:00
Erika
4740d761ae
feat: Rework image generation to improve performance (#8821)
* feat: implement concurrency for asset generation

* add changeset

* fix: count

* feat: rework image generation to reuse image buffer for transforms of the same image

* fix: assetsPrefix nonsense

* feat: add back the counter

* refactor: cleanup my TS nonsense

* nit: reuse type

* nit: apply suggestions

* nit: macOS micro optimization

* Update .changeset/good-mirrors-bake.md

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

---------

Co-authored-by: Matteo Manfredi <matteo@manfredi.io>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-25 14:21:38 +02:00
Houston (Bot)
6a991012c3
[ci] release (#8912)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-24 13:53:18 -05:00
natemoo-re
63f7242aba [ci] format 2023-10-24 18:50:46 +00:00
Nate Moore
b236d88add
fix(create-astro): respect existing package.json#scripts (#8911) 2023-10-24 13:48:17 -05:00
Houston (Bot)
a86b41c852
[ci] release (#8895)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-24 12:26:45 -04:00
Genteure
f2dd895d71
fix(create-astro): ignore fs errors after download fails (#8841)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-10-24 11:17:14 -05:00
Remco Haszing
5a3d46da1e
Recommend the VS Code MDX extension (#8897)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-10-24 11:04:59 -05:00
matthewp
48bf7c3de6 [ci] format 2023-10-24 12:07:52 +00:00
Matthew Phillips
4dee38711c
Fix client hydration in experimentalReactChildren (#8898)
* Fix client hydration in experimentalReactChildren

* Add tests

* Add a changeset

* Use recursion instead of walking

* getChildren -> swap order

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-10-24 08:05:19 -04:00
Bjorn Lu
5dd1ed50b2
Prevent Vercel serverless generate static redirect pages (#8896) 2023-10-24 18:26:34 +08:00
Martin Trapp
dbff442c86
Chores: Tidying up the view transition router (#8889)
* Chores: simplifications and documentation

* improvements after review comments

* make linter happy

* More leniency with different browser behavior
2023-10-24 11:42:20 +02:00
ematipico
678ba54056 [ci] format 2023-10-24 07:43:49 +00:00
AndyClifford
73b8d60f8c
feat(markdoc): allowIndentation integration option (#8802) 2023-10-24 08:40:54 +01:00
Fred K. Schott
341ef65785
telemetry: record isTTY (#8900)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-10-23 17:35:23 -05:00
natemoo-re
99b683aec1 [ci] format 2023-10-23 22:16:51 +00:00
Phumrapee Limpianchop
ce807a2bfe
feat(create-astro): automatically configure astro check (#8853)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-10-23 17:14:33 -05:00
Bjorn Lu
26b77b8fef
Fix CSS modules ordering (#8877) 2023-10-23 21:22:47 +08:00
ematipico
e4ba50162e [ci] format 2023-10-23 10:04:32 +00:00
Arsh
b209e53358
feat(vercel): maxDuration config (#8867)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-23 11:02:23 +01:00
Houston (Bot)
42a83ffcfe
[ci] release (#8861)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-23 17:22:50 +08:00
Kevin Cole
e69f7292d7
Update README.md: Fix incorrect import in example code (#8888) 2023-10-23 17:14:02 +08:00
Steven Yung
5ea6ee0ed4
fix(cli): prevent production install on add cmd (#8870) 2023-10-20 21:19:05 +08:00
Bjorn Lu
c36d80a888
Handle Rollup 4 hash change (#8875) 2023-10-20 21:15:30 +08:00
Florian Lefebvre
326e178933
fix(astro): terminal HMR path (close #8831) (#8863)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-20 11:01:54 +01:00
Martin Trapp
5c888c10b7
Fix: Persist styles of persistent client:only components during view transitions in DEV mode (#8840)
* Persist styles of persistent client:only components during view transitions

* Persist styles of persistent client:only components during view transitions

* Persist styles of persistent client:only components during view transitions

* reset flag for persistent style shhets before re-calculating

* new approach with a clear module loader cache

* simplifications

* wait for hydration

* improve changeset message

* improve changeset message

* please the linter

* additional tests for Svelte and Vue

* tidy up

* test fixed

* test w/o persistence

* Update .changeset/purple-dots-refuse.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-19 21:55:22 +02:00
Bjorn Lu
88869bafb6
Set vite logLevel silent for test (#8868) 2023-10-19 13:03:01 -05:00
lilnasy
a44a7a9809 [ci] format 2023-10-18 13:33:55 +00:00
Arsh
ad2bb91559
fix(rerouting): attempt without middleware (#8814)
* fix(rerouting): attempt without middleware

* add test

* add changeset

* Update .changeset/shaggy-onions-try.md

* avoid extra variable

* document runMiddleware internal option

* document runMiddleware default

* Apply suggestions from code review

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

* runMiddleware -> skipMiddleware

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-10-18 19:01:24 +05:30
Bjorn Lu
65c7bd149c
Fix Vue HMR for script tags (#8860) 2023-10-18 21:23:19 +08:00
Houston (Bot)
c6e0d8e1cd
[ci] release (#8848)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-18 13:31:13 +01:00
Eva Decker
edc467d3b0
fix(docs): Update @astrojs/sitemap readme to clarify build output location (#8844)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-10-18 09:58:41 +01:00
Phumrapee Limpianchop
2c18e2d127
fix(astro): build config from astro conflict with vite.config.js (#8852)
* fix: config from astro conflict with vite

* refactor: apply config on AstroBuilder.setup
2023-10-18 06:58:49 +01:00
Elian ☕️
3baab3d93b
feat: make Houston wear scary hats for spooky season (#8846)
* feat: make Houston wear scary hats for spooky season

* chore: add new phrasing to scary Houston

* chore: create changeset
2023-10-17 18:46:02 +02:00
ematipico
d25b00d914 [ci] format 2023-10-17 16:08:27 +00:00
Emanuele Stoppa
2b8a459a6a
docs: better explanation for base configuration (#8779)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-17 17:06:12 +01:00
bluwy
fc838c5564 [ci] format 2023-10-17 14:46:59 +00:00
Adam McKerlie
10b103820e
Added OUTPUT dir to sitemap build command (#8824) 2023-10-17 22:44:15 +08:00
Rishi Raj Jain
11f45b9a32
fix: _image endpoint returning a 404 for local images (#8828) 2023-10-17 12:12:01 +02:00
Houston (Bot)
3468c06f56
[ci] release (#8820)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-17 03:28:33 +05:30
Erika
8946f2a256
fix: remote srcset images not being resized and deduplication not working in certain cases (#8823)
* fix: remote `srcset` images not being resized

* fix: hash keys ordered to reduce duplicate assets

* fix: move to workaround for hashing function

* fix: rework transform logic for densities and widths

* chore: changeset

* test: add tests

* fix: forced base srcset when using widths

* fix: unnecessary coalescing

* refactor: adjust with feedback

---------

Co-authored-by: Matteo Manfredi <matteo@manfredi.io>
2023-10-16 21:02:01 +02:00
Erika
b405b039a6
fix(assets): Fallback format not being taken into account properly (#8842)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-10-16 17:43:21 +02:00
Alexander Niebuhr
84d7c14646
chore(cloudflare): remove adapter (#8758) 2023-10-16 17:42:12 +02:00
Rishi Raj Jain
ce3025cfa2
fix: Unexpected token < in JSON at position 1 (#8827) 2023-10-16 11:55:27 +01:00
Arsh
754c40f6ed
fix(lit): pin last lit 2.x compatible versions (#8826) 2023-10-16 09:53:31 +01:00
Dominik G
2f9e2083d5
chore(deps): unpin tsconfck and use 3.0.0 release (#8838) 2023-10-15 13:01:00 +02:00
bluwy
7c458514c0 [ci] format 2023-10-13 06:27:08 +00:00
Bjorn Lu
f8de1983bd
Fix error overlay syntax highlighting (#8817) 2023-10-13 14:24:49 +08:00
Houston (Bot)
6bb69305c9
[ci] release (#8796)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-12 09:43:24 -05:00
natemoo-re
45ae41a457 [ci] format 2023-10-12 14:39:45 +00:00
Arsh
391729686b
fix(middleware): instantiate locals if the adapter does not (#8800) 2023-10-12 09:36:34 -05:00
Martin Trapp
3bef32f81c
Fix: Retain focus for persisted input elements during view transitions (#8813)
* add new e2e test: persist focus on transition

* save and restore focus during swap

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-10-12 00:08:44 +02:00
Jacob Lamb
0abff97fed
Remove network-information-types (#8810) 2023-10-11 12:33:35 -05:00
Chris Swithinbank
2993055bed
Add support for an --outDir CLI flag to astro build (#8808)
* Add support for an `--outDir` CLI flag to `astro build`

* Add changeset

* Update .changeset/eleven-olives-train.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>
2023-10-11 18:26:12 +02:00
Bjorn Lu
c4270e4768
Use shikiji (#8502)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-12 00:07:06 +08:00
Erika
f369fa2505
feat: use tsconfck instead of tsconfig-resolver (#8798) 2023-10-11 18:00:59 +02:00
Bjorn Lu
f999365b82
Fix markdown charset as utf-8 by default (#8795) 2023-10-11 23:58:08 +08:00
Princesseuh
a964a14172 [ci] format 2023-10-11 15:56:21 +00:00
Erika
b2ae9ee0c4
feat(assets): Add support for srcset and a Picture component (#8620)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-11 17:53:58 +02:00
Alexander Niebuhr
3f231cefed
port https://github.com/withastro/docs/pull/4980 (#8799) 2023-10-11 07:06:20 +02:00
lilnasy
a8b979ef40 [ci] format 2023-10-10 16:40:46 +00:00
Arsh
bd5aa1cd35
fix(transitions router): no-op on the server (#8771)
* fix(transitions router): no-op on the server

* factor out onPopState

* add e2e test case

* Apply suggestions from code review

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>

* use supportsViewTransitions

* add changeset

* warn on navigate() use during ssr

* switch supportsViewTransitions to import.meta.env

* correct typo

* bring back import.meta.env

* !import.meta.env.SSR -> inBrowser

* Apply suggestions from code review

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>

---------

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
2023-10-10 22:08:35 +05:30
alexanderniebuhr
03e6979c28 [ci] format 2023-10-10 16:11:20 +00:00
Mikkel Ricafrente
75781643a2
fix(cloudflare): runtime types for Cloudflare caches (#8782)
* fix cachestorage reference in cloudflare integration

* add cachestorage to serverdirectorymode

* add changeset

* remove global caches type

* update unlucky-avocados-brake.md
2023-10-10 18:08:17 +02:00
Houston (Bot)
9cd6a6657b
[ci] release (#8768)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-10 22:30:52 +08:00
Arsh
c071458257
chore: removed adapters cleanup (#8726)
* update ci, readme, comments, remote workspaces

* fix hosted test fixture

* keep adapter config typedocs
2023-10-10 19:36:35 +05:30
Alexander Niebuhr
0ab6bad7df
fix(cloudflare): esbuild settings for cloudflare (#8788)
---------

Co-authored-by: Jonathan Dunlap <595843+jadbox@users.noreply.github.com>
2023-10-10 09:16:32 +02:00
alexanderniebuhr
90d70eb7c4 [ci] format 2023-10-09 17:16:02 +00:00
Jonathan Dunlap
054c5c6447
fix(cloudflare): support for 'cloudflare:*' imports (#8766)
* chore: add 'cloudflare:sockets' to external list

* chore: add Changeset

* patch: wildcard cloudflare packages

* chore: updated Readme for cloudflare module support

* Update .changeset/heavy-elephants-tan.md

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

* Update packages/integrations/cloudflare/README.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-10-09 19:13:46 +02:00
ematipico
7ea27f6319 [ci] format 2023-10-09 16:00:28 +00:00
Arsh
c4a7ec4255
fix(windows): ensure drive letter is uppercase (#8741) 2023-10-09 16:58:09 +01:00
bluwy
a0dc79b946 [ci] format 2023-10-09 14:23:53 +00:00
Florian Lefebvre
160d1cd755
feat(tailwind): create a tailwind.config.mjs file by default (#8638) 2023-10-09 22:21:26 +08:00
Martin Trapp
29cdfa0248
Fix transition attributes on islands (#8776)
* Fix transition attributes on islands

* Incorporate comments from review
2023-10-09 16:19:46 +02:00
Martin Trapp
c24f70d916
Fix flickering during view transitions (#8772)
* Fix for #8711

* more descriptive changeset

* chores, while we are at it ...
2023-10-09 16:15:23 +02:00
Bjorn Lu
93b092266f
Make CSS chunk names less confusing (#8754) 2023-10-09 17:29:28 +08:00
Makito
eaed844ea8
fix(assets): add the missing await to getHTMLAttributes (#8773) 2023-10-07 21:22:47 +02:00
Martin Trapp
30de324361
Revert fix #8472 (#8767) 2023-10-06 23:17:27 +02:00
Bjorn Lu
ec82e73efa
Fix provenance release (#8749) 2023-10-05 18:29:36 +08:00
Houston (Bot)
584d6f0680
[ci] release (#8738)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-05 11:10:06 +01:00
Jacob Lamb
78adbc4433
Update Netlify SSR link (#8700) 2023-10-05 07:18:45 +01:00
Nate Moore
d78806dfe0
fix(#8746): improve error message for dynamic component usage (#8747) 2023-10-04 15:07:21 -05:00
Bjorn Lu
aa265d7302
Remove unused CSS output files when inlined (#8743) 2023-10-04 21:18:39 +08:00
bluwy
b18d4bf3b1 [ci] format 2023-10-04 10:31:04 +00:00
Arsh
21e0757ea2
chore: remove undici polyfill (#8729) 2023-10-04 18:28:36 +08:00
bluwy
272ad45958 [ci] format 2023-10-04 10:26:21 +00:00
Chris
21f4826576
Fixes: Shiki syntax highlighting adds is:raw attribute to the HTML output (#8715)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-10-04 18:23:58 +08:00
Kobe Ruado
71618f4074
Fix markdown rehype plugin example (#8733) 2023-10-04 17:55:02 +08:00
natemoo-re
240d8ff7c9 [ci] format 2023-10-03 21:00:07 +00:00
Nate Moore
357270f2a3
Improve astro info compatability (#8730)
* Improve `astro info` compatability

* Update packages/astro/src/cli/info/index.ts

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

* chore: add changeset

* feat(info): add copy to clipboard support on Unix machines with xclip installed

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-10-03 15:57:31 -05:00
Florian Lefebvre
f277ba8b70
feat: expose partytown types (close #8723) (#8740) 2023-10-03 23:16:49 +08:00
Emanuele Stoppa
6f60da805e
feat: add provenance to packages (#8737) 2023-10-03 15:25:25 +01:00
Bjorn Lu
d1c75fe158
Fix tsconfig.json update causing the server to crash (#8736) 2023-10-03 14:36:38 +01:00
Genteure
f9477aade1
fix: typo in error deprecation message (#8708)
Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-10-02 18:36:15 +02:00
Houston (Bot)
78fda5c3ec
[ci] release (#8722)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-02 23:55:56 +08:00
Bjorn Lu
455af3235b
Fix CSS styles on windows (#8724) 2023-10-02 23:17:34 +08:00
Ray
6db2687ef0
fix(deno): link to adapter repo (#8712) 2023-10-02 16:33:24 +02:00
alexanderniebuhr
5fb6a266f8 [ci] format 2023-10-02 14:08:47 +00:00
Alexander Niebuhr
3dd65bf889
feat(cloudflare): add local mockings for CF bindings (#8655)
* feat(cloudflare): add D1 database binding

* feat(cloudflare): add local mocking for R2 bindings (#8656)

* feat(cloudflare): add local mocking for KV bindings (#8657)

* feat(cloudflare): add local mocking for Caches bindings (#8664)

* feat(cloudflare): add local mocking for DO bindings (#8690)

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-02 16:04:57 +02:00
matthewp
22fae5211a [ci] format 2023-10-02 12:54:01 +00:00
Matthew Phillips
4c2bec681b
Fixes View transition styles being missing when component used multiple times (#8710) 2023-10-02 08:51:53 -04:00
Houston (Bot)
a067c2a2c7
[ci] release (#8699)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-02 16:34:57 +08:00
Alexander Niebuhr
0b22bb9af4
fix(cloudflare): broken link in docs (#8709) 2023-09-30 06:49:04 +02:00
Erika
47ea310f01
feat: resolve images through the file systems on applicable runtimes (#8698)
* feat: add a node image endpoint

* test: fix
2023-09-29 23:14:40 +02:00
Erika
db83237dd3
refactor(markdown): Move astro:assets-specific code out of the main Vite plugin (#8704) 2023-09-29 23:14:09 +02:00
Martin Trapp
148b5b8769
Fix preloading stylesheets in view transitions (#8707)
* Fix preload of stylesheets (VT)

* Fix preload of stylesheets (VT)
2023-09-29 20:03:19 +02:00
Bjorn Lu
345808170f
Fix duplicated Astro and Vite injected styles (#8706) 2023-09-29 21:55:46 +08:00
Bjorn Lu
31c59ad8b6
Fix hydration on slow connection (#8680) 2023-09-29 21:54:46 +08:00
Dario Piotrowicz
c3572fd5e0
fix(cloudflare): target es2022 instead of es2020 to fix esbuild incompatibility issues (#8682)
* fix(cloudflare): target es2022 instead of es2020 to fix esbuild incompatibility issues

* add changeset

* update changeset

* fix(cloudflare): change build target to es2022

---------

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-09-28 20:56:01 +02:00
Alexander Niebuhr
77d37853cb
fix(cloudflare): sneaky docs (#8694)
* fix(cloudflare): sneaky docs

* resolve docs review comments

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

* resolve docs review comments

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-28 20:26:47 +02:00
Houston (Bot)
2d33b9362d
[ci] release (#8695)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-28 14:12:22 -04:00
Matthew Phillips
2167ffd72f
Revert "[ci] release (#8671)" (#8696)
This reverts commit eada8ab8fa.
2023-09-28 13:57:54 -04:00
Matthew Phillips
0ba32e4402 Adds a stub version number for the old netlify adapter 2023-09-28 13:27:57 -04:00
lilnasy
c4c616c0a5 [ci] format 2023-09-28 17:19:21 +00:00
Arsh
cfd895d877
fix(rerouting): check that the new route is different (#8648)
* fix(rerouting): check that the new route is different

* add tests

* changeset grammar
2023-09-28 22:46:15 +05:30
Houston (Bot)
eada8ab8fa
[ci] release (#8671)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-09-28 13:14:13 -04:00
matthewp
3c93476078 [ci] format 2023-09-28 16:23:05 +00:00
Matthew Phillips
824dd4670a
Support content collections with % in filename (#8684)
* Support content collections with % in filename

* Add changeset

* Unused eslint thing

* Update packages/astro/src/core/build/static-build.ts

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>

---------

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-09-28 12:20:25 -04:00
alexanderniebuhr
0e35457c0f [ci] format 2023-09-28 16:07:09 +00:00
Alexander Niebuhr
f6ba533df6
chore(cloudflare): refactor structure, optimize patterns (#8654)
---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: 100gle <loogle.space@gmail.com>
2023-09-28 18:04:49 +02:00
ElianCodes
8617259fc9 [ci] format 2023-09-28 13:50:31 +00:00
Elian ☕️
ec249f7a98
update all the readme's for expressive code (#8691)
Co-authored-by: HiDeoo <HiDeoo@users.noreply.github.com>
Co-authored-by: Genteure <Genteure@users.noreply.github.com>
Co-authored-by: Bryce Russell <brycetrussell@gmail.com>
Co-authored-by: Reuben Tier <TheOtterlord@users.noreply.github.com>
Co-authored-by: Hippo <hippotastic@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Kevin Zuniga Cuellar <kevinzunigacuellar@users.noreply.github.com>
2023-09-28 15:48:03 +02:00
ElianCodes
0ab19ba615 [ci] format 2023-09-28 12:43:03 +00:00
Elian ☕️
e9b77cbf19
Update codesample for Alpine README (#8689)
Co-authored-by: HiDeoo <HiDeoo@users.noreply.github.com>
Co-authored-by: Genteure <Genteure@users.noreply.github.com>
Co-authored-by: Bryce Russell <brycetrussell@gmail.com>
Co-authored-by: Reuben Tier <TheOtterlord@users.noreply.github.com>
Co-authored-by: Hippo <hippotastic@users.noreply.github.com>
2023-09-28 14:40:08 +02:00
Adit Sachde
f5c617e3a3
Match the .well-known directory when generating routes.json (#7776)
* Match the .well-known directory when generating routes.json

* add changeset

* Update .changeset/clean-planets-retire.md

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-27 18:34:29 -04:00
matthewp
c0708c921c [ci] format 2023-09-27 22:21:43 +00:00
Arsh
408b50c5ea
fix(redirects): attempt to get only params in dev mode (#8647)
* fix(redirects): attempt to get only params in dev mode

* fixtures/ssr-redirect => fixtures/redirects

* add tests

* Update pnpm-lock.yaml
2023-09-27 18:19:06 -04:00
Michaili K
e797b68160
Fix assets not getting optimized when outDir is outside the CWD (#8670)
* Fix assets not getting optimized when `outDir` is outside the CWD

* Add missing import

* Add changeset

* Fix import, again.

* Use getOutDirWithinCwd in the serverRoot declaration
2023-09-27 18:18:36 -04:00
Matthew Phillips
87d5b841af
New code (#8559) 2023-09-27 17:06:11 -04:00
Matthew Phillips
4ed410db50
Remove Netlify adapter from core (#8574)
* New link

* More explicit

* Add placeholder package.json

* lockfile

* add keyworkds
2023-09-27 16:48:26 -04:00
matthewp
a10a798c18 [ci] format 2023-09-27 19:25:02 +00:00
Matthew Phillips
e6be2d8146
Add View Transitions announcer (#8621)
* Add View Transitions announcer

* fix astro check

* Append the text in a setTimeout

* Use 60 for the timeout

* Add comment on magic number

* Add a changeset

* Update .changeset/small-rules-relax.md

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

* Bring back announce logic

* Remove mention of env file

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-27 15:21:56 -04:00
delucis
5121740de7 [ci] format 2023-09-27 19:19:41 +00:00
Chris Swithinbank
9b0114c7d3
Support integrations added in updateConfig() in astro:config:setup (#8672)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-27 21:17:27 +02:00
Bjorn Lu
e8495c853b
Fix logLevel passed to Vite build (#8678) 2023-09-27 22:30:30 +08:00
martrapp
aad756297c [ci] format 2023-09-27 13:33:07 +00:00
Martin Trapp
63bc37f2b6
API for clientside router (#8571)
* refactored CSR into goto() function

* first refectoring for router API

* added test

* added comments to fixture

* rename + preliminary changeset

* changeset: now 'minor' and featuring Mathew's example from the docs

* moved for simpler diff

* update after #8617

* fixed ts-errors

* more comprehensible handling of intra-page state

* sync with main

* synch from next_tm
2023-09-27 15:30:13 +02:00
Nolan Lawson
9fe4b95969
fix: print image path for NoImageMetadata (#8666) 2023-09-26 21:51:57 +08:00
Houston (Bot)
60684fad72
[ci] release (#8663)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-25 15:54:55 -04:00
matthewp
7fc700e30d [ci] format 2023-09-25 14:17:53 +00:00
Matthew Phillips
69fbf95b22
Head propagation graph walking on new pages (#8646)
* Head propagation graph walking on new pages

* Add changeset

* Avoid the bang

* Add TODOs about handling in resolveId
2023-09-25 10:14:37 -04:00
ematipico
306649c5a4 [ci] format 2023-09-25 13:47:26 +00:00
Simon Knott
008f7647c4
fix(netlify): bundle netlify functions as ESM to support top-level await (#8661) 2023-09-25 15:45:13 +02:00
Arsh
954cadc1e5
fix(deno): do not set vite.ssr.noExternal (#8652)
* fix(deno): safely set external specifiers

* noExternal does not need to be manually set at all
2023-09-25 19:13:43 +05:30
Houston (Bot)
211bfe3b00
[ci] release (#8635)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-25 18:28:54 +08:00
Rishi Raj Jain
863f5171e8
fix: generated redirect page canonical lacks of site prefix (#8591) 2023-09-25 09:54:58 +02:00
Marco Schumacher
2365c12464
fix(cloudflare): added config for _routes.json generation (#8459)
* added config for _routes.json generation

* added changeset

* renamed test file

* updated comments

* Apply suggestions from code review

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

* worked on tests

* worked on docs

* worked on docs

* worked on tests

* updated pnpm-lock.yaml

* worked on tests

* moved the _worker.js in cloudflareSpecialFiles statement

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-09-24 08:32:03 +02:00
Alexander Niebuhr
4c4ad9d167
chore(core): improve the logging of assets feature (#8615)
* improve assets logging

* changeset

* fix typo

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

* improve log message

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

* update log message

* update changeset

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-23 18:15:49 +02:00
matthewp
1d4f91b033 [ci] format 2023-09-22 22:14:57 +00:00
Matthew Phillips
cb838b84b4
fix getDataEntryById to lookup by base name (#8645) 2023-09-22 18:12:51 -04:00
natemoo-re
421257fc1c [ci] format 2023-09-22 21:03:31 +00:00
Jacob Lamb
139b0f54d9
Refine CLI flag descriptions for clarity (#8545)
* Refine CLI flag descriptions for clarity

* Update README.md

* Update README.md

* Update README.md

* Update help.ts

* Update packages/create-astro/src/actions/help.ts

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

* Update packages/create-astro/README.md

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

* Update packages/create-astro/README.md

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

* Update README.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-22 16:00:38 -05:00
matthewp
4f2bf2156f [ci] format 2023-09-22 18:15:46 +00:00
Matthew Phillips
f36c4295be
Warn on empty content collections (#8640)
* Warn on empty content collections

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

Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>

---------

Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
2023-09-22 14:12:36 -04:00
Martin Trapp
974d5117ab
fix: no deletion of scripts during view transition (#8636) 2023-09-22 12:01:22 -04:00
ematipico
0352dec47b [ci] format 2023-09-22 15:00:18 +00:00
Adrian Lyjak
faeead4232
feat(@astrojs/cloudflare): Add support for wasm module imports (#8542)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-22 16:58:00 +02:00
bluwy
b1310e6f13 [ci] format 2023-09-22 14:49:43 +00:00
Paul Valladares
a3bee1477e
Update: Improve manual install guide of @astrojs/tailwind integration (#8619) 2023-09-22 22:47:40 +08:00
bluwy
f35a55bd4f [ci] format 2023-09-22 13:20:50 +00:00
Reuben Tier
b64dd45c0d
Fix behaviour regression in create-astro (#8634) 2023-09-22 21:18:46 +08:00
Yan Thomas
bd00ad776d
Fix subheading inconsistency (#8623) 2023-09-22 14:57:27 +02:00
Erika
63141f3f3e
fix: properly generate code for multiple images in same markdown file (#8633) 2023-09-22 14:28:03 +02:00
Erika
de7a7fbdc3
nit: optimize images (#8629) 2023-09-22 12:04:39 +02:00
Matthew Phillips
da00425a5f
Revert "fix: islands are not being rendered correctly (#8580)" (#8624)
This reverts commit 8d361169b8.
2023-09-22 09:39:27 +02:00
Houston (Bot)
4e1e8dc5c6
[ci] release (#8597)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-21 14:32:12 -04:00
matthewp
fe29ce2731 [ci] format 2023-09-21 17:10:10 +00:00
Erika
bdd267d089
fix(markdown): Fix Markdown images breaking the build (#8598)
* fix(markdown): Fix Markdown images breaking the build

* chore: changeset

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

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

* Fix tla chunking

* One directory up

* Down we go

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-09-21 13:07:33 -04:00
Bjorn Lu
5a988eaf60
Fix Astro HMR from a CSS dependency (#8609)
* Fix Astro HMR from a CSS dependency

* Improve css test

* Create wise-donuts-tickle.md
2023-09-21 12:53:37 -04:00
Martin Trapp
e8c997db99
Clean-up router implementation (#8617)
* Update regarding review comments from #8571

* Update regarding review comments from #8571 (2)

* Update regarding review comments from #8571 (3)

* Update regarding review comments from #8571 (4)
2023-09-21 10:21:29 -04:00
matthewp
a576ba9c37 [ci] format 2023-09-21 12:58:10 +00:00
Matthew Phillips
bcad715ce6
Ensure cookies are attached when middleware changes the Response (#8612)
* Ensure cookies are attached when middleware changes the Response

* fix test
2023-09-21 08:55:05 -04:00
ematipico
defab70cb2 [ci] format 2023-09-21 08:37:23 +00:00
Timon Jurschitsch
e522a5eb41
Remove AstroError if content directory is empty (#8382)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-09-21 10:34:20 +02:00
Arsh
4398e92987
fix(middleware): undo config's path to URL encoding (#8614)
* fix(middleware): undo config's path to URL encoding

* add changeset

* middleware-dev => "middleware space"
2023-09-21 07:35:33 +02:00
FredKSchott
b4034aabea [ci] format 2023-09-20 16:52:04 +00:00
Fred K. Schott
ed54d46449
improve telemetry (#8600) 2023-09-20 09:50:04 -07:00
matthewp
0119a271ae [ci] format 2023-09-20 13:20:38 +00:00
Matthew Phillips
8f8b9069dd
Prevent body scripts from re-executing on navigation (#8603)
* Prevent body scripts from re-executing on navigation

* Adding changeset

* Run script replacement logic before head

* Rename doc to newDocument
2023-09-20 09:18:02 -04:00
Martin Trapp
2d7f5429a5
test: since we check the media-type, data-astro-reload has fewer use cases (#8605) 2023-09-20 17:50:56 +08:00
Bjorn Lu
70f2a80039
Fix alias plugin causing CSS ordering issue (#8592) 2023-09-20 17:45:11 +08:00
ematipico
c49e865f4f [ci] format 2023-09-20 08:30:38 +00:00
Arsh
2e1d5f8739
fix(node): report render error to the terminal (#8599) 2023-09-20 10:27:46 +02:00
ematipico
767599522c [ci] format 2023-09-19 09:53:20 +00:00
Alexander Niebuhr
5b0b3c9a8e
fix(@astrojs/cloudflare): support for nodejs_compat (#8595)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-09-19 11:51:06 +02:00
Houston (Bot)
9b84a7ef96
[ci] release (#8590)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-19 17:21:05 +08:00
bluwy
86acd0f1d5 [ci] format 2023-09-19 09:11:23 +00:00
Jacob Lamb
1d5b3f079d
feat(create-astro): Update flag behavior for template and project-name (#8551) 2023-09-19 17:09:27 +08:00
Rishi Raj Jain
d0e513f214
fix: Vercel serverless adapter logs too much (#8581) 2023-09-18 19:22:55 +08:00
Rishi Raj Jain
0586e20e83
fix: redirect page type icon not properly displayed (#8579) 2023-09-18 17:59:19 +08:00
ematipico
6024955882 [ci] format 2023-09-18 09:47:02 +00:00
Alexander Niebuhr
3da5d8404e
feat(@astro/cloudflare): improve DX for runtime typing (#8560) 2023-09-18 10:44:19 +01:00
Miguel Carneiro
c9bbd304ca
Tailwind configuration file changed from cjs to ts (#8583) 2023-09-18 17:41:38 +08:00
Erika
95b5f6280d
fix(assets): Fix misc types issues (#8568)
* fix(assets): Fix misc types issues

* fix: remove unnecessary change

* chore: changeset
2023-09-18 11:39:21 +02:00
Rishi Raj Jain
8d361169b8
fix: islands are not being rendered correctly (#8580) 2023-09-18 17:35:27 +08:00
Houston (Bot)
fca6892f8d
[ci] release (#8540)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-14 12:44:09 -04:00
matthewp
8376f24b47 [ci] format 2023-09-14 12:17:20 +00:00
Matthew Phillips
b79e11f3c4
Change functionPerRoute to false by default (#8546)
* Change functionPerRoute to false by default

* Update test that depends on functionPerRoute

* Update .changeset/cool-pianos-smell.md

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

* Update .changeset/cool-pianos-smell.md

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

* Update packages/integrations/vercel/README.md

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

* Update packages/integrations/vercel/README.md

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

* Update .changeset/cool-pianos-smell.md

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-14 08:15:11 -04:00
Bjorn Lu
74dc3edb30
Improve MDX rendering performance (#8533) 2023-09-14 20:05:38 +08:00
Chris
2e8726feec
[@astrojs/vercel] Individually enable Speed Insights and Web Analytics (#8021)
* Individually enable Speed Insights and Web Analytics

* Update pnpm-lock.yaml

* Remove .only on tests

* Fix build

* Move `beforeSend` out of config

* Address feedback from review

* Update README.md

* Add back the `analytics` property and add deprecation warning when used

* Add migration guide for the deprecated `analytics` property

* Update packages/integrations/vercel/README.md

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

* Update README.md

* Fix external dependency issue

* Simplify plugin and reduce scope

* Update .changeset/sixty-teachers-tap.md

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

* Apply feedback from review

* Move exposeEnv to speed-insights since it's only used there

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-09-14 08:02:11 -04:00
Bjorn Lu
7522bb4914
Improve markdown rendering performance (#8532) 2023-09-14 18:22:16 +08:00
Jacob Lamb
61ac5c9eaa
chore(astro): update readme (#8530)
* chore(astro): update readme

* Update packages/astro/README.md

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

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-13 16:19:30 -05:00
Martin Trapp
f95febf96b
Fix for checking media type in CSR (#8537)
* bugfix checking media-type

* bugfix checking media-type

* Update packages/astro/components/ViewTransitions.astro

.* is longest possible run, but a dollar won't harm us :)

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

* make typescript happy

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-13 16:17:07 -05:00
Princesseuh
eb3c33cff7 [ci] format 2023-09-13 19:18:07 +00:00
Andrew Moore
45364c3452
feat: added types to allow the creation of user space content services (#7607)
* feat: added types to astro:content to allow user space content services

* Create small-apes-clap.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-13 21:16:00 +02:00
Erika
91380378ce
feat(vercel): Use Sharp in dev instead of Squoosh by default (#8445)
* feat(vercel): Use Sharp in dev instead of Squoosh by default

* fix(build):

* nit: adjust with feedback

* fix: imports

* Update packages/integrations/vercel/README.md

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

* docs: small change in other part of the README

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-13 18:40:02 +02:00
Martin Clementz
6c6f1aef43
chore: check if ssr works on netlify (#8002)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-13 18:30:23 +02:00
Princesseuh
de8d6ad237 [ci] format 2023-09-13 16:29:09 +00:00
Ben Holmes
a8d72ceaee
[MDX] Support img component prop for optimized images (#8468)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-13 18:27:03 +02:00
Erika
ecc65abbf9
feat(assets): Allow users to set a custom endpoint to use for image optimization (#8467)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-13 18:15:58 +02:00
Erika
c92e0acd71
feat(types): Add types for the object form of style (#8464) 2023-09-13 17:57:59 +02:00
Lars Kappert
d93987824d
feat(markdown): Add support for imageReference paths when collecting images (#8475) 2023-09-13 17:29:39 +02:00