Barthélémy Ledoux
1947ef7a99
fix: no asset plugin w/ img is imported with query ( #8353 )
...
* fix: no asset plugin w/ img is imported with query
* add changeset
* add test for the new feature
* remove exp
* use removeQueryString instead of `includes('?')`
it's more explicit
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-06 15:01:01 +02:00
ematipico
eb8c4cc2fc
[ci] format
2023-09-06 04:46:18 +00:00
Slawek Kolodziej
9ffa1a84e8
fix: include route prefix in vercel func names, fix #8401 ( #8408 )
...
* fix: include route prefix in vercel func names
* chore: add changeset
* chore: update pnpm lockfile
* refactor: simplify logic that generates vercel func names
* fix: properly remove entryFile prefix from func name
* refactor: change how vercel function names are generated
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-06 05:43:53 +01:00
Bjorn Lu
837ad16491
Skip cloudflare CLI tests if fail to start ( #8417 )
...
* Skip cloudflare CLI tests if fail to start
* Fix port
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-05 14:35:41 -05:00
Arsh
7d95bd9baa
Allow vite to refer to inlined CSS ( #8351 )
...
* fix(client build): keep inlined stylesheets
* add changesets
* appease linter
* eslint: allow variables beginning with an underscore to be unused
* remove eslint-ignore that's no longer needed
* ready for review
2023-09-05 23:31:15 +05:30
Chris Swithinbank
93a1231f14
Add location data to MDX compile errors ( #8405 )
2023-09-05 12:48:39 +02:00
Julien Déramond
fd6ce9a99a
fix: funcitonPerRoute
→ functionPerRoute
in vercel integ package ( #8406 )
2023-09-05 07:28:23 +01:00
Houston (Bot)
e43ae88528
[ci] release ( #8372 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-04 10:09:43 +01:00
Houston (Bot)
e34175be34
[ci] release ( #8356 )
2023-09-01 18:26:05 -05:00
Chris Swithinbank
b74dacdb6a
Uppercase endpoint examples in adapter READMEs ( #8346 )
2023-09-01 17:11:55 +02:00
Houston (Bot)
1b9de31737
[ci] release ( #8335 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-01 15:19:30 +01:00
Erika
0eb09dbab1
fix(vercel): Don't output an error message for failing to resolve sharp ( #8354 )
...
* fix(vercel): Don't output an error message for failing to resolve sharp
* chore: changeset
2023-09-01 16:14:15 +02:00
ematipico
cc99b2814f
[ci] format
2023-09-01 13:35:21 +00:00
Emanuele Stoppa
5f2c55bb54
fix(@astrojs/vercel): slowness and symbolic link ( #8348 )
2023-09-01 14:33:04 +01:00
Houston (Bot)
84427f33c1
[ci] release ( #8330 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-31 13:42:22 -04:00
Emanuele Stoppa
c58472756e
fix(@astrojs/vercel): include astro feature map and adapter features to the static adapter ( #8318 )
2023-08-31 17:01:43 +01:00
Houston (Bot)
61ac0eb3d8
[ci] release ( #8326 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-31 11:36:25 -04:00
matthewp
f36bce043f
[ci] format
2023-08-31 15:32:51 +00:00
Matthew Phillips
0752cf3688
Prevent React hook call warnings when used with MDX ( #8324 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-31 11:31:01 -04:00
Matthew Phillips
8fff0e9aeb
Update Vercel warning verbiage ( #8328 )
...
* Update Vercel warning verbiage
* Changeset and suggestion of functionPerRoute: false
2023-08-31 11:06:09 -04:00
Emanuele Stoppa
dc29e0f797
fix(@astrojs/vercel): warn user when functionPerRoute
is true
( #8319 )
2023-08-31 15:36:37 +01:00
Houston (Bot)
1efd51fb47
[ci] release ( #8304 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 16:31:20 -04:00
Emanuele Stoppa
d4a6ab7339
fix(ssr): inline middleware during the build, not rely on file system ( #8300 )
...
* fix(ssr): inline middleware during the build, not rely on file system
* feedback
* chore: fix lint
---------
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-30 12:56:10 -05:00
Houston (Bot)
2a94614433
[ci] release ( #8296 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 18:14:12 +02:00
Houston (Bot)
f8c171c944
[ci] release ( #8288 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 10:35:16 -04:00
Matthew Phillips
ef37f9e290
Revert "[ci] release ( #8285 )" ( #8290 )
...
This reverts commit b4e67a0b1b
.
2023-08-30 10:31:24 -04:00
Houston (Bot)
b4e67a0b1b
[ci] release ( #8285 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 10:13:29 -04:00
Houston (Bot)
5598feb718
[ci] release ( #8279 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 13:38:28 +02:00
Yan Thomas
e33d951af1
Remove draft pages info from mdx integration guide ( #8281 )
2023-08-30 07:25:29 -04:00
Houston (Bot)
28a49f8e0d
[ci] release (rc) ( #8272 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-29 15:50:45 -04:00
Houston (Bot)
834a00d2d3
[ci] release (rc) ( #8267 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-29 14:18:54 -04:00
Houston (Bot)
6f47c6c919
[ci] release (rc) ( #8256 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-29 10:58:09 -04:00
natemoo-re
51e67e0ab0
[ci] format
2023-08-29 14:32:02 +00:00
Nate Moore
1f58a7a1be
Unmount framework components when islands are destroyed ( #8264 )
...
* fix(view-transitions): update persistence logic for improved unmount behavior
* feat(astro): add `astro:unmount` event
* feat(vue): automatically unmount islands
* feat(react): automatically unmount islands
* feat(react): automatically unmount islands
* feat(solid): automatically dispose of islands
* feat(svelte): automatically destroy of islands
* feat(svelte): automatically destroy of islands
* feat(solid): automatically dispose of islands
* feat(preact): automatically unmount islands
* chore: update changeset
* fix: rebase issue
* chore: add clarifying comment
* chore: remove duplicate changeset
* chore: add changeset
2023-08-29 09:30:11 -05:00
Houston (Bot)
0a97524e38
[ci] release (rc) ( #8238 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-28 12:23:04 -04:00
ematipico
ba7b23b9e0
[ci] format
2023-08-28 16:21:11 +00:00
Emanuele Stoppa
c7921e9e1b
refactor: use new Astro internals ( #8254 )
...
* refactor: use new Astro internals
* chore: update tests
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-08-28 17:19:04 +01:00
Matthew Phillips
52f0837bde
Vercel adapter default changes ( #8239 )
...
* Vercel adapter default changes
* Update .changeset/silly-dolphins-try.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Fix tests
* chore: correctly export `pageModule` when using `functionPerRoute`
* Update .changeset/silly-dolphins-try.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Update .changeset/silly-dolphins-try.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Make throw be the entrypoint
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-28 12:10:28 -04:00
Florian Lefebvre
ed39fbf168
fix(deno): add start to options interface and extract to new file ( close #8221 ) ( #8245 )
...
* fix(deno): add start to options and extract to new file
* Reword changeset
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-08-28 02:51:28 +05:30
Mainak Das
cc740fb103
docs: Fix typo in react integration README ( #8243 )
2023-08-27 16:35:29 +02:00
Houston (Bot)
23096dbee8
[ci] release (rc) ( #8233 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-25 14:10:30 -04:00
ElianCodes
cd69aa7347
[ci] format
2023-08-25 17:08:19 +00:00
shelton louis
6cfaf75af9
chore: Write read me for the Markdoc config. ( #7989 )
...
Co-authored-by: Elian ☕ ️ <hello@elian.codes>
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-08-25 19:06:04 +02:00
Houston (Bot)
2b5d739bd9
[ci] release (rc) ( #8215 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-25 12:52:51 -04:00
Bjorn Lu
4bd2fac8da
Publish missing react vnode-children.js file ( #8228 )
2023-08-25 23:28:23 +08:00
matthewp
4bbcbac0b7
[ci] format
2023-08-24 14:40:44 +00:00
Emanuele Stoppa
fd5fa86e9c
Merge remote-tracking branch 'origin/main' into next
2023-08-24 15:05:39 +01:00
Houston (Bot)
608b2d732d
[ci] release ( #8205 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-24 10:04:16 -04:00
Emanuele Stoppa
44bd0cd825
Merge remote-tracking branch 'origin/main' into next
2023-08-24 13:02:27 +01:00
Bjorn Lu
048846fd53
Update breaking dependencies ( #8201 )
2023-08-24 16:34:33 +08:00
ematipico
0eb7f19729
[ci] format
2023-08-23 15:03:12 +00:00
Emanuele Stoppa
0be8d9bfa9
docs: better documentation for runtime
( #8190 )
2023-08-23 16:00:56 +01:00
Houston (Bot)
ee06c4fe5c
[ci] release ( #8172 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-23 22:12:09 +08:00
Bjorn Lu
353dcb23e8
Update non-major dependencies ( #8199 )
2023-08-23 19:52:13 +08:00
Jothish JJ
1e8942c438
Add h3 for Installing dependencies manually ( #8155 )
2023-08-23 11:40:19 +01:00
Houston (Bot)
9f1881455a
[ci] release (rc) ( #8147 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-22 10:19:18 -04:00
Emanuele Stoppa
2d50d50b6a
Merge remote-tracking branch 'origin/main' into next
2023-08-22 14:02:15 +01:00
Bjorn Lu
b8ad9a2499
Remove turbolinks integration ( #8186 )
2023-08-22 20:23:34 +08:00
Matthew Phillips
b4ef0b9a8c
Set Markdoc integration version to a minor ( #8177 )
2023-08-21 12:35:51 -04:00
Emanuele Stoppa
d08c83ee3f
fix(@astrojs/node): handler should work with express
( #8176 )
2023-08-21 17:29:38 +01:00
Emanuele Stoppa
d43ca69c1d
Merge remote-tracking branch 'origin/main' into next
2023-08-21 14:21:53 +01:00
Bjorn Lu
e79e3779df
Remove pre-shiki v0.14 theme names ( #8169 )
2023-08-21 21:02:30 +08:00
Sarah Rainsberger
15471e6b4f
[docs] JSX framework integration READMEs ( #8151 )
2023-08-21 09:47:28 -03: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
Houston (Bot)
5e6bd6ab5d
[ci] release (beta) ( #8140 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-18 18:49:34 +02:00
Houston (Bot)
e5c13881f1
[ci] release (beta) ( #8073 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-18 11:46:47 -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
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
Arsh
8a5b0c1f3a
Switch build.inlineStylesheets
default to auto ( #8118 )
...
* switch inlineStylesheets default
* use previous default for astro/test
* use previous default for content-collections-render.test.js
* integrations: node, deno, mdx, markdown
* typedocs: switch inlineStylesheets default
* Update example to show non-default
* add changeset
* reword changeset
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-18 07:52:06 +01:00
Alexander Niebuhr
2540feedb0
feature(@astrojs/cloudflare): port functionPerRoute ( #8078 )
...
* port functionPerRoute to cloudflare
* add changeset
* port bugfix to next
* update changeset
* Update packages/astro/src/core/build/generate.ts
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* update changeset
* update README
* add TODO comment
* Update .changeset/wise-cameras-agree.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/wise-cameras-agree.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/nasty-garlics-listen.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* update README
* Update .changeset/wise-cameras-agree.md
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
* Update packages/integrations/cloudflare/README.md
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-08-17 16:40:28 -05:00
Bjorn Lu
cdebbded0c
Fix cloudflare test ( #8117 )
2023-08-17 23:24:01 +08:00
Matthew Phillips
4843bff0d2
Fix more conflicts
2023-08-17 09:01:50 -04:00
Matthew Phillips
cbb77af978
Merge branch 'main' into next
2023-08-17 08:54:28 -04:00
Erika
2484dc4080
config: remove ~/assets alias ( #8113 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Mia Kanashi <chad@redpilled.dev>
2023-08-17 14:22:26 +02: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
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
Elian ☕️
4967c69221
chore: update codesamples for Vercel v3 adapter ( #8111 )
2023-08-17 09:01:12 +01:00
Elian ☕️
7a625d9bad
chore: update codesamples for Netlify v3 adapter ( #8112 )
2023-08-17 09:00:46 +01:00
Nate Moore
5b4b782451
fix(solid): update babel-preset-solid ( #8107 )
2023-08-16 15:59:36 -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
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
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
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
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
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
Emanuele Stoppa
7530d5689d
Merge remote-tracking branch 'origin/main' into next
2023-08-15 09:24:06 +01: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
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
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
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
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