Skip to content

Commit 5e7ad48

Browse files
update start-basic-auth project to prisma 7 (#5911)
* update solid-start auth example to prisma 7 * fix prisma example * update solid-start e2e * update e2e/example * ci: apply automated fixes * lock --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent f139f1e commit 5e7ad48

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+11269
-119
lines changed
File renamed without changes.

e2e/react-start/basic-auth/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
"test:e2e": "exit 0; rm -rf port*.txt; pnpm run prisma-generate && playwright test --project=chromium"
1414
},
1515
"dependencies": {
16-
"@prisma/client": "5.22.0",
16+
"@libsql/client": "^0.15.15",
17+
"@prisma/adapter-libsql": "^7.0.0",
18+
"@prisma/client": "^7.0.0",
1719
"@tanstack/react-router": "workspace:^",
1820
"@tanstack/react-router-devtools": "workspace:^",
1921
"@tanstack/react-start": "workspace:^",
20-
"prisma": "^5.22.0",
2122
"react": "^19.0.0",
2223
"react-dom": "^19.0.0",
2324
"redaxios": "^0.5.1",
@@ -32,7 +33,9 @@
3233
"@types/react": "^19.0.8",
3334
"@types/react-dom": "^19.0.3",
3435
"@vitejs/plugin-react": "^4.3.4",
36+
"dotenv": "^17.2.3",
3537
"postcss": "^8.5.1",
38+
"prisma": "^7.0.0",
3639
"tailwindcss": "^4.1.15",
3740
"typescript": "^5.7.2",
3841
"vite-tsconfig-paths": "^5.1.4"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import 'dotenv/config'
2+
import { defineConfig, env } from 'prisma/config'
3+
4+
export default defineConfig({
5+
schema: './prisma/schema.prisma',
6+
migrations: {
7+
path: './prisma/migrations',
8+
},
9+
datasource: {
10+
url: env('DATABASE_URL'),
11+
},
12+
})

e2e/react-start/basic-auth/prisma/schema.prisma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
// learn more about it in the docs: https://pris.ly/d/prisma-schema
33

44
generator client {
5-
provider = "prisma-client-js"
5+
provider = "prisma-client"
6+
output = "../src/prisma-generated"
67
}
78

89
datasource db {
910
provider = "sqlite"
10-
url = env("DATABASE_URL")
1111
}
1212

1313
model User {
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
2+
/* eslint-disable */
3+
// biome-ignore-all lint: generated file
4+
// @ts-nocheck
5+
/*
6+
* This file should be your main import to use Prisma-related types and utilities in a browser.
7+
* Use it to get access to models, enums, and input types.
8+
*
9+
* This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
10+
* See `client.ts` for the standard, server-side entry point.
11+
*
12+
* 🟢 You can import this file directly.
13+
*/
14+
15+
import * as Prisma from './internal/prismaNamespaceBrowser'
16+
export { Prisma }
17+
export * as $Enums from './enums'
18+
export * from './enums'
19+
/**
20+
* Model User
21+
*
22+
*/
23+
export type User = Prisma.UserModel
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
2+
/* eslint-disable */
3+
// biome-ignore-all lint: generated file
4+
// @ts-nocheck
5+
/*
6+
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
7+
* If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
8+
*
9+
* 🟢 You can import this file directly.
10+
*/
11+
12+
import * as process from 'node:process'
13+
import * as path from 'node:path'
14+
import { fileURLToPath } from 'node:url'
15+
globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
16+
17+
import * as runtime from '@prisma/client/runtime/client'
18+
import * as $Enums from './enums'
19+
import * as $Class from './internal/class'
20+
import * as Prisma from './internal/prismaNamespace'
21+
22+
export * as $Enums from './enums'
23+
export * from './enums'
24+
/**
25+
* ## Prisma Client
26+
*
27+
* Type-safe database client for TypeScript
28+
* @example
29+
* ```
30+
* const prisma = new PrismaClient()
31+
* // Fetch zero or more Users
32+
* const users = await prisma.user.findMany()
33+
* ```
34+
*
35+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
36+
*/
37+
export const PrismaClient = $Class.getPrismaClientClass()
38+
export type PrismaClient<
39+
LogOpts extends Prisma.LogLevel = never,
40+
OmitOpts extends
41+
Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'],
42+
ExtArgs extends
43+
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
44+
> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
45+
export { Prisma }
46+
47+
/**
48+
* Model User
49+
*
50+
*/
51+
export type User = Prisma.UserModel
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
2+
/* eslint-disable */
3+
// biome-ignore-all lint: generated file
4+
// @ts-nocheck
5+
/*
6+
* This file exports various common sort, input & filter types that are not directly linked to a particular model.
7+
*
8+
* 🟢 You can import this file directly.
9+
*/
10+
11+
import type * as runtime from '@prisma/client/runtime/client'
12+
import * as $Enums from './enums'
13+
import type * as Prisma from './internal/prismaNamespace'
14+
15+
export type StringFilter<$PrismaModel = never> = {
16+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
17+
in?: string[]
18+
notIn?: string[]
19+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
20+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
21+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
22+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
23+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
24+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
25+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
26+
not?: Prisma.NestedStringFilter<$PrismaModel> | string
27+
}
28+
29+
export type StringWithAggregatesFilter<$PrismaModel = never> = {
30+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
31+
in?: string[]
32+
notIn?: string[]
33+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
34+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
35+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
36+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
37+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
38+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
39+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
40+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
41+
_count?: Prisma.NestedIntFilter<$PrismaModel>
42+
_min?: Prisma.NestedStringFilter<$PrismaModel>
43+
_max?: Prisma.NestedStringFilter<$PrismaModel>
44+
}
45+
46+
export type NestedStringFilter<$PrismaModel = never> = {
47+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
48+
in?: string[]
49+
notIn?: string[]
50+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
51+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
52+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
53+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
54+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
55+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
56+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
57+
not?: Prisma.NestedStringFilter<$PrismaModel> | string
58+
}
59+
60+
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
61+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
62+
in?: string[]
63+
notIn?: string[]
64+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
65+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
66+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
67+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
68+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
69+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
70+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
71+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
72+
_count?: Prisma.NestedIntFilter<$PrismaModel>
73+
_min?: Prisma.NestedStringFilter<$PrismaModel>
74+
_max?: Prisma.NestedStringFilter<$PrismaModel>
75+
}
76+
77+
export type NestedIntFilter<$PrismaModel = never> = {
78+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
79+
in?: number[]
80+
notIn?: number[]
81+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
82+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
83+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
84+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
85+
not?: Prisma.NestedIntFilter<$PrismaModel> | number
86+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
2+
/* eslint-disable */
3+
// biome-ignore-all lint: generated file
4+
// @ts-nocheck
5+
/*
6+
* This file exports all enum related types from the schema.
7+
*
8+
* 🟢 You can import this file directly.
9+
*/
10+
11+
// This file is empty because there are no enums in the schema.
12+
export {}

0 commit comments

Comments
 (0)