0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
Commit graph

5382 commits

Author SHA1 Message Date
Emanuele Stoppa
989ea63bb2
fix(i18n): regression where emitted URLs had // (#10067)
* fix(i18n): regression

* fix(i18n): regression

* fix bug regression

* remove double changeset
2024-02-09 14:58:09 +00:00
Mohamed
30acdcbb0d
chore: Migrate error-build-location.test.js to node:test (#10038)
* chore: Migrate error-build-location.test.js to node:test

* fix: remove unnecessary line

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-02-08 14:18:58 +01:00
ktym4a
c002236523
chore: Migrate custom-404-static.test.js to node:test (#10035) 2024-02-08 14:17:57 +01:00
ktym4a
eaf2fb6a71 [ci] format 2024-02-08 10:30:29 +00:00
ktym4a
ccb08ea7c8
chore: Migrate custom-404-implicit-rerouting.test.js to node:test (#10026) 2024-02-08 11:26:03 +01:00
voxel!()
a941de1d6d
chore: Migrate ssr-markdown.test.js to node:test (#10027) 2024-02-08 11:25:48 +01:00
voxel!()
3d32724003
chore: Migrate astro-markdown-url.test.js to node:test (#10028) 2024-02-08 11:25:35 +01:00
voxel!()
d67a23a3f0
chore: Migrate astro-markdown.test.js to node:test (#10031) 2024-02-08 11:25:14 +01:00
voxel!()
8555c2e3c7
chore: Migrate markdown.test.js to node:test (#10032) 2024-02-08 11:23:56 +01:00
ktym4a
ec0ac4a840
chore: Migrate custom-404-injected-from-dep.test.js to node:test (#10033) 2024-02-08 11:23:27 +01:00
ktym4a
3cc04fd3ec
chore: Migrate custom-404-injected.test.js to node:test (#10034) 2024-02-08 11:23:12 +01:00
ktym4a
283a822121
chore: Migrate custom-404-md.test.js to node:test (#10036) 2024-02-08 11:22:54 +01:00
Mohamed
a6b62254e4
chore: Migrate error-bad-js.test.js to node:test (#10037) 2024-02-08 11:22:40 +01:00
Mohamed
98e5f2202f
chore: Migrate error-non-error.test.js to node:test (#10039) 2024-02-08 11:21:53 +01:00
Mohamed
9e3487e13c
chore: Migrate html-component.test.js to node:test (#10040) 2024-02-08 11:21:38 +01:00
Mohamed
d65332af89
chore: Migrate html-escape-complex.test.js tonode:test (#10041) 2024-02-08 11:21:21 +01:00
Mohamed
3c0e2c728e
chore: Migrate html-escape.test.js to node:test (#10042) 2024-02-08 11:21:03 +01:00
Mohamed
aa7680e75e [ci] format 2024-02-08 10:20:36 +00:00
Mohamed
372c34b84b
chore: Migrate html-page.test.js to node:test (#10043) 2024-02-08 11:19:33 +01:00
Mohamed
648e714e3e
chore: Migrate html-slots.test.js to node:test (#10044) 2024-02-08 11:19:16 +01:00
Ming-jun Lu
c9cf8a93fb
chore: migrate static-build-code-component.test.js to node:test (#10045) 2024-02-08 11:18:51 +01:00
Ming-jun Lu
40c95b4436
chore: migrate static-build-dir.test.js to node:test (#10046) 2024-02-08 11:18:37 +01:00
Ming-jun Lu
0c246cc6dd
chore: migrate static-build-frameworks.test.js to node:test (#10047) 2024-02-08 11:18:10 +01:00
Ming-jun Lu
4e506e0659
chore: migrate static-build-page-dist-url.test.js to node:test (#10048) 2024-02-08 11:17:43 +01:00
Ming-jun Lu
2bff75282a
chore: migrate static-build-page-url-format.test.js to node:test (#10049) 2024-02-08 11:17:10 +01:00
Ming-jun Lu
322b2b6c72
chore: migrate static-build-vite-plugins.test.js to node:test (#10050) 2024-02-08 11:16:53 +01:00
Ming-jun Lu
aef8730f65
chore: migrate static-build.test.js to node:test (#10051) 2024-02-08 11:16:29 +01:00
ktym4a
92b6eb0ac2
chore: Migrate custom-404-html.test.js to node:test (#10025) 2024-02-08 11:14:48 +01:00
voxel!()
15b9e5a8c5
chore: Migrate astro-markdown-shiki.test.js to node:test (#10023) 2024-02-08 11:13:54 +01:00
voxel!()
7f0e5026e3
chore: Migrate astro-markdown-remarkRehype.test.js to node:test (#10021)
* migrate test

* remove old test
2024-02-08 11:12:59 +01:00
voxel!()
b05e6ac26a
chore: Migrate astro-markdown-plugins.test.js to node:test (#10020)
* migrate test

* remove old test

* Update packages/astro/test/astro-markdown-plugins.nodetest.js

* Update packages/astro/test/astro-markdown-plugins.nodetest.js

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-02-08 11:11:56 +01:00
voxel!()
191fd39708
chore: Migrate astro-markdown-frontmatter-injection.test.js to node:test (#10019)
* Add astro-markdown-frontmatter-injection.nodetest.js

* remove comment

* remove old test
2024-02-08 11:10:00 +01:00
Erika
14ce8a6ebf
feat(markdoc): Add support for using a custom component for images (#9958)
* feat(markdoc): Add support for using a custom component for images

* chore: changeset

* test: add test

* Update .changeset/shaggy-spies-sit.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-02-08 07:54:40 +01:00
ktym4a
8fb67c81bb
Change view transitions rule (#9991)
* WIP: change view transitions rule

* Apply suggestions from code review

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>

* add changeset

* Apply suggestions from code review

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>

---------

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
2024-02-07 23:49:10 +01:00
Houston (Bot)
ef00224a86
[ci] release (#10018)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-07 23:55:29 +05:30
Arsh
3fc76efb2a
fix(astro:content): include required type declarations (#10022)
* include types/content.d.ts

* add changeset

* Update .changeset/cool-walls-fail.md

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-02-07 23:48:09 +05:30
StandardGage
20ca3154fb
Fix Issues with passing void elements to React with experimentalReactChildren flag set (#9849)
* Create simple react element if element has no children

* Fix for when element has text

* add changeset

* minor -> patch

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-02-07 23:38:44 +05:30
Arsh
9836dddf82 [ci] format 2024-02-07 16:10:36 +00:00
Arsh
0699f34d5c
feat(vercel): middleware verification (#9987)
* feat(vercel): verification for edge middleware

* add changeset

* Apply suggestions from code review

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-02-07 21:39:39 +05:30
Emanuele Stoppa
9ef79173a6
chore: move i18n routing tests (#10002)
* chore: move i18n routing tests

* change some test

* ignore nodetest files

* let's try now

* rebase
2024-02-07 15:36:46 +00:00
Emanuele Stoppa
037e4f12dd
fix(i18n): don't consider URLs that start with the name of the defaut locale (#10016) 2024-02-07 14:42:51 +00:00
Houston (Bot)
fa9218e836
[ci] release (#10014)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-07 15:38:45 +01:00
Chris Swithinbank
e6b5306a7d
Move astro:content types declaration to manual ambient module (#10013)
* Move `astro:content` types declaration to manual ambient module

* Add changeset

---------

Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-02-07 13:58:11 +00:00
Arsh
b07a3846f5 [ci] format 2024-02-07 13:37:44 +00:00
Arsh
e2fe51c828
feat(vercel): ISR (#9714)
* feat(vercel): isr

* bypass token

* exclusion of certain paths

* add test

* remove search params in dev mode

* Apply suggestions from code review

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* Apply suggestions from code review

* Apply suggestions from code review

* fix missing await

* escape src for regex

* cleanup

* revalidate -> expiration

* update type docs

* always exclude /_image

* add changeset

* Apply suggestions from code review

* always create serverless function for /_image

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Apply suggestions from code review

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-02-07 19:06:37 +05:30
Markus Krogemann
88628a4f9e
Fix small typo in astro.ts (#10008) 2024-02-07 20:45:22 +08:00
Bjorn Lu
7596f0cd3b [ci] format 2024-02-07 12:44:35 +00:00
Bjorn Lu
436841e97e
Use eslint-plugin-regexp (#9993) 2024-02-07 20:43:19 +08:00
Ben Holmes
ce4283331f
Fix: support strict() on content collection schemas when slug is present (#10003)
* fix: use correct data object when parsing schema

* feat(test): add `strict()` to slug schema test

* chore: changeset

* docs: "Adds support for"

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

---------

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2024-02-07 07:26:16 -05:00
Houston (Bot)
e4999083bf
[ci] release (#9973)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-06 16:28:12 +00:00
Emanuele Stoppa
18ac0940ea
fix(i18n): fix regression in current locale (#9998)
* fix(i18n): fix regression in current locale

* Update .changeset/shy-wolves-ring.md

* Update packages/astro/test/i18n-routing.test.js

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

* Update .changeset/six-fishes-beg.md

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

* fix test case

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-02-06 16:13:15 +00:00
Happydev
c53a31321a
Revert "fix(compiler): Support dynamic slot names (#9605)" (#9999)
* Revert "fix(compiler): Support dynamic slot names (#9605)"

This reverts commit 8ce40a417c.

* chore: changeset

* Update .changeset/weak-pans-sit.md

* chore: bump compiler version

* fix failing test

We were expecting the source code to produce an error, but in
2.4.0 of the compiler, that generates valid code

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-02-06 16:44:02 +01:00
Matthew Phillips
56db6ae246 [ci] format 2024-02-06 14:57:32 +00:00
Matthew Phillips
81acac24a3
Fix HMR in MDX deps in Content Collections (#9956)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-02-06 22:56:22 +08:00
Simon He
6e30bef652
chore: typo (#9988) 2024-02-06 17:28:15 +08:00
Bjorn Lu
44c72a4f6f
Fix flaky streaming test (#9985)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-02-05 12:27:49 -06:00
Florian Lefebvre
1352f06838 [ci] format 2024-02-05 17:54:17 +00:00
Florian Lefebvre
3c0876cbed
feat(astro): improve astro:content types (#9906)
* feat: improve stro:content types

* fix: do not change tsconfig

* "astro/zod" -> "zod"

* `CollectionConfig` parameter extends `BaseSchema`

* fix: update import to zod

* feat: add fallbacks for every export

* Update .changeset/young-bulldogs-tickle.md

---------

Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-02-05 11:53:18 -06:00
Alan Alickovic
5eb0597437
fix typo (#9964) 2024-02-05 21:02:50 +08:00
Florian Lefebvre
b3b9f280c5
fix(rss): use node assert instead of chai (#9980) 2024-02-05 10:13:54 +01:00
voxel!()
19df112cf7 [ci] format 2024-02-04 19:59:55 +00:00
voxel!()
4260ecf1ff
chore(@astrojs/rss): Migrate tests to node:test (#9939)
* Progressively add new tests (remove old later)

* Finalize tests

* Remove unused comments

* Assert that errors are not present and add jsdocs to util function

* Fix

* Remove mocha deps
2024-02-04 19:58:44 +00:00
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
ktym4a
cd67dd0a4f
Add new test cases for non-UTF-8 and space file names (#9947) 2024-02-02 13:40:39 +00:00
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
Atharva
a79db060b7
chore(@astrojs/underscore-redirects): use Node.js for testing (#9923)
* chore: migrate underscore-redirects tests to node

* fix: remove chai/mocha devDependencies

* Update packages/underscore-redirects/package.json

* update lockfile

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-02-02 11:38:17 +00:00
Mohamed
8578159194 [ci] format 2024-02-02 11:18:39 +00:00
Mohamed
f4c2ba870e
chore(@astrojs/integrations/lit): use Node.js for testing (#9944) 2024-02-02 11:17:32 +00:00
voxel!()
587b373009 [ci] format 2024-02-02 11:16:26 +00:00
voxel!()
c1a3e80dfe
chore(telemetry): Migrate tests to node:test (#9886)
* 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

* Remove mocha tests again

* Remove trailing comma
2024-02-02 11:15:29 +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
ktym4a
b176825b34
fix: route matching for encoded pathnames (#9934)
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2024-02-01 17:08:05 -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
756f9595e7 [ci] format 2024-02-01 21:49:11 +00: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
Fred K. Schott
055bd27d9d [ci] format 2024-02-01 21:26:08 +00:00
Fred K. Schott
5d08a69f83
fix semver check (#9937) 2024-02-01 16:25:11 -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
Sarah Rainsberger
b956149b28
[docs] update typo in error message (#9929) 2024-02-01 12:39:30 -04:00
Chris Swithinbank
7e2c2c52f9
Fix indentation formatting in types JSDoc (#9927) 2024-02-01 16:51:29 +01: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
Luiz Ferraz
54dbaebf50
fix(docs): Fix import in changelog example (#9924) 2024-02-01 13:58:32 +00:00
Emanuele Stoppa
8fb9624b08
fix(docs): add missing variant (#9922) 2024-02-01 11:29:37 +00:00
Emanuele Stoppa
b31a46673e
chore: fix alignment docs (#9920)
* chore: fix alignment docs

* apply Sarah suggestion
2024-02-01 10:29:07 +00: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
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
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
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
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
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
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