Commit graph

4136 commits

Author SHA1 Message Date
Erika
95120efbe8
fix(assets): Add missing type for imageConfig export (#8171) 2023-08-21 12:35:49 +02:00
Houston (Bot)
34c39a0c96
[ci] release (#8145)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-18 17:13:25 -04:00
Matthew Phillips
531cc3e490
Fix missing package file regression (#8149) 2023-08-18 17:08:18 -04:00
Arsh
4c15c06969
fix(node): delegate preview's not found and error handling to core/app (#8141)
* fix(node): delegate preview's not found and error handling to core/app

* add changeset

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-18 15:51:46 -05:00
matthewp
be2d60285e [ci] format 2023-08-18 19:45:55 +00:00
Arsh
04caa99c48
fix(data collections): normalize file paths for DataEntry.id (#8144)
* normalize file paths for DataEntry.id

* add changeset
2023-08-18 15:42:53 -04:00
Houston (Bot)
e3c030e5d3
[ci] release (#8138)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-18 10:36:25 -05:00
natemoo-re
ae766f31fe [ci] format 2023-08-18 15:30:30 +00:00
André Alves
97c8760d78
Fix 404 response leading to an infinite loop when there is no 404 page (#8136)
* fix: 404 response leads to infinite loop

* chore: changeset

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-18 10:27:44 -05:00
Nate Moore
8c0a4ed106
fix(react): add missing export (#8137) 2023-08-18 10:26:07 -05:00
Houston (Bot)
5c190d06f1
[ci] release (#8096)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-18 10:31:52 -04:00
natemoo-re
821918bc0c [ci] format 2023-08-18 12:29:31 +00:00
Nate Moore
b12c8471f4
Stringify shouldn't throw on user object during rendering (#8127)
* fix(#7923): do not throw on user { type } object

* chore: remove unused type export

* chore: guess it wasn't unused
2023-08-18 07:26:52 -05:00
natemoo-re
c7de971b10 [ci] format 2023-08-17 21:53:48 +00:00
Nate Moore
1f6497c334
fix(dev): open to base path (#8123) 2023-08-17 16:51:08 -05:00
Nate Moore
fa6b68a776
fix(#6965): fix build stats (#8122) 2023-08-17 15:34:36 -05:00
Sarah Rainsberger
442f946116
[error msg] add hybrid option to a getStaticPaths error message (#8120) 2023-08-17 16:32:27 -03:00
Martin Trapp
b290f0a997
only update our own history entires during back navigation through view transitions (#8116) 2023-08-17 12:18:30 -04:00
Martin Trapp
da6e3da1ce
fix: reinsert attribute to specify direction of ViewTransition (forward / back) (#8109) 2023-08-17 09:28:21 -04:00
Julien Barbay
d6b4943764
feat(assets): support remote images (#7778)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Princesseuh <princssdev@gmail.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-08-17 13:10:50 +02:00
ematipico
2145960472 [ci] format 2023-08-17 08:37:38 +00:00
Colin McDonnell
dff0f0f8dd
Detect Bun package manager in create-astro (#7944)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-17 09:35:19 +01:00
Arsh
097a8e4e91
Prerendering corner cases (#8070)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-17 09:34:31 +01:00
Nate Moore
5b4b782451
fix(solid): update babel-preset-solid (#8107) 2023-08-16 15:59:36 -05:00
Martin Trapp
0e0fa605d1
Fix 8083 (#8105)
* override wrong positions in browser history

* Lost events are taken into account during throttling
2023-08-16 16:38:18 -04:00
natemoo-re
e0d1439f2a [ci] format 2023-08-16 19:39:52 +00:00
Nate Moore
e6e1de4f08
[create-astro] verify connectivity and --template (#8102)
* feat(create-astro): verify that --template exists

* feat: verify internet connectivity

* chore: skip connectivity check on --dry-run

* chore: fix lint
2023-08-16 14:37:43 -05:00
Nate Moore
42ed85b3e2
Fix flaky Cloudflare test (#8103)
* chore: fix flaky CF test

* chore: increase wrangler timeout
2023-08-16 13:28:57 -05:00
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
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
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
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
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
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
Nate Moore
44cf30a252
chore: slim create-astro deps (#8077) 2023-08-14 14:23:14 -05:00