From fead9051b3f9f246043cd074e0aeee2fa290f496 Mon Sep 17 00:00:00 2001 From: "Lucy (bot)" <126932300+lucythecat@users.noreply.github.com> Date: Sat, 24 Jun 2023 13:04:56 +0900 Subject: [PATCH] CI: Release (#775) --- .auri/$1j735d60.md | 6 -- .auri/$40a7umh0.md | 6 -- .auri/$6ayq7wdu.md | 7 --- .auri/$as1qhsh5.md | 6 -- .auri/$ujp0p7w7.md | 7 --- .auri/$yf495wr1.md | 6 -- .../content/main/start-here/migrate-v2.md | 2 +- .../main/basics/handle-requests.sveltekit.md | 1 - packages/adapter-mongoose/CHANGELOG.md | 2 +- packages/adapter-mongoose/package.json | 50 ++++++++++++++- packages/adapter-mysql/CHANGELOG.md | 2 +- packages/adapter-mysql/package.json | 63 ++++++++++++++++++- packages/adapter-postgresql/CHANGELOG.md | 2 +- packages/adapter-postgresql/package.json | 61 +++++++++++++++++- packages/adapter-prisma/CHANGELOG.md | 2 +- packages/adapter-prisma/package.json | 54 +++++++++++++++- packages/adapter-session-redis/CHANGELOG.md | 2 +- packages/adapter-session-redis/package.json | 49 ++++++++++++++- packages/adapter-sqlite/CHANGELOG.md | 2 +- packages/adapter-sqlite/package.json | 60 +++++++++++++++++- packages/adapter-test/CHANGELOG.md | 2 +- packages/adapter-test/package.json | 46 +++++++++++++- packages/oauth/CHANGELOG.md | 22 ++++++- packages/oauth/package.json | 49 ++++++++++++++- packages/oauth/src/utils.ts | 3 +- 25 files changed, 454 insertions(+), 58 deletions(-) delete mode 100644 .auri/$1j735d60.md delete mode 100644 .auri/$40a7umh0.md delete mode 100644 .auri/$6ayq7wdu.md delete mode 100644 .auri/$as1qhsh5.md delete mode 100644 .auri/$ujp0p7w7.md delete mode 100644 .auri/$yf495wr1.md diff --git a/.auri/$1j735d60.md b/.auri/$1j735d60.md deleted file mode 100644 index a5b023f42..000000000 --- a/.auri/$1j735d60.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "@lucia-auth/oauth" # package name -type: "major" # "major", "minor", "patch" ---- - -Rename `providerUser` property to `User` (`githubUser` etc) \ No newline at end of file diff --git a/.auri/$40a7umh0.md b/.auri/$40a7umh0.md deleted file mode 100644 index ec1eab8f5..000000000 --- a/.auri/$40a7umh0.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "@lucia-auth/oauth" # package name -type: "major" # "major", "minor", "patch" ---- - -Rename `useAuth()` to `providerUserAuth()` \ No newline at end of file diff --git a/.auri/$6ayq7wdu.md b/.auri/$6ayq7wdu.md deleted file mode 100644 index 64d57e962..000000000 --- a/.auri/$6ayq7wdu.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -package: "@lucia-auth/oauth" # package name -type: "minor" # "major", "minor", "patch" -pull: "603" ---- - -Add Spotify OAuth provider \ No newline at end of file diff --git a/.auri/$as1qhsh5.md b/.auri/$as1qhsh5.md deleted file mode 100644 index 388dc808c..000000000 --- a/.auri/$as1qhsh5.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "@lucia-auth/oauth" # package name -type: "patch" # "major", "minor", "patch" ---- - -Fix `FacebookUser` type \ No newline at end of file diff --git a/.auri/$ujp0p7w7.md b/.auri/$ujp0p7w7.md deleted file mode 100644 index 7229b4a2e..000000000 --- a/.auri/$ujp0p7w7.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -package: "@lucia-auth/oauth" # package name -type: "minor" # "major", "minor", "patch" -pull: "542" ---- - -Add Lichess OAuth provider \ No newline at end of file diff --git a/.auri/$yf495wr1.md b/.auri/$yf495wr1.md deleted file mode 100644 index d6ad0a941..000000000 --- a/.auri/$yf495wr1.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "@lucia-auth/oauth" # package name -type: "major" # "major", "minor", "patch" ---- - -Rename `tokens` property to `Tokens` (`githubTokens` etc) \ No newline at end of file diff --git a/documentation-v2/content/main/start-here/migrate-v2.md b/documentation-v2/content/main/start-here/migrate-v2.md index 980b212ca..b8ba7b645 100644 --- a/documentation-v2/content/main/start-here/migrate-v2.md +++ b/documentation-v2/content/main/start-here/migrate-v2.md @@ -263,4 +263,4 @@ const { githubUser, githubTokens } = await githubAuth.validateCallback(code); ### Removed `LuciaOAuthRequestError` -`LuciaOAuthRequestError` is replaced with [`OAuthRequestError`](/reference/oauth/interfaces#oauthrequesterror). \ No newline at end of file +`LuciaOAuthRequestError` is replaced with [`OAuthRequestError`](/reference/oauth/interfaces#oauthrequesterror). diff --git a/documentation/content/main/basics/handle-requests.sveltekit.md b/documentation/content/main/basics/handle-requests.sveltekit.md index ef9cf97ba..5f6151685 100644 --- a/documentation/content/main/basics/handle-requests.sveltekit.md +++ b/documentation/content/main/basics/handle-requests.sveltekit.md @@ -80,7 +80,6 @@ export const load = async (event) => { const authRequest = auth.handleRequest(event); const { user, session } = await authRequest.validateUser(); }; - ``` #### Examples diff --git a/packages/adapter-mongoose/CHANGELOG.md b/packages/adapter-mongoose/CHANGELOG.md index 7862d28ca..a35128426 100644 --- a/packages/adapter-mongoose/CHANGELOG.md +++ b/packages/adapter-mongoose/CHANGELOG.md @@ -122,4 +122,4 @@ ## 0.1.2 -- Update peer dependency \ No newline at end of file +- Update peer dependency diff --git a/packages/adapter-mongoose/package.json b/packages/adapter-mongoose/package.json index cda17d45e..16fb2e613 100644 --- a/packages/adapter-mongoose/package.json +++ b/packages/adapter-mongoose/package.json @@ -1 +1,49 @@ -{"name":"@lucia-auth/adapter-mongoose","version":"3.0.0-beta.2","description":"Mongoose (MongoDB) adapter for Lucia","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","type":"module","files":["/dist/","CHANGELOG.md"],"scripts":{"build":"shx rm -rf ./dist/* && tsc","test":"tsx test/index.ts","auri.build":"pnpm build"},"keywords":["lucia","lucia","auth","authentication","adapter","mongodb","mongo","mongoose"],"repository":{"type":"git","url":"https://github.com/pilcrowOnPaper/lucia","directory":"packages/adapter-mongoose"},"author":"pilcrowonpaper","license":"MIT","exports":{".":"./dist/index.js"},"peerDependencies":{"lucia":"2.0.0-beta.2","mongoose":"6.x - 7.x"},"devDependencies":{"@lucia-auth/adapter-test":"latest","dotenv":"^16.0.3","tsx":"^3.12.6","mongoose":"^6.6.1","lucia":"latest"}} \ No newline at end of file +{ + "name": "@lucia-auth/adapter-mongoose", + "version": "3.0.0-beta.2", + "description": "Mongoose (MongoDB) adapter for Lucia", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "module": "dist/index.js", + "type": "module", + "files": [ + "/dist/", + "CHANGELOG.md" + ], + "scripts": { + "build": "shx rm -rf ./dist/* && tsc", + "test": "tsx test/index.ts", + "auri.build": "pnpm build" + }, + "keywords": [ + "lucia", + "lucia", + "auth", + "authentication", + "adapter", + "mongodb", + "mongo", + "mongoose" + ], + "repository": { + "type": "git", + "url": "https://github.com/pilcrowOnPaper/lucia", + "directory": "packages/adapter-mongoose" + }, + "author": "pilcrowonpaper", + "license": "MIT", + "exports": { + ".": "./dist/index.js" + }, + "peerDependencies": { + "lucia": "2.0.0-beta.2", + "mongoose": "6.x - 7.x" + }, + "devDependencies": { + "@lucia-auth/adapter-test": "latest", + "dotenv": "^16.0.3", + "tsx": "^3.12.6", + "mongoose": "^6.6.1", + "lucia": "latest" + } +} diff --git a/packages/adapter-mysql/CHANGELOG.md b/packages/adapter-mysql/CHANGELOG.md index eb7ab2b01..398171ba3 100644 --- a/packages/adapter-mysql/CHANGELOG.md +++ b/packages/adapter-mysql/CHANGELOG.md @@ -40,4 +40,4 @@ ### Minor changes -- [#562](https://github.com/pilcrowOnPaper/lucia/pull/562) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Add PlanetScale serverless adapter \ No newline at end of file +- [#562](https://github.com/pilcrowOnPaper/lucia/pull/562) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Add PlanetScale serverless adapter diff --git a/packages/adapter-mysql/package.json b/packages/adapter-mysql/package.json index 5ffd68078..90a08ecd9 100644 --- a/packages/adapter-mysql/package.json +++ b/packages/adapter-mysql/package.json @@ -1 +1,62 @@ -{"name":"@lucia-auth/adapter-mysql","version":"2.0.0-beta.3","description":"MySQL adapter for Lucia","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","type":"module","files":["/dist/","CHANGELOG.md"],"scripts":{"build":"shx rm -rf ./dist/* && tsc","test.mysql2":"tsx test/mysql2/index.ts","test.planetscale":"tsx test/planetscale/index.ts","test-setup.planetscale":"tsx test/planetscale/setup.ts","test-setup.mysql2":"tsx test/mysql2/setup.ts","auri.build":"pnpm build"},"keywords":["lucia","auth","mysql2","mysql","planetscale","authentication","adapter","sql"],"repository":{"type":"git","url":"https://github.com/pilcrowOnPaper/lucia","directory":"packages/adapter-mysql"},"author":"pilcrowonpaper","license":"MIT","exports":{".":"./dist/index.js"},"peerDependencies":{"lucia":"2.0.0-beta.2","mysql2":"^3.0.0","@planetscale/database":"^1.0.0"},"peerDependenciesMeta":{"mysql2":{"optional":true},"@planetscale/database":{"optional":true}},"devDependencies":{"@lucia-auth/adapter-test":"latest","@planetscale/database":"^1.7.0","dotenv":"^16.0.3","lucia":"latest","mysql2":"^3.2.3","tsx":"^3.12.6"}} \ No newline at end of file +{ + "name": "@lucia-auth/adapter-mysql", + "version": "2.0.0-beta.3", + "description": "MySQL adapter for Lucia", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "module": "dist/index.js", + "type": "module", + "files": [ + "/dist/", + "CHANGELOG.md" + ], + "scripts": { + "build": "shx rm -rf ./dist/* && tsc", + "test.mysql2": "tsx test/mysql2/index.ts", + "test.planetscale": "tsx test/planetscale/index.ts", + "test-setup.planetscale": "tsx test/planetscale/setup.ts", + "test-setup.mysql2": "tsx test/mysql2/setup.ts", + "auri.build": "pnpm build" + }, + "keywords": [ + "lucia", + "auth", + "mysql2", + "mysql", + "planetscale", + "authentication", + "adapter", + "sql" + ], + "repository": { + "type": "git", + "url": "https://github.com/pilcrowOnPaper/lucia", + "directory": "packages/adapter-mysql" + }, + "author": "pilcrowonpaper", + "license": "MIT", + "exports": { + ".": "./dist/index.js" + }, + "peerDependencies": { + "lucia": "2.0.0-beta.2", + "mysql2": "^3.0.0", + "@planetscale/database": "^1.0.0" + }, + "peerDependenciesMeta": { + "mysql2": { + "optional": true + }, + "@planetscale/database": { + "optional": true + } + }, + "devDependencies": { + "@lucia-auth/adapter-test": "latest", + "@planetscale/database": "^1.7.0", + "dotenv": "^16.0.3", + "lucia": "latest", + "mysql2": "^3.2.3", + "tsx": "^3.12.6" + } +} diff --git a/packages/adapter-postgresql/CHANGELOG.md b/packages/adapter-postgresql/CHANGELOG.md index 2750035e8..05df4111f 100644 --- a/packages/adapter-postgresql/CHANGELOG.md +++ b/packages/adapter-postgresql/CHANGELOG.md @@ -26,4 +26,4 @@ ### Patch changes -- [#626](https://github.com/pilcrowOnPaper/lucia/pull/626) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Clean up adapter internals and remove rogue `console.log()` \ No newline at end of file +- [#626](https://github.com/pilcrowOnPaper/lucia/pull/626) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Clean up adapter internals and remove rogue `console.log()` diff --git a/packages/adapter-postgresql/package.json b/packages/adapter-postgresql/package.json index 83cdb81e8..d68bdfc58 100644 --- a/packages/adapter-postgresql/package.json +++ b/packages/adapter-postgresql/package.json @@ -1 +1,60 @@ -{"name":"@lucia-auth/adapter-postgresql","version":"2.0.0-beta.2","description":"PostgreSQL adapter for Lucia","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","type":"module","files":["/dist/","CHANGELOG.md"],"scripts":{"build":"shx rm -rf ./dist/* && tsc","test.pg":"tsx test/pg/index.ts","test-setup.pg":"tsx test/pg/setup.ts","auri.build":"pnpm build"},"keywords":["lucia","lucia","auth","pg","postgresql","authentication","adapter","sql","kysely","drizzle"],"repository":{"type":"git","url":"https://github.com/pilcrowOnPaper/lucia","directory":"packages/adapter-postgresql"},"author":"pilcrowonpaper","license":"MIT","exports":{".":"./dist/index.js"},"peerDependencies":{"lucia":"2.0.0-beta.2","pg":"^8.0.0"},"peerDependenciesMeta":{"pg":{"optional":true}},"devDependencies":{"@lucia-auth/adapter-test":"latest","@types/pg":"^8.6.5","dotenv":"^16.0.3","lucia":"latest","tsx":"^3.12.6"},"dependencies":{"pg":"^8.8.0"}} \ No newline at end of file +{ + "name": "@lucia-auth/adapter-postgresql", + "version": "2.0.0-beta.2", + "description": "PostgreSQL adapter for Lucia", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "module": "dist/index.js", + "type": "module", + "files": [ + "/dist/", + "CHANGELOG.md" + ], + "scripts": { + "build": "shx rm -rf ./dist/* && tsc", + "test.pg": "tsx test/pg/index.ts", + "test-setup.pg": "tsx test/pg/setup.ts", + "auri.build": "pnpm build" + }, + "keywords": [ + "lucia", + "lucia", + "auth", + "pg", + "postgresql", + "authentication", + "adapter", + "sql", + "kysely", + "drizzle" + ], + "repository": { + "type": "git", + "url": "https://github.com/pilcrowOnPaper/lucia", + "directory": "packages/adapter-postgresql" + }, + "author": "pilcrowonpaper", + "license": "MIT", + "exports": { + ".": "./dist/index.js" + }, + "peerDependencies": { + "lucia": "2.0.0-beta.2", + "pg": "^8.0.0" + }, + "peerDependenciesMeta": { + "pg": { + "optional": true + } + }, + "devDependencies": { + "@lucia-auth/adapter-test": "latest", + "@types/pg": "^8.6.5", + "dotenv": "^16.0.3", + "lucia": "latest", + "tsx": "^3.12.6" + }, + "dependencies": { + "pg": "^8.8.0" + } +} diff --git a/packages/adapter-prisma/CHANGELOG.md b/packages/adapter-prisma/CHANGELOG.md index 815deec31..7c323b3bd 100644 --- a/packages/adapter-prisma/CHANGELOG.md +++ b/packages/adapter-prisma/CHANGELOG.md @@ -120,4 +120,4 @@ ## 0.1.2 -- Update peer dependency \ No newline at end of file +- Update peer dependency diff --git a/packages/adapter-prisma/package.json b/packages/adapter-prisma/package.json index 6e522f4a5..4d3a2207a 100644 --- a/packages/adapter-prisma/package.json +++ b/packages/adapter-prisma/package.json @@ -1 +1,53 @@ -{"name":"@lucia-auth/adapter-prisma","version":"3.0.0-beta.2","description":"Prisma adapter for Lucia","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","type":"module","files":["/dist/","CHANGELOG.md"],"scripts":{"build":"shx rm -rf ./dist/* && tsc","test":"tsx test/index.ts","test-setup":"prisma db push","auri.build":"pnpm build"},"keywords":["lucia","prisma","lucia","auth","postgres","mysql","sqlite","authentication","adapter","sql","postgresql"],"repository":{"type":"git","url":"https://github.com/pilcrowOnPaper/lucia","directory":"packages/adapter-prisma"},"author":"pilcrowonpaper","license":"MIT","exports":{".":"./dist/index.js"},"peerDependencies":{"@prisma/client":"^4.2.0","lucia":"2.0.0-beta.2"},"devDependencies":{"lucia":"latest","@lucia-auth/adapter-test":"latest","@prisma/client":"^4.9.0","prisma":"^4.9.0","tsx":"^3.12.6"}} \ No newline at end of file +{ + "name": "@lucia-auth/adapter-prisma", + "version": "3.0.0-beta.2", + "description": "Prisma adapter for Lucia", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "module": "dist/index.js", + "type": "module", + "files": [ + "/dist/", + "CHANGELOG.md" + ], + "scripts": { + "build": "shx rm -rf ./dist/* && tsc", + "test": "tsx test/index.ts", + "test-setup": "prisma db push", + "auri.build": "pnpm build" + }, + "keywords": [ + "lucia", + "prisma", + "lucia", + "auth", + "postgres", + "mysql", + "sqlite", + "authentication", + "adapter", + "sql", + "postgresql" + ], + "repository": { + "type": "git", + "url": "https://github.com/pilcrowOnPaper/lucia", + "directory": "packages/adapter-prisma" + }, + "author": "pilcrowonpaper", + "license": "MIT", + "exports": { + ".": "./dist/index.js" + }, + "peerDependencies": { + "@prisma/client": "^4.2.0", + "lucia": "2.0.0-beta.2" + }, + "devDependencies": { + "lucia": "latest", + "@lucia-auth/adapter-test": "latest", + "@prisma/client": "^4.9.0", + "prisma": "^4.9.0", + "tsx": "^3.12.6" + } +} diff --git a/packages/adapter-session-redis/CHANGELOG.md b/packages/adapter-session-redis/CHANGELOG.md index 0e9e6bdd2..dcebaabb4 100644 --- a/packages/adapter-session-redis/CHANGELOG.md +++ b/packages/adapter-session-redis/CHANGELOG.md @@ -60,4 +60,4 @@ ### Patch changes -- [#381](https://github.com/pilcrowOnPaper/lucia/pull/381) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Update links in README and package.json \ No newline at end of file +- [#381](https://github.com/pilcrowOnPaper/lucia/pull/381) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Update links in README and package.json diff --git a/packages/adapter-session-redis/package.json b/packages/adapter-session-redis/package.json index ece333b92..20941e1ca 100644 --- a/packages/adapter-session-redis/package.json +++ b/packages/adapter-session-redis/package.json @@ -1 +1,48 @@ -{"name":"@lucia-auth/adapter-session-redis","version":"2.0.0-beta.2","description":"Redis session adapter for Lucia","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","type":"module","files":["/dist/","CHANGELOG.md"],"scripts":{"build":"shx rm -rf ./dist/* && tsc","test":"tsx test/index.ts","auri.build":"pnpm build"},"keywords":["lucia","lucia","auth","authentication","adapter","redis","session"],"repository":{"type":"git","url":"https://github.com/pilcrowOnPaper/lucia","directory":"packages/adapter-session-redis"},"author":"pilcrowonpaper","license":"MIT","exports":{".":"./dist/index.js"},"peerDependencies":{"lucia":"2.0.0-beta.2","redis":"^4.0.0"},"devDependencies":{"@lucia-auth/adapter-test":"latest","dotenv":"^16.0.3","redis":"^4.3.1","tsx":"^3.12.6","lucia":"latest"}} \ No newline at end of file +{ + "name": "@lucia-auth/adapter-session-redis", + "version": "2.0.0-beta.2", + "description": "Redis session adapter for Lucia", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "module": "dist/index.js", + "type": "module", + "files": [ + "/dist/", + "CHANGELOG.md" + ], + "scripts": { + "build": "shx rm -rf ./dist/* && tsc", + "test": "tsx test/index.ts", + "auri.build": "pnpm build" + }, + "keywords": [ + "lucia", + "lucia", + "auth", + "authentication", + "adapter", + "redis", + "session" + ], + "repository": { + "type": "git", + "url": "https://github.com/pilcrowOnPaper/lucia", + "directory": "packages/adapter-session-redis" + }, + "author": "pilcrowonpaper", + "license": "MIT", + "exports": { + ".": "./dist/index.js" + }, + "peerDependencies": { + "lucia": "2.0.0-beta.2", + "redis": "^4.0.0" + }, + "devDependencies": { + "@lucia-auth/adapter-test": "latest", + "dotenv": "^16.0.3", + "redis": "^4.3.1", + "tsx": "^3.12.6", + "lucia": "latest" + } +} diff --git a/packages/adapter-sqlite/CHANGELOG.md b/packages/adapter-sqlite/CHANGELOG.md index 04bbde190..7a4333ac6 100644 --- a/packages/adapter-sqlite/CHANGELOG.md +++ b/packages/adapter-sqlite/CHANGELOG.md @@ -32,4 +32,4 @@ ### Minor changes -- [#563](https://github.com/pilcrowOnPaper/lucia/pull/563) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Add `d1` adapter for Cloudflare D1 \ No newline at end of file +- [#563](https://github.com/pilcrowOnPaper/lucia/pull/563) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Add `d1` adapter for Cloudflare D1 diff --git a/packages/adapter-sqlite/package.json b/packages/adapter-sqlite/package.json index 4ce60f27b..7822eb24e 100644 --- a/packages/adapter-sqlite/package.json +++ b/packages/adapter-sqlite/package.json @@ -1 +1,59 @@ -{"name":"@lucia-auth/adapter-sqlite","version":"2.0.0-beta.2","description":"SQLite adapter for Lucia","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","type":"module","files":["/dist/","CHANGELOG.md"],"scripts":{"build":"shx rm -rf ./dist/* && tsc","auri.build":"pnpm build","test.better-sqlite3":"tsx test/better-sqlite3/index.ts","test.d1":"tsx test/d1/index.ts"},"keywords":["lucia","lucia","auth","better-sqlite3","sqlite","authentication","adapter","sql","kysely","drizzle"],"repository":{"type":"git","url":"https://github.com/pilcrowOnPaper/lucia","directory":"packages/adapter-sqlite"},"author":"pilcrowonpaper","license":"MIT","exports":{".":"./dist/index.js"},"peerDependencies":{"better-sqlite3":"^8.0.0","lucia":"2.0.0-beta.2"},"peerDependenciesMeta":{"better-sqlite3":{"optional":true}},"devDependencies":{"@cloudflare/workers-types":"^4.20230518.0","@lucia-auth/adapter-test":"latest","@miniflare/d1":"^2.14.0","@types/better-sqlite3":"^7.6.3","better-sqlite3":"^8.4.0","lucia":"latest","tsx":"^3.12.6"}} \ No newline at end of file +{ + "name": "@lucia-auth/adapter-sqlite", + "version": "2.0.0-beta.2", + "description": "SQLite adapter for Lucia", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "module": "dist/index.js", + "type": "module", + "files": [ + "/dist/", + "CHANGELOG.md" + ], + "scripts": { + "build": "shx rm -rf ./dist/* && tsc", + "auri.build": "pnpm build", + "test.better-sqlite3": "tsx test/better-sqlite3/index.ts", + "test.d1": "tsx test/d1/index.ts" + }, + "keywords": [ + "lucia", + "lucia", + "auth", + "better-sqlite3", + "sqlite", + "authentication", + "adapter", + "sql", + "kysely", + "drizzle" + ], + "repository": { + "type": "git", + "url": "https://github.com/pilcrowOnPaper/lucia", + "directory": "packages/adapter-sqlite" + }, + "author": "pilcrowonpaper", + "license": "MIT", + "exports": { + ".": "./dist/index.js" + }, + "peerDependencies": { + "better-sqlite3": "^8.0.0", + "lucia": "2.0.0-beta.2" + }, + "peerDependenciesMeta": { + "better-sqlite3": { + "optional": true + } + }, + "devDependencies": { + "@cloudflare/workers-types": "^4.20230518.0", + "@lucia-auth/adapter-test": "latest", + "@miniflare/d1": "^2.14.0", + "@types/better-sqlite3": "^7.6.3", + "better-sqlite3": "^8.4.0", + "lucia": "latest", + "tsx": "^3.12.6" + } +} diff --git a/packages/adapter-test/CHANGELOG.md b/packages/adapter-test/CHANGELOG.md index 313e54089..89f7febb2 100644 --- a/packages/adapter-test/CHANGELOG.md +++ b/packages/adapter-test/CHANGELOG.md @@ -138,4 +138,4 @@ ## 0.1.2 -- Update peer dependency \ No newline at end of file +- Update peer dependency diff --git a/packages/adapter-test/package.json b/packages/adapter-test/package.json index 015d8d032..1b9f0e450 100644 --- a/packages/adapter-test/package.json +++ b/packages/adapter-test/package.json @@ -1 +1,45 @@ -{"name":"@lucia-auth/adapter-test","version":"4.0.0-beta.2","description":"Testing module for Lucia database adapters","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","type":"module","files":["/dist/","CHANGELOG.md"],"scripts":{"build":"shx rm -rf ./dist/* && tsc","auri.build":"pnpm build"},"keywords":["lucia","lucia","auth","authentication","adapter","test"],"repository":{"type":"git","url":"https://github.com/pilcrowOnPaper/lucia","directory":"packages/adapter-test"},"author":"pilcrowonpaper","license":"MIT","exports":{".":"./dist/index.js"},"devDependencies":{"@types/mocha":"^10.0.1","lucia":"latest"},"peerDependencies":{"lucia":"2.0.0-beta.2"},"dependencies":{"mocha":"^10.2.0"}} \ No newline at end of file +{ + "name": "@lucia-auth/adapter-test", + "version": "4.0.0-beta.2", + "description": "Testing module for Lucia database adapters", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "module": "dist/index.js", + "type": "module", + "files": [ + "/dist/", + "CHANGELOG.md" + ], + "scripts": { + "build": "shx rm -rf ./dist/* && tsc", + "auri.build": "pnpm build" + }, + "keywords": [ + "lucia", + "lucia", + "auth", + "authentication", + "adapter", + "test" + ], + "repository": { + "type": "git", + "url": "https://github.com/pilcrowOnPaper/lucia", + "directory": "packages/adapter-test" + }, + "author": "pilcrowonpaper", + "license": "MIT", + "exports": { + ".": "./dist/index.js" + }, + "devDependencies": { + "@types/mocha": "^10.0.1", + "lucia": "latest" + }, + "peerDependencies": { + "lucia": "2.0.0-beta.2" + }, + "dependencies": { + "mocha": "^10.2.0" + } +} diff --git a/packages/oauth/CHANGELOG.md b/packages/oauth/CHANGELOG.md index 0a866a4d5..cd935f496 100644 --- a/packages/oauth/CHANGELOG.md +++ b/packages/oauth/CHANGELOG.md @@ -1,5 +1,25 @@ # @lucia-auth/oauth +## 2.0.0-beta.3 + +### Major changes + +- [#776](https://github.com/pilcrowOnPaper/lucia/pull/776) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Rename `providerUser` property to `User` (`githubUser` etc) + +- [#776](https://github.com/pilcrowOnPaper/lucia/pull/776) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Rename `useAuth()` to `providerUserAuth()` + +- [#776](https://github.com/pilcrowOnPaper/lucia/pull/776) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Rename `tokens` property to `Tokens` (`githubTokens` etc) + +### Minor changes + +- [#603](https://github.com/pilcrowOnPaper/lucia/pull/603) by [@msonnberger](https://github.com/msonnberger) : Add Spotify OAuth provider + +- [#542](https://github.com/pilcrowOnPaper/lucia/pull/542) by [@gtim](https://github.com/gtim) : Add Lichess OAuth provider + +### Patch changes + +- [#734](https://github.com/pilcrowOnPaper/lucia/pull/734) by [@KarolusD](https://github.com/KarolusD) : Fix `FacebookUser` type + ## 2.0.0-beta.2 ### Patch changes @@ -260,4 +280,4 @@ ## 0.1.1 -- Update peer dependency \ No newline at end of file +- Update peer dependency diff --git a/packages/oauth/package.json b/packages/oauth/package.json index 0a3edff16..e2d919cc1 100644 --- a/packages/oauth/package.json +++ b/packages/oauth/package.json @@ -1 +1,48 @@ -{"name":"@lucia-auth/oauth","version":"2.0.0-beta.2","description":"OAuth integration for Lucia","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","type":"module","files":["/dist/","CHANGELOG.md"],"scripts":{"build":"shx rm -rf ./dist/* && tsc","auri.build":"pnpm build"},"keywords":["lucia","lucia","authentication","auth","oauth"],"repository":{"type":"git","url":"https://github.com/pilcrowOnPaper/lucia","directory":"packages/oauth"},"author":"pilcrowonpaper","license":"MIT","exports":{".":"./dist/index.js","./providers":"./dist/providers/index.js"},"typesVersions":{"*":{"providers":["dist/providers/index.d.ts"]}},"devDependencies":{"lucia":"latest"},"peerDependencies":{"lucia":"2.0.0-beta.2"}} \ No newline at end of file +{ + "name": "@lucia-auth/oauth", + "version": "2.0.0-beta.3", + "description": "OAuth integration for Lucia", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "module": "dist/index.js", + "type": "module", + "files": [ + "/dist/", + "CHANGELOG.md" + ], + "scripts": { + "build": "shx rm -rf ./dist/* && tsc", + "auri.build": "pnpm build" + }, + "keywords": [ + "lucia", + "lucia", + "authentication", + "auth", + "oauth" + ], + "repository": { + "type": "git", + "url": "https://github.com/pilcrowOnPaper/lucia", + "directory": "packages/oauth" + }, + "author": "pilcrowonpaper", + "license": "MIT", + "exports": { + ".": "./dist/index.js", + "./providers": "./dist/providers/index.js" + }, + "typesVersions": { + "*": { + "providers": [ + "dist/providers/index.d.ts" + ] + } + }, + "devDependencies": { + "lucia": "latest" + }, + "peerDependencies": { + "lucia": "2.0.0-beta.2" + } +} diff --git a/packages/oauth/src/utils.ts b/packages/oauth/src/utils.ts index 4ef7746f4..b1df2a58d 100644 --- a/packages/oauth/src/utils.ts +++ b/packages/oauth/src/utils.ts @@ -21,11 +21,10 @@ export const encodeBase64 = (s: string) => { return btoa(s); }; - export const generateState = () => { return generateRandomString(43); }; export const scope = (base: string[], config: string[] = []) => { return [...base, ...(config ?? [])].join(" "); -}; \ No newline at end of file +};