Commit graph

6018 commits

Author SHA1 Message Date
bluwy
22c944712c [ci] format 2023-08-10 14:16:37 +00:00
Bjorn Lu
c23377caaf
Fix getCollection return new instance in prod (#8022) 2023-08-10 22:13:32 +08:00
Martin Trapp
86bee28121
View Transitions: do not animate same page navigation, but animate hash links to different pages (#8013)
* Links with hash marks are now supported if they lead to a different page

* treat links to same page equally, independent of hash or not

* Links to the same page do not trigger view transitions

* special treatment for trailing hash

* view transitions: simpler rule to exclude in-page links
2023-08-10 10:07:13 -04:00
Houston (Bot)
fc30b8539c
[ci] release (#8017)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-10 21:25:28 +08:00
ematipico
6936c173c0 [ci] format 2023-08-10 12:42:09 +00:00
Oliver Speir
4c9d1cb8f2
Update content-types.template.d.ts (#8010)
Provides more useful information when hovering variables typed with CollectionEntry<"collectionName"> 

* Does not change the functionality of existing code

* Flatten<AnyEntryMap[C]> is the same as AnyEntryMap[C][keyof AnyEntryMap[C]]

* Both will produce a union of all note entry types within the "collectionName" key
2023-08-10 13:39:36 +01:00
bluwy
1e3c9f515b [ci] format 2023-08-10 04:55:04 +00:00
Bjorn Lu
5b1e39ef6e
Move hoisted script analysis optimization as experimental (#8011)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-10 12:52:57 +08:00
Marco Schumacher
ea30a9d4f2
more efficient _routes.json for cloudflare integration (#7846)
* more efficient _routes.json for cloudflare integration

* added tests

* updated pnpm-lock.yaml

* added changeset

* cleaned up test

* fix: convert window path separators

* updated docs

* handle more cases

* Apply suggestions from code review

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* incorporate feedback from code review

* used other pnpm version

* better fallback for empty include array

* adjust test case to changed fallback for empty include array

* updated docs

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-10 04:04:09 +01:00
Houston (Bot)
9cb32e2a5f
[ci] release (#8000)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-09 15:31:34 -05:00
dave caruso
58b121d42a
Support Bun by adjusting how @babel/plugin-transform-react-jsx is imported. (#8007)
* Support bun/other tooling that respects `__esModule`

* Add changeset file
2023-08-09 14:11:41 -05:00
ElianCodes
e65b5b5495 [ci] format 2023-08-09 18:52:48 +00:00
Keshav Mohta
e2b1b4fa6e
fixed image path and add markdown syntax in example (#7802)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Elian ️ <hello@elian.codes>
2023-08-09 20:50:25 +02:00
Jany Belluz
79376f842d
Remove nested JSON.stringify from props serialization (#7995) 2023-08-09 13:06:21 +01:00
李瑞丰
895afd4447
docs: Fix error link in markdoc (#8006) 2023-08-09 12:10:40 +01:00
Juan Martín Seery
16161afb2b
fix: EndpointOutput type with encoding 'binary' (#8003)
* fix: `EndpointOutput` type with encoding `'binary'`

* Changeset
2023-08-08 20:19:32 -03:00
Chris Swithinbank
315d58f27b
Add shorthand for Starlight templates to create astro (#7993)
* Add shorthand for Starlight templates to `create astro`

* Update packages/create-astro/src/actions/template.ts

* Update packages/create-astro/src/actions/template.ts

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-08 12:08:46 -05:00
Elian ☕️
4d160fa1e2
chore: remove MDX integration from Tailwind example (#7987)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-07 16:23:39 -05:00
Houston (Bot)
2e36d96588
[ci] release (#7988)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-07 16:21:15 -05:00
Nate Moore
8e5a27b488
fix: ensure injectRoute works during build (#7986) 2023-08-07 15:54:55 -05:00
Jeff Ruane
2c2e9362a2
Add screen reader text to example blog footer (#7984)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-07 14:27:44 -05:00
Houston (Bot)
9509a66a7b
[ci] release (#7958)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-07 13:51:05 -05:00
Chris Swithinbank
ec06dd9bbb
Fix formatting in Lit README (#7985)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-07 20:03:09 +02:00
natemoo-re
1283cfd19f [ci] format 2023-08-07 17:54:43 +00:00
Marek Brzezinski
6a27e932d6
Added slashes at the end of the filter option in the sitemap docs (#7915)
I trend to implement the sitemap and I found out that filter option works only when the URL has slashes at the end. I changed the examples.

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-07 12:52:13 -05:00
André Alves
9d0070095e
Fix missing CSS when 404 server Response redirects to a custom 404 page (#7946)
* Fix missing css import on 404 redirect

* Chore: changeset

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-07 12:51:50 -05:00
natemoo-re
f6845d94f5 [ci] format 2023-08-07 16:27:34 +00:00
Nate Moore
c2682a17c0
Fix injectRoute (#7943)
* fix: inject route! hack!

* refactor: use integration container to resolve all injected routes

* chore: add changeset

* Fix pnpm workspace injectRoute bug

See https://github.com/withastro/astro/issues/7561#issuecomment-1620063634

Closes #7561

* Revert "Fix pnpm workspace injectRoute bug"

This reverts commit 3082c7c269.

* Update .changeset/stupid-pants-press.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update packages/astro/src/vite-plugin-scripts/page-ssr.ts

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* refactor: cleanup injectedRoute resolution logic

---------

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-08-07 11:24:28 -05:00
natemoo-re
1a24ea6b5a [ci] format 2023-08-07 15:59:11 +00:00
Nate Moore
6cd7290d2c
Refactor page filename logic (#7983)
* fix(#7561): refactor astro page filename logic

* chore: add changeset
2023-08-07 10:57:03 -05:00
Bjorn Lu
a4a637c8f7
Fix inline root resolve logic (#7977) 2023-08-07 21:43:03 +08:00
Timon Jurschitsch
51028f85c6
Add URL to RSSOptions.site type (#7964) 2023-08-07 16:49:55 +08:00
Emanuele Stoppa
9ad0d326f9
ci: enable codegen errors job (#7961) 2023-08-04 16:54:11 +01:00
Emanuele Stoppa
0fd6dc7ec7
chore: fix issue in the check.js script (#7965) 2023-08-04 16:53:54 +01:00
Bjorn Lu
8ea6b6dedf
Add timeout for check CI (#7963) 2023-08-04 23:01:44 +08:00
astrobot-houston
57424b7db9 [ci] format 2023-08-04 14:47:35 +00:00
ElianCodes
f65756f661 [ci] format 2023-08-04 14:45:09 +00:00
Elian ☕️
37e18a9160
docs: Update Lit README.md (#7960) 2023-08-04 16:43:03 +02:00
ematipico
60616bb717 [ci] format 2023-08-04 14:02:02 +00:00
Emanuele Stoppa
f844238c9b
feat: break down AstroErrorData in multiple objects (#7949) 2023-08-04 14:57:19 +01:00
Elian ☕️
f3b234b258
chore: update Deno server import path (#7959) 2023-08-04 09:14:31 -04:00
Matthew Phillips
a00cfb8942
Fix race condition when performing swap for fallback (#7945)
* Fix race condition when performing swap for fallback

* Adding a changeset

* Use let
2023-08-04 08:48:11 -04:00
Elian ☕️
9b1de49075
fix broken partytown GitHub link (#7954) 2023-08-04 11:45:32 +02:00
Matthew Phillips
fa4367792b Revert "Fix race condition when performing swap for fallback"
This reverts commit e5f7d11ef5.
2023-08-03 19:57:36 -04:00
Matthew Phillips
e5f7d11ef5 Fix race condition when performing swap for fallback 2023-08-03 19:57:12 -04:00
Houston (Bot)
8226002c0a
[ci] release (#7941)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-03 16:47:20 -05:00
natemoo-re
53e824fe99 [ci] format 2023-08-03 21:05:44 +00:00
Nate Moore
89cd4b877e
Handle error state for version (#7939)
* fix(create-astro): handle error state for version

* fix: handle missing version
2023-08-03 16:03:04 -05:00
Mark Peck
a2b989cba1
light update to styles and updated astro icon (#7938)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-03 15:35:31 -05:00
Houston (Bot)
49b3cf423b
[ci] release (#7937)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-03 15:16:51 -04:00