Commit graph

6173 commits

Author SHA1 Message Date
Nate Moore
2ae9d37f0a fix(dev): open to base path (#8123) 2023-08-21 14:17:04 +01:00
Ben Elan
31a280e438 chore(gitpod): resolve potential globbing and word splitting issue (#8124)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-21 14:17:04 +01:00
Nate Moore
42785c7b78 fix(#6965): fix build stats (#8122) 2023-08-21 14:17:03 +01:00
Martin Trapp
33b8910cfd only update our own history entires during back navigation through view transitions (#8116) 2023-08-21 14:16:36 +01:00
Martin Trapp
a87cbe4003 fix: reinsert attribute to specify direction of ViewTransition (forward / back) (#8109) 2023-08-21 14:16:36 +01:00
Bjorn Lu
be6bbd2c86
Remove deprecated APIs (#8170) 2023-08-21 21:04:15 +08: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
Bjorn Lu
767eb68666
Deprecate simple objects from endpoints (#8132) 2023-08-21 13:55:56 +08:00
Sarah Rainsberger
fd6261dad4
[docs] update scopedStyleStragegy default and description (#8148) 2023-08-18 19:32:10 -03:00
Nate Moore
81545197a3
Replace class:list implementation with clsx (#8142)
* chore: replace `class:list` implementation with `clsx`

* chore: remove Set support from `class:list` test

* chore: better class:list test

* Update packages/astro/src/runtime/server/render/component.ts
2023-08-18 15:25:57 -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
Sarah Rainsberger
a7b7b10839
[error messages] Update image errors-data.ts (#8126)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-18 18:46:29 +02:00
Princesseuh
632d1b6842
fix(polyfills): Use object shape for Stackblitz polyfill list 2023-08-18 18:39:10 +02:00
Erika
db39206cbb
fix: polyfill File using undici instead of node:buffer (#8139)
* fix: polyfill File using undici instead of node:buffer

* chore: changeset
2023-08-18 18:23:51 +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
Arsh
f50d02c201
changeset(next): inlineStylesheets default switch is major (#8133) 2023-08-18 14:56:21 +01:00
Erika
3e834293d4
feat: add polyfills for stackblitz (#8130)
* feat: add polyfills for Stackblitz

* chore: changeset
2023-08-18 15:13:35 +02:00
Matthew Phillips
43140b87ab
Add missing mdx changeset (#8131) 2023-08-18 09:03:56 -04:00
Erika
c2c71d90c2
fix: better error when Sharp can't be resolved (ex: pnpm) (#8128)
* fix: better error when Sharp can't be resolved (ex: pnpm)

* chore: changeset

* Apply suggestions from code review

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-18 15:02:55 +02:00
Bjorn Lu
dbc97b121f
Export experimental JS API (#7979)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-18 16:52:04 +08: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
Emanuele Stoppa
bbf0b7470b
refactor: use pipeline in Development mode (#8115) 2023-08-17 16:33:56 +01:00
Bjorn Lu
cdebbded0c
Fix cloudflare test (#8117) 2023-08-17 23:24:01 +08:00
Matthew Phillips
ea7ff5177d
astro: namespace for middleware and components (#8101)
* `astro:` namespace for middleware and components

* Update errors to use namespace

* Create a namespace module just for the astro: stuff
2023-08-17 09:28:42 -04: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
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
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
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
Nel
9dd09e2c6a
Fix #7056 Splashing Navigation Menu in portfolio template (#7078)
* Fix #7056 Splashing Navigation Menu in portfolio template

* Add menu back to no-JS view

* Fix desktop view in non-JS & menu styling

* chore: force ci

---------

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-16 15:04:53 -05: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
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