Commit graph

2765 commits

Author SHA1 Message Date
Bjorn Lu
93b092266f
Make CSS chunk names less confusing (#8754) 2023-10-09 17:29:28 +08:00
Makito
eaed844ea8
fix(assets): add the missing await to getHTMLAttributes (#8773) 2023-10-07 21:22:47 +02:00
Martin Trapp
30de324361
Revert fix #8472 (#8767) 2023-10-06 23:17:27 +02:00
Houston (Bot)
584d6f0680
[ci] release (#8738)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-05 11:10:06 +01:00
Jacob Lamb
78adbc4433
Update Netlify SSR link (#8700) 2023-10-05 07:18:45 +01:00
Nate Moore
d78806dfe0
fix(#8746): improve error message for dynamic component usage (#8747) 2023-10-04 15:07:21 -05:00
Bjorn Lu
aa265d7302
Remove unused CSS output files when inlined (#8743) 2023-10-04 21:18:39 +08:00
Arsh
21e0757ea2
chore: remove undici polyfill (#8729) 2023-10-04 18:28:36 +08:00
Chris
21f4826576
Fixes: Shiki syntax highlighting adds is:raw attribute to the HTML output (#8715)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-10-04 18:23:58 +08:00
Nate Moore
357270f2a3
Improve astro info compatability (#8730)
* Improve `astro info` compatability

* Update packages/astro/src/cli/info/index.ts

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

* chore: add changeset

* feat(info): add copy to clipboard support on Unix machines with xclip installed

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-10-03 15:57:31 -05:00
Florian Lefebvre
f277ba8b70
feat: expose partytown types (close #8723) (#8740) 2023-10-03 23:16:49 +08:00
Emanuele Stoppa
6f60da805e
feat: add provenance to packages (#8737) 2023-10-03 15:25:25 +01:00
Bjorn Lu
d1c75fe158
Fix tsconfig.json update causing the server to crash (#8736) 2023-10-03 14:36:38 +01:00
Houston (Bot)
78fda5c3ec
[ci] release (#8722)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-02 23:55:56 +08:00
Bjorn Lu
455af3235b
Fix CSS styles on windows (#8724) 2023-10-02 23:17:34 +08:00
Alexander Niebuhr
3dd65bf889
feat(cloudflare): add local mockings for CF bindings (#8655)
* feat(cloudflare): add D1 database binding

* feat(cloudflare): add local mocking for R2 bindings (#8656)

* feat(cloudflare): add local mocking for KV bindings (#8657)

* feat(cloudflare): add local mocking for Caches bindings (#8664)

* feat(cloudflare): add local mocking for DO bindings (#8690)

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-02 16:04:57 +02:00
Matthew Phillips
4c2bec681b
Fixes View transition styles being missing when component used multiple times (#8710) 2023-10-02 08:51:53 -04:00
Houston (Bot)
a067c2a2c7
[ci] release (#8699)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-02 16:34:57 +08:00
Erika
47ea310f01
feat: resolve images through the file systems on applicable runtimes (#8698)
* feat: add a node image endpoint

* test: fix
2023-09-29 23:14:40 +02:00
Bjorn Lu
345808170f
Fix duplicated Astro and Vite injected styles (#8706) 2023-09-29 21:55:46 +08:00
Bjorn Lu
31c59ad8b6
Fix hydration on slow connection (#8680) 2023-09-29 21:54:46 +08:00
Dario Piotrowicz
c3572fd5e0
fix(cloudflare): target es2022 instead of es2020 to fix esbuild incompatibility issues (#8682)
* fix(cloudflare): target es2022 instead of es2020 to fix esbuild incompatibility issues

* add changeset

* update changeset

* fix(cloudflare): change build target to es2022

---------

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-09-28 20:56:01 +02:00
Houston (Bot)
2d33b9362d
[ci] release (#8695)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-28 14:12:22 -04:00
Matthew Phillips
2167ffd72f
Revert "[ci] release (#8671)" (#8696)
This reverts commit eada8ab8fa.
2023-09-28 13:57:54 -04:00
Arsh
cfd895d877
fix(rerouting): check that the new route is different (#8648)
* fix(rerouting): check that the new route is different

* add tests

* changeset grammar
2023-09-28 22:46:15 +05:30
Houston (Bot)
eada8ab8fa
[ci] release (#8671)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-09-28 13:14:13 -04:00
Matthew Phillips
824dd4670a
Support content collections with % in filename (#8684)
* Support content collections with % in filename

* Add changeset

* Unused eslint thing

* Update packages/astro/src/core/build/static-build.ts

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>

---------

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-09-28 12:20:25 -04:00
Alexander Niebuhr
f6ba533df6
chore(cloudflare): refactor structure, optimize patterns (#8654)
---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: 100gle <loogle.space@gmail.com>
2023-09-28 18:04:49 +02:00
Adit Sachde
f5c617e3a3
Match the .well-known directory when generating routes.json (#7776)
* Match the .well-known directory when generating routes.json

* add changeset

* Update .changeset/clean-planets-retire.md

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-27 18:34:29 -04:00
Arsh
408b50c5ea
fix(redirects): attempt to get only params in dev mode (#8647)
* fix(redirects): attempt to get only params in dev mode

* fixtures/ssr-redirect => fixtures/redirects

* add tests

* Update pnpm-lock.yaml
2023-09-27 18:19:06 -04:00
Michaili K
e797b68160
Fix assets not getting optimized when outDir is outside the CWD (#8670)
* Fix assets not getting optimized when `outDir` is outside the CWD

* Add missing import

* Add changeset

* Fix import, again.

* Use getOutDirWithinCwd in the serverRoot declaration
2023-09-27 18:18:36 -04:00
Matthew Phillips
e6be2d8146
Add View Transitions announcer (#8621)
* Add View Transitions announcer

* fix astro check

* Append the text in a setTimeout

* Use 60 for the timeout

* Add comment on magic number

* Add a changeset

* Update .changeset/small-rules-relax.md

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

* Bring back announce logic

* Remove mention of env file

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-27 15:21:56 -04:00
Chris Swithinbank
9b0114c7d3
Support integrations added in updateConfig() in astro:config:setup (#8672)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-27 21:17:27 +02:00
Bjorn Lu
e8495c853b
Fix logLevel passed to Vite build (#8678) 2023-09-27 22:30:30 +08:00
Martin Trapp
63bc37f2b6
API for clientside router (#8571)
* refactored CSR into goto() function

* first refectoring for router API

* added test

* added comments to fixture

* rename + preliminary changeset

* changeset: now 'minor' and featuring Mathew's example from the docs

* moved for simpler diff

* update after #8617

* fixed ts-errors

* more comprehensible handling of intra-page state

* sync with main

* synch from next_tm
2023-09-27 15:30:13 +02:00
Nolan Lawson
9fe4b95969
fix: print image path for NoImageMetadata (#8666) 2023-09-26 21:51:57 +08:00
Houston (Bot)
60684fad72
[ci] release (#8663)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-25 15:54:55 -04:00
Matthew Phillips
69fbf95b22
Head propagation graph walking on new pages (#8646)
* Head propagation graph walking on new pages

* Add changeset

* Avoid the bang

* Add TODOs about handling in resolveId
2023-09-25 10:14:37 -04:00
Simon Knott
008f7647c4
fix(netlify): bundle netlify functions as ESM to support top-level await (#8661) 2023-09-25 15:45:13 +02:00
Arsh
954cadc1e5
fix(deno): do not set vite.ssr.noExternal (#8652)
* fix(deno): safely set external specifiers

* noExternal does not need to be manually set at all
2023-09-25 19:13:43 +05:30
Houston (Bot)
211bfe3b00
[ci] release (#8635)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-25 18:28:54 +08:00
Rishi Raj Jain
863f5171e8
fix: generated redirect page canonical lacks of site prefix (#8591) 2023-09-25 09:54:58 +02:00
Marco Schumacher
2365c12464
fix(cloudflare): added config for _routes.json generation (#8459)
* added config for _routes.json generation

* added changeset

* renamed test file

* updated comments

* Apply suggestions from code review

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

* worked on tests

* worked on docs

* worked on docs

* worked on tests

* updated pnpm-lock.yaml

* worked on tests

* moved the _worker.js in cloudflareSpecialFiles statement

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-09-24 08:32:03 +02:00
Alexander Niebuhr
4c4ad9d167
chore(core): improve the logging of assets feature (#8615)
* improve assets logging

* changeset

* fix typo

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

* improve log message

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

* update log message

* update changeset

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-23 18:15:49 +02:00
Matthew Phillips
cb838b84b4
fix getDataEntryById to lookup by base name (#8645) 2023-09-22 18:12:51 -04:00
Matthew Phillips
f36c4295be
Warn on empty content collections (#8640)
* Warn on empty content collections

* Update packages/astro/src/core/errors/errors-data.ts

Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>

---------

Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
2023-09-22 14:12:36 -04:00
Martin Trapp
974d5117ab
fix: no deletion of scripts during view transition (#8636) 2023-09-22 12:01:22 -04:00
Adrian Lyjak
faeead4232
feat(@astrojs/cloudflare): Add support for wasm module imports (#8542)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-22 16:58:00 +02:00
Reuben Tier
b64dd45c0d
Fix behaviour regression in create-astro (#8634) 2023-09-22 21:18:46 +08:00
Erika
63141f3f3e
fix: properly generate code for multiple images in same markdown file (#8633) 2023-09-22 14:28:03 +02:00