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

7705 commits

Author SHA1 Message Date
Ben Holmes
4831051260
Fix: remove db.transaction() from types until supported (#10501)
* fix: remove transaction from db types

* fix: transaction() runtime error

* chore: changeset
2024-03-20 08:27:48 +00:00
Matthew Phillips
2fc7231df2
Removing embedding appToken from CI (#10497) 2024-03-19 14:48:01 -04:00
James Garbutt
2ebcf94d0a
chore(db): Add missing github-slugger dependency & tests (#10405)
* chore: add missing github-slugger dependency

* test: add column-queries data loss tests

* chore: remove unused vars

* test: assert length rather than message content
2024-03-19 17:10:33 +00:00
Andrés Correa Casablanca
4268d389fc [ci] format 2024-03-19 15:44:07 +00:00
Andrés Correa Casablanca
28e33a2f9c
fix: do not append trailing slash to subresource urls (#10491)
* fix: do not append traling slash to subresource urls

Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>

* test: fix broken test

Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>

* refactor: packages/integrations/node/src/serve-static.ts

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

---------

Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-03-19 21:13:08 +05:30
firefoxic
e4a6462751
fix: void elements (#10493)
* Fix void elements

HTML is not XML. It doesn't have self-closing tags, it has void element tags that don't need closing slashes.

Now generated void elements (e.g. link with path to style file) do not pass validation, which can be easily fixed by simply removing two characters.

* Add changeset

* Apply suggestions from code review

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-03-19 20:21:08 +05:30
Ben Holmes
ad57a02c33
db: Expose aggregation helpers (#10479)
* deps: drizzle 0.30

* feat: expose drizzle aggregation helpers

* chore: changeset
2024-03-19 08:56:48 +00:00
Satya Rohith
2330f22d6c
fix(packages/create-astro): wait for writeFile to complete in updateFiles (#10487)
* fix(packages/create-astro): wait for writeFile to complete in updateFiles

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>

* changeset

---------

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-03-19 08:07:42 +00:00
Houston (Bot)
7eac778cce
[ci] release (#10483)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-18 21:05:27 -07:00
Fred K. Schott
124cdd64f2
remove token wait time (#10477) 2024-03-18 20:45:47 -07:00
Houston (Bot)
0ddc327ee8
[ci] release (#10471)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-18 22:36:58 +05:30
Arsh
1fc9b6062a [ci] format 2024-03-18 14:37:48 +00:00
Arsh
c12666166d
qol(endpoints): helpful error message when a response is not provided (#10455)
* qol(endpoints): helpful error message when a response is not provded

* add changeset

* add test
2024-03-18 20:06:46 +05:30
Arsh
7138aa4678 [ci] format 2024-03-18 14:15:46 +00:00
Arsh
83f9105cd5
fix(node): handle offshoot promise rejections (#10454)
* fix(node): handle offshoot promise rejections

* add test

* add changeset

* Update packages/integrations/node/test/errors.test.js
2024-03-18 19:44:46 +05:30
Arsh
4c1edd0af5 [ci] format 2024-03-18 14:00:35 +00:00
Arsh
fcece36586
fix(rendering): allow framework renders to be cancelled (#10448) 2024-03-18 19:29:24 +05:30
Mark Gaze
36ebe758e1 [ci] format 2024-03-18 13:15:53 +00:00
Mark Gaze
6a9a35ee15
Fix issue with JSON schema generation when schema is a function (#10426) 2024-03-18 14:14:18 +01:00
Ikko Eltociear Ashimine
b5927d57fa
refactor: fix typo in index.ts (#10227)
* refactor: fix typo in index.ts

colum -> column

* Apply suggestions from code review

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

* Apply suggestions from code review

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-03-18 14:10:24 +01:00
Houston (Bot)
a614923a3f
[ci] update lockfile (#10472)
Co-authored-by: matthewp <matthewp@users.noreply.github.com>
2024-03-18 21:06:23 +08:00
Matthew Phillips
34206ed60f [ci] format 2024-03-18 12:06:35 +00:00
Matthew Phillips
37a485b4d1
Create new token when current has expired (#10435)
* Create new token when current has expired

* Add changeset

* Rename renew timer function:

* Handle creating a new token on renewal
2024-03-18 08:05:36 -04:00
Ben Holmes
156c094c3e [ci] format 2024-03-18 11:56:49 +00:00
Ben Holmes
219c49473f
fix type error in seed stub on initial setup (#10457)
* fix: move db type to base types for seed stub

* chore: changeset

* fix(test): bad NOW import
2024-03-18 07:55:39 -04:00
Houston (Bot)
4dcfa2bd90
[ci] release (#10453)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-15 16:24:46 -04:00
Martin Trapp
1900a8f9bc
Fixes an TypeError when using without (#10456) 2024-03-15 19:04:41 +01:00
Ben Holmes
8a80dbfdde [ci] format 2024-03-15 17:59:44 +00:00
Ben Holmes
5b48cc0fc8
feat(db): Run db type generation on astro sync (#10438)
* feat: db typegen on astro sync

* fix: avoid requiring db to be installed

* fix: make typegen optional for backwards compat

* chore: changeset

* fix: required -> optional

* fix: remove flags from sync API signature
2024-03-15 13:58:45 -04:00
Ben Holmes
0989cd3284
feat(db): execute command logs (#10439)
* feat: db execute success and error logs

* chore: changeset
2024-03-15 13:58:36 -04:00
Erika
f8e0ad3c52
fix(toolbar): Fixes small misc issues (#10442)
* fix(toolbar): Fixes small misc issues

* test: update test to test for the audit ui as well

* chore: changeset

* nit: address feedback
2024-03-15 13:26:37 +01:00
Nworm
3776ecf0aa
fix(routing): partially dynamic segments are being truncated (#10379)
* fix(routing): partially dynamic segments are being truncated and affecting routing.

* test: fix "/static should be higher priority than /static-"

* Update .changeset/five-colts-rescue.md

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

* test: fix the check that was wrongly deleted.

* other: improve code readability.

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-03-15 10:27:07 +00:00
Houston (Bot)
464bea398b
[ci] release (#10446)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-14 14:58:33 -04:00
Matthew Phillips
098623c261
Prefer getting app token from runtime env (#10445) 2024-03-14 14:53:25 -04:00
Ben Holmes
5166e9715a
chore: remove duplicate astro:db log (#10441)
* chore: remove duplicate astro:db log

* chore: changeset
2024-03-14 14:39:53 -04:00
Houston (Bot)
7d8565db33
[ci] release (#10444)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-14 14:36:01 -04:00
Arsh
cdf1ac1292 [ci] format 2024-03-14 18:29:56 +00:00
Arsh
238f047b9d
fix(db): separate utils for runtime (#10443)
* fix(db): separate utils for runtime

* add changeset

* use safeFetch from runtime utils
2024-03-14 14:28:51 -04:00
Houston (Bot)
f92ff40fd3
[ci] release (#10430)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-14 09:01:22 -07:00
Fred K. Schott
6b26761d09 [ci] format 2024-03-14 15:58:49 +00:00
Fred K. Schott
1076864cc4
wait for token to propagate (#10431) 2024-03-14 08:57:40 -07:00
Ming-jun Lu
973a07ff25 [ci] format 2024-03-14 09:45:26 +00:00
Ming-jun Lu
2436c9d4a6
Fix a test case which might fail when run locally using IPv4 (#10434) 2024-03-14 09:44:15 +00:00
Erika
ee07e62942
fix(vue): Add default options to not transform assets (#10419)
* fix(vue): Add default options to not transform assets

* fix: oops merge correctly

* chore: changeset

* nit: address feedback
2024-03-14 09:54:05 +01:00
Fred K. Schott
4e24628aac
add missing regions to link command (#10432) 2024-03-13 16:17:17 -07:00
Arsh
9ef310601c [ci] format 2024-03-13 20:33:27 +00:00
Arsh
128c7a3639
fix(app): provide adapter locals to error pages (#10427) 2024-03-14 02:02:14 +05:30
Houston (Bot)
c70aa6849f
[ci] release (#10416)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-13 15:58:51 -04:00
Fred K. Schott
9b3ec5e018 [ci] format 2024-03-13 19:53:36 +00:00
Fred K. Schott
189ec47c1e
add region support to db calls (#10428) 2024-03-13 12:50:55 -07:00