mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
chore: rename @next-auth/* packages to @auth/*
This commit is contained in:
@@ -41,8 +41,8 @@
|
||||
"test": "./tests/test.sh"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"@types/jest": "^26.0.24",
|
||||
"@types/jsonwebtoken": "^8.5.5",
|
||||
"@types/node-fetch": "^2.5.11",
|
||||
@@ -55,6 +55,6 @@
|
||||
"jsonwebtoken": "^8.5.1"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { DgraphAdapter, format } from "../src"
|
||||
import { client as dgraphClient } from "../src/lib/client"
|
||||
import * as fragments from "../src/lib/graphql/fragments"
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
import fs from "fs"
|
||||
import path from "path"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
"@auth/core": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"@types/better-sqlite3": "^7.6.4",
|
||||
"@types/uuid": "^8.3.3",
|
||||
"better-sqlite3": "^8.4.0",
|
||||
@@ -60,6 +60,6 @@
|
||||
"postgres": "^3.3.4"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -49,12 +49,12 @@
|
||||
"devDependencies": {
|
||||
"@aws-sdk/client-dynamodb": "^3.36.1",
|
||||
"@aws-sdk/lib-dynamodb": "^3.36.1",
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"@shelf/jest-dynamodb": "^2.1.0",
|
||||
"jest": "^27.4.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@auth/core": "workspace:*"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { DynamoDB } from "@aws-sdk/client-dynamodb"
|
||||
import { DynamoDBDocument } from "@aws-sdk/lib-dynamodb"
|
||||
import { DynamoDBAdapter } from "../src"
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
import { format } from "../src/"
|
||||
const config = {
|
||||
endpoint: "http://127.0.0.1:8000",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -51,12 +51,12 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@fauna-labs/fauna-schema-migrate": "^2.1.3",
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"faunadb": "^4.3.0",
|
||||
"jest": "^27.4.3"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { collections, FaunaAdapter, format, indexes, query } from "../src"
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
import { Client as FaunaClient, Get, Match, Ref } from "faunadb"
|
||||
|
||||
const client = new FaunaClient({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -48,10 +48,10 @@
|
||||
"firebase-admin": "^11.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"firebase-admin": "^11.4.1",
|
||||
"firebase-tools": "^11.16.1",
|
||||
"jest": "^29.3.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
|
||||
import { FirestoreAdapter, type FirebaseAdapterConfig } from "../src"
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import config from "@next-auth/adapter-test/jest/jest-preset.js"
|
||||
import config from "@auth/adapter-test/jest/jest-preset.js"
|
||||
|
||||
//TODO: update rest of the packages to Jest 29+
|
||||
const {testURL, ...rest} = config
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
"kysely": "^0.26.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"@types/better-sqlite3": "^7.6.3",
|
||||
"@types/pg": "^8.6.5",
|
||||
"better-sqlite3": "^8.2.0",
|
||||
@@ -51,6 +51,6 @@
|
||||
"pg": "^8.10.0"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
import { Pool } from "pg"
|
||||
import {
|
||||
Kysely,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -46,14 +46,14 @@
|
||||
"devDependencies": {
|
||||
"@mikro-orm/core": "^5",
|
||||
"@mikro-orm/sqlite": "^5",
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"jest": "^29"
|
||||
},
|
||||
"dependencies": {
|
||||
"@auth/core": "workspace:*"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
Options,
|
||||
types,
|
||||
} from "@mikro-orm/core"
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
|
||||
globalThis.crypto ??= require("node:crypto").webcrypto
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -45,12 +45,12 @@
|
||||
"mongodb": "^5 || ^4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"jest": "^27.4.3",
|
||||
"mongodb": "^5.1.0"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
import { defaultCollections, format, MongoDBAdapter, _id } from "../src"
|
||||
import { MongoClient } from "mongodb"
|
||||
const name = "custom-test"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
import { defaultCollections, format, MongoDBAdapter, _id } from "../src"
|
||||
import { MongoClient } from "mongodb"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
"neo4j-driver": "^4.0.0 || ^5.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"@types/uuid": "^8.3.3",
|
||||
"jest": "^27.4.3",
|
||||
"neo4j-driver": "^5.7.0"
|
||||
@@ -54,6 +54,6 @@
|
||||
"@auth/core": "workspace:*"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as neo4j from "neo4j-driver"
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
import statements from "./resources/statements"
|
||||
|
||||
import { Neo4jAdapter, format } from "../src"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
"@auth/core": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"@types/pouchdb": "^6.4.0",
|
||||
"jest": "^27.4.3",
|
||||
"pouchdb": "^8.0.1",
|
||||
@@ -54,6 +54,6 @@
|
||||
"pouchdb-find": "^8.0.1"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
import {
|
||||
createIndexes,
|
||||
PouchDBAdapter,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -54,14 +54,14 @@
|
||||
"@prisma/client": ">=2.26.0 || >=3 || >=4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"@prisma/client": "^4.15.0",
|
||||
"jest": "^27.4.3",
|
||||
"mongodb": "^4.4.0",
|
||||
"prisma": "^4.15.0"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { randomUUID, runBasicTests } from "@next-auth/adapter-test"
|
||||
import { randomUUID, runBasicTests } from "@auth/adapter-test"
|
||||
import { PrismaClient } from "@prisma/client"
|
||||
import { PrismaAdapter } from "../src"
|
||||
import { ObjectId } from "mongodb"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -43,12 +43,12 @@
|
||||
"sequelize": "^6.6.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"jest": "^27.4.3",
|
||||
"sequelize": "^6.6.5"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Sequelize, DataTypes } from "sequelize"
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
import SequelizeAdapter, { models } from "../src"
|
||||
|
||||
const sequelize = new Sequelize({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -42,12 +42,12 @@
|
||||
"@supabase/supabase-js": "^2.0.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:^0.0.0",
|
||||
"@next-auth/tsconfig": "workspace:^0.0.0",
|
||||
"@auth/adapter-test": "workspace:^0.0.0",
|
||||
"@auth/tsconfig": "workspace:^0.0.0",
|
||||
"@supabase/supabase-js": "^2.0.5",
|
||||
"jest": "^27.4.3"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
import { format, SupabaseAdapter } from "../src"
|
||||
import { createClient } from "@supabase/supabase-js"
|
||||
import type {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@next-auth/adapter-test",
|
||||
"name": "@auth/adapter-test",
|
||||
"version": "0.0.0",
|
||||
"repository": "https://github.com/nextauthjs/next-auth.git",
|
||||
"contributors": [
|
||||
|
||||
@@ -50,8 +50,8 @@
|
||||
"@auth/core": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"jest": "^27.4.3",
|
||||
"mssql": "^7.2.1",
|
||||
"mysql": "^2.18.1",
|
||||
@@ -83,6 +83,6 @@
|
||||
}
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DataSource } from "typeorm"
|
||||
import type { DataSourceOptions } from "typeorm"
|
||||
import type { TestOptions } from "@next-auth/adapter-test"
|
||||
import type { TestOptions } from "@auth/adapter-test"
|
||||
import * as defaultEntities from "../src/entities"
|
||||
import { parseDataSourceConfig } from "../src/utils"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
"@upstash/redis": "^1.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:*",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/adapter-test": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"@types/uuid": "^8.3.3",
|
||||
"@upstash/redis": "^1.0.1",
|
||||
"dotenv": "^10.0.0",
|
||||
@@ -54,6 +54,6 @@
|
||||
"next-auth": "workspace:*"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import "isomorphic-fetch"
|
||||
import { Redis } from "@upstash/redis"
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
import { hydrateDates, UpstashRedisAdapter } from "../src"
|
||||
import "dotenv/config"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -43,13 +43,13 @@
|
||||
"@xata.io/client": ">=0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/adapter-test": "workspace:^0.0.0",
|
||||
"@next-auth/tsconfig": "workspace:^0.0.0",
|
||||
"@auth/adapter-test": "workspace:^0.0.0",
|
||||
"@auth/tsconfig": "workspace:^0.0.0",
|
||||
"jest": "^27.4.3",
|
||||
"@xata.io/client": "^0.13.0",
|
||||
"typescript": "^4.7.4"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "@next-auth/adapter-test/jest"
|
||||
"preset": "@auth/adapter-test/jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import "isomorphic-fetch"
|
||||
import { runBasicTests } from "@next-auth/adapter-test"
|
||||
import { runBasicTests } from "@auth/adapter-test"
|
||||
import "dotenv/config"
|
||||
import { XataClient } from "../src/xata"
|
||||
import { XataAdapter } from "../src"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
"providers": "node scripts/generate-providers"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"@types/cookie": "0.5.1",
|
||||
"@types/node": "18.11.10",
|
||||
"@types/nodemailer": "6.4.6",
|
||||
@@ -93,4 +93,4 @@
|
||||
"postcss": "8.4.19",
|
||||
"postcss-nested": "6.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
"isolatedModules": true,
|
||||
"jsx": "react-jsx",
|
||||
"jsxImportSource": "preact",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"target": "ES2020",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
@@ -18,6 +22,13 @@
|
||||
"declarationMap": true,
|
||||
"declaration": true
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["*.js", "*.d.ts", "lib", "providers"]
|
||||
}
|
||||
"include": [
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"*.js",
|
||||
"*.d.ts",
|
||||
"lib",
|
||||
"providers"
|
||||
]
|
||||
}
|
||||
@@ -95,7 +95,7 @@
|
||||
"@babel/preset-react": "^7.17.12",
|
||||
"@babel/preset-typescript": "^7.17.12",
|
||||
"@edge-runtime/jest-environment": "1.1.0-beta.35",
|
||||
"@next-auth/tsconfig": "workspace:*",
|
||||
"@auth/tsconfig": "workspace:*",
|
||||
"@swc/core": "^1.2.198",
|
||||
"@swc/jest": "^0.2.21",
|
||||
"@testing-library/dom": "^8.13.0",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@next-auth/tsconfig/tsconfig.base.json",
|
||||
"extends": "@auth/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declarationMap": true,
|
||||
"emitDeclarationOnly": true,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@next-auth/tsconfig",
|
||||
"name": "@auth/tsconfig",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"files": [
|
||||
|
||||
136
pnpm-lock.yaml
generated
136
pnpm-lock.yaml
generated
@@ -215,9 +215,9 @@ importers:
|
||||
|
||||
packages/adapter-dgraph:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
'@types/jest': ^26.0.24
|
||||
'@types/jsonwebtoken': ^8.5.5
|
||||
'@types/node-fetch': ^2.5.11
|
||||
@@ -229,8 +229,8 @@ importers:
|
||||
'@auth/core': link:../core
|
||||
jsonwebtoken: 8.5.1
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@types/jest': 26.0.24
|
||||
'@types/jsonwebtoken': 8.5.8
|
||||
'@types/node-fetch': 2.6.2
|
||||
@@ -240,9 +240,9 @@ importers:
|
||||
|
||||
packages/adapter-drizzle:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
'@types/better-sqlite3': ^7.6.4
|
||||
'@types/uuid': ^8.3.3
|
||||
better-sqlite3: ^8.4.0
|
||||
@@ -254,8 +254,8 @@ importers:
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@types/better-sqlite3': 7.6.4
|
||||
'@types/uuid': 8.3.4
|
||||
better-sqlite3: 8.5.0
|
||||
@@ -267,62 +267,62 @@ importers:
|
||||
|
||||
packages/adapter-dynamodb:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
'@aws-sdk/client-dynamodb': ^3.36.1
|
||||
'@aws-sdk/lib-dynamodb': ^3.36.1
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@shelf/jest-dynamodb': ^2.1.0
|
||||
jest: ^27.4.3
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@aws-sdk/client-dynamodb': 3.113.0
|
||||
'@aws-sdk/lib-dynamodb': 3.113.0_eb2z3hhrjl3qvyc6ecmpo2nhva
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@shelf/jest-dynamodb': 2.2.4_qsruu6yolbxs4rh6ixjhkibvwu
|
||||
jest: 27.5.1
|
||||
|
||||
packages/adapter-fauna:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
'@fauna-labs/fauna-schema-migrate': ^2.1.3
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
faunadb: ^4.3.0
|
||||
jest: ^27.4.3
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@fauna-labs/fauna-schema-migrate': 2.2.1_faunadb@4.6.0
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
faunadb: 4.6.0
|
||||
jest: 27.5.1
|
||||
|
||||
packages/adapter-firebase:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
firebase-admin: ^11.4.1
|
||||
firebase-tools: ^11.16.1
|
||||
jest: ^29.3.1
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
firebase-admin: 11.4.1
|
||||
firebase-tools: 11.16.1
|
||||
jest: 29.3.1
|
||||
|
||||
packages/adapter-kysely:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
'@types/better-sqlite3': ^7.6.3
|
||||
'@types/pg': ^8.6.5
|
||||
better-sqlite3: ^8.2.0
|
||||
@@ -333,8 +333,8 @@ importers:
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@types/better-sqlite3': 7.6.4
|
||||
'@types/pg': 8.10.2
|
||||
better-sqlite3: 8.5.0
|
||||
@@ -345,58 +345,58 @@ importers:
|
||||
|
||||
packages/adapter-mikro-orm:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
'@mikro-orm/core': ^5
|
||||
'@mikro-orm/sqlite': ^5
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
jest: ^29
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@mikro-orm/core': 5.2.1_@mikro-orm+sqlite@5.2.1
|
||||
'@mikro-orm/sqlite': 5.2.1_@mikro-orm+core@5.2.1
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
jest: 29.3.0
|
||||
|
||||
packages/adapter-mongodb:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
jest: ^27.4.3
|
||||
mongodb: ^5.1.0
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
jest: 27.5.1
|
||||
mongodb: 5.1.0
|
||||
|
||||
packages/adapter-neo4j:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
'@types/uuid': ^8.3.3
|
||||
jest: ^27.4.3
|
||||
neo4j-driver: ^5.7.0
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@types/uuid': 8.3.4
|
||||
jest: 27.5.1
|
||||
neo4j-driver: 5.7.0
|
||||
|
||||
packages/adapter-pouchdb:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
'@types/pouchdb': ^6.4.0
|
||||
jest: ^27.4.3
|
||||
pouchdb: ^8.0.1
|
||||
@@ -405,8 +405,8 @@ importers:
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@types/pouchdb': 6.4.0
|
||||
jest: 27.5.1
|
||||
pouchdb: 8.0.1
|
||||
@@ -415,9 +415,9 @@ importers:
|
||||
|
||||
packages/adapter-prisma:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
'@prisma/client': ^4.15.0
|
||||
jest: ^27.4.3
|
||||
mongodb: ^4.4.0
|
||||
@@ -425,8 +425,8 @@ importers:
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@prisma/client': 4.15.0_prisma@4.15.0
|
||||
jest: 27.5.1
|
||||
mongodb: 4.7.0
|
||||
@@ -434,31 +434,31 @@ importers:
|
||||
|
||||
packages/adapter-sequelize:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
jest: ^27.4.3
|
||||
sequelize: ^6.6.5
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
jest: 27.5.1
|
||||
sequelize: 6.21.0
|
||||
|
||||
packages/adapter-supabase:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:^0.0.0
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:^0.0.0
|
||||
'@next-auth/tsconfig': workspace:^0.0.0
|
||||
'@auth/tsconfig': workspace:^0.0.0
|
||||
'@supabase/supabase-js': ^2.0.5
|
||||
jest: ^27.4.3
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@supabase/supabase-js': 2.0.5
|
||||
jest: 27.5.1
|
||||
|
||||
@@ -488,9 +488,9 @@ importers:
|
||||
|
||||
packages/adapter-typeorm:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
jest: ^27.4.3
|
||||
mssql: ^7.2.1
|
||||
mysql: ^2.18.1
|
||||
@@ -502,8 +502,8 @@ importers:
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
jest: 27.5.1
|
||||
mssql: 7.3.5
|
||||
mysql: 2.18.1
|
||||
@@ -515,9 +515,9 @@ importers:
|
||||
|
||||
packages/adapter-upstash-redis:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:*
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:*
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
'@types/uuid': ^8.3.3
|
||||
'@upstash/redis': ^1.0.1
|
||||
dotenv: ^10.0.0
|
||||
@@ -527,8 +527,8 @@ importers:
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@types/uuid': 8.3.4
|
||||
'@upstash/redis': 1.7.0
|
||||
dotenv: 10.0.0
|
||||
@@ -538,24 +538,24 @@ importers:
|
||||
|
||||
packages/adapter-xata:
|
||||
specifiers:
|
||||
'@auth/adapter-test': workspace:^0.0.0
|
||||
'@auth/core': workspace:*
|
||||
'@next-auth/adapter-test': workspace:^0.0.0
|
||||
'@next-auth/tsconfig': workspace:^0.0.0
|
||||
'@auth/tsconfig': workspace:^0.0.0
|
||||
'@xata.io/client': ^0.13.0
|
||||
jest: ^27.4.3
|
||||
typescript: ^4.7.4
|
||||
dependencies:
|
||||
'@auth/core': link:../core
|
||||
devDependencies:
|
||||
'@next-auth/adapter-test': link:../adapter-test
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/adapter-test': link:../adapter-test
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@xata.io/client': 0.13.4_typescript@4.7.4
|
||||
jest: 27.5.1
|
||||
typescript: 4.7.4
|
||||
|
||||
packages/core:
|
||||
specifiers:
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@auth/tsconfig': workspace:*
|
||||
'@panva/hkdf': ^1.0.4
|
||||
'@types/cookie': 0.5.1
|
||||
'@types/node': 18.11.10
|
||||
@@ -577,7 +577,7 @@ importers:
|
||||
preact: 10.11.3
|
||||
preact-render-to-string: 5.2.3_preact@10.11.3
|
||||
devDependencies:
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@types/cookie': 0.5.1
|
||||
'@types/node': 18.11.10
|
||||
'@types/nodemailer': 6.4.6
|
||||
@@ -637,6 +637,7 @@ importers:
|
||||
|
||||
packages/next-auth:
|
||||
specifiers:
|
||||
'@auth/tsconfig': workspace:*
|
||||
'@babel/cli': ^7.17.10
|
||||
'@babel/core': ^7.18.2
|
||||
'@babel/plugin-proposal-optional-catch-binding': ^7.16.7
|
||||
@@ -646,7 +647,6 @@ importers:
|
||||
'@babel/preset-typescript': ^7.17.12
|
||||
'@babel/runtime': ^7.20.13
|
||||
'@edge-runtime/jest-environment': 1.1.0-beta.35
|
||||
'@next-auth/tsconfig': workspace:*
|
||||
'@panva/hkdf': ^1.0.2
|
||||
'@swc/core': ^1.2.198
|
||||
'@swc/jest': ^0.2.21
|
||||
@@ -695,6 +695,7 @@ importers:
|
||||
preact-render-to-string: 5.2.0_preact@10.8.2
|
||||
uuid: 8.3.2
|
||||
devDependencies:
|
||||
'@auth/tsconfig': link:../tsconfig
|
||||
'@babel/cli': 7.17.10_@babel+core@7.18.5
|
||||
'@babel/core': 7.18.5
|
||||
'@babel/plugin-proposal-optional-catch-binding': 7.16.7_@babel+core@7.18.5
|
||||
@@ -703,7 +704,6 @@ importers:
|
||||
'@babel/preset-react': 7.17.12_@babel+core@7.18.5
|
||||
'@babel/preset-typescript': 7.17.12_@babel+core@7.18.5
|
||||
'@edge-runtime/jest-environment': 1.1.0-beta.35
|
||||
'@next-auth/tsconfig': link:../tsconfig
|
||||
'@swc/core': 1.2.204
|
||||
'@swc/jest': 0.2.21_@swc+core@1.2.204
|
||||
'@testing-library/dom': 8.14.0
|
||||
|
||||
Reference in New Issue
Block a user