Commit Graph

62 Commits

Author SHA1 Message Date
Sebastian Jeltsch
2308c8d622 Update JS and Rust dependencies. 2025-11-05 17:11:47 +01:00
Sebastian Jeltsch
8566b9ba96 Update JavaScript dependencies. 2025-11-03 10:59:06 +01:00
Sebastian Jeltsch
b9762f1d63 Fix initialization order issue for custom schemas (#170) and return client error for inputs rejected by SQLite CHECK constraint.
Also add both integration and end-to-end tests to ensure stability.
2025-10-31 14:44:09 +01:00
Sebastian Jeltsch
9e46a099d0 Stop encoding SQL values as generic JSON values (outside the context of the record API), i.e. for admin APIs and between WASM host/guest.
This lets us simplify the parsing and add back a lot of type-safety (including int64). As a side-effect, we basically had to complete reqrite the record insert/update handling in the admin UI.

Note, however, that this is a breaking change, since it touches serialization between WASM guests and host. Guest will need to be built against an updated guest runtime.
2025-10-21 16:40:45 +02:00
Sebastian Jeltsch
3bb22fc92b Use winch baseline compiler - instrad of cranelif - for WASM components in --dev mode. #161 2025-10-13 15:45:54 +02:00
Sebastian Jeltsch
940c329770 Update JavaScript dependencies. 2025-10-13 15:45:54 +02:00
Sebastian Jeltsch
08bcf98e67 Disable V8 runtime by default (custom builds can still enable it) and add a truly static binary release for Linux using MUSL.
Building with MUSL required vendoring sqlite-vec and OpenSSL.

Also clean up no-longer-supported TypeScript guest scripts.
2025-10-07 20:47:28 +02:00
Sebastian Jeltsch
db945733e9 Update Rust and JS dependencies. 2025-10-06 22:53:04 +02:00
Sebastian Jeltsch
362e284d03 Remove WIT thread-id method after changing the execution model. 2025-09-30 17:22:01 +02:00
Sebastian Jeltsch
353b913fe3 Update JavaScript dependencies. Fixes #157. 2025-09-25 23:16:04 +02:00
Sebastian Jeltsch
5161295a38 Fix new user registeration. 2025-09-24 12:27:56 +02:00
Sebastian Jeltsch
9b60cea394 Prepare new release v0.18.0. 2025-09-24 10:24:55 +02:00
Sebastian Jeltsch
5d422ec713 Add metadata.textproto to .gitignore. 2025-09-22 15:41:23 +02:00
Bilux
b4f4a2047c Add integation tests for JSON file upload using base64. 2025-09-22 11:51:19 +02:00
Sebastian Jeltsch
4f6276087f Add an init argument to init-endpoint to pass version and for future proofing. 2025-09-20 18:23:13 +02:00
Sebastian Jeltsch
5802219c39 Update JavaScript dependencies. 2025-09-18 15:57:52 +02:00
Sebastian Jeltsch
ced96071f4 Update JavaScript dependencies. 2025-09-12 11:14:37 +02:00
Sebastian Jeltsch
4b9df89104 Update JS dependencies. 2025-09-09 20:45:28 +02:00
Sebastian Jeltsch
1fbf0f862e Add TypeScript WASM guest runtime and examples. 2025-09-09 18:22:33 +02:00
Sebastian Jeltsch
f1ec808622 Add Rust WASM guest runtime and examples. 2025-09-09 15:39:38 +02:00
Sebastian Jeltsch
55149a1734 Add WASM host-runtime to TrailBase and rebrand relevant command-line flags. 2025-09-09 15:39:35 +02:00
Bilux
698e38d8ae Add non-transaction bulk support and expose bulk/transaction API as client.execute on JS/TS client. 2025-09-08 12:03:41 +02:00
Sebastian Jeltsch
2933806d1c minor: make the type-checker happy. 2025-08-25 20:38:57 +02:00
Sebastian Jeltsch
308d6c2dab Make TS sql query/execute APIs more type-safe and consistently serialize/deserialize blobs as { blob: <urlSafeBase64(bytes)> }. 2025-07-31 15:54:03 +02:00
Sebastian Jeltsch
44806eebf0 Add the ability to pass urlSafeBase64 strings to query/execute as { blob: <contents> }. 2025-07-31 14:41:17 +02:00
Sebastian Jeltsch
6ec0fc3941 Increase the space of applicable VIEWs for Record APIs by treating top-level GROUP BY <single col> expressions as key-defining. #99 2025-07-28 22:50:08 +02:00
Sebastian Jeltsch
321006fbe7 Call out PKCE in auth docs. 2025-07-14 11:38:49 +02:00
Sebastian Jeltsch
8b62f35e98 Re-apply migrations on SIGHUP. #88 2025-07-13 12:06:23 +02:00
Sebastian Jeltsch
39eec6b980 Use UUIDv4 ids for _users to stop leaking creation times. We rely on _rowid_ for cursoring. 2025-06-13 15:52:33 +02:00
Sebastian Jeltsch
2b33fbcaa9 Remove _user_avatar record APIs after adding dedicated avatar APIs. 2025-06-07 22:55:11 +02:00
Sebastian Jeltsch
c3cd9bd2da Replace avatar url + record API with dedicated read avatar API. 2025-06-06 22:38:33 +02:00
Sebastian Jeltsch
a0b7923759 Update JS dependencies. 2025-05-26 13:56:02 +02:00
Sebastian Jeltsch
219db9fb96 Turn JS transaction() API async for future-proofing. 2025-05-04 12:42:11 +02:00
Sebastian Jeltsch
aa1a767320 Add SQLite transaction support to JS runtime. 2025-05-04 11:40:32 +02:00
Sebastian Jeltsch
711902e551 Install a SIGHUP handler to reload configuration. #49 2025-04-22 15:44:09 +02:00
Sebastian Jeltsch
68af842184 When logging responses to stdout, log them as JSON. 2025-04-15 15:00:45 +02:00
Sebastian Jeltsch
36d49cd46a Allow registering cron jobs from JS. 2025-03-18 15:22:35 +01:00
Sebastian Jeltsch
e1ac5354b6 Limit some admin APIs in --demo mode to avoid most egregious jokes, e.g. changing the admin user or deleting system tables. 2025-03-09 14:57:31 +01:00
Sebastian Jeltsch
c14c544db7 Add OIDC end-to-end test. 2025-03-08 14:48:39 +01:00
Sebastian Jeltsch
c08762bedb Add generic OIDC OAuth provider.
Not yet configurable through UI. Can currently only be configured via configuration.
2025-03-07 13:51:35 +01:00
Sebastian Jeltsch
edfcda1ea5 Restore secret redaction and config merging. 2025-03-05 11:42:36 +01:00
Sebastian Jeltsch
c07ae504e7 Improve auth UI styling. 2025-03-04 11:31:04 +01:00
Sebastian Jeltsch
9aae29d146 Fix ui issues and improve config validation. 2025-02-26 23:14:23 +01:00
Sebastian Jeltsch
44e38582e4 Place realtime record subscriptions behind a configuration flag. 2025-02-17 14:44:41 +01:00
Sebastian Jeltsch
4bf23a6df0 Add foreign key expansion to Dart client. 2025-02-14 12:01:33 +01:00
Sebastian Jeltsch
ea61aeab45 Add dedicated documentation on how to model data and relations with SQLite and TrailBase. 2025-02-04 12:39:34 +01:00
Sebastian Jeltsch
5cec5482ee Also fail internal list handlers on invalid queries + various Admin UI state management issues.
The former surfaced a few issues in the admin UI, around FilterBar and
search query handling, i.e.
 * the filter bar value getting out of sync
 * filter not being reset when switching tables

Also fix stale config issue and hide "sqlite_" internal tables.
2025-01-31 12:43:49 +01:00
Sebastian Jeltsch
7e6512a95e Add filesystem API declarations to JS runtime. 2025-01-24 13:44:42 +01:00
Sebastian Jeltsch
ebf25fa821 Add RecordApi.list examples to docs and streamline the list APIs for rust and dotnet. 2025-01-22 13:13:01 +01:00
Sebastian Jeltsch
4ae0966810 Update Axum to 0.8. 2025-01-06 11:36:04 +01:00