uql-codemod 0.39.1 → 0.39.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.
- package/README.md +1 -1
- package/dist/transform.js +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Only `--flag=value` is read, and anything unrecognised is an error. It exits `0`
|
|
|
32
32
|
- A partial-index `where` string to `raw`, importing it, on entities and in the migration builder.
|
|
33
33
|
- `col('cost')` to the ref it names, ``(product) => raw`${product.cost}` `` in a `computed` and `refs(Item).cost` in a statement, and `$lock: { wait: 'skip' }` to `{ $wait: 'skip' }`, or to `true` for `{}` and a `'block'` wait.
|
|
34
34
|
- An aggregate's `$agg` to `$select`, and each field it or `$text`'s `$fields` names to a key: `{ $sum: { amount: true } }`.
|
|
35
|
-
- Renamed exports, at the import and every use: `QueryWhereMap` to `QueryWhere`, `RelationKeyMap` to `KeyMap`, `FilterCondition` to `FilterWhere`, `SqlMigrationModuleOptions` to `MigrationModuleOptions`, `buildSqlQuerierMigrationModule` to `buildMigrationModule`, `QueryDialect` to `SqlQueryDialect`, `EngineFeatures` to `DialectFeatures`, `KnownMigratorDialect` to `DialectName
|
|
35
|
+
- Renamed exports, at the import and every use: `QueryWhereMap` to `QueryWhere`, `RelationKeyMap` to `KeyMap`, `FilterCondition` to `FilterWhere`, `SqlMigrationModuleOptions` to `MigrationModuleOptions`, `buildSqlQuerierMigrationModule` to `buildMigrationModule`, `QueryDialect` to `SqlQueryDialect`, `EngineFeatures` to `DialectFeatures`, `KnownMigratorDialect` to `DialectName`, `D1Preparer`/`D1Database` to `D1Queryable`, and the removed driver classes to the one each extended: `PgDialect`/`NeonDialect`/`PgliteDialect` to `PostgresDialect`, `CrdbQuerier`/`NeonQuerier` to `PgQuerier`, `LibsqlQuerier`/`TursoQuerier` to `HranaQuerier`, `TursoLocalQuerier` to `SqliteQuerier` and `TursoDatabase` to `SqliteDatabase`, `MySql2Dialect` to `MySqlDialect`, `MongodbNativeDialect` to `MongoDialect`, moving the import to the entry that exports it.
|
|
36
36
|
- The `[idKey]?: '...'` brand, and its import, on a key not called `id`, `_id` or `uuid` and on every composite.
|
|
37
37
|
- `import 'reflect-metadata'`, and `experimentalDecorators`/`emitDecoratorMetadata` in `tsconfig.json`, comments and formatting kept.
|
|
38
38
|
|
package/dist/transform.js
CHANGED
|
@@ -81,7 +81,8 @@ const RENAMED_EXPORTS = new Map([
|
|
|
81
81
|
['QueryDialect', { to: 'SqlQueryDialect' }],
|
|
82
82
|
['EngineFeatures', { to: 'DialectFeatures' }],
|
|
83
83
|
['KnownMigratorDialect', { to: 'DialectName', from: 'uql-orm' }],
|
|
84
|
-
['D1Preparer', { to: '
|
|
84
|
+
['D1Preparer', { to: 'D1Queryable' }],
|
|
85
|
+
['D1Database', { to: 'D1Queryable', from: 'uql-orm/d1' }],
|
|
85
86
|
]);
|
|
86
87
|
/** A node's decorators, or none where it is a kind that cannot carry them. */
|
|
87
88
|
function decoratorsOf(node) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "uql-codemod",
|
|
3
3
|
"description": "Upgrade uql-orm across versions that introduce breaking changes",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.39.
|
|
5
|
+
"version": "0.39.2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=24"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
34
34
|
"url": "git+https://github.com/rogerpadilla/uql.git",
|
|
35
|
-
"directory": "packages/
|
|
35
|
+
"directory": "packages/codemod"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|
|
38
38
|
"uql",
|