Erika
07f89429a1
fix(assets): Solidify Node endpoint ( #10284 )
...
* fix(assets): Solidify Node endpoint
* chore: changeset
2024-03-01 10:23:07 +01:00
Satanshu Mishra
b47dcaa259
fix(node): listen on 0.0.0.0 if server.host is set to true ( #10282 )
...
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Kevin Zuniga Cuellar <46791833+kevinzunigacuellar@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-03-01 09:32:22 +01:00
Arsh
e556151603
fix(dev): cosider base
when special-casing /_image
( #10274 )
...
* fix(dev): cosider `base` when special-casing `/_image`
* add changeset
* adjust tests
* Apply suggestions from code review
* add test
2024-03-01 00:08:01 +05:30
Martin Trapp
9bdbed723e
Adds auto completion of astro:
events when adding or removing event listeners on document
( #10263 )
2024-02-28 16:52:08 +01:00
Houston (Bot)
e56c428f3b
[ci] release ( #10236 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-28 13:17:40 +00:00
Furkan Erdem
57655a99db
fix(i18n): localised index pages are overwritten ( #10250 )
...
* fix(i18n): localised index pages are overwritten
* chore: add changeset
* chore: add pnpm lock
2024-02-28 13:08:49 +00:00
Emanuele Stoppa
8ae5d99534
fix: change strategy for route caching ( #10248 )
...
* fix: change strategy for route caching
* use route and component as cache key
2024-02-28 11:59:50 +00:00
Ming-jun Lu
9b00de0a76
Fix TypeScript type definitions for Code
component ( #10251 )
...
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-02-28 10:43:24 +08:00
Martin Trapp
bb644ab99c
chang changeset ( #10253 )
2024-02-27 17:37:29 +00:00
Martin Trapp
fb773c9161
Removes morph animations when setting transition:animate=none ( #10247 )
...
* Removes morph animations when setting transition:animate=none
* Apply suggestions from code review
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-02-27 22:46:32 +05:30
Erika
dbb0d0bd28
Fix Svelte editor tooling not working under relaxed TypeScripts projects ( #10244 )
...
* fix(svelte): Add TypeScript as a peer dep
* Update .changeset/gold-baboons-drum.md
2024-02-27 16:25:59 +01:00
Ming-jun Lu
9c21a9df6b
Improve the message of MiddlewareCantBeLoaded
for clarity ( #10239 )
...
* Improve the message of `MiddlewareCantBeLoaded` for clarity
* Add changeset
2024-02-27 07:17:51 +00:00
Martin Trapp
ade9759cae
Warn when view transitions run on a prefer-reduced-motion device ( #10222 )
...
* Warn when view transitions run on a prefere-reduced-motion device
* ViewTransitions.astro aktualisieren
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-02-26 17:04:57 +01:00
Houston (Bot)
6012163d8f
[ci] release ( #10218 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-26 15:33:39 +00:00
James Ross
e64bd0740b
fix: better assetsInlineLimit runtime type checking ( #10154 )
...
* fix: string assetsInlineLimit
* fix: better handle NaN values for `assetsInlineLimit`
* chore: prettier
* chore: simplify for requested changes
* chore: update changeset
* chore: remove tests
* chore: simplify function
* Apply suggestions from code review
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-02-26 20:12:42 +05:30
Ben Holmes
aa45eb9fa6
fix: correct remote url ( #10223 )
...
* fix: get correct url
* chore: changeset
* fix: respect runtime env
2024-02-26 08:44:43 -05:00
Erika
1eadb1c529
fix(toolbar): Make it so every built-in app can be closed by outside clicks ( #10220 )
...
* fix(toolbar): Make it so every built-in app can be closed by outside clicks
* chore: changeset
* test: add tests
* test: fix test
* ci: don't run bundle-size on dev-toolba
2024-02-26 13:38:19 +00:00
Ming-jun Lu
ae2a10e1a7
Fix an issue where Vercel adapter may create functions for prerendered routes ( #10231 )
...
* fix: fix an issue where Vercel adapter may create functions for prerendered routes
* test: update test cases in `split.test.js`
* chore: add changeset
* refactor: apply suggested changes from code review
* Apply suggestions from code review
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-02-26 18:58:49 +05:30
Matthew Phillips
afcb9d3311
Fix hydration scripts missing from dynamic slot usage ( #10219 )
2024-02-26 08:38:11 +00:00
Matthew Phillips
4db82d9c7d
Prevent errors in rendering from crashing server ( #10221 )
...
* Prevent errors in rendering from crashing server
* Add changeset
* Make the reject an error
* Simplify
* Update .changeset/breezy-pears-admire.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-02-26 08:36:43 +00:00
前端子鱼
84502b4190
fix: svelte 5 mount/hydrate api change. ( #10224 )
2024-02-26 16:10:47 +08:00
Arsh
8fb32f390d
prevent warning: Astro.request.headers
is not available in "static" output mode ( #10196 )
2024-02-24 17:05:16 +05:30
Ben Holmes
5d4ff093a2
Improved error logging from config ( #10207 )
...
* fix: better error messaging on seed()
* chore: collection -> table for errors
* chore: changeset
2024-02-23 17:01:33 -05:00
Arsh
6aa660ae7a
fix(dev): remove params for prerendered pages ( #10199 )
...
* fix(dev): remove params for prerendered pages
* add test
* add changset
* deduplicate param removal
* format
* adjust tests
2024-02-23 20:56:34 +05:30
Houston (Bot)
3de7b2c7ec
[ci] release ( #10213 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-23 09:31:55 -05:00
Matthew Phillips
a013182d32
Fixes edge middleware calling nested routes ( #10215 )
2024-02-23 09:13:10 -05:00
Martin Trapp
459f74bc71
Adds an error message for non-string transition:name values ( #10205 )
2024-02-23 09:00:52 -05:00
Furkan Erdem
8cd38f0245
Fix(node): Custom headers are not present in responses from standalone Node server in preview mode ( #10208 )
...
* fix(node): add user specified headers to preview server responses
* docs: clarify comment
* style: new line
* test: remove test
* chore: add changeset
2024-02-23 08:23:33 -05:00
Matthew Phillips
f85ace2e66
@astrojs/db prerelease
2024-02-23 08:15:00 -05:00
Nworm
903eace233
fix(core): build failure caused by read-only files ( #10195 )
...
* fix(core): build failure caused by read-only files
* test: fix fixtures/build-readonly-file
* other: format code
2024-02-23 11:36:53 +00:00
Houston (Bot)
3411e05ee4
[ci] release ( #10203 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-22 14:37:35 -05:00
Erika
c692d0c66a
fix: try the simple solution ( #10200 )
2024-02-22 14:21:31 -05:00
Houston (Bot)
0b4e5298d2
[ci] release ( #10192 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-22 11:17:25 -05:00
Matthew Phillips
3cc2010927
Fix cssesc from breaking browser code ( #10194 )
...
* Fix cssesc from breaking browser code
* Include specific thing instead
* Update .changeset/quick-bottles-march.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Fix ISR
* Remove query stripping altogether
* Warn on client usage
* Fix build
* oops
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-02-22 11:11:41 -05:00
Erika
c856c72940
fix(errors): Remove duplicate logging of errors ( #10197 )
...
* fix(errors): Remove duplicate logging of errors
* chore: changeset
2024-02-22 16:41:05 +01:00
Bjorn Lu
598f30c7cd
Improve Astro style HMR for imported styles ( #10166 )
2024-02-22 22:19:06 +08:00
Bjorn Lu
7c5fcd2fa8
Improve optimizeDeps.entries
to avoid server endpoints ( #10143 )
2024-02-22 18:36:06 +08:00
Houston (Bot)
2c2519204a
[ci] release ( #10177 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-21 14:40:40 -06:00
Emanuele Stoppa
6343f6a438
Revert "Add option to prefix sitemap" ( #10179 )
...
* Revert "Add option to prefix sitemap (#9846 )"
This reverts commit 9b78c99275
.
* changeset
* feedabck
* fix incorrect merging
2024-02-21 14:27:00 +00:00
Piotr Losiak
ec7d2ebbd9
fix(sitemap): url when rest parameter is used in page file names ( #9975 )
...
* fix(sitemap): url when rest parameter is used in page file names
* Update .changeset/sour-ties-sparkle.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Apply suggestions from code review
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-02-21 07:43:22 +00:00
Emanuele Stoppa
a46249173e
fix(i18n): move transformation outside the user schema ( #10169 )
...
* fix(i18n): move transformation outside the user schema
* fix condition
* cleanup
* ops
* fix regression
2024-02-21 07:42:06 +00:00
Houston (Bot)
052d3271d4
[ci] release ( #10131 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-20 20:18:30 +05:30
Arsh
5acc3135ba
refactor: pipeline lifetime ( #9795 )
...
* Base Environment
* SSRRoutePipeline -> AppEnvironment
* BuildPipeline -> BuildEnvironment
* DevPipeline -> DevEnvironment
* per-request pipeline
* internal middleware: i18n
* delete callEndpoint
* pipeline access for internal middleware
* Address review comments
`environment.ts` is now lives directly in `src/core`, rather than `src/core/render`.
`environment.createPipeline` is removed. `Pipeline.create` is used instead.
Constructors with positional arguments are replaced by `Environment.create` with named arguments.
Clarifies the use of `HiddenPipeline`.
* migrate some of `RenderContext`'s responsibilities to `Pipeline`
* delete renderPage
* RenderContext.params -> Pipeline.params
* delete `RenderContext`
* `Pipeline` -> `RenderContext`
* `Environment` -> `Pipeline`
* `AppEnvironment` -> `AppPipeline`
* `BuildEnvironment` -> `BuildPipeline`
* `DevEnvironment` -> `DevPipeline`
* provide locals directly to renderContext
* add changeset
2024-02-20 20:10:13 +05:30
ktym4a
80f8996514
Fix to get Integration Data even when a page is transitioned by ViewTransition ( #10079 )
...
* Fix to get Integration Data even when a page is transitioned by ViewTransition.
* add test case
* add changeset
* fix test
* Fix typo
2024-02-20 14:09:20 +01:00
Ming-jun Lu
b92d35f102
Fix an issue where audit fails to initialize when encountered <a>
inside <svg>
( #10163 )
...
* Fix an issue where audit fails to initialize when encountered `<a>` inside `<svg>`
* Add changeset
2024-02-20 11:22:05 +01:00
Emanuele Stoppa
d50dddb71d
fix(i18n): make i18n.routing
fields optional ( #10165 )
...
* fix(i18n): make `i18n.routing` fields optional
* update user config
* Update packages/astro/src/core/config/schema.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
---------
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2024-02-20 10:17:40 +00:00
ktym4a
9b78c99275
Add option to prefix sitemap ( #9846 )
...
* Add option to prefix sitemap
* Fix call resolve twice
* let to const
* Apply suggestions from code review
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* change changeset patch to minor
* use node:test
* Update changeset
* Add regex validation for prefix
* Update .changeset/eighty-falcons-tease.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update prefix regex in SitemapOptionsSchema
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-02-20 08:36:09 +00:00
Bjorn Lu
3c73441eb2
Fix Astro HMR style-only change detection ( #10139 )
2024-02-19 21:56:13 +08:00
Bjorn Lu
1da9c5f2f3
Remove server-destroy dependency ( #10132 )
2024-02-15 22:59:03 +08:00
Mohamed
1f598b3724
fix(cli): load polyfill before loading config during astro add
( #10105 )
...
* Adds crypto import to Vercel adapter
* Update the 'crypto' import to 'node:crypto'
* load polyfills before loading config
* add changeset
* load polyfills for `astro info`, `astro preferences` etc
* update changeset
* clarify impact
---------
Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
2024-02-15 07:42:03 -07:00