Marco Campos
8b8f26fdf2
FIX: allow rss feeds to have an enclosure with length of 0 ( #9967 )
...
* fix: allow rss feeds to have an enclosure with length of 0
* chore: add changeset
* fix: typo on test
* fix: update changeset description
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-02-04 20:42:26 +01:00
Houston (Bot)
57ab98f531
[ci] release ( #9948 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-02 15:59:15 -05:00
Matthew Phillips
bc1742df94
Revert "Provide better ignores for Vercel's file tracer ( #9885 )" ( #9955 )
...
* Revert "Provide better ignores for Vercel's file tracer (#9885 )"
This reverts commit 49e0c24d7f
.
* Changeset
2024-02-02 15:43:30 -05:00
ktym4a
6c894af5ab
Fix: 404.html load correctly on preview ( #9907 )
...
* Move vite 404 middleware
* Add custom 404.html rendering test for preview routing
* add a changest
* add TODO comment
2024-02-02 22:28:08 +05:30
Emanuele Stoppa
9f0d89fa7e
fix: don't log warning if i18nDomains
isn't enabled ( #9932 )
...
* fix: don't log warning if isn't enabled
* fix regression
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-02-02 13:40:00 +00:00
Houston (Bot)
2ac371404d
[ci] release ( #9926 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-01 17:15:45 -05:00
Nate Moore
9d2fdb293d
Improve astro sync
error handling ( #9888 )
...
* fix(#9711 ): improve `astro sync` error handling
* Update .changeset/healthy-jokes-deny.md
* update unit tests
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-02-01 16:59:14 -05:00
Arsh
1568afb78a
fix(middleware): load while retrieving ssr manifest for prerendering ( #9938 )
...
* fix(middleware): load while retrieving ssr manifest for prerendering
* add test
* add changeset
2024-02-01 16:46:42 -05:00
Arsh
4467441896
fix(NodeApp): fix responses with null bodies never completing ( #9931 )
...
* fix(NodeApp): fix responses with null bodies never completing
* add changeset
* add test
* chore(tests): restore correct assertions
* adjust incorrect test
* added Astro.redirect and Response.redirect test cases
* updated incorrect HTTP status
* adjust api-routes.test.js after cherry-pick
* bup markdoc test timeout
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Friedemann Sommer <friedemannsommer@users.noreply.github.com>
2024-02-01 16:24:21 -05:00
Kristian Binau
27ea080e24
fix: use publicDir & base for 'include your base in url' error message ( #9841 )
...
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-02-01 23:13:58 +08:00
Larry Ivan Villegas Costas
d52529e094
Add a name property for DetailsHTMLAttributes ( #9918 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-02-01 23:02:47 +08:00
Houston (Bot)
2561c99598
[ci] release ( #9904 )
...
* [ci] release
* Update packages/astro/CHANGELOG.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/vercel/CHANGELOG.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/CHANGELOG.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-02-01 10:04:19 +00:00
Arsh
2f6d1faa6f
fix(NodeApp): end with "Internal server error" on mid-stream error ( #9908 )
...
* fix(NodeApp): end with "Internal server error" on mid-stream error
* add changeset
* add test
* Apply suggestions from code review
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-02-01 07:02:40 +00:00
Nate Moore
aaedb848b1
Silently ignore adapters that don't export start()
( #9911 )
2024-01-31 13:51:56 -06:00
Matthew Phillips
49e0c24d7f
Provide better ignores for Vercel's file tracer ( #9885 )
...
* Provide better ignores for Vercel's file tracer
* Improve the changeset
2024-01-31 10:30:35 -05:00
Fabian Kachlock
7be5f94dcf
fix: content types reference to config on windows ( #9877 )
...
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-31 23:28:23 +08:00
Matthew Phillips
fad4f64aa1
Implements build.format: 'preserve' ( #9764 )
...
* Implements build.format: 'preserve'
* Restructure test
* Add a test for base
* Update .changeset/tame-flies-confess.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Add trailing slash + i18n testing
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/tame-flies-confess.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* tiny punctuation/conjunction nit fixes
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-31 14:39:20 +00:00
Oliver Speir
d4b886141b
Allow images in content collections folder to be used without relative import prefix ( #9755 )
...
* adds the ./ prefix to the import statement for user
* remove accidental new line added
* add tests
* add changeset
* Update young-eyes-film.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-31 13:59:06 +00:00
Bjorn Lu
7d937c1589
Add CLI shortcuts ( #9159 )
...
* Add CLI shortcuts
* Update changeset
* Remove server urls shortcut
* feat: improve CLI shortcut formatting
* chore: remove unused import
* Cleanup
* Cleanup
---------
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-01-31 13:57:34 +00:00
Erika
58f9e393a1
Add ComponentProps
util ( #9839 )
...
* chore: changeset
* Update .changeset/cuddly-moons-hang.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-31 13:56:44 +00:00
Emanuele Stoppa
041fdd5c89
feat(i18n): domain support ( #9143 )
...
* i18n(domains): validation and updated logic (#9099 )
* feat(i18n): domain with lookup table (#9112 )
* chore: add changelog, fix types and enable experimental support in node/vercel
* rebase and update lock file
* chore: fix failing test
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
* Update .changeset/tidy-carrots-jump.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* wip
* chore: rebase, conflicts and tests
* update lock file
* chore: correct configuration
* chore: correct configuration
* fix: regressions
* chore: fix conflicts and add more tests
* chore: add more validation
* chore: more tests and add more restrictions
* fix changeset
* change and revert adapters
* add another restriction
* lock file update
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* wat
* fix syntax error
* fix config example
* Fix for #9673 (#9680 )
* Fix for #9673
* 🦋 add changeset file
* Update breezy-plants-smoke.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* ⚡ ️ simplified normalizeConfigPath
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Fix env var replacement for export const prerender (#9807 )
* feat(alpinejs): allow customizing the Alpine instance (#9751 )
* feat(alpinejs): allows customzing the Alpine instance
* chore: add e2e tests
* fix: rename script
* Update index.ts
* fix: lockfile
* [ci] format
* chore: use correct lock file
* chore: rebase
* fix regressions in tests
* fix regressions in tests
* fix build
* add description
* fix missing types
* chore: fix tests, again :D
* eslint
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* chore: address feedback
* chore: fix regressions
* chore: refactor naming
* Update packages/astro/src/core/app/index.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* chore: address feedback
* update lock file
* chore: infer routing from options, not strategy
* merge from main
* merge from main
* Experimental support in vercel adapter
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/tidy-carrots-jump.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* better changesets
* Updates both experimental.i18nDomains and i18ndomains for experimental strategy
* fix link syntax
* consistent tabs/spaces
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* apply suggestion
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Lou Cyx <git@lou.cx>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Florian Lefebvre <ematipico@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-31 13:55:03 +00:00
Houston (Bot)
43391ac60d
[ci] release ( #9879 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-31 10:40:01 +00:00
Arsh
37369550ab
fix(dev): prevent comma-separating multiple Set-Cookie headers ( #9884 )
...
* fix(dev): prevent comma-separating multiple Set-Cookie headers
* add changeset
* add test
2024-01-31 06:07:25 +00:00
Nate Moore
13c3b712c7
Improves YAML error handling consistency ( #9882 )
...
* fix: improves yaml error handling consistency
* chore: add changeset
2024-01-30 17:16:31 -06:00
Arsh
a40a0ff588
fix(ssg): consider trailingSlash for url ( #9878 )
...
* fix(ssg): consider trailingSlash for url
* add changeset
2024-01-30 22:46:10 +05:30
Friedemann Sommer
e9027f194b
Fix endpoint response with immutable header ( #9876 )
...
* add test
* added runtime endpoint test for `new Response`
* added `try..catch` for reroute directive handling
Fixes #9871
* added changeset
* replaced `try..catch` with HTTP status code check
based on the suggestion of @lilnasy
* updated changeset description
* added more tests for the endpoint reroute header
* fixed grammar in `renderEndpoint` comment
* updated endpoint tests to check for the reroute directive header in lower-case
* updated changeset description
2024-01-30 22:45:26 +05:30
Houston (Bot)
3a50cbf6ed
[ci] release ( #9843 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-30 15:41:06 +00:00
ktym4a
44c957f893
Fix a bug that Japanese files were not displayed correctly. ( #9866 )
...
* Fix: Fix a bug that Japanese files were not displayed correctly.
* chore: generate change description
* Update .changeset/cool-colts-watch.md
* add test case for non-UTF-8 file name
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-01-29 16:42:44 +00:00
Arsh
0a06d87a1e
fix(i18n): use define
to deliver config to virtual module ( #9838 )
...
* fix(i18n): use import.meta.env to deliver config to virtual module
* add changeset
* prevent destructing i18n config unless enabled
* use defined variable instead
* Update packages/astro/src/i18n/vite-plugin-i18n.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-29 21:13:14 +05:30
Emanuele Stoppa
00ba9f1947
fix(i18n): compute current locale from route instead of request ( #9865 )
...
* fix(i18n): compute current locale from route instead of request
* Update .changeset/large-kangaroos-camp.md
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-29 14:47:40 +00:00
Chris Swithinbank
70fdf1a5c6
Expose ContentConfig
type from astro:content
( #9840 )
...
* Expose `ContentConfig` type from `astro:content`
* Add changeset
2024-01-27 06:44:37 +00:00
Houston (Bot)
a407eb5ac2
[ci] release ( #9837 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-26 17:33:19 -06:00
Erika
1885cea308
fix(toolbar): Fix loading third-party apps using absolute paths ( #9834 )
...
* fix(toolbar): Fix loading third-party apps using absolute paths
* chore: changeset
* fix: pass entrypoint correctly
* Update .changeset/real-lamps-design.md
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-26 17:22:56 -06:00
Tugrul Ates
e4370e9e9d
fix(audit): mark widget roles as interactive ( #9825 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-26 16:41:23 -06:00
Emanuele Stoppa
a3df9d83ca
fix(core): don't noop shared modules ( #9828 )
...
* fix(core): don't noop shared modules
* address feedback
* add test
* changeset
* check astro pages
* address feedback
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-26 17:17:32 +00:00
Houston (Bot)
8281ebddaa
[ci] release ( #9802 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-26 13:30:42 +00:00
liruifengv
bd880e8437
fix: fix transition:name
can be unicode ( #9822 )
...
* fix: fix `transition:name` can be unicode
* delete prefix -
* use for func
* add changeset
* Update .changeset/cold-bobcats-shave.md
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
* fix review issue
* fix review issue
* add comment
* add \ to regex
* fix some issue
* delete unused import
* remove a rule
* remove valid rule --
* Update transition.ts
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
* Update transition.ts
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
* Update transition.ts
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
* Update transition.ts
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
* Update transition.ts
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
* Update transition.ts
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
* Update transition.ts
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
* format
* use cssesc to escape name
* test: add e2e test
* add charset for layout
* use the raw value for e2e test
* use cssesc instead of toValidIdent
* uncomment
---------
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-26 10:44:54 +01:00
Arsh
dc75180aa6
refactor: singular middleware ( #9776 )
...
* per-route middleware -> singular middleware
* add changeset
* emit middleware.mjs only when user middleware exists
* Apply suggestions from code review
2024-01-26 01:08:15 +05:30
Arsh
f3d22136e5
fix(dev): dont reroute endpoint responses ( #9830 )
...
* fix(dev): dont reroute endpoint responses
* factor out header name as a const
* add test case
* add changeset
2024-01-25 18:06:30 +00:00
Erika
d688954c5a
fix(errors): Add more information to some error messages ( #9818 )
...
* fix(errors): Add more information to some error messages
* chore: changeset
* Apply suggestions from code review
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-25 10:45:53 -05:00
Marvin
a12196d6b5
feat(node): add trailingSlash support ( #9080 )
...
* feat(node): add trailing slash support
* add changeset
* test(node): add base route test in trailing-slash.js
detected an infinite loop in base path when trailingSlash: never
* fix(node): avoid infinite redirect when trailingSlash: never
* address test failures after rebase pt.1
* address test failures after rebase pt.2
---------
Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
2024-01-25 10:23:27 +00:00
Florian Lefebvre
fecba30a1a
fix(create-astro): @astrojs/check and typescript addition ( #9813 )
...
* fix(create-astro): @astrojs/check and typescript addition
* Update packages/create-astro/src/actions/typescript.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/create-astro/src/messages.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* fix: remove useless block
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-24 16:20:47 -06:00
Erika
2a44c8f932
feat: Add telemetry for toolbar apps ( #9816 )
...
* feat: server side event
* feat: send events to server
* fix: use proper event
* fix: remove unnecessary changes
* chore: changeset
* Update .changeset/spicy-tips-remember.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* fix: use id
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-24 15:13:51 -05:00
Arsh
3435b7f1e1
fix(vercel): make Astro.cookies work again ( #9809 )
...
* addCookieHeaders
* add changeset
2024-01-24 22:47:33 +05:30
Arsh
267c5aa2c7
refactor: unsplit astro:i18n
module ( #9790 )
...
* unsplit virtual module
* add changeset
* elaborate on Unreachable exception
* i18nNotEnabled error
2024-01-24 21:11:26 +05:30
Florian Lefebvre
1153331cbb
feat(alpinejs): allow customizing the Alpine instance ( #9751 )
...
* feat(alpinejs): allows customzing the Alpine instance
* chore: add e2e tests
* fix: rename script
* Update index.ts
* fix: lockfile
2024-01-24 14:43:03 +00:00
Bjorn Lu
b3f313138b
Fix env var replacement for export const prerender ( #9807 )
2024-01-24 14:42:24 +00:00
Lou Cyx
5d7db1dbb0
Fix for #9673 ( #9680 )
...
* Fix for #9673
* 🦋 add changeset file
* Update breezy-plants-smoke.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* ⚡ ️ simplified normalizeConfigPath
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-24 14:40:02 +00:00
William Killerud
457e8b6422
fix(rss): apply refinement at the point of parsing ( #9797 )
2024-01-24 13:37:06 +08:00
Houston (Bot)
eaf483fe73
[ci] release ( #9785 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-23 19:27:10 -05:00