0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
Commit graph

7315 commits

Author SHA1 Message Date
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
Bjorn Lu
6eab46b84b
Fix bundle size script external for dev toolbar (#9994) 2024-02-07 17:52:14 +08: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
ktym4a
91197be618
Remove the same CSS properties (#9962) 2024-02-05 21:02:15 +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
Emanuele Stoppa
4ee27293ae
chore(tests): restore correct assertions (#9930) 2024-02-02 13:05:22 +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
Bjorn Lu
432c170554
Exit code 1 if node:test fail (#9928) 2024-02-01 23:47:13 +08: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
Ofer Shaal
2f448a27f2
fix: upgrade lit library to v3 (#9915)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-02-01 23:02: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