@xata.io/kysely
Advanced tools
Comparing version 0.0.0-next.v3c98c9e18d38b282eb80381e4bd7bf95da9aabdb to 0.0.0-next.v403cdd55cb26b69c074dbc07b44daa0c2a0a77b6
# @xata.io/kysely | ||
## 0.0.0-next.v3c98c9e18d38b282eb80381e4bd7bf95da9aabdb | ||
## 0.0.0-next.v403cdd55cb26b69c074dbc07b44daa0c2a0a77b6 | ||
### Major Changes | ||
- [#1473](https://github.com/xataio/client-ts/pull/1473) [`e9c165d`](https://github.com/xataio/client-ts/commit/e9c165d3765bed18b2f4d7f6d8b815fef489ee61) Thanks [@eemmiillyy](https://github.com/eemmiillyy)! - Version 1.0 | ||
- [`035990e`](https://github.com/xataio/client-ts/commit/035990efe17dee696d1cbf3614309434a55c2a16) Thanks [@SferaDev](https://github.com/SferaDev)! - Version 1.0 | ||
### Patch Changes | ||
- Updated dependencies [[`aaa332d`](https://github.com/xataio/client-ts/commit/aaa332d8c1c612dda781ac3704b9ccacb8da7670), [`e9c165d`](https://github.com/xataio/client-ts/commit/e9c165d3765bed18b2f4d7f6d8b815fef489ee61)]: | ||
- @xata.io/client@0.0.0-next.v3c98c9e18d38b282eb80381e4bd7bf95da9aabdb | ||
- Updated dependencies [[`035990e`](https://github.com/xataio/client-ts/commit/035990efe17dee696d1cbf3614309434a55c2a16)]: | ||
- @xata.io/client@0.0.0-next.v403cdd55cb26b69c074dbc07b44daa0c2a0a77b6 | ||
## 0.2.0 | ||
### Minor Changes | ||
- [#1535](https://github.com/xataio/client-ts/pull/1535) [`40f97d5`](https://github.com/xataio/client-ts/commit/40f97d53091af3d268fe40b4e027245270d42a26) Thanks [@SferaDev](https://github.com/SferaDev)! - Improve types | ||
### Patch Changes | ||
- Updated dependencies [[`cc673c9`](https://github.com/xataio/client-ts/commit/cc673c9a7885351082020e360630eab5db78c652)]: | ||
- @xata.io/client@0.30.0 | ||
## 0.1.22 | ||
### Patch Changes | ||
- [#1491](https://github.com/xataio/client-ts/pull/1491) [`f4a5ee7`](https://github.com/xataio/client-ts/commit/f4a5ee707dd04280f59919c97ff9cc0b1e9b01e6) Thanks [@SferaDev](https://github.com/SferaDev)! - [Kysely] Add consistency to client initialization | ||
## 0.1.21 | ||
### Patch Changes | ||
- Updated dependencies [[`6b754d2`](https://github.com/xataio/client-ts/commit/6b754d2f6a1f7b9378a96fe27502ff6c29ff5ed8)]: | ||
- @xata.io/client@0.29.5 | ||
## 0.1.20 | ||
@@ -15,0 +39,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { SQLPluginResult, XataRecord, XataPlugin, XataPluginOptions, EditableData } from '@xata.io/client'; | ||
import { SQLPluginResult, XataRecord, XataPlugin, XataPluginOptions } from '@xata.io/client'; | ||
import { Dialect, PostgresAdapter, Driver, QueryCompiler, Kysely, DatabaseIntrospector, DatabaseConnection, CompiledQuery, QueryResult } from 'kysely'; | ||
@@ -8,2 +8,7 @@ | ||
}; | ||
/** | ||
* The consistency level to use when reading data. | ||
* @default 'strong' | ||
*/ | ||
consistency?: 'strong' | 'eventual'; | ||
}; | ||
@@ -40,6 +45,26 @@ declare class XataDialect implements Dialect { | ||
} | ||
type Model<Schemas extends Record<string, XataRecord>> = { | ||
[Model in keyof Schemas]: EditableData<Schemas[Model]>; | ||
type XataFilePgFields = { | ||
id?: string; | ||
mediaType?: string; | ||
size?: number; | ||
name?: string; | ||
enablePublicUrl?: boolean; | ||
signedUrlTimeout?: number; | ||
storageKey?: string; | ||
uploadKey?: string; | ||
uploadUrlTimeout?: number; | ||
version?: number; | ||
}; | ||
type RowTypeFields<T> = T extends { | ||
mediaType?: string; | ||
} ? XataFilePgFields : T extends Array<{ | ||
mediaType?: string; | ||
}> ? XataFilePgFields[] : T; | ||
type RowType<O> = { | ||
[K in keyof O]: RowTypeFields<NonNullable<O[K]>>; | ||
}; | ||
type Model<Schemas extends Record<string, any>> = { | ||
[Model in keyof Schemas]: RowType<Schemas[Model]>; | ||
}; | ||
export { KyselyPlugin, type KyselyPluginResult, type Model, XataConnection, XataDialect, type XataDialectConfig, XataDriver }; |
{ | ||
"name": "@xata.io/kysely", | ||
"version": "0.0.0-next.v3c98c9e18d38b282eb80381e4bd7bf95da9aabdb", | ||
"version": "0.0.0-next.v403cdd55cb26b69c074dbc07b44daa0c2a0a77b6", | ||
"description": "", | ||
@@ -21,9 +21,9 @@ "main": "./dist/index.cjs", | ||
"dependencies": { | ||
"@xata.io/client": "0.0.0-next.v3c98c9e18d38b282eb80381e4bd7bf95da9aabdb" | ||
"@xata.io/client": "0.0.0-next.v403cdd55cb26b69c074dbc07b44daa0c2a0a77b6" | ||
}, | ||
"devDependencies": { | ||
"kysely": "^0.27.3" | ||
"kysely": "^0.27.4" | ||
}, | ||
"peerDependencies": { | ||
"kysely": "^0.26.1" | ||
"kysely": "*" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47340
11
350
+ Added@xata.io/client@0.0.0-next.v403cdd55cb26b69c074dbc07b44daa0c2a0a77b6(transitive)
+ Addedkysely@0.27.5(transitive)
- Removed@xata.io/client@0.0.0-next.v3c98c9e18d38b282eb80381e4bd7bf95da9aabdb(transitive)
- Removedkysely@0.26.3(transitive)
Updated@xata.io/client@0.0.0-next.v403cdd55cb26b69c074dbc07b44daa0c2a0a77b6