Commit graph

828 commits

Author SHA1 Message Date
Houston (Bot)
d04dbdfa19 [ci] release (#6109)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-03 12:18:19 -05:00
matthewp
f4cb1b70b5 [ci] format 2023-02-03 12:18:19 -05:00
Matthew Phillips
3ec76dc571 Node adapter: handle prerendering and serving with query params (#6110)
* Node adapter: handle prerendering and serving with query params

* Adding a changeset
2023-02-03 12:18:19 -05:00
Matthew Phillips
331e394ca1 Upgrade preact's dependencies to fix security issue (#6108) 2023-02-03 12:18:19 -05:00
Houston (Bot)
a1966ff1d6 [ci] release (#6094)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-03 12:18:19 -05:00
Matthew Phillips
c8d601ebeb Prevent eager rendering of head content in multi-level MDX layout (#6107)
* Prevent eager rendering of head content in multi-level MDX layout

* Adding a changeset

* Remove old comment

* Keep track of slot position as well
2023-02-03 12:18:19 -05:00
Yasser Hennawi
cd425bf448 chore: bump vitefu for @astrojs/solid-js (#6104)
Co-authored-by: Yasser Hennawi <yasser.hennawi@nordsec.com>
2023-02-03 12:18:19 -05:00
bholmesdev
a342882859 [ci] format 2023-02-03 12:18:19 -05:00
Daniel
39aae03429 fix: solidjs integration for vercel edge build (adopting same mechanics as cloudflare) (#6085)
* fix solidjs integration for vercel deployment

* downgrade change to patch

---------

Co-authored-by: AirBorne04 <>
2023-02-03 12:18:19 -05:00
Houston (Bot)
2934c3a9e9 [ci] release (#6089)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-03 12:18:19 -05:00
Matthew Phillips
af4dc9ffe2 Move @netlify/functions to be a dep (#6090)
* Move @netlify/functions to be a de

* Adding a changeset
2023-02-03 12:18:19 -05:00
Shiina
a84e934d21 Fix incorrent encoded when path has other language characters (#6088)
* fix: Incorrent encoded when path has Chinese

* chore: exec changeset
2023-02-03 12:18:19 -05:00
Houston (Bot)
e88ea2c7cf [ci] release (#6048)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-03 12:18:19 -05:00
matthewp
095158bb86 [ci] format 2023-02-03 12:18:19 -05:00
Elliott Marquez
b5c6a9355c [Lit] Forwards compatiblity for streaming Declarative Shadow DOM (#6055)
* Forwards compatiblity for streaming DSD

* add shadowrootmode

* update tests

* add changeset
2023-02-03 12:18:19 -05:00
matthewp
7747f0099a [ci] format 2023-02-03 12:18:19 -05:00
Elliott Marquez
262a24b5c3 [Lit] Fix hydration not having the same reactive values as server (#6080)
* Fix lit hydration not having the same reactive values

* add changeset

* add clientEntrypoint to package exports

* update tests

* add changeset

* only add defer-hydration when strictly necessary

* remove second changest

* fix test typos
2023-02-03 12:18:19 -05:00
Bryce Russell
4f5b224cda Add required alt to Picture example (#6074)
Co-authored-by: BryceRussell <19967622+BryceRussell@users.noreply.github.com>
2023-02-03 12:18:19 -05:00
Nick Buk[0vec]
6a4262f962 Add links to sharp docs in @astro/image README (#6017)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-02-03 12:18:19 -05:00
Ben Holmes
9af39e7628 [MDX] Syntax highlighting after user plugins (#6050)
* fix: load MDX syntax highlighting after user plugins

* chore: changeset
2023-02-03 12:18:19 -05:00
Happydev
6daf548688 Correct usage of getImage function (#6068) 2023-02-03 12:18:19 -05:00
Chris Swithinbank
0c3c216ef2 Revert MDX README changes (#6062) 2023-02-03 12:18:19 -05:00
matthewp
31820e4122 [ci] format 2023-02-03 12:18:19 -05:00
Alexey Shmalko
c54a115e29 fix(image): allow usage of image from any directory (#5932)
Currently, @astrojs/image allows *importing* images from srcDir
only. Importing images from outside srcDir fails miserably *in dev
mode* and produces incorrect src.

This happens because `path.relative(fileURLToPath(config.srcDir), id)`
resolves to "../something" and when joined with '/@astroimage' cancels
it out (`join('/@astroimage', '../../something')` => `'/something'`).

Rework /@astroimage URL scheme to be similar to "/@fs/" scheme—always
export absolute path to the target file.
2023-02-03 12:18:19 -05:00
Renato Lacerda
dc37849f1d Fix GetPictureResult interface (#5894) 2023-02-03 12:18:19 -05:00
Houston (Bot)
7de72f3417 [ci] release (#6041)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-03 12:18:19 -05:00
matthewp
a36e8fd912 [ci] format 2023-01-30 19:52:54 +00:00
Matthew Phillips
df32011652
Fix Cloudflare directory mode regression (#6046)
* Fix Cloudflare directory mode regression

* Adding a changeset
2023-01-30 14:50:44 -05:00
Houston (Bot)
d9787a6ff6
[ci] release (#5995)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-30 12:38:31 -05:00
Matthew Phillips
071e1dee7e
Simplified head injection (#6034)
* Simplified head injection

* Make renderHead also yield an instruction

* Add changeset

* Add mdx test
2023-01-30 11:55:10 -05:00
Bryce Russell
b6bed15a00
Fix local image example (#6019)
- `aspectRatio` prop requires a `width` or `height` prop

Co-authored-by: BryceRussell <19967622+BryceRussell@users.noreply.github.com>
2023-01-29 10:00:48 +01:00
Caleb Jasik
9c298aa5ae
@astrojs/image: Allow passing undefined to transform options (#6008)
* Allow passing `undefined` to transform options

This fixes #6001, allowing undefined passed as a variable in addition to not passing the property at all

* Create strange-olives-rest.md

* Improve error message for missing `widths` prop

* Add changeset
2023-01-27 18:05:00 +01:00
matthewp
cac11c98be [ci] format 2023-01-27 15:22:30 +00:00
Juan Miguel Guerrero
1c230f1037
feat(@astrojs/netlify): Add on-demand builders Netlify functions (#5874)
* Add on-demand builders option

* chore: add changeset

* docs: add documentation in configuration section

* Update packages/integrations/netlify/README.md

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

* Update packages/integrations/netlify/README.md

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

* Update packages/integrations/netlify/README.md

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

* Update .changeset/twenty-pans-agree.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-27 10:20:34 -05:00
bluwy
2565bc453e [ci] format 2023-01-27 15:16:11 +00:00
Roy Eden
254eb21c83
fix: autoprefixer on dev mode for tailwind plugin (#6002)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-27 23:14:19 +08:00
Subha Chanda
1c7eef308e
Updated according to new configuration (#5478)
* Updated according to new configuration

Astro imports the `defineConfig` function from `astro/config`. The `integrations` key needs to be passed into the `defineConfig` function, but it is not shown in the README. Updated the README according to the CLI example.

* update alpine

* update image

* update lit

* update mdx

* update preact

* update prefetch

* update react

* update sitemap

* update solid

* update svelte

* update tailwind

* update turbolinks

* update vue

* chore: add changeset

* update image

* update svelte readme

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-26 13:03:00 -06:00
Houston (Bot)
607f0ac31a
[ci] release (#5984)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-26 13:53:32 -05:00
HiDeoo
7abb1e9056
Fix MDX heading IDs generation when using a frontmatter reference (#5978)
* Fix MDX heading IDs generation when using a frontmatter reference

* Hoist safelyGetAstroData() call and add statement null check
2023-01-26 12:52:50 -05:00
matthewp
e16958f35f [ci] format 2023-01-26 17:45:39 +00:00
Matthew Phillips
9855db676e
Support for prerendering in the Cloudflare integration (#5993)
* Cloudflare prerender branch

* Add prerendered routes to Cloudflare routes.json

* Adding changeset

* Prevent process proxy from running during prerender phase
2023-01-26 12:43:39 -05:00
HiDeoo
60b32d5856
Fix Astro.url.protocol when using the @astrojs/node SSR adapter with HTTPS (#5992) 2023-01-26 12:39:57 -05:00
Angus
088f5194c5
Re-enable streaming on Cloudflare Pages (#5914)
* Support streaming on Cloudflare Pages

* Create tidy-ties-repeat.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-26 07:44:09 -06:00
HiDeoo
9d4bfc76e8
Support passing children as props to a React component (#5886) 2023-01-25 16:31:57 -06:00
Sarah Rainsberger
03e374f6bc
[docs] typo fix in MDX README (#5977) 2023-01-25 10:46:58 -04:00
Houston (Bot)
4842d6acb0
[ci] release (#5963)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-25 10:19:27 +08:00
Lucas Vargas
4d1e4f6d96
docs(svelte): Update integration README (#5966) 2023-01-24 21:50:06 +01:00
bholmesdev
fb6604d0aa [ci] format 2023-01-24 16:40:14 +00:00
Houston (Bot)
73ca0ef383
[ci] release (#5948)
* [ci] release

* Update changelogs (#5955)

* [ci] release

* Wrap astro 2.0 beta logs in `<details>`

* Add link to docs upgrade guide

* First pass cleaning up 2.0 release notes

* mdx changes from Sarah

* combine 5584 and 5842 in deno, image, netlify

* markdown/remark incl (5684 & 5769) to match mdx

* Tweak markdown/remark formatting

* Format astro-prism

* Format astro-rss

* Format create-astro

* Format cloudflare

* Format lit

* Format partytown

* Format node

* Format preact

* Format react

* Format solid

* Format svelte

* Format tailwind

* Format vercel

* Format vue

* Format telemetry

* Format webapi

* Format scripts

* Reinstate h3s for headings

Co-authored-by: Ben Holmes <hey@bholmes.dev>

* Reformat mdx

* astro & markdown/remark: Combine #5679 & #5684 changelogs

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Ben Holmes <hey@bholmes.dev>

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-01-24 11:38:06 -05:00
Houston (Bot)
a75177f843
[ci] release (beta) (#5911)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-23 16:11:39 -05:00