prisma-extension-kysely 1.0.0 → 1.0.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 CHANGED
@@ -2,12 +2,11 @@
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/prisma-extension-kysely.svg)](https://badge.fury.io/js/prisma-extension-kysely)
4
4
  [![npm downloads](https://img.shields.io/npm/dm/prisma-extension-kysely.svg)](https://www.npmjs.com/package/prisma-extension-kysely)
5
- [![GitHub license](https://img.shields.io/github/license/oslabs-beta/prisma-extension-kysely.svg)](https://www.npmjs.com/package/prisma-extension-kysely)
5
+ [![GitHub license](https://img.shields.io/github/license/eoin-obrien/prisma-extension-kysely.svg)](https://www.npmjs.com/package/prisma-extension-kysely)
6
6
  [![Node.js CI](https://github.com/eoin-obrien/prisma-extension-kysely/actions/workflows/node.js.yml/badge.svg)](https://github.com/eoin-obrien/prisma-extension-kysely/actions/workflows/node.js.yml)
7
- [![Node.js Package (GitHub)](https://github.com/eoin-obrien/prisma-extension-kysely/actions/workflows/npm-publish-github-packages.yml/badge.svg)](https://github.com/eoin-obrien/prisma-extension-kysely/actions/workflows/npm-publish-github-packages.yml)
8
- [![Node.js Package (npm)](https://github.com/eoin-obrien/prisma-extension-kysely/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/eoin-obrien/prisma-extension-kysely/actions/workflows/npm-publish.yml)
7
+ [![Node.js Package](https://github.com/eoin-obrien/prisma-extension-kysely/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/eoin-obrien/prisma-extension-kysely/actions/workflows/npm-publish.yml)
9
8
 
10
- Writing and maintaining raw SQL queries for Prisma can be a tedious and error-prone task. The moment you need to write a query that is not supported out-of-the-box by Prisma, you lose all of that type-safety and autocompletion. This is where `prisma-extension-kysely` comes in! It allowa you to easily write raw SQL queries in a type-safe manner with [`kysely`](https://kysely.dev/) and integrate them seamlessly with Prisma.
9
+ Writing and maintaining raw SQL queries for Prisma can be a tedious and error-prone task. The moment you need to write a query that is not supported out-of-the-box by Prisma, you lose all of that type-safety and autocompletion. This is where `prisma-extension-kysely` comes in! It allows you to easily write raw SQL queries in a type-safe manner with [`kysely`](https://kysely.dev/) and integrate them seamlessly with Prisma.
11
10
 
12
11
  ## Features
13
12
 
package/dist/index.d.ts CHANGED
@@ -23,7 +23,7 @@ declare const _default: <Database>(extensionArgs: PrismaKyselyExtensionArgs<Data
23
23
  * @param query A Kysely select, insert, delete or update query builder
24
24
  * @returns The result of the query
25
25
  */
26
- $kyselyQuery<T>(query: Compilable<T>): Promise<import("kysely/dist/cjs/util/type-utils").DrainOuterGeneric<{ [K in keyof T]: T[K]; }>[]>;
26
+ $kyselyQuery<T>(query: Compilable<T>): Promise<Simplify<T>[]>;
27
27
  /**
28
28
  * Execute a Kysely query and return the number of rows affected
29
29
  * @param query A Kysely select, insert, delete or update query builder
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "prisma-extension-kysely",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "author": {
5
5
  "name": "Eoin O'Brien",
6
6
  "url": "https://eoin.ai",
7
7
  "email": "eoin@tracworx.ai"
8
8
  },
9
9
  "description": "Prisma extension for Kysely",
10
+ "license": "MIT",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/eoin-obrien/prisma-extension-kysely"
14
+ },
10
15
  "keywords": [
11
16
  "prisma",
12
17
  "@prisma/client",
@@ -27,7 +32,9 @@
27
32
  ],
28
33
  "scripts": {
29
34
  "test": "prisma generate && prisma db push && jest",
35
+ "clean": "rm -rf ./dist",
30
36
  "build": "tsc",
37
+ "prepack": "npm run clean && npm run build",
31
38
  "prepare": "husky install",
32
39
  "commit": "git-cz",
33
40
  "lint": "eslint .",
@@ -62,6 +69,6 @@
62
69
  "prisma": "latest",
63
70
  "prisma-kysely": "^1.7.1",
64
71
  "ts-jest": "^29.1.1",
65
- "typescript": "^4.9.5"
72
+ "typescript": "^5.0.0"
66
73
  }
67
74
  }