0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
Commit graph

1906 commits

Author SHA1 Message Date
Emanuele Stoppa
b601e47aff
chore: enable useImportType rule (#11848) 2024-08-27 16:49:42 +01:00
HiDeoo
ed7bbd990f
fix(markdoc): use astro components defined with extends (#11846) 2024-08-27 16:49:04 +01:00
Yuta Osawa
f1df1b3b46
Prevent Partytown integration from inserting a 'null' string into the body (#11829) 2024-08-26 21:36:35 +08:00
Houston (Bot)
7e2f142a5a
[ci] release (#11739)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-20 16:35:33 +02:00
Matthew Phillips
fc81b01bcd
Prevent race condition in Vercel adapter on Node 18 (#11783) 2024-08-19 15:45:02 -04:00
renovate[bot]
48b85c13dd
fix(deps): update all non-major dependencies (#11765)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-19 16:09:05 +08:00
Matthew Phillips
a9e43d2a2f [ci] format 2024-08-16 12:42:03 +00:00
Matthew Phillips
5ea02b12fd
Deprecate the functionPerRoute option (#11728)
* Deprecate the functionPerRoute option

* Update .changeset/weak-dancers-beam.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-16 08:41:10 -04:00
Bjorn Lu
423614ebb6
Fix MDX stack trace location with frontmatter (#11717) 2024-08-16 12:09:20 +08:00
Florian Lefebvre
87ce2381b6 [ci] format 2024-08-15 14:53:15 +00:00
Florian Lefebvre
70945dd918
refactor: enforce node prefix (#11723) 2024-08-15 16:52:26 +02:00
Houston (Bot)
40a1b3002c
[ci] release (#11699)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-15 10:48:37 +01:00
Bjorn Lu
a23c69d0d0
Deprecates exporting prerender with dynamic values (#11657)
* wip

* done i think

* Add changeset

* Use hook instead

* Reorder hooks [skip ci]

* Update .changeset/eleven-pens-glow.md

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

* Fix run

* Fix link

* Add link

Co-authored-by: Sarah Rainsberger <sarah11918@users.noreply.github.com>

* More accurate migration [skip ci]

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah11918@users.noreply.github.com>
2024-08-14 11:05:19 +01:00
Houston (Bot)
6bb001476c
[ci] release (#11686)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-14 09:14:23 +01:00
renovate[bot]
315ec07e1b
fix(deps): update all non-major dependencies (#11674)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-08-13 22:29:37 +08:00
Matthew Phillips
f5616a8ac0 [ci] format 2024-08-13 12:59:45 +00:00
Matthew Phillips
932bd2eb07
Encrypt server islands props (#11535)
* Encrypt server islands props

* Comment on the hex algo

* Use @oslojs/encoding

* Rename functions

* Add base to test

* Remove old tests no longer valid

* Run test locally

* Make sure adapters run before manifest

* Add a changeset

* Adjust test adapter

* don't assume adapter is at root

* Add a changeset

* Updates on review comments

* Update oslo

* Add better description of Node adapter change
2024-08-13 08:58:47 -04:00
Houston (Bot)
8118120e91
[ci] release (#11654)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-09 17:49:10 -04:00
Bjorn Lu
7adb350a37
Prevent throwing in react and solid component checks (#11624) 2024-08-09 20:01:25 +08:00
Bjorn Lu
cc405dd1fe
Simplify eslint and pnpm config (#11646) 2024-08-09 00:14:39 +08:00
Darius
72c7ae9901
update formatter config (#11640)
* update formatter config

* format

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-08-08 12:12:50 +02:00
Josh Goldberg ✨
4c1b769bcf
chore: bump typescript-eslint to v8 (#11649) 2024-08-08 17:54:04 +08:00
Bjorn Lu
ea82b03cd6
Improve regex performance (#11635) 2024-08-07 16:01:23 +08:00
renovate[bot]
da86d5459f
fix(deps): update all non-major dependencies (#11618)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 16:22:43 +08:00
Bjorn Lu
69d54b4bf2
Remove more unused code (#11598) 2024-08-02 20:19:41 +08:00
renovate[bot]
750d5328c9
fix(deps): update all non-major dependencies (#11565)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 21:17:26 +08:00
Houston (Bot)
49db00444e
[ci] release (#11524)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-30 11:54:54 -04:00
Ben Holmes
1c3265a8c9
Actions: Make .safe() the default return value (#11571)
* feat: new orThrow types

* fix: parens on return type

* feat: switch implementation to orThrow()

* feat(e2e): update PostComment

* fix: remove callSafely from middleware

* fix: toString() for actions

* fix(e2e): more orThrow updates

* feat: remove progressive enhancement from orThrow

* fix: remove _astroActionSafe handler from react

* feat(e2e): update test to use safe calling

* chore: console log

* chore: unused import

* fix: add rewriting: true to test fixture

* fix: correctly throw for server-only actions

* chore: changeset

* fix: update type tests

* fix(test): remove .safe() chain

* docs: use "patch" with BREAKING CHANGE notice

* docs: clarify react integration in changeset
2024-07-30 11:42:52 -04:00
Ben Holmes
84189b6511
Actions: New fallback behavior with action={actions.name} (#11570)
* feat: support _astroAction query param

* feat(test): _astroAction query param

* fix: handle _actions requests from legacy fallback

* feat(e2e): new actions pattern on blog test

* feat: update React 19 adapter to use query params

* fix: remove legacy getApiContext()

* feat: ActionQueryStringInvalidError

* fix: update error description

* feat: ActionQueryStringInvalidError

* chore: comment on _actions skip

* feat: .queryString property

* chore: comment on throw new Error

* chore: better guess for "why" on query string

* chore: remove console log

* chore: changeset

* chore: changeset
2024-07-30 11:04:10 -04:00
Josh Goldberg ✨
87c179a5f3
chore: bump @typescript-eslint/no-unused-vars to error internally (#11173)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
2024-07-24 23:43:07 +08:00
renovate[bot]
536209aa74
fix(deps): update all non-major dependencies (#11522)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-07-23 11:43:14 +08:00
Emanuele Stoppa
9c0c8492d9
feat(container): client hydration (#11486)
* fix: prevent client hydration when rendering via Container API

* revert change that is not needed

* skip client directives via option

* reword changeset

* Fix types of react server.d.ts

* add new API

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2024-07-18 16:28:52 +01:00
Houston (Bot)
aa05be3313
[ci] release (#11481)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-18 16:05:23 +01:00
Matthew Phillips
a637169668 [ci] format 2024-07-18 15:04:30 +00:00
Matthew Phillips
fe3afebd65
Fix Server Islands in Vercel (#11491)
* Fix Server Islands in Vercel

* Add a changeset

* Get server islands pattern from the segments

* Move getPattern so it can be used at runtime

* Fix build
2024-07-18 16:03:39 +01:00
Bjorn Lu
6ad02b5902
Fix Svelte 5 slots change (#11490)
* Fix Svelte 5 slots change

* Use alternative

* Fix Svelte 5 slots
2024-07-18 14:32:39 +01:00
Houston (Bot)
e30cf49ee4
[ci] release (#11442)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-17 14:47:16 +02:00
Fugi
20fc99b6ab [ci] format 2024-07-17 12:24:18 +00:00
Peter Schilling
eb303e1ad5
feat(markdoc): Support markdown-it's typographer option (#11450)
* Support markdoc-it's typographer option in markdoc

* Update .changeset/forty-scissors-jog.md [skip ci]

* Update .changeset/forty-scissors-jog.md [skip ci]

* Fix typo in changeset

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-07-17 14:14:35 +02:00
Ryan Christian
2cdb685ce7
refactor(preact): Drop preact-ssr-prepass in favor of renderToStringAsync (#11464) 2024-07-17 15:51:20 +08:00
renovate[bot]
2113a56933
fix(deps): update all non-major dependencies (#11426)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-07-17 14:48:07 +08:00
Matthew Phillips
b9e906f8e7
Revert "Fix attribute rendering for boolean values (#11369)" (#11408)
* Revert "Fix attribute rendering for boolean values (#11369)"

This reverts commit e6de11f4a9.

* Add a changeset
2024-07-03 17:44:51 -04:00
renovate[bot]
e60aab9a9f
fix(deps): update all non-major dependencies (#11383)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-07-01 16:32:17 +08:00
Bjorn Lu
e6de11f4a9
Fix attribute rendering for boolean values (#11369) 2024-07-01 15:27:34 +08:00
Houston (Bot)
ce310f8292
[ci] release (#11297)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-24 12:49:52 -04:00
renovate[bot]
47e78d4752
fix(deps): update all non-major dependencies (#11318)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-06-24 22:33:33 +08:00
renovate[bot]
edd35d3c69
fix(deps): update dependency sitemap to v8 (#11321)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 17:40:23 +08:00
renovate[bot]
6b8bcd1c07
fix(deps): update dependency vite-svg-loader to v5 (#11322)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 17:39:23 +08:00
Matt Kane
55baffe899 [ci] format 2024-06-24 09:13:19 +00:00
Matt Kane
41064cee78
chore: Extract fs helpers into shared internal-helpers package (#11323) 2024-06-24 10:12:14 +01:00