Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
4f98169
feat(adapters): update adapter-fauna to work with fql v10
employee451 Jan 28, 2024
89cdb33
Merge branch 'main' into fauna-fql-v10
employee451 Jan 28, 2024
5a5775a
refactor: remove unused imports
employee451 Jan 28, 2024
4eeb73d
fix(adapters): fix vitest command call in test.sh script
employee451 Jan 29, 2024
2112a9a
feat(adapters): only wait 3 seconds for db to start in test.sh file
employee451 Jan 29, 2024
839bf30
Merge branch 'main' into fauna-fql-v10
employee451 Jan 30, 2024
8298ce8
Merge branch 'nextauthjs:main' into fauna-fql-v10
employee451 Jan 31, 2024
c84436f
Merge branch 'main' into fauna-fql-v10
employee451 Feb 1, 2024
b44cb50
feat: merge branch 'main' into fauna-fql-v10
employee451 Feb 2, 2024
88d3e31
Update package.json
balazsorban44 Feb 4, 2024
19a7bbb
Merge branch 'main' into fauna-fql-v10
balazsorban44 Feb 4, 2024
72b99fa
cleanup
balazsorban44 Feb 4, 2024
0a1d185
fix test runs
balazsorban44 Feb 4, 2024
ac11d55
update lockfile
balazsorban44 Feb 4, 2024
2ab6599
fix: make tests pass
employee451 Feb 5, 2024
88e510a
fix(adapters): use id function in adapter tests
employee451 Feb 5, 2024
93fb453
refactor: stop specifying field names
employee451 Feb 5, 2024
bd3b251
docs: remove data.id unique constraint on user collection in docs
employee451 Feb 5, 2024
0352bf0
feat: merge branch 'main' into fauna-fql-v10
employee451 Feb 5, 2024
2494e54
Merge branch 'main' into fauna-fql-v10
employee451 Feb 6, 2024
2b77f67
chore: make major version bump
employee451 Feb 6, 2024
056c6dd
Merge branch 'nextauthjs:main' into fauna-fql-v10
employee451 Feb 6, 2024
d59a64e
Merge branch 'main' into fauna-fql-v10
employee451 Feb 7, 2024
d5dce1c
Merge branch 'nextauthjs:main' into fauna-fql-v10
employee451 Feb 8, 2024
e204bec
Merge branch 'main' into fauna-fql-v10
employee451 Feb 9, 2024
c63b7be
Merge branch 'main' into fauna-fql-v10
employee451 Feb 12, 2024
9edadab
Merge branch 'main' into fauna-fql-v10
employee451 Feb 13, 2024
a6cb74b
Merge branch 'main' into fauna-fql-v10
employee451 Feb 14, 2024
142fa83
Merge branch 'main' into fauna-fql-v10
employee451 Feb 18, 2024
bb87570
Merge branch 'main' into fauna-fql-v10
employee451 Feb 19, 2024
5f49f43
Merge branch 'main' into fauna-fql-v10
employee451 Feb 22, 2024
7adc9f0
Merge branch 'main' into fauna-fql-v10
employee451 Feb 26, 2024
c8f8a86
fix: remove use of "& any"
employee451 Mar 1, 2024
37012a0
Merge branch 'main' into fauna-fql-v10
employee451 Mar 1, 2024
5c77048
Update packages/adapter-fauna/src/index.ts
ndom91 Mar 1, 2024
bcfc692
feat: add migration script to docs
employee451 Mar 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions packages/adapter-fauna/.fauna-migrate.cjs

This file was deleted.

1 change: 1 addition & 0 deletions packages/adapter-fauna/.fauna-project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
schema_directory=fauna
8 changes: 8 additions & 0 deletions packages/adapter-fauna/fauna/account.fsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
collection Account {
index byUserId {
terms [.userId]
}
index byProviderAndProviderAccountId {
terms [.provider, .providerAccountId]
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

51 changes: 0 additions & 51 deletions packages/adapter-fauna/fauna/schema.fql

This file was deleted.

9 changes: 9 additions & 0 deletions packages/adapter-fauna/fauna/session.fsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
collection Session {
unique [.sessionToken]
index bySessionToken {
terms [.sessionToken]
}
index byUserId {
terms [.userId]
}
}
6 changes: 6 additions & 0 deletions packages/adapter-fauna/fauna/user.fsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
collection User {
unique [.email]
index byEmail {
terms [.email]
}
}
5 changes: 5 additions & 0 deletions packages/adapter-fauna/fauna/verificationToken.fsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
collection VerificationToken {
index byIdentifierAndToken {
terms [.identifier, .token]
}
}
16 changes: 8 additions & 8 deletions packages/adapter-fauna/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@auth/fauna-adapter",
"version": "1.4.0",
"version": "2.0.0",
"description": "Fauna Adapter for Auth.js",
"homepage": "https://authjs.dev",
"repository": "https://github.com/nextauthjs/next-auth",
Expand All @@ -10,7 +10,8 @@
"author": "Bhanu Teja P",
"contributors": [
"Nico Domino <yo@ndo.dev>",
"Balázs Orbán <info@balazsorban.com>"
"Balázs Orbán <info@balazsorban.com>",
"Aske Hippe Brun <mail@askehippebrun.com>"
],
"type": "module",
"types": "./index.d.ts",
Expand All @@ -37,20 +38,19 @@
"access": "public"
},
"scripts": {
"fauna": "fauna",
"build": "tsc",
"dev": "tsc -w",
"clean": "rm -rf dist",
"migrate": "fauna-schema-migrate generate",
"test": "./test/test.sh"
},
"dependencies": {
"@auth/core": "workspace:*"
},
"peerDependencies": {
"faunadb": "^4.3.0"
"fauna": "^1.3.1"
},
"devDependencies": {
"@fauna-labs/fauna-schema-migrate": "^2.1.3",
"faunadb": "^4.3.0"
"fauna": "^1.3.1",
"fauna-shell": "1.2.1"
}
}
}
Loading