@xata.io/kysely
Advanced tools
Comparing version 0.0.0-alpha.vbbc5dc5db6c435b1c47b97a667f5d8c971df8d10 to 0.0.0-alpha.vbbeb4f33b3afb2cecc2bee476b1c822920f48d82
# @xata.io/kysely | ||
## 0.0.0-alpha.vbbc5dc5db6c435b1c47b97a667f5d8c971df8d10 | ||
## 0.0.0-alpha.vbbeb4f33b3afb2cecc2bee476b1c822920f48d82 | ||
### Major Changes | ||
- [#1477](https://github.com/xataio/client-ts/pull/1477) [`e9c165d`](https://github.com/xataio/client-ts/commit/e9c165d3765bed18b2f4d7f6d8b815fef489ee61) Thanks [@SferaDev](https://github.com/SferaDev)! - Version 1.0 | ||
### Patch Changes | ||
@@ -9,5 +13,13 @@ | ||
- Updated dependencies []: | ||
- @xata.io/client@0.0.0-alpha.vbbc5dc5db6c435b1c47b97a667f5d8c971df8d10 | ||
## 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 | ||
@@ -14,0 +26,0 @@ |
@@ -1,2 +0,1 @@ | ||
import { SQLPluginResult, XataRecord, XataPlugin, XataPluginOptions, EditableData, Identifiable } from '@xata.io/client'; | ||
import { Dialect, PostgresAdapter, Driver, QueryCompiler, Kysely, DatabaseIntrospector, DatabaseConnection, CompiledQuery, QueryResult } from 'kysely'; | ||
@@ -6,3 +5,3 @@ | ||
xata: { | ||
sql: SQLPluginResult; | ||
sql: any; | ||
}; | ||
@@ -41,14 +40,6 @@ /** | ||
type KyselyPluginResult<Schemas extends Record<string, XataRecord>> = Kysely<Model<Schemas>>; | ||
declare class KyselyPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin { | ||
build(pluginOptions: XataPluginOptions): KyselyPluginResult<Schemas>; | ||
} | ||
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 Model<Schemas extends Record<string, any>> = { | ||
[Model in keyof Schemas]: Schemas[Model]; | ||
}; | ||
type Model<Schemas extends Record<string, XataRecord>> = { | ||
[Model in keyof Schemas]: RemoveIdentifiable<EditableData<Schemas[Model]>>; | ||
}; | ||
export { KyselyPlugin, type KyselyPluginResult, type Model, XataConnection, XataDialect, type XataDialectConfig, XataDriver }; | ||
export { type Model, XataConnection, XataDialect, type XataDialectConfig, XataDriver }; |
{ | ||
"name": "@xata.io/kysely", | ||
"version": "0.0.0-alpha.vbbc5dc5db6c435b1c47b97a667f5d8c971df8d10", | ||
"version": "0.0.0-alpha.vbbeb4f33b3afb2cecc2bee476b1c822920f48d82", | ||
"description": "", | ||
@@ -20,10 +20,8 @@ "main": "./dist/index.cjs", | ||
}, | ||
"dependencies": { | ||
"@xata.io/client": "0.0.0-alpha.vbbc5dc5db6c435b1c47b97a667f5d8c971df8d10" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"kysely": "^0.27.3" | ||
"kysely": "^0.27.4" | ||
}, | ||
"peerDependencies": { | ||
"kysely": "^0.26.1" | ||
"kysely": "*" | ||
}, | ||
@@ -30,0 +28,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
42683
1
11
314
+ Addedkysely@0.27.5(transitive)
- Removed@xata.io/client@0.0.0-alpha.vbbc5dc5db6c435b1c47b97a667f5d8c971df8d10
- Removed@xata.io/client@0.0.0-alpha.vbbc5dc5db6c435b1c47b97a667f5d8c971df8d10(transitive)
- Removedkysely@0.26.3(transitive)
- Removedtypescript@5.7.2(transitive)