Commit graph

6282 commits

Author SHA1 Message Date
Adam Heath
79d35bbb90
Fix missing async/await in vite-plugin-integrations-container on astro:server:setup hook (#8104)
* All astro integrations hooks are defined as returning void|Promise, so
all calls need to deal with a possible async/await pattern.  One was
missed in vite-plugin-integrations-container.

This plugin is definitely used by the astro-dev when using a node
adapter, but I am not sure about other such scenarios.  I did a search
through the code base, and all other runHook* calls are properly
awaited.

* chore: make test async

---------

Co-authored-by: Nate Moore <nate@astro.build>
2023-08-16 12:57:00 -05:00
Reuben Tier
db5e8ad8af
Update build.inlineStylesheets docs (#8061)
Co-authored-by: Elian ️ <hello@elian.codes>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-16 12:52:40 -05:00
matthewp
fb31ce55d9 [ci] format 2023-08-16 17:44:01 +00:00
Matthew Phillips
16a3fdf931
Add experimentalReactChildren option to React integration (#8082)
* wip: support true react vnodes in renderer

* Add new experimentalReactChildren option to React integration

* Update the test

* Add docs

* Update packages/integrations/react/server.js

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

* Update with a better test

* Update .changeset/yellow-snakes-jam.md

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

* Update packages/integrations/react/README.md

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

* Update packages/integrations/react/README.md

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>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-16 13:40:57 -04:00
Emanuele Stoppa
ca4cf01100
refactor: build pipeline (#8088)
* refactor: build pipeline

* refactor: build pipeline

* fix: manifest not extensible and correct directory for renderers.mjs

* fix: correctly resolve output directory

* fix: correctly compute encoding and body

* chore: update documentation

* refactor: change how tests are run

* refactor: fix test regressions!!
2023-08-16 16:45:21 +01:00
Bjorn Lu
788825bd8b
Refactor dependency usage (#8076) 2023-08-16 22:26:19 +08:00
Nate Moore
7177f7579b
Cleanup dotfiles in dist (#8092)
* fix(#7933, plt-789): cleanup dotfiles during build

* chore: add changeset
2023-08-16 09:20:38 -05:00
Arsh
0ad6a5e2d8
chore(test): remove duplicates fixtures (#8098) 2023-08-16 12:17:18 +01:00
Erika
b76c166bdd
feat: unflag experimental.assets (#7921)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-16 10:21:05 +02:00
Eric Mika
0bf2cca5d7
Filter out Svelte's unknown class prop console warnings (#7291)
* Filter out Svelte's unexpected class prop console warnings

Astro's hydration code passes a `class` prop to Svelte components, inducing Svelte to log a warning about an unknown prop. Preempting this by exporting a `class` prop from the Svelte component isn't a viable workaround since `class` is a reserved identifier in JS.

This PR implements the console-filtering workaround suggested by @HiDeoo in #5665, borrowing the `useConsoleFilter` approach from the [preact integration](a1c0cbe604/packages/integrations/preact/src/server.ts (L72-L94)).

It would probably be better to generalize console filtering so it could be shared across multiple integrations.

Ideally there would be a way to handle this in Svelte, but as was pointed out in the issue thread even they resort to [similar cringe-inducing hackery](https://github.com/sveltejs/kit/blob/master/packages/kit/src/runtime/client/client.js#L1974-L1996) in sveltekit.

* Only filter Svelte console warnings in dev builds

* Add changeset

* Fix lint error.

---------

Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-15 17:31:01 -05:00
natemoo-re
0b59bc944b [ci] format 2023-08-15 22:21:05 +00:00
Nate Moore
483ecd5027
chore: update to use getEntry (#8093) 2023-08-15 17:18:28 -05:00
Houston (Bot)
53ad9efde4
[ci] release (#8090)
* [ci] release

* Update packages/create-astro/CHANGELOG.md

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-15 16:12:45 -05:00
Martin Trapp
56e7c5177b
Handle noscript tags in head during ViewTransitions (#8091) 2023-08-15 16:26:37 -04:00
natemoo-re
76a2ba270d [ci] format 2023-08-15 17:27:28 +00:00
Nate Moore
04755e8465
fix(create-astro): update install step (#8089) 2023-08-15 12:25:24 -05:00
Alexander Zaytsev
709f40538b
Add Transloadit to the Gold Sponsors list (#8074)
Co-authored-by: Darius <19603573+itsMapleLeaf@users.noreply.github.com>
2023-08-15 12:18:02 -05:00
natemoo-re
a37b2242d0 [ci] format 2023-08-15 17:13:43 +00:00
Nate Moore
74df833708
Update wrangler (#8081)
* chore: update wrangler

* chore(cloudflare): update tests to support wrangler@3

* chore(cloudflare): update debug message

* chore: force ci
2023-08-15 12:10:51 -05:00
Houston (Bot)
087270c61f
[ci] release (#8064)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-15 22:35:58 +08:00
Greg Cobb
a12027b6af
fix: Removed extra double quotes from computed style in shiki code component (#8035) 2023-08-15 22:29:16 +08:00
hbgl
560e459246
Stream request body instead of buffering it in memory (#8084)
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2023-08-15 15:26:18 +01:00
bluwy
3755424f93 [ci] format 2023-08-15 13:17:37 +00:00
Bjorn Lu
5d1d0aeda6
Document SSG format and trailingSlash consistency (#8068)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-15 21:15:29 +08:00
Bjorn Lu
fa29e4a36f
Remove deepmerge-ts for simpler implementation (#8086) 2023-08-15 21:11:00 +08:00
Emanuele Stoppa
e12a101842 chore: merge 2023-08-15 09:24:34 +01:00
Emanuele Stoppa
7530d5689d Merge remote-tracking branch 'origin/main' into next 2023-08-15 09:24:06 +01:00
Bjorn Lu
68efd4a8b2
Export astro/compiler-runtime and cleanup exports (#8085) 2023-08-15 16:21:28 +08:00
Sergey Shishkin
c19987df0b
Export AstroConfigType properly as type and not as a Zod schema value (#7702) 2023-08-15 08:30:39 +01:00
natemoo-re
1e9902177d [ci] format 2023-08-14 19:25:29 +00:00
Alexander Niebuhr
7b77b34cef
fix(@astrojs/cloudflare): unsynced astro asset support flag (#8079)
* fix astro assets support in cloudflare

* add changeset
2023-08-14 14:23:36 -05:00
Nate Moore
44cf30a252
chore: slim create-astro deps (#8077) 2023-08-14 14:23:14 -05:00
natemoo-re
a34a48826c [ci] format 2023-08-14 16:29:04 +00:00
Robin Neal
da517d4055
fix: remove react identifierPrefix from client:only (#8075)
This was causing React components rendered with client:only
to be prefixed with null. While not technically causing any
issues, it is unintended and could be considered a bug.

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-14 11:26:03 -05:00
natemoo-re
7d7920ea91 [ci] format 2023-08-14 15:53:38 +00:00
Nate Moore
3e46634fd5
Support flags for astro add (#8032)
* astro add cli pass down arguments to install cmd

* add changeset

* feat: pass common flags down to install command

* Update .changeset/soft-colts-heal.md

---------

Co-authored-by: Elod Tobak <tobakelod@gmail.com>
2023-08-14 10:50:49 -05:00
Matthew Phillips
4477bb41c8
Update types to specify that compress defaults to true (#8072)
* Update types to specify that compress defaults to true

* Update astro.ts

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-14 11:10:37 -04:00
Nate Moore
5208a3c8fe
fix: remove ./dist/jsx/* exports (#8030) 2023-08-14 09:22:01 -05:00
James Garbutt
d1f7143f9c
fix(astro): strongly type Astro.self (#7866)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Princesseuh <princssdev@gmail.com>
2023-08-14 16:04:45 +02:00
Houston (Bot)
19f9edf977
[ci] release (beta) (#8067)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-14 08:46:22 -05:00
Erika
afc45af202
feat(assets): Add support for passing non-awaited imports to the Image component and getImage (#8066)
* feat(assets): Add support for passing non-awaited imports to the Image component and `getImage`

* test: add test
2023-08-14 15:29:42 +02:00
Bjorn Lu
2aa6d8ace3
Add changeset for internal helper package (#8062) 2023-08-14 08:22:44 -05:00
Elian ☕️
c5b60fadb8
chore: Update README.md (#8065) 2023-08-14 13:26:28 +02:00
Martin Trapp
bee284cb77
docs: fix github search link in README.md (#8063)
Co-authored-by: Elian ️ <hello@elian.codes>
2023-08-14 11:22:13 +02:00
Samuel Plumppu
41cfde9a7d
fix: Cleanup blog template images (#8051) 2023-08-14 15:53:10 +08:00
Houston (Bot)
f39a80c583
[ci] release (#8043)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-11 14:02:47 -04:00
matthewp
06fa76cec6 [ci] format 2023-08-11 17:57:40 +00:00
Matthew Phillips
4a145c4c7d
Fix same-page transition with different query params (#8042) 2023-08-11 13:54:31 -04:00
Houston (Bot)
e1a886530f
[ci] release (#8023)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-11 11:22:23 -04:00
Houston (Bot)
40efae6550
[ci] release (beta) (#7952)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-11 11:14:20 -04:00