Commit Graph

50 Commits

Author SHA1 Message Date
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
Sebastian Jeltsch fb0fe373f5 Remove query apis and improve docs in preparation for v3.0.
More context in the CHANGELOG.
2024-12-05 22:17:47 +01:00
Sebastian Jeltsch 338c4c77bb Add support for periodic tasks to JS runtime. 2024-11-21 13:15:02 +01:00
Sebastian Jeltsch b004188a5a Introduce Method type to narrow js/ts runtime APIs. 2024-11-20 13:48:41 +01:00
Sebastian Jeltsch 3fa8f51b8b Enable "web" APIs in JS runtime and test it. 2024-11-19 14:27:07 +01:00
Sebastian Jeltsch 21b59dce6e Wire user auth state into JS runtime. 2024-11-14 20:45:38 +01:00
Sebastian Jeltsch 0755444169 First stab at JS/TS scripting documentation. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch ad8839f28d Add HttpError custom exception to js runtime. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch 8fa26c246f Minor: Write out js runtime to traildepot and rely on relative includes. Also some opportunistic cleanups along the way. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch 7465203174 Add conversions and convenience for various content-types to the js runtime. Make handlers async. Also extend the test spin up wait time with the longer build times with v8. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch ab5513c825 Minor: Improve error handling and typescript integration. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch 6d37024ec4 Initial HTTP router setup: allow routing HTTP req/resp into and out of JS. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch bdb3735840 Squash all commits for a fresh start.
This is only to avoid accidentally leaking any secrets from early development especially in the light of short-sha attacks.
2024-10-30 23:38:56 +01:00