Commit graph

5048 commits

Author SHA1 Message Date
Ben Holmes
deacd5443a
Run integration config hook on astro sync (#6238)
* refactor: move sync to core

* fix: runHookConfigSetup in CLI

* chore: changeset

* fix: sync import on test-utils

* fix: use syncCli in check
2023-02-14 09:26:30 -05:00
MoustaphaDev
e00e934140 [ci] format 2023-02-13 22:21:23 +00:00
Happydev
c397be324f
fix: add support for js/mjs file extensions for Content Collections config file (#6229)
* test: add fixture

* test: add test case

* test: fix tests

* feat: support mjs/ js file extensions for cc config

* chore: sync lockfile

* test: make assertion more specific

* test: make template minimal

* chore: add changeset

* feat: add warning when `allowJs` is `false`

* improve warning

* extract tsconfig loader to another function

* rename to more descriptive variable

* apply review suggestion

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

---------

Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-02-13 22:19:16 +00:00
Houston (Bot)
27a0b6339b
[ci] release (#6200)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-13 15:26:13 -05:00
matthewp
6d4810b08b [ci] format 2023-02-13 19:50:21 +00:00
Matthew Phillips
a7f18051b1
Prevent hydration mismatches in Preact (#6215) 2023-02-13 14:48:36 -05:00
bholmesdev
b46787c8eb [ci] format 2023-02-13 15:12:39 +00:00
Ben Holmes
baa2dbb3b5
Fix getEntryType failure on spaces in file name (#6218)
* fix: avoid url -> file -> url parsing

* chore: changeset
2023-02-13 10:10:33 -05:00
Sarah Rainsberger
2d72ea30ae
[docs] README typo fixes (#6233)
* [docs] README typo fixes

* adaptor -> adapter

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* one more adapter

---------

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-02-13 09:57:28 -04:00
matthewp
bf3aa2bcde [ci] format 2023-02-13 12:51:06 +00:00
Matthew Phillips
79783fc018
Fix head injection in body with slots.render() and head buffering (#6216)
* Fix head injection in body with slots.render() and head buffering

* Adding a changeset

* An MDX test too
2023-02-13 07:49:10 -05:00
Marvin Frachet
79f49acbe1
Fix 6206: Cloudflare function path resolving one step above (#6208)
* Fix 6206: Cloudflare function path resolving one step above
2023-02-13 02:19:38 +01:00
Nate Moore
8b7cb64dad
Preserve --root CLI flag on restart (#6049)
* fix(#5985): preserve `--root` CLI flag on restart

* fix: resolve --root relative to automatic root

* chore: revert container changes

* fix: pass flags.root to restart container

---------

Co-authored-by: Nate Moore <nate@astro.build>
2023-02-09 14:02:51 -06:00
Houston (Bot)
d6845245f2
[ci] release (#6184)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-09 14:27:56 -05:00
matthewp
9e7a198132 [ci] format 2023-02-09 19:24:45 +00:00
Matthew Phillips
a9bdd9cc4e
Fixes usage of Code component in Vercel (#6198)
* Fixes usage of Code component in Vercel

* Adding a changeset
2023-02-09 14:22:57 -05:00
Bryce Russell
c75d319ee6
Fix types for TableHTMLAttributes (#6197)
* Fix types for TableHTMLAttributes

- Add 'string' type to 'border' attribute
- Add 'false | true' to 'frame' attribute

Thanks Princesseuh for helping

* Create sixty-scissors-refuse.md

* Make changeset more descriptive

* Fix previous changset

---------

Co-authored-by: BryceRussell <19967622+BryceRussell@users.noreply.github.com>
2023-02-09 13:12:15 -06:00
Chris Swithinbank
11e1fa9883
Vercel adapter README tweaks (#6191) 2023-02-09 18:14:57 +01:00
matthewp
e44e340f7e [ci] format 2023-02-09 16:52:23 +00:00
Matthew Phillips
3390cb8444
Fix head injection misplacement with Astro.slots.render() (#6196)
* Fix head injection misplacement with Astro.slots.render()

* Adding a changeset

* Fix case of JSX with no layout

* missing break
2023-02-09 11:50:04 -05:00
bholmesdev
0c3485ab07 [ci] format 2023-02-09 14:50:17 +00:00
Ben Holmes
5616167358
Fix blog starter about page (#6195)
* refactor: about.md -> about.astro

* chore: add strictNullChecks

* fix: format date on blog post layout
2023-02-09 09:48:29 -05:00
Houston (Bot)
350cbd66d3
[ci] update lockfile (#6189)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-09 08:19:13 -05:00
Dan Jutan
436bd09341
Fix root directory spread pagination url.prev for first page (#6183)
* Fix root pagination `url.prev` for first page

* fix lockfile?

* add changeset
2023-02-08 19:14:47 -05:00
matthewp
a64a800d9b [ci] format 2023-02-08 22:17:40 +00:00
Matthew Phillips
938ad514cd
Ensure base configuration appended to content collection styles (#6182)
* Fix, base appended to propagated scripts

* Test scripts
2023-02-08 17:15:33 -05:00
matthewp
e4b2a2e3c7 [ci] format 2023-02-08 21:44:40 +00:00
Matthew Phillips
6fa6025b34
Allow binary data to be returned from api routes in SSG (#6180)
* Allow binary data to be returned from api routes in SSG

* Adding a changeset
2023-02-08 16:42:52 -05:00
Houston (Bot)
919d0db428
[ci] release (#6178)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-08 14:11:29 -05:00
Justin Sun
23c60cfa45
feat(vercel): Add support for analytics (Audiences & Web Vitals) (#6148)
* feat(intergration/vercel): add vercel analytics support

* docs(intergration/vercel): add vercel analytics prop

* docs(intergration/vercel): bump version to 3.1.0

* Update packages/integrations/vercel/README.md

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

* docs(intergration/vercel): add file name for example

* feat(intergration/vercel): convert analytics to ts and support in edge

* docs(intergration/vercel): move file names to code blocks as comments

* fix(intergration/vercel): remove unused import

* feat(intergration/vercel): add analytics support to static mode

* chore(intergration/vercel): revert version change

* style(intergration/vercel): add a blank line after astro import

* chore(intergration/vercel): generate file by changeset

* Update .changeset/eighty-bobcats-deliver.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update packages/integrations/vercel/README.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update packages/integrations/vercel/src/analytics.ts

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* chore(intergration/vercel): simplify analytics script

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-02-08 13:32:20 -03:00
Ben Holmes
ec2f2a31de
[Content collections] Surface content config errors in overlay (#6170)
* fix: throw error during import to catch error boundary

* fix: throw from astro sync

* chore: changeset

* chore: add comment on why error here

* chore: consolidate imports
2023-02-08 10:43:38 -05:00
matthewp
86d5479c6f [ci] format 2023-02-08 15:17:45 +00:00
Matthew Phillips
8bbdcf17dd
Take dynamic imports into account for CSS ordering (#6176)
* Take dynamic imports into account for CSS ordering

* Adding a changeset

* updated lockfile
2023-02-08 10:15:36 -05:00
Houston (Bot)
334da38c56
[ci] update lockfile (#6175)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-08 08:08:37 -05:00
Houston (Bot)
d9061da447
[ci] release (#6169)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-07 17:08:12 -05:00
matthewp
d7948fa3e6 [ci] format 2023-02-07 21:26:18 +00:00
Matthew Phillips
c0e4b1df9f
Fix mixed usage of aliases and relative for client hydration (#6168)
* Fix mixed usgae of aliases and relative for client hydration

* Add a changeset
2023-02-07 16:24:05 -05:00
Edvinas Jurele
92dcf81c17
update node integration README with Fastify code example (#6120) 2023-02-07 13:58:37 -05:00
Houston (Bot)
27eecd3998
[ci] release (#6116)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-07 13:45:08 -05:00
Houston (Bot)
dd0914eafd
[ci] update lockfile (#6160)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-07 11:00:30 -05:00
matthewp
b5f772ec7b [ci] format 2023-02-07 15:58:53 +00:00
Matthew Phillips
d1f5611feb
Add additional scoping for head buffering (#6152)
* Add additional scoping for head buffering

* Add test for direct usage of nested component

* Add special scoping for Astro.scopes.render()

* Generate propagation map during the build

* Move to a maybeHead instruction

* Properly serialize for SSR

* More conservative scoping

* Maybe had should honor result._metadata.hasRenderedHead

* Properly type slots

* Allow template result to be passed

* Add changeset
2023-02-07 10:56:32 -05:00
Erika
cee70f5c6a
Fix returning images from endpoints in dev (#6163)
* fix(dev): Fix dev server responses not being encoded following the specified encoding

* test: Add test

* chore: changeset
2023-02-07 16:52:15 +01:00
matthewp
9f85fb4ac2 [ci] format 2023-02-07 15:51:20 +00:00
Matthew Phillips
f6fc662c3c
Prevent ?inline and ?raw CSS from being bundled as CSS (#6161)
* Prevent ?inline and ?raw CSS from being bundled as CSS

* Add a changeset

* oopts

* Replace use of isCSSRequest
2023-02-07 10:49:13 -05:00
Charles F. Munat
460f9e7329
Fix duplicate alt attribute on Picture component. (#6157)
* Fix duplicate alt attribute on Picture component.

* Create tidy-buses-mate.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-06 20:25:17 -06:00
matthewp
04731b4e60 [ci] format 2023-02-07 01:03:04 +00:00
Elliott Marquez
ec38a8921f
[Lit] add client:only functionality to Lit integration (#6111)
* [Lit] add `client:only` functionality to Lit integration

* add changeset

* update lit changeset to minor
2023-02-06 20:01:21 -05:00
Bryce Russell
327a76c3db
Fix remote image example (#6112)
* Fix remote image example

`format` prop is required for remote images

* Specify `format` is only required when using `Squoosh`

- Undo changes / Restore previous content in Remote Image Examples
- Specify `format` is only required for remote images when using Squoosh(default)

* Fix backticks

* remove 'only' and backticks on squoosh

---------

Co-authored-by: BryceRussell <19967622+BryceRussell@users.noreply.github.com>
2023-02-06 14:38:31 -06:00
Erika
32abe49bd0
Fix polyfills not being available to imports on Netlify (#6117)
* fix(netlify): Try to make polyfill external

* feat(webapi): Add polyfill applier for SSR

* fix(netlify): Externalize polyfills so they're always applied before user code

* chore: changeset

* test(netlify): Add test for polyfill being in the proper place

* config(netlify): Remove unnecessary change to package.json

* revert(netlify): Revert changes

* feat(astro): Add a way for packages to explicitely mark themselves as needing to be external

* Update .changeset/silent-dragons-sell.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-06 14:17:34 -06:00