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

167 commits

Author SHA1 Message Date
Houston (Bot)
a94046588c
[ci] release (#10842)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-23 19:30:37 -04:00
Ben Holmes
8e6eb624ae
db: add login flow for web containers (#10816)
* feat: add login flow for web containers

* chore: changeset

* chore: remove unused web()

* feat: detect github codespaces

* fix: add success msg for manual flow

* refactor: use URL constructor for login URL

Co-authored-by:  Matthew Phillips <matthew@skypack.dev>

* fix: add .href for url string

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2024-04-22 11:37:11 -04:00
renovate[bot]
8d5f3e8656
chore(deps): update all non-major dependencies (#10833)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-04-22 22:52:30 +08:00
renovate[bot]
79b738539a
chore(deps): update dependency chai to v5 (#10835)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-04-22 13:38:37 +08:00
Bjorn Lu
237e17c8fe
Update major deps (#10823) 2024-04-20 00:11:20 +08:00
Houston (Bot)
7fda037b27
[ci] release (#10798)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-18 11:35:39 -04:00
Emanuele Stoppa
347bdfe550 [ci] format 2024-04-17 08:38:53 +00:00
Emanuele Stoppa
40e8450671
chore: use Biome to format JS files (#10788)
* chore: configuration

* chore: update main commands

* chore: revert formatting package.json

* chore: rebase
2024-04-17 09:37:22 +01:00
Nick Dubelman
d4c91cb109
db: export 'alias' from drizzle-orm/sqlite-core (#10789)
* db: export 'alias' from drizzle-orm/sqlite-core

* chore: changeset

* fix: changeset target

---------

Co-authored-by: Ben Holmes <hey@bholmes.dev>
2024-04-16 17:28:20 -04:00
Jason
6ebd81dbc4
lint: upgrade eslint to version 9 (#10730) 2024-04-15 16:05:10 +08:00
Houston (Bot)
3ff6b403db
[ci] release (#10757)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-12 11:31:46 -04:00
Chris Swithinbank
d1080ea81d
Add useful links to @astrojs/db package.json (#10764)
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
2024-04-11 23:18:57 +02:00
Houston (Bot)
0fec72b35c
[ci] release (#10729)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-09 21:00:07 -04:00
Matthew Phillips
2d2ff58bb9
Fix db seeding when srcDir is root (#10720) 2024-04-09 09:11:32 -04:00
Houston (Bot)
f4f383d04e
[ci] release (#10680)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-09 14:42:19 +08:00
Matthew Phillips
4e7f5f8951 [ci] format 2024-04-08 13:22:48 +00:00
Matthew Phillips
28e7535e5c
Provide better messaging when renaming a table (#10600)
* Provide better messaging when renaming a table

* Update based on review
2024-04-08 09:21:41 -04:00
Matthew Phillips
48f158215d [ci] format 2024-04-04 19:14:51 +00:00
Matthew Phillips
4bf8bd3848
Prevent errors in finding workspaceId from interrupting link prompts (#10681) 2024-04-04 15:13:46 -04:00
Houston (Bot)
e2a780a46d
[ci] release (#10674)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-04 13:11:24 -04:00
Matthew Phillips
d4b88c79b2 [ci] format 2024-04-04 16:43:57 +00:00
Matthew Phillips
1662aa8a85
Fix compatibility for @astrojs/db with cloudflare (#10677)
* Fix compatibility for @astrojs/db with cloudflare

* Use a manual implementation

* Update lockfile
2024-04-04 12:42:47 -04:00
Houston (Bot)
8ca8943ce2
[ci] release (#10656) 2024-04-03 22:42:23 +05:30
Ben Holmes
57959e607e [ci] format 2024-04-02 22:14:21 +00:00
Ben Holmes
f395ebcc08
refactor: rename "config" file to "virtual" (#10638)
* refactor: rename "config" file to "virtual"

* chore: changeset

* fix(test): config import
2024-04-02 18:13:18 -04:00
Houston (Bot)
c3916b5206
[ci] release (#10651)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-02 16:15:27 -04:00
Matthew Phillips
5f5176b244 [ci] format 2024-04-02 20:08:38 +00:00
Matthew Phillips
b1eda3dc5c
Fix building static sites with Astro DB (#10655)
* Fix building static sites with Astro DB

* Adding a changeset

* Try a different port range
2024-04-02 16:07:18 -04:00
Houston (Bot)
fd18a5dda9
[ci] release (#10647)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-02 12:11:32 -04:00
Arsh
953695ec2d [ci] format 2024-04-02 15:38:27 +00:00
Arsh
713f99e849
fix(db): isolate AstroDbError from core utils (#10646)
* fix(db): isolate AstroDbError from core utils

* add changeset
2024-04-02 11:37:28 -04:00
Houston (Bot)
f7d6254f8f
[ci] release (#10603)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-02 15:46:43 +08:00
Houston (Bot)
260f4fa191
[ci] update lockfile (#10551)
Co-authored-by: matthewp <matthewp@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-04-02 11:02:18 +08:00
Ben Holmes
a544f4cc0e [ci] format 2024-04-01 21:03:37 +00:00
Ben Holmes
504d15d772
db: Better error messages when querying remote (#10636)
* feat: clear error messages on remote db error

* refactor: use AstroDbError for correct error name

* refactor: errorMessage -> responseMessage

* chore: changeset

* fix: revert seed file change

* fix: format seed errors as AstroDbError

* fix: correctly log eager seed errors
2024-04-01 17:02:36 -04:00
Matthew Phillips
17badaf55c
Give proper error when seed missing default export (#10635) 2024-04-01 14:18:46 -04:00
Matthew Phillips
ca29764912 [ci] format 2024-04-01 15:41:03 +00:00
Matthew Phillips
157392ee44
Make ASTRO_DATABASE_FILE work with file paths (#10631)
* Make ASTRO_DATABASE_FILE work with file paths

* Use pathToFileURL
2024-04-01 11:39:49 -04:00
Ben Holmes
27e2c24647 [ci] format 2024-04-01 15:17:47 +00:00
Ben Holmes
5a7733dde5
db: Seed on dev server startup (#10599)
* feat: load seed file on dev server startup

* feat: handle logging on dev server restart

* chore: changeset

* feat: support integration seed files

* fix: only run when seed is present, ignore unlink

* fix: load on startup for integration pkg paths
2024-04-01 11:16:46 -04:00
Houston (Bot)
0ff5d72c78
[ci] release (#10598)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-28 14:20:53 -04:00
Houston (Bot)
c0cae63147 [ci] format 2024-03-28 18:10:50 +00:00
Ben Holmes
ed1031ba29
db: Rework index config with generated index names (#10589)
* feat: add indexes array config with name gen

* fix: add _idx suffix, remove name from output

* feat(test): new index config

* chore: remove unused type

* chore: changeset

* chore: add sort() for consistent names

* feat(test): consistent column ordering

* feat(test): ensure no queries when migrating legacy to new
2024-03-28 14:09:09 -04:00
Houston (Bot)
7d3b61c56d
[ci] release (#10586)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-27 16:33:25 -04:00
Matthew Phillips
62a1d6df69
For --force-reset use conditional drop table query (#10587) 2024-03-27 16:30:59 -04:00
Ben Holmes
d43bcbeec3 [ci] format 2024-03-27 19:52:24 +00:00
Ben Holmes
713abb2998
chore(db): Rename all collection usage to tables (#10460)
* chore: rename `collection` field to `table`

* chore: remove deprecated ResolvedCollectionConfig type (only used by studio)

* chore: collection -> table in migration-queries

* chore: update tests

* chore: last renames

* chore: bump migration version

* chore: remove deprecated collection field

* chore: droptablequeries

* chore(test): collection -> tables

* chore: revert collection -> table change on migration file

* chore: revert migration version change

* chore: changeset
2024-03-27 15:51:26 -04:00
Houston (Bot)
06a6c1a567
[ci] release (#10578)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-27 15:24:37 -04:00
Matthew Phillips
016b4b7b13 [ci] format 2024-03-27 19:21:30 +00:00
Matthew Phillips
f5df12cfeb
Provide guidance when --remote is omitted (#10579)
* Provide guidance when --remote is omitted

* Only restrict to server mode

* Use an AstroError

* Update code
2024-03-27 15:20:11 -04:00