uql-orm 0.31.0 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -34,17 +34,16 @@ npm install uql-orm pg # or mysql2, mariadb, better-sqlite3, mongodb, @tursoda
34
34
 
35
35
  That is the whole install ([setup](https://uql-orm.dev/getting-started)), and the [imperative API](https://uql-orm.dev/entities/imperative) skips decorators altogether.
36
36
 
37
- ```ts
38
- await pool.findMany(User, {
39
- $select: { id: true, email: true },
40
- $populate: { posts: { $select: { title: true } } },
41
- $where: { email: { $endsWith: '@uql-orm.dev' } },
42
- $limit: 10,
43
- });
44
- ```
37
+ <a href="https://uql-orm.dev">
38
+ <picture>
39
+ <source media="(prefers-color-scheme: dark)" srcset="https://uql-orm.dev/demo-dark.webp">
40
+ <img src="https://uql-orm.dev/demo-light.webp" alt="A UQL query being typed: the compiler underlines the misspelled 'emial', then 'titel' three levels deep inside $populate">
41
+ </picture>
42
+ </a>
43
+
44
+ Our type-safety automatically prevents the bugs above, without codegen: the entity classes are the schema, pure TypeScript power. That demo editor is [on the home page](https://uql-orm.dev).
45
45
 
46
- That query is a serializable value. Build it dynamically, store it, diff it, or send it
47
- from the browser to the server. The same object runs on every supported database.
46
+ The query is just JSON: build it dynamically, store it, diff it, or send it from the browser to the server. The same object runs on every supported database.
48
47
 
49
48
  ## Why UQL?
50
49
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "homepage": "https://uql-orm.dev",
4
4
  "description": "JSON-native TypeScript ORM for Node.js, Bun and Deno. Supports PostgreSQL, PGlite, MySQL, MariaDB, SQLite, CockroachDB, Turso, Neon, Cloudflare D1 and MongoDB. Queries are plain JSON, typed to the leaf.",
5
5
  "license": "MIT",
6
- "version": "0.31.0",
6
+ "version": "0.31.1",
7
7
  "type": "module",
8
8
  "engines": {
9
9
  "node": ">=24"