Commit graph

4939 commits

Author SHA1 Message Date
Matthew Phillips
2189170be5
Fix hoisted script propagation in content collection pages (#6119)
* chore: unskip

* chore: stray console logs

* chore: clarify analyzer comments

* wip: store propagated scripts separately

* Implement getting hoisted scripts for propagation

* Add changeset

* fix

* oops

* update based on code review

---------

Co-authored-by: bholmesdev <hey@bholmes.dev>
2023-02-06 10:42:08 -05:00
Erika
4595dd6600
fix(webapi): Attempt to polyfill with undici imports directly (#6065) 2023-02-06 16:16:34 +01:00
Malte Ehrlen
61d47d25c6
fix example Card component style (#6123)
* fix example Card component style

Card component has uneven border on hover, and in some cases the border is visible even when not hovering

* Delete neat-taxis-thank.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-03 20:54:39 -06:00
Fred K. Schott
f20a85b642
Fix outdated error message in paginate() function (#6124)
* Update paginate.ts

* Create gorgeous-mails-sniff.md
2023-02-03 17:34:09 -06:00
bholmesdev
4f150e80b1 [ci] format 2023-02-03 21:50:51 +00:00
Ben Holmes
9f22ac3d09
[Content collections] Fix "underscore to ignore" warnings (#6122)
* refactor: fix underscore check

* fix: add "ignore list" to always silence log

* fix: hide log on file deleted

* refactor: move getEntryType to util

* test: getEntryType unit

* fix: handle all unsupported cases

* chore: changeset
2023-02-03 16:48:34 -05:00
bholmesdev
f7f4721231 [ci] format 2023-02-03 20:53:53 +00:00
Ben Holmes
bf8d7366ac
[Content collections] Load content config with full Vite setup (#6092)
* feat: use vite dev server for content config

* refactor: improve export naming

* chore: update `sync` to spin up server

* refactor: run sync before build in cli

* fix: move sync call to build setup

* chore: clean up attachContent... types

* chore: remove unneeded comment

* chore: changeset

* fix: attachContentServerListeners in unit tests

* fix: allow forced contentDirExists

* chore: update schema signature

* fix: move content listeners to unit test

* chore remove contentDirExists flag; unused

* chore: stub weird unit test fix
2023-02-03 15:52:05 -05:00
Obinna Ekwuno
db2c59fc18
Update open with codesandbox link to use synced sandboxes (#6105) 2023-02-03 11:52:11 -06:00
Nacho Vazquez
45b41d98f5
fix: use the root of the project as the functions location (#6075)
* fix: use the root of the project as the functions location
* test: add test to check where the functions folder is added
2023-02-03 16:19:44 +01:00
Houston (Bot)
79fca438e9
[ci] update lockfile (#6115)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-03 09:09:54 -05:00
matthewp
a0efdc8f76 [ci] format 2023-02-03 13:06:16 +00:00
Matthew Phillips
40bf96f05d
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 08:04:26 -05:00
Bjorn Lu
ac7fb04d6b
Fix scanning sourcemap handling (#6114) 2023-02-03 20:47:20 +08:00
Houston (Bot)
a1c0cbe604
[ci] release (#6109)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-02 19:43:30 -05:00
matthewp
74c135ef9d [ci] format 2023-02-03 00:12:22 +00:00
Matthew Phillips
67ccec9e16
Node adapter: handle prerendering and serving with query params (#6110)
* Node adapter: handle prerendering and serving with query params

* Adding a changeset
2023-02-02 19:10:16 -05:00
Matthew Phillips
f9babc38b4
Upgrade preact's dependencies to fix security issue (#6108) 2023-02-02 16:41:10 -05:00
Houston (Bot)
81615c5004
[ci] release (#6094)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-02 15:38:04 -05:00
matthewp
10550f5ee2 [ci] format 2023-02-02 19:23:44 +00:00
Matthew Phillips
9bec6bc410
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-02 14:21:32 -05:00
Yasser Hennawi
8c80e78dd5
chore: bump vitefu for @astrojs/solid-js (#6104)
Co-authored-by: Yasser Hennawi <yasser.hennawi@nordsec.com>
2023-02-02 23:02:17 +08:00
Houston (Bot)
4c6dcac030
[ci] update lockfile (#6100)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-02 08:19:21 -05:00
bholmesdev
c596c6c995 [ci] format 2023-02-01 22:18:03 +00:00
Daniel
b236b5cc8e
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-01 17:16:18 -05:00
Houston (Bot)
a007dbc759
[ci] release (#6089)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-01 14:38:18 -05:00
Matthew Phillips
97a97196fc
Move @netlify/functions to be a dep (#6090)
* Move @netlify/functions to be a de

* Adding a changeset
2023-02-01 14:33:37 -05:00
Shiina
6a03649f00
Fix incorrent encoded when path has other language characters (#6088)
* fix: Incorrent encoded when path has Chinese

* chore: exec changeset
2023-02-01 13:53:09 -05:00
Houston (Bot)
f05eb9f8ba
[ci] release (#6048)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-01 08:58:35 -05:00
matthewp
d7f36720d4 [ci] format 2023-02-01 13:46:50 +00:00
Elliott Marquez
2567aa48bb
[Lit] Forwards compatiblity for streaming Declarative Shadow DOM (#6055)
* Forwards compatiblity for streaming DSD

* add shadowrootmode

* update tests

* add changeset
2023-02-01 08:44:56 -05:00
Houston (Bot)
724f9dc2d6
[ci] update lockfile (#6060)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-01 08:35:03 -05:00
Ben Holmes
2fb72c887f
[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-01 08:33:18 -05:00
bholmesdev
01ef1e565b [ci] format 2023-02-01 13:29:00 +00:00
Daniel
f91615f5c0
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-01 08:26:45 -05:00
matthewp
94bcf24e45 [ci] format 2023-02-01 13:20:23 +00:00
Elliott Marquez
0db2204153
[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-01 08:18:37 -05:00
Yan Thomas
e193dfad1e
Add JSDOC @message to fix docs error pages (#6076) 2023-02-01 09:29:34 -03:00
Bryce Russell
e3e2498248
Add required alt to Picture example (#6074)
Co-authored-by: BryceRussell <19967622+BryceRussell@users.noreply.github.com>
2023-01-31 21:28:14 -04:00
Nick Buk[0vec]
15f4d96b08
Add links to sharp docs in @astro/image README (#6017)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-31 21:21:28 -04:00
Ben Holmes
2ab32b59ef
[MDX] Syntax highlighting after user plugins (#6050)
* fix: load MDX syntax highlighting after user plugins

* chore: changeset
2023-01-31 17:46:59 -05:00
Happydev
474ecc7be6
Correct usage of getImage function (#6068) 2023-01-31 16:50:17 +00:00
Chris Swithinbank
e88e799615
Wrap tag in example error message in code backticks (#6063) 2023-01-31 16:09:02 +01:00
Chris Swithinbank
c6cf847bd0
Revert MDX README changes (#6062) 2023-01-31 15:41:22 +01:00
Princesseuh
66677defea [ci] format 2023-01-31 09:14:52 +00:00
Mayank
9793f19ecd
error overlay: show cause if available (#6052)
* show `cause` in error overlay

* add extra check for string

* add changeset
2023-01-31 10:12:42 +01:00
matthewp
43ec7f374a [ci] format 2023-01-30 20:31:49 +00:00
Alexey Shmalko
b3e65991f7
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-01-30 15:29:41 -05:00
Renato Lacerda
ca91976edb
Fix GetPictureResult interface (#5894) 2023-01-30 15:29:03 -05:00
Houston (Bot)
a2cbc75ac4
[ci] release (#6041)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-30 15:28:32 -05:00