@xata.io/kysely
Advanced tools
Comparing version 0.0.0-next.va0c40fac05828c586d853d558cf07d608a16eb30 to 0.0.0-next.va121e4207b94bfe0a3c025fc00b247b923880930
# @xata.io/kysely | ||
## 0.0.0-next.va0c40fac05828c586d853d558cf07d608a16eb30 | ||
## 0.0.0-next.va121e4207b94bfe0a3c025fc00b247b923880930 | ||
### Major Changes | ||
- [`c45c431`](https://github.com/xataio/client-ts/commit/c45c43157e13a2107ad6b0cf25168edeb8a27ebf) Thanks [@SferaDev](https://github.com/SferaDev)! - Version 1.0 | ||
- [#1533](https://github.com/xataio/client-ts/pull/1533) [`035990e`](https://github.com/xataio/client-ts/commit/035990efe17dee696d1cbf3614309434a55c2a16) Thanks [@eemmiillyy](https://github.com/eemmiillyy)! - Version 1.0 | ||
### Patch Changes | ||
- Updated dependencies [[`cc673c9`](https://github.com/xataio/client-ts/commit/cc673c9a7885351082020e360630eab5db78c652), [`c45c431`](https://github.com/xataio/client-ts/commit/c45c43157e13a2107ad6b0cf25168edeb8a27ebf)]: | ||
- @xata.io/client@0.0.0-next.va0c40fac05828c586d853d558cf07d608a16eb30 | ||
- Updated dependencies [[`035990e`](https://github.com/xataio/client-ts/commit/035990efe17dee696d1cbf3614309434a55c2a16)]: | ||
- @xata.io/client@0.0.0-next.va121e4207b94bfe0a3c025fc00b247b923880930 | ||
## 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 | ||
@@ -15,0 +26,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { SQLPluginResult, XataRecord, XataPlugin, XataPluginOptions, EditableData, Identifiable } 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'; | ||
@@ -44,10 +44,26 @@ | ||
} | ||
type ExcludeFromUnionIfNotOnlyType<Union, Type> = Exclude<Union, Type> extends never ? Union : Exclude<Union, Type>; | ||
type RemoveIdentifiable<T extends Record<string, any>> = { | ||
[K in keyof T]: T[K] extends any[] ? ExcludeFromUnionIfNotOnlyType<T[K][number], Identifiable>[] : ExcludeFromUnionIfNotOnlyType<T[K], Identifiable>; | ||
type XataFilePgFields = { | ||
id?: string; | ||
mediaType?: string; | ||
size?: number; | ||
name?: string; | ||
enablePublicUrl?: boolean; | ||
signedUrlTimeout?: number; | ||
storageKey?: string; | ||
uploadKey?: string; | ||
uploadUrlTimeout?: number; | ||
version?: number; | ||
}; | ||
type Model<Schemas extends Record<string, XataRecord>> = { | ||
[Model in keyof Schemas]: RemoveIdentifiable<EditableData<Schemas[Model]>>; | ||
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.va0c40fac05828c586d853d558cf07d608a16eb30", | ||
"version": "0.0.0-next.va121e4207b94bfe0a3c025fc00b247b923880930", | ||
"description": "", | ||
@@ -21,9 +21,9 @@ "main": "./dist/index.cjs", | ||
"dependencies": { | ||
"@xata.io/client": "0.0.0-next.va0c40fac05828c586d853d558cf07d608a16eb30" | ||
"@xata.io/client": "0.0.0-next.va121e4207b94bfe0a3c025fc00b247b923880930" | ||
}, | ||
"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
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
47399
11
350
+ Added@xata.io/client@0.0.0-next.va121e4207b94bfe0a3c025fc00b247b923880930(transitive)
+ Addedkysely@0.27.5(transitive)
- Removed@xata.io/client@0.0.0-next.va0c40fac05828c586d853d558cf07d608a16eb30(transitive)
- Removedkysely@0.26.3(transitive)
Updated@xata.io/client@0.0.0-next.va121e4207b94bfe0a3c025fc00b247b923880930