Releases: get-convex/convex-backend
Releases · get-convex/convex-backend
Precompiled 2025-07-16-c1c23bd
Add tablet index backfill timer (#39120) GitOrigin-RevId: 13e89eae4a2b6ed154e6c260609832fc76d583b5
Precompiled 2025-07-15-50bc28e
Log snapshot import worker dying (#39074) GitOrigin-RevId: 8de8e08f96c82fbb2e7861d139d079bbbc2657f6
Precompiled 2025-07-14-19aed7a
Fix agent mode (#39000) Make the experimental agent mode work when no anonymous dev deployments exist yet. GitOrigin-RevId: 4b1aaf800de307bb7c4a558cf21c327c999ec2c1
Precompiled 2025-07-11-74f2e87
Update dependency posthog-js to ~1.250.0 (#38844) This PR contains the following updates: | Package | Type | Update | Change | Pending | |---|---|---|---|---| | [posthog-js](https://posthog.com/docs/libraries/js) ([source](https://redirect.github.com/PostHog/posthog-js)) | dependencies | minor | [`~1.249.0` -> `~1.250.0`](https://renovatebot.com/diffs/npm/posthog-js/1.249.5/1.250.1) | `1.257.0` (+17) | --- ### Release Notes <details> <summary>PostHog/posthog-js (posthog-js)</summary> ### [`v1.250.1`](https://redirect.github.com/PostHog/posthog-js/releases/tag/v1.250.1): 1.250.1 [Compare Source](https://redirect.github.com/PostHog/posthog-js/compare/v1.250.0...v1.250.1) ##### 1.250.1 - 2025-06-10 ### [`v1.250.0`](https://redirect.github.com/PostHog/posthog-js/releases/tag/v1.250.0): 1.250.0 [Compare Source](https://redirect.github.com/PostHog/posthog-js/compare/v1.249.5...v1.250.0) ##### 1.250.0 - 2025-06-09 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on the first day of the month" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). GitOrigin-RevId: d36cfff4c12d36527a129edacdb476f7a135fdf7
Precompiled 2025-07-10-5684962
Add more data to the UDF log stream (#38877) I want to the logs page to have more data, let's add the following: - Usage stats (to help customers debug usage in real time without axiom/datadog integrations set up) - `execution_timestamp` - if the result is not cached, this may be useful in the future for rendering a request tree instead of a sequential list of logs - `occ_info` - for showing insights in real time - execution environment - useful to show for actions - identity type (e.g. user, system, instance_admin, team_acting_user -- useful for showing who ran the function) In the future, I'd also like to add a `caller_execution_id` so we can render the logs in a tree view GitOrigin-RevId: 41cab817e6b7548e8e0247b0efc46495bdcc73b2
Precompiled 2025-07-09-86f70aa
Use V8 external strings for JS module source instead of copying (#38782) GitOrigin-RevId: 67b80fa15ddc49fa77486c6d2758f46e37180cd2
Precompiled 2025-07-08-3e1b67e
Split leases initialization & apply timeout to init queries (#38752) GitOrigin-RevId: d3cdbbe87bc7fb3125260595251ad4b8d723a95a
Precompiled 2025-07-07-ade99cf
dev --once --debug-node-apis (#35201) Flag to bundle non-'use node' entry points one at a time in order to provide an import trace if they use Node.js APIs. If this works well it could run automatically on relevant bundler errors. GitOrigin-RevId: bfbdc200f0f7a7246137671513f6b60e6858aee6
Precompiled 2025-07-04-f81f5d1
Make `db` APIs take an explicit table name argument (#38505)
This PR modifies the `DatabaseWriter`/`DatabaseReader` APIs so that they take the appropriate table name as an explicit parameter, instead of just using the information from the name.
For instance, instead of writing:
```ts
const document = await db.get(id);
await db.patch(id, { count: (document?.count ?? 0) + 1 });
```
the new API is:
```ts
const document = await db.get("documents", id);
await db.patch("documents", id, { count: (document?.count ?? 0) + 1 });
```
### Why?
The goal is to allow in the future users to use arbitrary strings in IDs. In particular, it makes it easier to create documents with optimistic updates on the client, without needing an additional kind of ID.
In rare cases, the current API can also create vulnerabilities where attackers would get or modify data from an unexpected table. Argument validation prevents this from working, so it shouldn’t affect too many projects.
### Backwards-compatibility
As of now, both the old API and the new one are still supported. For now, the new API is marked as `@internal` so that we can test it in our internal projects. Once it’s ready for general usage, we will remove `@internal` on the new APIs and mark the old APIs as `@deprecated`. Later, we plan to remove the old APIs.
### Code migration
To make the migration of existing code easier, I created a codemod tool. It will be added in an upcoming PR.
### Testing
This PR adds JavaScript-only tests that verify that the new types of `DatabaseReader`/`DatabaseWriter` work as expected. It also adds new UDF tests that verify that the syscall argument validation works correctly.
GitOrigin-RevId: 433aa6df650f1179ed24bd053d11dd60fb09b296
Precompiled 2025-07-03-4a598bb
dashboard: fix clipping issue with backup deployment selector (#38668) GitOrigin-RevId: 24062daeaa30c1bee8c7a7f25afcd9a8dffdffc5