Skip to content

Commit af93ef7

Browse files
NicolappsConvex, Inc.
authored andcommitted
Update the changelog for explicit table IDs (#44174)
GitOrigin-RevId: 5382fcfd255ba41db4385e1893b12fc1edfb4196
1 parent bcf9de1 commit af93ef7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## Upcoming (1.30.0)
4+
5+
- `db.get`, `db.patch`, `db.replace`, and `db.delete` now accept a table name as
6+
the first argument (e.g. `db.get("messages", messageId)` instead of
7+
`db.get(messageId)`). This new syntax is more ergonomic, safer, and will allow
8+
developers to customize IDs in the future. We recommend that all developers
9+
migrate to the new syntax, using the ESLint rule
10+
[`@convex-dev/explicit-table-ids`](https://docs.convex.dev/eslint#explicit-table-ids)
11+
or our standalone codemod tool
12+
(`npx @convex-dev/codemod@latest explicit-ids`).
13+
[**Learn more on news.convex.dev**](https://news.convex.dev)
14+
315
## 1.30.0
416

517
- The `--preview-create` parameter for `npx convex deploy` will now error if

0 commit comments

Comments
 (0)