0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
Commit graph

7242 commits

Author SHA1 Message Date
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
Arsh
b2197a2bee [ci] format 2024-01-25 18:09:42 +00:00
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
Nate Moore
e5276f097b
Remove create-astro version cache (#9817)
* fix(create-astro): remove version cache

* fix(create-astro): select typescript first

* chore(create-astro): remove unused import
2024-01-25 11:56:16 -06:00
Emanuele Stoppa
d777adc5ca [ci] format 2024-01-25 16:18:40 +00:00
Emanuele Stoppa
fc21a3c306
chore(@astrojs/node): use Node.js for testing (#9758)
* chore(@astrojs/node): use Node.js for testing

* revert file

* address feedback

* feedback

* Run tests in a single process (#9823)

* Run tests in a single process

* Make test less flaky

* chore: remove module

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-25 16:17:31 +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
dependabot[bot]
05f808c1da
chore(deps): bump tj-actions/changed-files from 35 to 41 in /.github/workflows (#9821)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-25 12:35:34 +01:00
Marvin
6206fa91e5 [ci] format 2024-01-25 10:24:46 +00: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
Jacob Lamb
53f1c95717
Fix: update doc links (#9804)
* Fix: update doc links

* More links

* Remove docs line
2024-01-25 10:18:06 +00:00
Florian Lefebvre
57ab578bc7 [ci] format 2024-01-24 22:25:03 +00:00
Florian Lefebvre
c820defe65
chore(alpinejs): add e2e test (#9812)
* fix(rss): rssSchema definition to allow calling standard zod object methods

* fix: condition

* chore(alpinejs): add e2e test

* Discard changes to .changeset/mighty-icons-try.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-24 16:23:45 -06:00
Florian Lefebvre
54acb6aeb4 [ci] format 2024-01-24 22:21:53 +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
Sarah Rainsberger
edb5437058
[docs] reorder items for configuration reference page (#9815)
* docs-config-ref-order

* Update packages/astro/src/@types/astro.ts

Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>

* Update packages/astro/src/@types/astro.ts

Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
2024-01-24 16:20:25 -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
Nate Moore
0f664e7a0a
Fix release announcement script (no seriously this time) (#9808) 2024-01-24 10:16:47 -06:00
Arsh
919bbe4a89 [ci] format 2024-01-24 15:42:42 +00:00
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