Bjorn Lu
830e88b61f
Fix attribute rendering for boolean values ( #11369 )
2024-07-18 09:29:01 +01:00
Emanuele Stoppa
8f755e2cd1
fix: check experimental flag when using the rewrite function ( #11349 )
...
* fix: check experimental flag when using the rewrite function
* apply feedback
2024-07-18 09:29:01 +01:00
Houston (Bot)
6b80e775d9
[ci] release ( #11346 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-18 09:29:01 +01:00
Bjorn Lu
12c2bf871c
Fix getPackage resolve path ( #11347 )
2024-07-18 09:29:01 +01:00
Emanuele Stoppa
5113f56af1
reword changeset
2024-06-27 10:54:53 +01:00
Emanuele Stoppa
ed69f8f98e
fix: prevent client hydration when rendering via Container API
2024-06-26 13:51:00 +01:00
Emanuele Stoppa
0df81422a8
fix(container): breakdown files to avoid importing vite
( #11327 )
...
* fix(container): breakdown files to avoid importing `vite`
* chore: update imports inside tests
* restore code
* format
2024-06-26 13:16:07 +01:00
Houston (Bot)
d9e6190a0d
[ci] release ( #11336 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-26 11:29:13 +02:00
Bjorn Lu
f1b78a4960
Remove resolve package and refactor db & studio exports ( #11331 )
2024-06-26 11:19:16 +02:00
Zakher Masri
9752a0b275
[ui] fix margin around devtool tooltip icon in rtl
( #11338 )
2024-06-26 13:52:51 +08:00
Matthew Phillips
8fdbf0e45b
Remove non-fatal errors from telemetry ( #11339 )
2024-06-25 12:34:20 -04:00
Florian Lefebvre
41121fbe00
fix(astro): astro sync and astro:env ( #11326 )
2024-06-25 14:51:55 +02:00
Emanuele Stoppa
4c4741b42d
Revert "bug: removes type override from defineAction" ( #11335 )
...
* Revert "bug: removes type override from defineAction (#11292 )"
This reverts commit 7f8f347995
.
* changeset
2024-06-25 12:31:13 +01: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
Emanuele Stoppa
44c61ddfd8
fix(routing): return correct status code for 500.astro
and 404.astro
( #11308 )
...
* fix(routing): return correct status code for `500.astro` and `404.astro`
* changeset
* fix regression
* use `route` instead
2024-06-24 13:21:27 +01:00
Matt Kane
41064cee78
chore: Extract fs helpers into shared internal-helpers package ( #11323 )
2024-06-24 10:12:14 +01:00
Bjorn Lu
b6afe6a782
Handle encoded image paths in markdown ( #11310 )
2024-06-21 17:13:21 +01:00
Martin Trapp
0622567326
Fall back to page reload when redirected to a cross origin URL ( #11302 )
...
* fall back to page reload when redirected to a cross origin URL
* Make redirect work with dynamically assigned ports
* undo
2024-06-21 06:58:18 +02:00
Emanuele Stoppa
8ce66f2ef7
fix(rss): correct types for RSSFeedItem
( #11299 )
2024-06-20 22:14:49 +01:00
Florian Lefebvre
7f956f0795
feat(underscore-redirects): add support for force ( #11271 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-06-20 16:18:39 +02:00
Florian Lefebvre
5848d97867
fix: astro:env getSecret ( #11296 )
2024-06-20 15:54:54 +02:00
Houston (Bot)
58a321193e
[ci] release ( #11276 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-20 11:58:37 +01:00
Matt Kane
fd3645fe83
fix: allow cookies to be set in rewritten responses ( #11280 )
...
* fix: allow cookies to be set in rewritten responses
* Merge cookies
* Add support for endpoints and more tests
2024-06-20 11:08:17 +01:00
Jacob Jenkins
7f8f347995
bug: removes type override from defineAction ( #11292 )
...
* bug: removes type override
* add changeset
* Update .changeset/quiet-doors-eat.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-06-20 08:34:11 +01:00
Luiz Ferraz
5a9c9a60e7
fix(astro): type generation for empty collections ( #11264 )
...
* fix(astro): type generation for empty collections
* Update .changeset/light-bugs-shake.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-06-19 16:52:34 +01:00
Braden Wiggins
4b46bd9bdc
feat: add ShikiTransformer
support to the <Code />
component ( #11197 )
...
* feat: add `transformers` prop to `<Code />` component
* chore: changeset
* Update .changeset/fluffy-carrots-search.md
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* chore: add example
* fix: changelog example typo
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
* fix: change backdrop-filter to filter
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
* Update .changeset/fluffy-carrots-search.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-06-19 11:23:35 -04:00
Florian Lefebvre
9042be0491
feat: 500.astro improvements ( #11134 )
...
* feat: better error handling
* feat: allow passing props to render context render
* feat: work on tests
* Update 500.astro
* feat: test preview custom 500
* feat: test for custom 500 failing
* feat: add changeset
* Update rich-dolls-compete.md
* Delete packages/astro/e2e/custom-500.test.js
* Apply suggestions from code review
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* fix: merge
* Update packages/astro/test/custom-500.test.js
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/core/app/index.ts
* feat: update
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2024-06-19 10:00:16 -04:00
Emanuele Stoppa
ea987d7da5
fix(rewrite): allow to rewrite 404 and take base
into consideration ( #11272 )
...
* fix(rewrite): allow to rewrite 404
* add changesets
* rebase
* apply suggestion
* Update .changeset/honest-shirts-trade.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-06-19 14:25:27 +01:00
Matt Kane
f4b029b082
fix: support HTTP/2 in astro dev
( #11284 )
...
* wip
* chore: add tests
* Add changeset
* Add comments
2024-06-19 12:42:50 +01:00
Matt Kane
cb4d07819f
fix(astro): don't run middlewarein dev for prerendered 404 ( #11273 )
2024-06-18 16:04:59 +01:00
Matt Kane
9a08d74bc0
fix(astro): prevent ESM imports being passed directly to getImage ( #11279 )
...
* fix(astro): prevent ESM imports being passed directly to getImage
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-06-18 14:48:50 +01:00
Yufan Sheng
bab700d690
fix(astro): duplicated brackets are generated in data collections. ( #11275 )
...
* fix(astro): duplicated brackets are generated in data collections.
This PR fixed #11274
* Create duplicated-brackets-generation.md
2024-06-17 12:46:57 -04:00
Houston (Bot)
83c565b36c
[ci] release ( #11233 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-17 15:39:57 +02:00
wackbyte
7d59750661
chore: logging cleanup ( #11263 )
2024-06-17 15:05:48 +08:00
Bjorn Lu
e22be22e57
Refactor prerendering chunk handling ( #11245 )
2024-06-17 14:23:10 +08:00
Matthew Phillips
f5f8ed275b
Fix backwards compat with Astro <= 4.9 ( #11261 )
2024-06-14 16:29:53 -04:00
Łukasz Stankiewicz
9b030239cb
Import Database type from correct file ( #11262 )
...
* Import Database type from correct file
* Add changeset
2024-06-14 16:29:21 -04:00
Szymon Chmal
ba2b14cc28
fix(astro): prerendering issue when path contains underscore ( #11243 )
...
* fix(astro): prerendering issue when path contains underscore
* chore: add missing files
* Update .changeset/honest-ravens-double.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
---------
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-06-14 16:21:11 -04:00
Matt Kane
d996db6f0b
fix: throw error if rewrite is attempted after body is used ( #11258 )
...
* fix: throw error if rewrite is attempted after body is used
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-06-14 13:57:17 +01:00
Mark Gaze
de60c69aa0
Fix a performance issue with JSON schema generation ( #11249 )
2024-06-14 11:38:20 +01:00
liruifengv
5484114401
fix typo in changeset ( #11255 )
...
* fix typo in changeset
* update typo import
2024-06-14 16:19:16 +08:00
Emanuele Stoppa
fd9da98b19
feat: refine container APIs for renderers ( #11251 )
2024-06-14 06:52:17 +01:00
Emanuele Stoppa
4385bf7a4d
feat(@astrojs/react): export renderer for easy loading ( #11234 )
...
* wip
* feat(@astrojs/react): export `renderer` for easy loading
* restore change
* chore: address feedback
* revert changes
* revert changes to react integration
* update changeset
2024-06-13 14:05:06 +01:00
Emanuele Stoppa
d07d2f7ac9
fix: better DX for 500.astro in local development ( #11244 )
...
* wip
* catch error in route.ts
* catch error in route.ts
* chore: tidy up error cases
* log the original error
* rebase
* chore: reduce the scope of the 500 handling
* we should not have a default 500
* remove props
* remove unsure function, not needed
* Update packages/astro/src/core/routing/astro-designed-error-pages.ts
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Update packages/astro/src/core/constants.ts
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* changeset
* relax the assertion
* Update packages/astro/src/vite-plugin-astro-server/route.ts
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* relax the assertion
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-06-13 10:41:01 +01:00
Matt Kane
39bc3a5e81
fix(astro): handle symlinked content collection directories ( #11236 )
...
* fix(astro): handle symlinked content collection directories
* CHeck content dir exists and is a dir
* Handle symlinks when generating chunk names
* wip windows log
* Use posix paths
* Fix normalisation
* :old-man-yells-at-windows-paths:
* Update .changeset/fifty-clouds-clean.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Changes from review
* Add logging
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-06-12 13:45:47 +01:00
Matt Kane
2851b0aa2e
fix(astro): ignore query params when matching .astro extension ( #11240 )
...
* fix: ignore query params when matching .astro extension
* Changeset
* Add test
2024-06-12 12:44:44 +01:00
Emanuele Stoppa
e4fc2a0baf
fix: provide a plugin to resolve the virtual module ( #11242 )
2024-06-12 11:28:26 +01:00
Florian Lefebvre
94ac7efd70
feat(astro): address astro env rfc feedback ( #11213 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-06-11 20:17:16 +02:00
Matthew Phillips
24ce8983e1
In Vercel Edge, include cookies set by Astro.cookies.set ( #11227 )
2024-06-11 09:32:17 -04:00
Houston (Bot)
dd0145d28b
[ci] release ( #11225 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-11 13:15:27 +01:00