* refactor(auth): replace Supabase `User` type with new `JWTUserData` type across the codebase - Replaced usage of Supabase's `User` type with the newly defined `JWTUserData` type for better type mapping and alignment with JWT claims. - Refactored session-related components and hooks (`useUser`, `requireUser`) to use the updated user structure. - Updated Supabase client keys to use `publicKey` instead of `anonKey`. - Adjusted multi-factor authentication logic and components to use `aal` and additional properties. - Applied consistent naming for Supabase secret key functions. - Incremented version to 2.12.0. - Introduced a new `deprecated` property in the `EnvVariableModel` type to handle deprecated environment variables. - Updated the `EnvList` component to display a warning badge for deprecated variables, including reason and alternative suggestions. - Enhanced filtering logic to allow users to toggle the visibility of deprecated variables. - Added new deprecated variables for Supabase keys with appropriate reasons and alternatives. - Added support for filtering deprecated environment variables in the `FilterSwitcher` component. - Updated the `Summary` component to display a badge for the count of deprecated variables. - Introduced a button to filter and display only deprecated variables. - Adjusted filtering logic to include deprecated variables in the overall state management. add BILLING_MODE configuration to environment variables - Introduced a new environment variable `BILLING_MODE` to configure billing options for the application. - The variable supports two values: `subscription` and `one-time`. - Marked as deprecated with a reason indicating that this configuration is no longer required, as billing mode is now automatically determined. - Added validation logic for the new variable to ensure correct value parsing.
45 lines
1.2 KiB
JSON
45 lines
1.2 KiB
JSON
{
|
|
"name": "@kit/supabase",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"scripts": {
|
|
"clean": "git clean -xdf .turbo node_modules",
|
|
"format": "prettier --check \"**/*.{ts,tsx}\"",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"prettier": "@kit/prettier-config",
|
|
"exports": {
|
|
"./server-client": "./src/clients/server-client.ts",
|
|
"./server-admin-client": "./src/clients/server-admin-client.ts",
|
|
"./middleware-client": "./src/clients/middleware-client.ts",
|
|
"./browser-client": "./src/clients/browser-client.ts",
|
|
"./check-requires-mfa": "./src/check-requires-mfa.ts",
|
|
"./require-user": "./src/require-user.ts",
|
|
"./hooks/*": "./src/hooks/*.ts",
|
|
"./database": "./src/database.types.ts",
|
|
"./auth": "./src/auth.ts",
|
|
"./types": "./src/types.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@kit/eslint-config": "workspace:*",
|
|
"@kit/prettier-config": "workspace:*",
|
|
"@kit/tsconfig": "workspace:*",
|
|
"@supabase/ssr": "^0.6.1",
|
|
"@supabase/supabase-js": "2.51.0",
|
|
"@tanstack/react-query": "5.83.0",
|
|
"@types/react": "19.1.8",
|
|
"next": "15.4.1",
|
|
"react": "19.1.0",
|
|
"server-only": "^0.0.1",
|
|
"zod": "^3.25.74"
|
|
},
|
|
"typesVersions": {
|
|
"*": {
|
|
"*": [
|
|
"src/*"
|
|
]
|
|
}
|
|
}
|
|
}
|