Oliver Speir
2e6d0d91a0
[ci] format
2024-06-10 15:54:26 +00:00
Oliver Speir
29463dff52
Export type Database from db/runtime ( #11216 )
...
* import and export in index.ts
* remove import and export from virtual.ts
* add changset
* Update .changeset/warm-pets-tap.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-06-10 16:53:38 +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
Houston (Bot)
9ddd6387a7
[ci] release ( #11086 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-22 09:40:11 +02:00
Matthew Phillips
f00ecd4596
[ci] format
2024-05-21 21:13:35 +00: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
Darius
b78e83f448
prompt for workspace in db link ( #11032 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2024-05-21 21:13:56 +02:00
Houston (Bot)
4d32a8077b
[ci] release ( #11053 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-16 18:00:58 +01:00
Erika
00420a7a52
[ci] format
2024-05-16 16:11:58 +00:00
Erika
1fec4a6eb9
fix: use astro cli command instead of astro db's ( #11070 )
...
* fix: use astro cli command instead of astro db's
* chore: changeset
2024-05-16 18:10:59 +02:00
Erika
9332bb1c1f
feat: add an internal for now studio package ( #11037 )
...
* feat: add an internal for now studio package
* fix: remove test commands
* fix: use getenvs from studio package
* fix: packagejson
* chore: changeset
* fix: remove unused error
* fix: of course Bjorn was right all along
2024-05-16 18:10:08 +02:00
Houston (Bot)
5a48d53385
[ci] release ( #11025 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-15 10:42:55 -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
Houston (Bot)
770b9f06c3
[ci] release ( #10944 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-09 11:06:49 +01: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
Matthew Phillips
8ef2f62c53
[ci] format
2024-05-08 12:29:08 +00:00
Matthew Phillips
a1343184da
Convert saved non-UTC dates to UTC ( #10967 )
...
* Convert saved non-UTC dates to UTC
* Simplify the check
* Simplify check and add link
2024-05-08 08:27:55 -04:00
Houston (Bot)
2dcbcdb857
[ci] release ( #10943 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-03 17:55:43 +02: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
Houston (Bot)
9a231a4dd7
[ci] release ( #10890 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-02 19:59:20 +08:00
Erika
77e206d7e5
[ci] format
2024-05-01 12:04:47 +00:00
Erika
a0c77fc716
chore: changeset ( #10925 )
2024-05-01 08:03:55 -04:00
Viktor Szépe
a146cf1012
Fix typos ( #10923 )
2024-05-01 13:56:38 +08:00
Matthew Phillips
1b7ed7a31a
[ci] format
2024-04-30 20:23:31 +00:00
Matthew Phillips
ca605f4dd8
Provide a better error for when the app token is missing in CI ( #10918 )
2024-04-30 16:22:26 -04:00
renovate[bot]
05d58eff07
fix(deps): update all non-major dependencies ( #10901 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 12:00:05 +08:00
Chris Swithinbank
c238aa81ee
[ci] format
2024-04-26 14:09:06 +00:00
Chris Swithinbank
cf58d1ed56
Improve asDrizzleTable()
types ( #10882 )
2024-04-26 16:07:55 +02:00
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