0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00
Commit graph

7649 commits

Author SHA1 Message Date
bholmesdev
1ef45b1a09 chore: remove as any on seed values 2024-02-05 16:40:48 -05:00
bholmesdev
25f940fe49 feat: better seed() types 2024-02-05 16:39:38 -05:00
bholmesdev
37d54c7b9e feat: better field.x() types 2024-02-05 16:36:47 -05: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
Fred K. Schott
1c69feecf0 fix bug in prompt logic 2024-02-04 00:44:52 -08:00
Fred K. Schott
54a981cd5c make it more clear when remove vs. local db is in use 2024-02-03 22:04:39 -08:00
Fred K. Schott
3799970607 improve error messaging around studio config missing 2024-02-03 21:52:02 -08:00
Fred K. Schott
e4aca2de5f improve conflict and dataloss handling
- moved prompts to db push
- moved prompt logic out of lower-level functions
- improved logic overall
- improved user-facing prompt messages
2024-02-03 21:03:42 -08:00
bholmesdev
e863632ebf fix: mark data keys as optional until we have type inference 2024-02-02 16:08:58 -05:00
bholmesdev
ded1e0f0b6 fix: respect primaryKey from hasDefault 2024-02-02 16:08:43 -05:00
bholmesdev
95140bc64c fix: correct type Config reference 2024-02-02 16:08:31 -05:00
bholmesdev
cbc2b99292 fix: correct hasDefault inference 2024-02-02 15:59:20 -05: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
bholmesdev
5fcf4a9bd6 refactor: objShallowEqual -> deep diff 2024-02-01 18:40:23 -05:00
bholmesdev
06f96661af chore: enable foreign keys in local mode only 2024-02-01 18:07:45 -05:00
bholmesdev
feed9ea0bd chore: lint 2024-02-01 18:07:18 -05: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
bholmesdev
338a1afb5c feat: add foreignkeys to create table 2024-02-01 17:01:35 -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
bholmesdev
a016e67a3c chore: unused imports 2024-02-01 16:49:09 -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
bholmesdev
02e582514b fix: foreignKeys references signature 2024-02-01 16:46:01 -05:00
bholmesdev
4aaf393318 refactor: move to arrow function signature 2024-02-01 16:42:31 -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
bholmesdev
b1b69e18d4 feat: FINALLY collection and name attached 2024-02-01 16:09:07 -05:00
bholmesdev
d0abf2c763 feat: API shape 2024-02-01 16:09:07 -05:00
Matthew Phillips
1b2941c909 0.2.2 2024-02-01 11:50:47 -05:00
Nate Moore
1421ebd449 add keywords 2024-02-01 10:48:48 -06:00