Commit graph

4934 commits

Author SHA1 Message Date
Matthew Phillips
5885a7e67c updated 2023-02-03 12:22:06 -05:00
Houston (Bot)
70342a8306 [ci] update lockfile (#6115)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-03 12:20:38 -05:00
matthewp
f1b42d81bb [ci] format 2023-02-03 12:20:38 -05:00
Matthew Phillips
ffd09a91aa Refactor build into plugins (#6077)
* Refactor build into plugins

* maybe fix internals

* Await post-build hooks

* Use extendManualChunks

* Remove commented out code
2023-02-03 12:20:36 -05:00
Bjorn Lu
91b3307b98 Fix scanning sourcemap handling (#6114) 2023-02-03 12:18:19 -05:00
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
matthewp
ac487a4ced [ci] format 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
Houston (Bot)
631a773dbb [ci] update lockfile (#6100)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.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
Houston (Bot)
7944d28482 [ci] update lockfile (#6060)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-03 12:18:19 -05:00
Ben Holmes
80dc1a5cbd [Content collections] Apply MDX components on render (#6064)
* fix: apply MDX components during render()

* test: MDX components export in SSG and SSR

* chore: changeset
2023-02-03 12:18:19 -05:00
bholmesdev
a784e603a9 [ci] format 2023-02-03 12:18:19 -05:00
Daniel
1126c750ed fix: Failed to execute 'encode' on 'TextEncoder': parameter 1 is not of type 'String' in Edge Runtime SSR (#6070)
* minor fixes for errors related to vercel SSR in core

* yielding empty string instead of nothing, to not exit the iterator

---------

Co-authored-by: AirBorne04 <>
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
Yan Thomas
6386abd30b Add JSDOC @message to fix docs error pages (#6076) 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
81f6ece5ca Wrap tag in example error message in code backticks (#6063) 2023-02-03 12:18:19 -05:00
Chris Swithinbank
0c3c216ef2 Revert MDX README changes (#6062) 2023-02-03 12:18:19 -05:00
Princesseuh
680e235f44 [ci] format 2023-02-03 12:18:19 -05:00
Mayank
bbe50ec11c error overlay: show cause if available (#6052)
* show `cause` in error overlay

* add extra check for string

* add changeset
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
natemoo-re
7418ce4737 [ci] format 2023-02-03 12:18:19 -05:00
Nate Moore
0f007f3d56 Handle invalid argument errors (#6045)
* fix: add error handling for invalid arguments

* chore: add changeset

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

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>

---------

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-02-03 12:18:19 -05:00
bholmesdev
7f4529f12f chore: unskip 2023-01-30 15:13:11 -05:00
bholmesdev
6e904db135 chore: stray console logs 2023-01-30 15:12:10 -05:00
bholmesdev
d556df728d chore: clarify analyzer comments 2023-01-30 15:11:45 -05:00
bholmesdev
0577e4e9e4 wip: store propagated scripts separately 2023-01-30 15:07:22 -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