Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add orchid-orm adapter #10388

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/pr-labeler.yml
Expand Up @@ -17,6 +17,7 @@ mikro-orm: ["packages/adapter-mikro-orm/**/*"]
mongodb: ["packages/adapter-mongodb/**/*"]
neo4j: ["packages/adapter-neo4j/**/*"]
next-auth: ["packages/next-auth/**/*"]
orchid-orm: ["packages/adapter-orchid-orm/**/*"]
pg: ["packages/adapter-pg/**/*"]
playgrounds: ["apps/playgrounds/**/*"]
pouchdb: ["packages/adapter-pouchdb/**/*"]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Expand Up @@ -25,6 +25,7 @@ on:
- "@auth/mikro-orm-adapter"
- "@auth/mongodb-adapter"
- "@auth/neo4j-adapter"
- "@auth/orchid-orm-adapter"
- "@auth/pouchdb-adapter"
- "@auth/prisma-adapter"
- "@auth/sequelize-adapter"
Expand Down
1 change: 1 addition & 0 deletions docs/scripts/generate-manifest.mjs
Expand Up @@ -87,6 +87,7 @@ const content = JSON.stringify(
{ id: "mikro-orm", name: "Mikro ORM", img: "mikro-orm.png" },
{ id: "mongodb", name: "MongoDB" },
{ id: "neo4j", name: "Neo4j" },
{ id: "orchid-orm", name: "OrchidORM" },
{ id: "pg", name: "pg", img: "pg.png" },
{ id: "pouchdb", name: "PouchDB" },
{ id: "prisma", name: "Prisma" },
Expand Down
11 changes: 11 additions & 0 deletions packages/adapter-orchid-orm/README.md
@@ -0,0 +1,11 @@
<div align="center">
<br/>
<a href="https://authjs.dev" target="_blank">
<img height="64px" src="https://authjs.dev/img/logo/logo-sm.png" />
</a>
<h3 align="center"><b><a href="https://orchid-orm.netlify.app/">Orchid ORM</a> Adapter</b> - NextAuth.js / Auth.js</h3>
</div>

---

Check out the documentation at [authjs.dev](https://authjs.dev/reference/adapter/orchid-orm).
47 changes: 47 additions & 0 deletions packages/adapter-orchid-orm/package.json
@@ -0,0 +1,47 @@
{
"name": "@auth/orchid-orm-adapter",
"version": "0.0.0",
"description": "Orchid ORM adapter for Auth.js",
"homepage": "https://authjs.dev/reference/adapter/orchid-orm",
"repository": "https://github.com/nextauthjs/next-auth",
"bugs": {
"url": "https://github.com/nextauthjs/next-auth/issues"
},
"author": "Roman Kushyn (https://github.com/romeerez)",
"license": "ISC",
"keywords": [
"authjs",
"next-auth",
"next.js",
"oauth",
"orchid-orm"
],
"type": "module",
"types": "./index.d.ts",
"files": [
"*.js",
"*.d.ts*",
"src"
],
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.js"
}
},
"scripts": {
"build": "tsc --project tsconfig.build.json",
"test": "./test/test.sh"
},
"dependencies": {
"@auth/core": "workspace:*"
},
"devDependencies": {
"orchid-orm": "^1.23.11",
"orchid-orm-schema-to-zod": "^0.6.11",
"orchid-orm-test-factory": "^0.5.11",
"rake-db": "^2.15.10",
"tsx": "^4.7.1",
"zod": "^3.22.4"
}
}