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

75 commits

Author SHA1 Message Date
renovate[bot]
26c63a2b07
fix(deps): update all non-major dependencies (#11837)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 10:45:45 +01:00
renovate[bot]
48b85c13dd
fix(deps): update all non-major dependencies (#11765)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-19 16:09:05 +08:00
Florian Lefebvre
87ce2381b6 [ci] format 2024-08-15 14:53:15 +00:00
Florian Lefebvre
70945dd918
refactor: enforce node prefix (#11723) 2024-08-15 16:52:26 +02:00
renovate[bot]
315ec07e1b
fix(deps): update all non-major dependencies (#11674)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-08-13 22:29:37 +08:00
Darius
72c7ae9901
update formatter config (#11640)
* update formatter config

* format

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-08-08 12:12:50 +02:00
Josh Goldberg ✨
4c1b769bcf
chore: bump typescript-eslint to v8 (#11649) 2024-08-08 17:54:04 +08:00
Bjorn Lu
ea82b03cd6
Improve regex performance (#11635) 2024-08-07 16:01:23 +08:00
renovate[bot]
da86d5459f
fix(deps): update all non-major dependencies (#11618)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 16:22:43 +08:00
renovate[bot]
750d5328c9
fix(deps): update all non-major dependencies (#11565)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 21:17:26 +08:00
renovate[bot]
536209aa74
fix(deps): update all non-major dependencies (#11522)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-07-23 11:43:14 +08:00
renovate[bot]
2113a56933
fix(deps): update all non-major dependencies (#11426)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-07-17 14:48:07 +08:00
renovate[bot]
47e78d4752
fix(deps): update all non-major dependencies (#11318)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-06-24 22:33:33 +08:00
Florian Lefebvre
02e561723f
feat: upgrade pnpm (#11146) 2024-06-11 15:49:03 +02:00
renovate[bot]
8725cb2f90
fix(deps): update all non-major dependencies (#11222)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-11 08:59:21 +01:00
renovate[bot]
464b0a108e
fix(deps): update all non-major dependencies (#11151)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-30 17:28:57 +08:00
Emanuele Stoppa
a3675e5d5e [ci] format 2024-05-22 11:03:40 +00:00
Emanuele Stoppa
6988f1d278
chore: fix missed failing test (#11115) 2024-05-22 12:02:51 +01:00
Emanuele Stoppa
e1884ea6a8 [ci] format 2024-05-22 08:17:53 +00:00
Emanuele Stoppa
05ef10cdc3
chore(db): move tests to node runner (#11109) 2024-05-22 09:16:49 +01:00
Matthew Phillips
e14ce5726d
Fix inconsistent results from raw SQL (#11091)
* Fix inconsistent results from raw SQL

* Remove .only

* Fix

* Update packages/db/src/runtime/db-client.ts

Co-authored-by: Ben Holmes <hey@bholmes.dev>

---------

Co-authored-by: Ben Holmes <hey@bholmes.dev>
2024-05-21 17:12:39 -04:00
Ben Holmes
c135cd546d [ci] format 2024-05-13 16:21:32 +00:00
Ben Holmes
eb1d9a447b
Fix isDbError() for remote errors (#11027)
* fix: use LibsqlError for remote db errors

* chore: remove unused drizzle.ts

* fix(test): return expected `error` object

* fix: error detail formatting

* feat(test): error messages with remote adapter

* feat(test): add code to test body

* chore: changeset
2024-05-13 12:20:43 -04:00
renovate[bot]
cb2586fa15
fix(deps): update all non-major dependencies (#11015)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-13 16:19:23 +08:00
renovate[bot]
f9b6f4fc2f
chore(deps): update all non-major dependencies (#10958)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-09 15:20:13 +08:00
Ben Holmes
befbda7fa3 [ci] format 2024-05-03 15:09:39 +00:00
Ben Holmes
44bafa989a
[db] Fix duplicate calls to recreate tables on startup (#10919)
* fix: move recreateTables() to integration hooks

* feat: recreate and seed at load, not in virtual runtime

* feat: eager build db on startup and seed file change

* fix: respect database_file in dbUrl

* chore: remove duplicate recreateTables call

* chore: remove now self-explanatory comments

* fix: remove invalidateModule call for eager loading

* feat: respect seed package paths

* fix: remove duplicate recreateTables() call

* refactor: move recreateTables() to vite-plugin-db

* refactor: move queries.ts from runtime/ to core/

* fix: update test import to core/queries

* refactor: move executeSeedFile to vite-plugin-db

* refactor: extract seeding and recreating to helper fns

* chore: changeset

* chore: revert connectToStudio refactor

* wip: log db url

* fix(test): normalize astro_database_file flag for windows

* Revert "wip: log db url"

This reverts commit 558e2de67a09a611377929b625127c649b8504d6.

* Revert "Revert "wip: log db url""

This reverts commit ffd004e00dff485b7bc5ddde0278dde6ff058b9e.

* fix: correctly resolve relative paths with unit test

* chore: remove unused dbDirPath

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

* chore: remove unused import

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

* chore: remove unused type

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

* fix: remove bad import

* [db] Load seed files with vite dev server (#10941)

* feat: load seed files with full vite dev server

* chore: remove unused export

---------

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2024-05-03 11:08:50 -04:00
Emanuele Stoppa
347bdfe550 [ci] format 2024-04-17 08:38:53 +00:00
Matthew Phillips
2d2ff58bb9
Fix db seeding when srcDir is root (#10720) 2024-04-09 09:11:32 -04: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
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
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
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
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
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
Ben Holmes
b5a80405b9
Fix db.run() type signature in production (#10566)
* deps: bump drizzle to latest patch

* chore: changeset

* feat(test): db.run output
2024-03-26 13:43:04 -04:00
Matthew Phillips
44dacedb3a [ci] format 2024-03-22 15:53:54 +00:00
Matthew Phillips
6576f5d458
Require that ASTRO_STUDIO_REMOTE_DB_URL is defined at runtime (#10533)
* Require that ASTRO_STUDIO_REMOTE_DB_URL is defined at runtime

* Add changeset

* Fix build
2024-03-22 11:52:38 -04:00
Ben Holmes
7ae1392d66 [ci] format 2024-03-22 12:29:14 +00:00
Ben Holmes
95e3cc84e8
db: dev --remote test fixture (#10527)
* feat: scaffold basic proxy

* feat: setupDbServer util

* feat: ASTRO_INTERNAL_TEST_REMOTE bypass

* feat: basic --remote test

* chore: add port incrementer
2024-03-22 08:28:12 -04:00
Matthew Phillips
297571eb98 [ci] format 2024-03-20 18:43:56 +00:00
Matthew Phillips
980020c5e0
Ensure --force-reset drops previous tables (#10506)
* Ensure --force-reset drops previous tables

* Remove unused import

* Do suggestions
2024-03-20 14:42:41 -04:00
Ben Holmes
98b982bdfc [ci] format 2024-03-20 11:29:14 +00:00
Ben Holmes
f0fc78c873
db: expose isDbError() utility (#10498)
* feat: expose isDbError

* test: foreign key constraint error detection

* fix(test); use isDbError

* chore: changeset
2024-03-20 07:27:48 -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