uql-orm 0.26.0 → 0.26.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.
- package/README.md +2 -2
- package/dist/type/entity.d.ts +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<h3>The smartest TypeScript ORM</h3>
|
|
11
11
|
|
|
12
|
-
<p>
|
|
12
|
+
<p>Serializable queries, type-safe to the leaf, no codegen, and one API across every SQL database, MongoDB, and every runtime. And the <a href="https://uql-orm.dev/benchmark">fastest</a>.</p>
|
|
13
13
|
|
|
14
14
|
<p>
|
|
15
15
|
<a href="https://uql-orm.dev"><b>Website</b></a> ·
|
|
@@ -50,8 +50,8 @@ from the browser to the server. The same object runs on every supported database
|
|
|
50
50
|
|
|
51
51
|
## Why UQL?
|
|
52
52
|
|
|
53
|
+
- **Serializable queries (JSON), not method chains.** Plain JSON in, typed rows out. No DSL to learn.
|
|
53
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.
|
|
54
|
-
- **Queries are data (JSON), not method chains.** Plain JSON in, typed rows out. No DSL to learn.
|
|
55
55
|
- **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
56
|
- **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
57
|
- **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.
|
package/dist/type/entity.d.ts
CHANGED
|
@@ -314,7 +314,7 @@ export type OnFieldCallback<V = TsTypeOf<FieldType>> = V | QueryRaw | (() => V |
|
|
|
314
314
|
* `type` allowed. A decorator has it the other way round: `@Field({ type: String })` is checked before
|
|
315
315
|
* the class exists, so the only way to reach the property is to state what `type: String` implies and
|
|
316
316
|
* let the decorator's context position compare it against the real field. Neither can be derived from
|
|
317
|
-
* the other by inference, so `entityOptions.
|
|
317
|
+
* the other by inference, so `entityOptions.test-d.ts` asserts they agree instead.
|
|
318
318
|
*/
|
|
319
319
|
export type TsTypeOf<T> = T extends StringConstructor ? string : T extends NumberConstructor ? number : T extends BigIntConstructor ? bigint : T extends BooleanConstructor ? boolean : T extends DateConstructor ? Date : T extends StringColumnType ? string : T extends NumericColumnType ? number | bigint : T extends BooleanColumnType ? boolean : T extends DateColumnType ? Date : T extends JsonColumnType ? Json<unknown> | readonly Json<unknown>[] : T extends BlobColumnType ? Uint8Array : T extends VectorColumnType ? readonly number[] : unknown;
|
|
320
320
|
/**
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"homepage": "https://uql-orm.dev",
|
|
4
4
|
"description": "Extremely fast, type-safe TypeScript ORM - one API for every database",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.26.
|
|
6
|
+
"version": "0.26.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": ">=24"
|
|
@@ -127,9 +127,9 @@
|
|
|
127
127
|
"devDependencies": {
|
|
128
128
|
"@libsql/client": "^0.17.4",
|
|
129
129
|
"@neondatabase/serverless": "^1.1.0",
|
|
130
|
-
"@nestjs/common": "^11.1.
|
|
131
|
-
"@nestjs/core": "^11.1.
|
|
132
|
-
"@nestjs/testing": "^11.1.
|
|
130
|
+
"@nestjs/common": "^11.1.29",
|
|
131
|
+
"@nestjs/core": "^11.1.29",
|
|
132
|
+
"@nestjs/testing": "^11.1.29",
|
|
133
133
|
"@tursodatabase/database": "^0.7.2",
|
|
134
134
|
"@tursodatabase/serverless": "^1.4.0",
|
|
135
135
|
"@types/better-sqlite3": "^9.6.0",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"express": "^5.2.1",
|
|
141
141
|
"mariadb": "^3.5.3",
|
|
142
142
|
"mongodb": "^7.5.0",
|
|
143
|
-
"mysql2": "^3.23.
|
|
143
|
+
"mysql2": "^3.23.3",
|
|
144
144
|
"pg": "^8.23.0",
|
|
145
145
|
"pg-query-stream": "^4.17.0",
|
|
146
146
|
"rxjs": "^7.8.2",
|