uql-orm 0.28.1 → 0.28.2

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 +4 -6
  2. package/package.json +22 -17
package/README.md CHANGED
@@ -32,9 +32,7 @@
32
32
  npm install uql-orm pg # or mysql2, mariadb, better-sqlite3, mongodb, @tursodatabase/serverless, @libsql/client
33
33
  ```
34
34
 
35
- That is the whole install. Decorators are the standard TC39 ones, so there is no `reflect-metadata`
36
- and no compiler flag to turn on ([setup](https://uql-orm.dev/getting-started)), and the
37
- [imperative API](https://uql-orm.dev/entities/imperative) skips decorators altogether.
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.
38
36
 
39
37
  ```ts
40
38
  await pool.findMany(User, {
@@ -51,14 +49,14 @@ from the browser to the server. The same object runs on every supported database
51
49
  ## Why UQL?
52
50
 
53
51
  - **Serializable queries (JSON), not method chains.** Plain JSON in, typed rows out. No DSL to learn.
54
- - **Type-safe to the leaf, nothing to generate.** Every key is checked against your entity, down into populated relations and [JSON/JSONB](https://uql-orm.dev/querying/json) dot-paths, so `$like` on a numeric column is a compile error. Entities are plain classes: no `.prisma` file, no generated client, no build step.
52
+ - **Type-safe to the leaf, nothing to generate.** Every key is checked against your entity, down into populated relations and [JSON/JSONB](https://uql-orm.dev/querying/json) dot-paths, so `$like` on a numeric column is a compile error. Entities are plain classes on the standard TC39 decorators: no `.prisma` file, no generated client, no `reflect-metadata`, no `experimentalDecorators`.
55
53
  - **One API, everywhere it runs.** PostgreSQL, CockroachDB, MySQL, MariaDB, SQLite, Turso, libSQL, Neon, Cloudflare D1, Bun's native SQL, and even MongoDB. The same code on Node 24+, Bun, Deno, [Cloudflare Workers](https://uql-orm.dev/cloudflare-d1), [AWS Lambda and Vercel](https://uql-orm.dev/serverless), and [the browser](https://uql-orm.dev/browser), with no native binaries on the `fetch`-based drivers.
56
54
  - **Relations without N+1.** [`$populate`](https://uql-orm.dev/querying/relations) loads a to-many with one query for all parents, not one per parent. Nothing is lazy, so nothing fires behind your back in a serializer.
57
55
  - **Migrations you read before they run.** Edit an entity, run `uql-migrate generate:entities`, review the SQL in the PR like any other file. [`drift:check`](https://uql-orm.dev/migrations) catches a database that no longer matches.
58
56
  - **Raw SQL when you want it.** [`raw()`](https://uql-orm.dev/querying/raw-sql) fits anywhere in a query, [virtual fields](https://uql-orm.dev/entities/virtual-fields) are sub-queries you can filter on, and a migration can be plain SQL.
59
- - **Light.** Zero runtime dependencies, 269 kB on the wire, every dialect included. See [what we deleted to get there](https://uql-orm.dev/blog/zero-dependencies).
57
+ - **Light.** Zero runtime dependencies, under 280 kB on the wire, every dialect included. See [what we deleted to get there](https://uql-orm.dev/blog/zero-dependencies).
60
58
  - **The hard things are built in.** [Semantic and vector search](https://uql-orm.dev/ai-semantic-search), [multi-tenant filters you cannot bypass by accident](https://uql-orm.dev/multi-tenancy), [soft-delete with restore](https://uql-orm.dev/entities/soft-delete), [streaming](https://uql-orm.dev/querying/streaming), and [a REST API from your entities](https://uql-orm.dev/http).
61
- - **The fastest ORM.** On a full PostgreSQL round trip it adds the least over hand-written driver code of any ORM in our open-source [benchmark](https://github.com/rogerpadilla/ts-orm-benchmark): 206µs, against 644µs for the next closest and 2,236µs for the slowest.
59
+ - **The fastest ORM.** On a full PostgreSQL round trip it adds the least over hand-written driver code of any ORM in our open-source [benchmark](https://github.com/rogerpadilla/ts-orm-benchmark), by roughly 3x over the next closest and an order of magnitude over the slowest.
62
60
 
63
61
  ## Get started
64
62
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "uql-orm",
3
3
  "homepage": "https://uql-orm.dev",
4
- "description": "JSON-native TypeScript ORM: queries are plain JSON, typed to the leaf. One API for SQL databases and MongoDB.",
4
+ "description": "JSON-native TypeScript ORM for Node.js, Bun and Deno. Supports PostgreSQL, 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.28.1",
6
+ "version": "0.28.2",
7
7
  "type": "module",
8
8
  "engines": {
9
9
  "node": ">=24"
@@ -158,40 +158,45 @@
158
158
  },
159
159
  "keywords": [
160
160
  "orm",
161
+ "uql",
162
+ "sql",
161
163
  "query-builder",
162
164
  "data-mapper",
163
- "persistence",
164
165
  "database",
165
166
  "db",
167
+ "typescript",
168
+ "ts",
169
+ "javascript",
166
170
  "typesafe",
167
- "typescript-orm",
168
- "javascript-orm",
169
- "mariadb",
170
- "mariadb-orm",
171
- "mysql",
172
- "mysql-orm",
171
+ "type-safe",
172
+ "json",
173
+ "postgres",
173
174
  "postgresql",
174
- "postgresql-orm",
175
+ "pg",
176
+ "mysql",
177
+ "mariadb",
175
178
  "sqlite",
176
- "sqlite-orm",
179
+ "sqlite3",
177
180
  "cockroachdb",
178
- "cockroachdb-orm",
179
181
  "mongodb",
180
- "mongodb-orm",
182
+ "mongo",
181
183
  "libsql",
182
184
  "turso",
183
185
  "neon",
184
186
  "d1",
185
187
  "cloudflare",
186
188
  "bun",
189
+ "deno",
190
+ "node",
191
+ "nodejs",
187
192
  "edge",
193
+ "serverless",
188
194
  "entity",
189
- "dao",
190
- "transaction",
191
- "repository",
192
- "service",
195
+ "transactions",
193
196
  "migrations",
194
197
  "vector-search",
198
+ "semantic-search",
199
+ "embeddings",
195
200
  "nestjs",
196
201
  "express"
197
202
  ],