Commit graph

2636 commits

Author SHA1 Message Date
Matteo Manfredi
06e7256b58
fix: remove double } (#8370)
* fix: remove extra `}`

* changeset: add
2023-09-01 21:03:50 -04:00
Houston (Bot)
e34175be34
[ci] release (#8356) 2023-09-01 18:26:05 -05:00
Nate Moore
c5633434f0
Ensure chunkFileNames do not include invalid characters (#8366) 2023-09-01 18:13:32 -05:00
Erika
405ad95017
fix: tsc complaining about astro imports again (#8367) 2023-09-01 23:20:42 +02:00
Nate Moore
0ce0720c7f
Wrap JSON.parse in try/catch (#8363)
* fix(telemetry): wrap JSON.parse in try/catch

* fix: always write the store

* chore(lint): fix
2023-09-01 14:19:12 -05:00
Matteo Manfredi
6b1e798146
feat: add progress to asset generation (#8357) 2023-09-01 20:29:57 +02: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
Emanuele Stoppa
5f2c55bb54
fix(@astrojs/vercel): slowness and symbolic link (#8348) 2023-09-01 14:33:04 +01:00
Martin Trapp
f21599671a
Respect the download attribute in links when using view transitions (#8339)
* Respect the download attribute in links when using view transitions

* cleanup
2023-08-31 17:51:03 -04:00
Fred K. Schott
d3a6f9f836
add leading and trailing slash sanitization for params (#8276)
* add leading and trailing slash sanitization for params

* chore: fix lint

* refactor: use shared trimSlashes util

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
2023-08-31 13:05:39 -05: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
b21038c193
fix: exclude redirects when running functionPerRoute (#8320)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-31 12:34:50 -05:00
Nate Moore
5f3a44aeef
Improve astro info command (#8327)
* feat(astro): improve info command

* chore: update browser field
2023-08-31 12:33:53 -05:00
Matthew Phillips
7a894eec3e
Prevent View Transition fallback from waiting on looping animations (#8331)
* Prevent View Transition fallback from waiting on looping animations

* Filter out infinite animations
2023-08-31 13:32:45 -04:00
Justin Beaty
af41b03d05
View Transitions: use history.scrollRestoration="manual" (#8231)
* View Transitions: use history.scrollRestoration="manual"

* Update changeset

* Set scrollRestoration to manual before popState

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
2023-08-31 12:20:26 -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
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)
d01c336c4d
[ci] release (#8302)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 19:20:51 +02:00
Erika
4e88ffd813
Update CodeSandbox config for Node 18 and new editor (#8292)
* config: update config for codesandbox

* feat: update create-astro to remove .codesandbox folder

* chore: changeset

* fix: use node18
2023-08-30 18:52:21 +02: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
Erika
d9bd7cf5ce
fix: tsc errors in components (#8293)
* fix: tsc errors in components.ts

* chore: changeset
2023-08-30 17:54:04 +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
Emanuele Stoppa
c32f52a624
chore: add warnings to console for deprecated options (#8283) 2023-08-30 10:10:28 -04:00
Matthew Phillips
1d2389cb6f
Fix astro check failure on first try (#8287) 2023-08-30 10:08:06 -04:00
Sarah Rainsberger
a0955f769f
[docs] remove experimental from image configs (#8282) 2023-08-30 10:12:45 -03: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
Emanuele Stoppa
c2d92dc293
chore: exit from next mode (#8278) 2023-08-30 09:20:49 +01: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
Matthew Phillips
16f09dfff7
Fix video persistence regression (#8271)
* Fix video persistence regression

* Adding a changeset
2023-08-29 15:46:06 -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
Matthew Phillips
e7f872e91e
Prevent ViewTransition script from being added by mistake (#8268) (#8270)
* Prevent ViewTransition script from being added by mistake

* Add the 2-legacy branch to CI
2023-08-29 14:00:47 -04:00
Erika
8450379db8
fix: settings requiring service to be set when settings domains or remotePatterns (#8266) 2023-08-29 17:54:24 +02: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
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
Erika
9e021a91c5
feat: add generic to type params to Astro global (#8263)
* feat: add generic to type params to Astro global

* chore: changeset
2023-08-29 16:04:25 +02:00
Nate Moore
0c7b42dc67
Update telemetry notice (#8234)
* chore: enable telemetry notice

* chore: update telemetry date, notify

* chore(telemetry): refactor telemetry notices

* chore: add changeset

* chore: improve debugging

* chore: update debug

* fix: logical error

* chore(lint): remove unused input

* chore: improve telemetry debug

* chore: improve telemetry tests

* chore: allow isCI to be stubbed

* chore: stub process.env

* chore: stub process.env

* chore: add env to class

* chore: act like we're not on CI

* test: didn't commit the env stub properly

* chore: tweak wording
2023-08-28 16:03:01 -05:00
Matthew Phillips
1db4e92c12
Allow fallback animations on html element (#8258)
* Allow fallback animations on html element

* Add fallback attr after swap

* Break apart addModern and addFallback into separate functions
2023-08-28 14:41:00 -04: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
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
Erika
ffc9e2d3de
feat(paginate): Return exact types from paginate() (#8229)
* feat(paginate): Return exact types from paginate()

* chore: changeset

* fix(types): Fix infer utils while I'm here

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-28 12:02:05 -04:00
Matthew Phillips
1048aca550
Lazily initialize ResponseWithEncoding (#8253)
* Lazily initialize ResponseWithEncoding

* Fix things

* Add a TODO about removing the workaround

* Remove unused lint ignore

* Use canplaythrough instead

* Use an inline script

* Check the readystate first

* Download the video locally

* Capture consoles

* More debugging

* Use autoplay instead of a ready event
2023-08-28 11:57:21 -04:00