Arsh
d702d6ae50
[ci] format
2024-02-01 07:03:42 +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
440bdff8cc
[ci]: use M1 mac image ( #9913 )
2024-01-31 14:40:13 -06:00
Nate Moore
aaedb848b1
Silently ignore adapters that don't export start()
( #9911 )
2024-01-31 13:51:56 -06:00
Matthew Phillips
520be8b113
[ci] format
2024-01-31 15:31:41 +00: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
Atharva
38e40f1cc2
chore(@astrojs/vue
): use Node.js for testing ( #9901 )
...
* chore: migrate vue tests to node
* chore: prune chai/mocha from package-lock
2024-01-31 14:58:44 +00:00
Matthew Phillips
694fd86739
[ci] format
2024-01-31 14:40:19 +00: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
84c100dd33
[ci] format
2024-01-31 14:00:11 +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
cddbec4619
[ci] format
2024-01-31 13:56:11 +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
ktym4a
bfc145b778
chore(@astrojs/markdoc): use Node.js for testing ( #9897 )
2024-01-31 10:37:39 +00:00
Ming-jun Lu
8dc7b39a62
chore(@astrojs/sitemap): migrate tests to node:test
( #9892 )
...
* chore(@astrojs/sitemap): migrate tests to `node:test`
* chore(@astrojs/sitemap): remove `chai` and `mocha` from devDependencies
2024-01-31 09:47:33 +00:00
Emanuele Stoppa
1c4a263d8f
Revert "chore(@astrojs/integrations/sitemap): use Node.js for testing ( #9891 )" ( #9900 )
...
This reverts commit 82de54979e
.
2024-01-31 09:47:21 +00:00
Alex Nguyen
11d5e52710
migrate MDX tests ( #9894 )
2024-01-31 08:37:34 +00:00
Mohamed
6dbafb8f5f
[ci] format
2024-01-31 08:32:27 +00:00
Mohamed
82de54979e
chore(@astrojs/integrations/sitemap): use Node.js for testing ( #9891 )
2024-01-31 08:31:12 +00:00
voxel!()
4349254376
chore(@astrojs/integrations/react) Migrate tests to node:test
for @astrojs/react
( #9899 )
...
* Migrate Telemetry tests to node:test
* Remove fallback to chai
* Remove chai and mocha dependencies
* Fix trailing comma
* Fix pnpm-lock.yaml desync
* Add back old tests with progression
* Convert tests to node:test
* Remove unused dependencies
* Remove artifact changes
* Revert more artifacts
* Fix more
2024-01-31 08:29:26 +00:00
Arsh
84e9935a91
[ci] format
2024-01-31 06:08:21 +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
a8383173da
[ci] format
2024-01-30 23:17:37 +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
70ae19d500
[ci] format
2024-01-30 17:17:06 +00: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
Furkan Erdem
202d3fbaa9
chore(@astrojs/integrations/tailwind): use Node.js for testing ( #9875 )
...
* chore(@astrojs/integrations/tailwind): use Node.js for testing
* chore: update pnpm lock
2024-01-30 15:17:32 +00:00
だいき
2adf3b56eb
chore: support isActive link all subpages ( #9694 )
...
* chore: support isActive link all subpages
* Update examples/blog/src/components/HeaderLink.astro
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-30 11:50:26 +00:00
Emanuele Stoppa
bcc504dae0
chore: add rule switch-exhaustiveness-check
( #9867 )
...
* chore: add rule `switch-exhaustiveness-check`
* apply feedback
* routing is always defined
2024-01-30 08:35:08 +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
a994d609b3
[ci] format
2024-01-29 15:44:12 +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
Jaga Santagostino
f27f790b92
remove unused prop in blog template ( #9848 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-29 17:47:05 +08: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
Nate Moore
7ed24b90d0
Fix release announcement script (redemption arc) ( #9835 )
2024-01-26 09:16:27 -06: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
00e6adb033
[ci] format
2024-01-25 19:39:17 +00: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