diff --git a/.auri/$160srass.md b/.auri/$160srass.md deleted file mode 100644 index 871132ce2..000000000 --- a/.auri/$160srass.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -package: "@lucia-auth/oauth" # package name -type: "minor" # "major", "minor", "patch" ---- - -Require `lucia@^2.0.0` - - Export `useAuth()` - - Remove `provider()` \ No newline at end of file diff --git a/.auri/$1gd2c9ca.md b/.auri/$1gd2c9ca.md deleted file mode 100644 index c7fca6210..000000000 --- a/.auri/$1gd2c9ca.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Update configuration - - Remove `autoDatabaseCleanup` - - Remove `transformDatabaseUser()` (see `transformUserAttributes()`) - - Replace `generateCustomUserId()` with `generateUserId()` - - Replace `hash` with `passwordHash` - - Replace `origin` with `requestOrigins` - - Replace `sessionCookie` with `sessionCookie.attributes` - - Add `sessionCookie.name` for setting session cookie name - - Add `transformUserAttributes()` for defining user attributes (**`userId` is automatically included**) - - Add `transformSessionAttributes()` for defining session attributes \ No newline at end of file diff --git a/.auri/$3i5r5bib.md b/.auri/$3i5r5bib.md deleted file mode 100644 index 6e1990ac4..000000000 --- a/.auri/$3i5r5bib.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Update `Auth` methods: - - Remove `getSessionUser()` - - Remove `validateSessionUser()` - - Remove `parseRequestHeaders()` - - Add `readSessionCookie()` - - Add `validateRequestOrigin()` \ No newline at end of file diff --git a/.auri/$4g93h2e1.md b/.auri/$4g93h2e1.md deleted file mode 100644 index 0067e4ee8..000000000 --- a/.auri/$4g93h2e1.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -package: "lucia" # package name -type: "minor" # "major", "minor", "patch" ---- - -Support bearer tokens - - Add `Auth.readBearerToken()` - - Add `AuthRequest.validateBearerToken()` \ No newline at end of file diff --git a/.auri/$4omphity.md b/.auri/$4omphity.md deleted file mode 100644 index fcd9f02ab..000000000 --- a/.auri/$4omphity.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Remove primary keys - - Remove `Key.primary` - - Rename `Auth.createUser()` params `options.primaryKey` to `options.key` - - Remove column `key(primary_key)` \ No newline at end of file diff --git a/.auri/$5gbqip09.md b/.auri/$5gbqip09.md deleted file mode 100644 index b6b35ab43..000000000 --- a/.auri/$5gbqip09.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "@lucia-auth/adapter-sqlite" # package name -type: "minor" # "major", "minor", "patch" ---- - -Add option to configure table names in `betterSqlite3()` and `d1()` \ No newline at end of file diff --git a/.auri/$5xnm1vze.md b/.auri/$5xnm1vze.md deleted file mode 100644 index 9c631befd..000000000 --- a/.auri/$5xnm1vze.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "@lucia-auth/adapter-mysql" # package name -type: "minor" # "major", "minor", "patch" ---- - -Add option to configure table names in `mysql2()` and `planetscale()` \ No newline at end of file diff --git a/.auri/$8fe25uuj.md b/.auri/$8fe25uuj.md deleted file mode 100644 index bc261f60c..000000000 --- a/.auri/$8fe25uuj.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "@lucia-auth/adapter-postgresql" # package name -type: "minor" # "major", "minor", "patch" ---- - -Add option to configure table names in `pg()` \ No newline at end of file diff --git a/.auri/$97z0unep.md b/.auri/$97z0unep.md deleted file mode 100644 index 7e5d360d1..000000000 --- a/.auri/$97z0unep.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "@lucia-auth/oauth" # package name -type: "major" # "major", "minor", "patch" ---- - -Remove `redirectUri` from `getAuthorizationUrl()` \ No newline at end of file diff --git a/.auri/$awt53nzt.md b/.auri/$awt53nzt.md deleted file mode 100644 index c6fdf2b0e..000000000 --- a/.auri/$awt53nzt.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -package: "@lucia-auth/adapter-test" # package name -type: "major" # "major", "minor", "patch" ---- - -Require `lucia@^2.0.0` - - Update tests \ No newline at end of file diff --git a/.auri/$buyqgbd1.md b/.auri/$buyqgbd1.md deleted file mode 100644 index bad6d1478..000000000 --- a/.auri/$buyqgbd1.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -package: "@lucia-auth/adapter-test" # package name -type: "major" # "major", "minor", "patch" ---- - -Update `testAdapter()` and `testSessionAdapter()` - - Rename type `QueryHandler` to `LuciaQueryHandler` - - Remove `testUserAdapter()` - - Test modules no longer end process by default \ No newline at end of file diff --git a/.auri/$cadjkp1x.md b/.auri/$cadjkp1x.md deleted file mode 100644 index 7c6510ba7..000000000 --- a/.auri/$cadjkp1x.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Remove single use keys - - **Lucia v2 no longer supports `@lucia-auth/tokens`** - - Remove `Session.type` - - Update `Auth.createKey()` params - - Remove column `key(expires)` \ No newline at end of file diff --git a/.auri/$cvfrkv1s.md b/.auri/$cvfrkv1s.md deleted file mode 100644 index 5e6dd7010..000000000 --- a/.auri/$cvfrkv1s.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Update `Session` - - Remove `Session.userId` - - Add `Session.user` \ No newline at end of file diff --git a/.auri/$ecvf1yna.md b/.auri/$ecvf1yna.md deleted file mode 100644 index 8d35d5588..000000000 --- a/.auri/$ecvf1yna.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Remove `AuthRequest.validateUser()` \ No newline at end of file diff --git a/.auri/$eyl1lq81.md b/.auri/$eyl1lq81.md deleted file mode 100644 index c3968318c..000000000 --- a/.auri/$eyl1lq81.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -package: "@lucia-auth/adapter-session-redis" # package name -type: "major" # "major", "minor", "patch" ---- - -Require `lucia@^2.0.0` - - `redis()` expects az single Redis instance instead of 2 \ No newline at end of file diff --git a/.auri/$fgtw8yla.md b/.auri/$fgtw8yla.md deleted file mode 100644 index 1d769b099..000000000 --- a/.auri/$fgtw8yla.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Introduce custom session attributes - - Update `Auth.createSession()` params - - Update behavior of `Auth.renewSession()` to include attributes of old session to renewed session automatically \ No newline at end of file diff --git a/.auri/$fozb3rpo.md b/.auri/$fozb3rpo.md deleted file mode 100644 index 2cc79de5b..000000000 --- a/.auri/$fozb3rpo.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Overhaul adapter API - - Remove `UserAdapter.updateUserAttributes()` - - Remove `UserAdapter.deleteNonPrimaryKey()` - - Remove `UserAdapter.updateKeyPassword()` - - Remove `Adapter?.getSessionAndUserBySessionId()` - - Update `UserAdapter.setUser()` params - - Remove `UserAdapter.getKey()` params `shouldDataBeDeleted()` - - Add `UserAdapter.updateUser()` - - Add `UserAdapter.deleteKey()` - - Add `UserAdapter.updateKey()` - - Add `SessionAdapter.updateSession()` - - Add `Adapter.getSessionAndUser()` - - Rename type `AdapterFunction` to `InitializeAdapter` \ No newline at end of file diff --git a/.auri/$jey1qi9j.md b/.auri/$jey1qi9j.md deleted file mode 100644 index 8f04f1719..000000000 --- a/.auri/$jey1qi9j.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Update adapter specifications - - Insert and update methods do not return anything - - Insert and update methods for sessions and keys may optionally throw a Lucia error on invalid user id - - Insert methods do not throw Lucia errors on duplicate session and user ids \ No newline at end of file diff --git a/.auri/$jhfpjptb.md b/.auri/$jhfpjptb.md deleted file mode 100644 index 3d985b57c..000000000 --- a/.auri/$jhfpjptb.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Remove errors: - - `AUTH_DUPLICATE_SESSION_ID` - - `AUTO_USER_ID_GENERATION_NOT_SUPPORTED` - - `AUTH_EXPIRED_KEY` \ No newline at end of file diff --git a/.auri/$msq2k30f.md b/.auri/$msq2k30f.md deleted file mode 100644 index a3ce54797..000000000 --- a/.auri/$msq2k30f.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Remove auto database clean up functionality \ No newline at end of file diff --git a/.auri/$oba8uk7e.md b/.auri/$oba8uk7e.md deleted file mode 100644 index ad70a6028..000000000 --- a/.auri/$oba8uk7e.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "@lucia-auth/adapter-sqlite" # package name -type: "major" # "major", "minor", "patch" ---- - -Require `lucia@^2.0.0` \ No newline at end of file diff --git a/.auri/$osupufo1.md b/.auri/$osupufo1.md deleted file mode 100644 index 3b7972859..000000000 --- a/.auri/$osupufo1.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -package: "major" # package name -type: "major" # "major", "minor", "patch" ---- - -Update `Lucia` namespace - - Rename `Lucia.UserAttributes` to `Lucia.DatabaseUserAttributes` - - Add `Lucia.DatabaseSessionAttributes` \ No newline at end of file diff --git a/.auri/$oto9r3vz.md b/.auri/$oto9r3vz.md deleted file mode 100644 index 52d0cbbdf..000000000 --- a/.auri/$oto9r3vz.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Update `Middleware` takes a new `Context` params \ No newline at end of file diff --git a/.auri/$q972t1ak.md b/.auri/$q972t1ak.md deleted file mode 100644 index 30e579a34..000000000 --- a/.auri/$q972t1ak.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "@lucia-auth/adapter-mysql" # package name -type: "major" # "major", "minor", "patch" ---- - -Require `lucia@^2.0.0` \ No newline at end of file diff --git a/.auri/$qcdnw329.md b/.auri/$qcdnw329.md deleted file mode 100644 index e3aeeceb3..000000000 --- a/.auri/$qcdnw329.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Update exports: - - **Replace default export with named `lucia()`** - - Removed `generateRandomString()` - - Removed `serializeCookie()` - - Removed `Cookie` \ No newline at end of file diff --git a/.auri/$rlqdhur2.md b/.auri/$rlqdhur2.md deleted file mode 100644 index 753af4f36..000000000 --- a/.auri/$rlqdhur2.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "@lucia-auth/adapter-postgresql" # package name -type: "major" # "major", "minor", "patch" ---- - -Require `lucia@^2.0.0` \ No newline at end of file diff --git a/.auri/$sbxeojc3.md b/.auri/$sbxeojc3.md deleted file mode 100644 index 753c67549..000000000 --- a/.auri/$sbxeojc3.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Rename `SESSION_COOKIE_NAME` to `DEFAULT_SESSION_COOKIE_NAME` \ No newline at end of file diff --git a/.auri/$sc875rn3.md b/.auri/$sc875rn3.md deleted file mode 100644 index e7ed40170..000000000 --- a/.auri/$sc875rn3.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -package: "lucia" # package name -type: "minor" # "major", "minor", "patch" ---- - -New `lucia/utils` export: - - `generateRandomString()` - - `serializeCookie()` - - `isWithinExpiration()` \ No newline at end of file diff --git a/.auri/$tt1sakae.md b/.auri/$tt1sakae.md deleted file mode 100644 index 7e7e09f99..000000000 --- a/.auri/$tt1sakae.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -package: "@lucia-auth/adapter-mongoose" # package name -type: "major" # "major", "minor", "patch" ---- - -Require `lucia@^2.0.0` - - Export adapter as named exports (`mongoose()`) - - Update adapter params \ No newline at end of file diff --git a/.auri/$w6gqe7de.md b/.auri/$w6gqe7de.md deleted file mode 100644 index 07329ad88..000000000 --- a/.auri/$w6gqe7de.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -**NPM package `lucia-auth` is renamed to `lucia`** \ No newline at end of file diff --git a/.auri/$xwujxvj7.md b/.auri/$xwujxvj7.md deleted file mode 100644 index 0174015e2..000000000 --- a/.auri/$xwujxvj7.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -package: "@lucia-auth/adapter-prisma" # package name -type: "major" # "major", "minor", "patch" ---- - -Require `lucia@^2.0.0` - - Export adapter as named exports (`prisma()`) - - Update adapter params \ No newline at end of file diff --git a/.auri/$yk3hou53.md b/.auri/$yk3hou53.md deleted file mode 100644 index 53508436f..000000000 --- a/.auri/$yk3hou53.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -package: "lucia" # package name -type: "major" # "major", "minor", "patch" ---- - -Update `RequestContext`: - - Add `RequestContext.headers.authorization` - - Add optional `RequestContext.storedSessionCookie` \ No newline at end of file diff --git a/.auri/release.config.json b/.auri/release.config.json deleted file mode 100644 index f73f6bd53..000000000 --- a/.auri/release.config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "stage": "beta" -} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..17eb98011 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,97 @@ +# lucia + +## 1.0.0-beta.0 + +### Major changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Update configuration + - Remove `autoDatabaseCleanup` + - Remove `transformDatabaseUser()` (see `transformUserAttributes()`) + - Replace `generateCustomUserId()` with `generateUserId()` + - Replace `hash` with `passwordHash` + - Replace `origin` with `requestOrigins` + - Replace `sessionCookie` with `sessionCookie.attributes` + - Add `sessionCookie.name` for setting session cookie name + - Add `transformUserAttributes()` for defining user attributes (**`userId` is automatically included**) + - Add `transformSessionAttributes()` for defining session attributes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Update `Auth` methods: + - Remove `getSessionUser()` + - Remove `validateSessionUser()` + - Remove `parseRequestHeaders()` + - Add `readSessionCookie()` + - Add `validateRequestOrigin()` + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Remove primary keys + - Remove `Key.primary` + - Rename `Auth.createUser()` params `options.primaryKey` to `options.key` + - Remove column `key(primary_key)` + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Remove single use keys + - **Lucia v2 no longer supports `@lucia-auth/tokens`** + - Remove `Session.type` + - Update `Auth.createKey()` params + - Remove column `key(expires)` + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Update `Session` + - Remove `Session.userId` + - Add `Session.user` + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Remove `AuthRequest.validateUser()` + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Introduce custom session attributes + - Update `Auth.createSession()` params + - Update behavior of `Auth.renewSession()` to include attributes of old session to renewed session automatically + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Overhaul adapter API + - Remove `UserAdapter.updateUserAttributes()` + - Remove `UserAdapter.deleteNonPrimaryKey()` + - Remove `UserAdapter.updateKeyPassword()` + - Remove `Adapter?.getSessionAndUserBySessionId()` + - Update `UserAdapter.setUser()` params + - Remove `UserAdapter.getKey()` params `shouldDataBeDeleted()` + - Add `UserAdapter.updateUser()` + - Add `UserAdapter.deleteKey()` + - Add `UserAdapter.updateKey()` + - Add `SessionAdapter.updateSession()` + - Add `Adapter.getSessionAndUser()` + - Rename type `AdapterFunction` to `InitializeAdapter` + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Update adapter specifications + - Insert and update methods do not return anything + - Insert and update methods for sessions and keys may optionally throw a Lucia error on invalid user id + - Insert methods do not throw Lucia errors on duplicate session and user ids + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Remove errors: + - `AUTH_DUPLICATE_SESSION_ID` + - `AUTO_USER_ID_GENERATION_NOT_SUPPORTED` + - `AUTH_EXPIRED_KEY` + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Remove auto database clean up functionality + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Update `Middleware` takes a new `Context` params + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Update exports: + - **Replace default export with named `lucia()`** + - Removed `generateRandomString()` + - Removed `serializeCookie()` + - Removed `Cookie` + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Rename `SESSION_COOKIE_NAME` to `DEFAULT_SESSION_COOKIE_NAME` + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : **NPM package `lucia-auth` is renamed to `lucia`** + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Update `RequestContext`: + - Add `RequestContext.headers.authorization` + - Add optional `RequestContext.storedSessionCookie` + +### Minor changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Support bearer tokens + - Add `Auth.readBearerToken()` + - Add `AuthRequest.validateBearerToken()` + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : New `lucia/utils` export: + - `generateRandomString()` + - `serializeCookie()` + - `isWithinExpiration()` \ No newline at end of file diff --git a/package.json b/package.json index e8fed9050..02e816969 100644 --- a/package.json +++ b/package.json @@ -1,38 +1 @@ -{ - "name": "lucia", - "version": "0.0.1", - "description": "Authentication, simple and clean", - "scripts": { - "ready": "pnpm i && cd packages/lucia && pnpm build && cd ../adapter-test && pnpm build && cd ../oauth && pnpm build && cd ../adapter-prisma && pnpm build && cd ../../", - "publish-setup": "pnpm i --no-frozen-lockfile && cd packages/lucia && pnpm build && cd ../adapter-test && pnpm build && cd ../../", - "format": "pnpm exec prettier --write .", - "preinstall": "npx only-allow pnpm", - "auri.format": "pnpm format", - "auri.publish_setup": "pnpm publish-setup" - }, - "repository": { - "type": "git", - "url": "https://github.com/pilcrowOnPaper/lucia" - }, - "keywords": [], - "author": "pilcrowOnPaper", - "license": "MIT", - "devDependencies": { - "@types/node": "~18.15.13", - "@typescript-eslint/eslint-plugin": "^5.59.6", - "@typescript-eslint/parser": "^5.59.6", - "auri": "^0.7.0", - "eslint": "^8.40.0", - "eslint-config-prettier": "^8.8.0", - "eslint-plugin-svelte3": "^4.0.0", - "prettier": "^2.8.8", - "prettier-plugin-svelte": "^2.10.0", - "prettier-plugin-tailwindcss": "^0.2.8", - "shx": "^0.3.4", - "typescript": "latest" - }, - "engines": { - "node": "20.x", - "pnpm": "*" - } -} +{"name":"lucia","version":"1.0.0-beta.0","description":"Authentication, simple and clean","scripts":{"ready":"pnpm i && cd packages/lucia && pnpm build && cd ../adapter-test && pnpm build && cd ../oauth && pnpm build && cd ../adapter-prisma && pnpm build && cd ../../","publish-setup":"pnpm i --no-frozen-lockfile && cd packages/lucia && pnpm build && cd ../adapter-test && pnpm build && cd ../../","format":"pnpm exec prettier --write .","preinstall":"npx only-allow pnpm","auri.format":"pnpm format","auri.publish_setup":"pnpm publish-setup"},"repository":{"type":"git","url":"https://github.com/pilcrowOnPaper/lucia"},"keywords":[],"author":"pilcrowOnPaper","license":"MIT","devDependencies":{"@types/node":"~18.15.13","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","auri":"^0.7.0","eslint":"^8.40.0","eslint-config-prettier":"^8.8.0","eslint-plugin-svelte3":"^4.0.0","prettier":"^2.8.8","prettier-plugin-svelte":"^2.10.0","prettier-plugin-tailwindcss":"^0.2.8","shx":"^0.3.4","typescript":"latest"},"engines":{"node":"20.x","pnpm":"*"}} \ No newline at end of file diff --git a/packages/adapter-mongoose/CHANGELOG.md b/packages/adapter-mongoose/CHANGELOG.md index 75dd4a463..c3893eecd 100644 --- a/packages/adapter-mongoose/CHANGELOG.md +++ b/packages/adapter-mongoose/CHANGELOG.md @@ -1,10 +1,19 @@ # @lucia-auth/adapter-mongoose +## 3.0.0-beta.0 + +### Major changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Require `lucia@^2.0.0` + - Export adapter as named exports (`mongoose()`) + - Update adapter params + ## 2.0.0 ### Major changes - [#529](https://github.com/pilcrowOnPaper/lucia/pull/529) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : [Breaking] Requires `lucia-auth@^1.3.0` + - Update to new specifications ### Patch changes @@ -12,7 +21,9 @@ - [#532](https://github.com/pilcrowOnPaper/lucia/pull/532) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Use projection to fetch data - [#528](https://github.com/pilcrowOnPaper/lucia/pull/528) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Fix bugs + - Fix `Adapter.deleteNonPrimaryKey()` deleting non-primary keys + - Fix `Adapter.updateUserAttributes()` returning old data ## 1.0.0 @@ -97,4 +108,4 @@ ## 0.1.2 -- Update peer dependency +- Update peer dependency \ No newline at end of file diff --git a/packages/adapter-mongoose/package.json b/packages/adapter-mongoose/package.json index 77bbd67f4..b6d2c1be2 100644 --- a/packages/adapter-mongoose/package.json +++ b/packages/adapter-mongoose/package.json @@ -1,49 +1 @@ -{ - "name": "@lucia-auth/adapter-mongoose", - "version": "2.0.0", - "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", - "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" - } -} +{"name":"@lucia-auth/adapter-mongoose","version":"3.0.0-beta.0","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","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 diff --git a/packages/adapter-mysql/CHANGELOG.md b/packages/adapter-mysql/CHANGELOG.md index 1d8c7b186..20b71a304 100644 --- a/packages/adapter-mysql/CHANGELOG.md +++ b/packages/adapter-mysql/CHANGELOG.md @@ -1,5 +1,15 @@ # @lucia-auth/adapter-mysql +## 2.0.0-beta.0 + +### Major changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Require `lucia@^2.0.0` + +### Minor changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Add option to configure table names in `mysql2()` and `planetscale()` + ## 1.1.1 ### Patch changes @@ -10,4 +20,4 @@ ### Minor changes -- [#562](https://github.com/pilcrowOnPaper/lucia/pull/562) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Add PlanetScale serverless adapter +- [#562](https://github.com/pilcrowOnPaper/lucia/pull/562) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Add PlanetScale serverless adapter \ No newline at end of file diff --git a/packages/adapter-mysql/package.json b/packages/adapter-mysql/package.json index 89a26395c..7c5fa1cb7 100644 --- a/packages/adapter-mysql/package.json +++ b/packages/adapter-mysql/package.json @@ -1,62 +1 @@ -{ - "name": "@lucia-auth/adapter-mysql", - "version": "1.1.1", - "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", - "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" - } -} +{"name":"@lucia-auth/adapter-mysql","version":"2.0.0-beta.0","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","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 diff --git a/packages/adapter-postgresql/CHANGELOG.md b/packages/adapter-postgresql/CHANGELOG.md index e592effd7..757cd6899 100644 --- a/packages/adapter-postgresql/CHANGELOG.md +++ b/packages/adapter-postgresql/CHANGELOG.md @@ -1,7 +1,17 @@ # @lucia-auth/adapter-postgresql +## 2.0.0-beta.0 + +### Major changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Require `lucia@^2.0.0` + +### Minor changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Add option to configure table names in `pg()` + ## 1.0.1 ### 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()` +- [#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 diff --git a/packages/adapter-postgresql/package.json b/packages/adapter-postgresql/package.json index 6a4b744b8..9bbb726ec 100644 --- a/packages/adapter-postgresql/package.json +++ b/packages/adapter-postgresql/package.json @@ -1,60 +1 @@ -{ - "name": "@lucia-auth/adapter-postgresql", - "version": "1.0.1", - "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", - "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" - } -} +{"name":"@lucia-auth/adapter-postgresql","version":"2.0.0-beta.0","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","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 diff --git a/packages/adapter-prisma/CHANGELOG.md b/packages/adapter-prisma/CHANGELOG.md index fdc1dddb8..e0f7e886c 100644 --- a/packages/adapter-prisma/CHANGELOG.md +++ b/packages/adapter-prisma/CHANGELOG.md @@ -1,10 +1,19 @@ # @lucia-auth/adapter-prisma +## 3.0.0-beta.0 + +### Major changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Require `lucia@^2.0.0` + - Export adapter as named exports (`prisma()`) + - Update adapter params + ## 2.0.0 ### Major changes - [#529](https://github.com/pilcrowOnPaper/lucia/pull/529) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : [Breaking] Requires `lucia-auth@^1.3.0` + - Update to new specifications ## 1.0.0 @@ -93,4 +102,4 @@ ## 0.1.2 -- Update peer dependency +- Update peer dependency \ No newline at end of file diff --git a/packages/adapter-prisma/package.json b/packages/adapter-prisma/package.json index 11d37f96b..961203e11 100644 --- a/packages/adapter-prisma/package.json +++ b/packages/adapter-prisma/package.json @@ -1,53 +1 @@ -{ - "name": "@lucia-auth/adapter-prisma", - "version": "2.0.0", - "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" - }, - "devDependencies": { - "lucia": "latest", - "@lucia-auth/adapter-test": "latest", - "@prisma/client": "^4.9.0", - "prisma": "^4.9.0", - "tsx": "^3.12.6" - } -} +{"name":"@lucia-auth/adapter-prisma","version":"3.0.0-beta.0","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"},"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 diff --git a/packages/adapter-session-redis/CHANGELOG.md b/packages/adapter-session-redis/CHANGELOG.md index 04e45c715..805c80c4d 100644 --- a/packages/adapter-session-redis/CHANGELOG.md +++ b/packages/adapter-session-redis/CHANGELOG.md @@ -1,5 +1,12 @@ # @lucia-auth/adapter-session-redis +## 2.0.0-beta.0 + +### Major changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Require `lucia@^2.0.0` + - `redis()` expects az single Redis instance instead of 2 + ## 1.0.0 ### Major changes @@ -40,4 +47,4 @@ ### Patch changes -- [#381](https://github.com/pilcrowOnPaper/lucia/pull/381) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Update links in README and package.json +- [#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 diff --git a/packages/adapter-session-redis/package.json b/packages/adapter-session-redis/package.json index 2d2da75b1..8a314ecca 100644 --- a/packages/adapter-session-redis/package.json +++ b/packages/adapter-session-redis/package.json @@ -1,48 +1 @@ -{ - "name": "@lucia-auth/adapter-session-redis", - "version": "1.0.0", - "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", - "redis": "^4.0.0" - }, - "devDependencies": { - "@lucia-auth/adapter-test": "latest", - "dotenv": "^16.0.3", - "redis": "^4.3.1", - "tsx": "^3.12.6", - "lucia": "latest" - } -} +{"name":"@lucia-auth/adapter-session-redis","version":"2.0.0-beta.0","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","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 diff --git a/packages/adapter-sqlite/CHANGELOG.md b/packages/adapter-sqlite/CHANGELOG.md index 5b67cc3b6..6ef661925 100644 --- a/packages/adapter-sqlite/CHANGELOG.md +++ b/packages/adapter-sqlite/CHANGELOG.md @@ -1,5 +1,15 @@ # @lucia-auth/adapter-sqlite +## 2.0.0-beta.0 + +### Major changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Require `lucia@^2.0.0` + +### Minor changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Add option to configure table names in `betterSqlite3()` and `d1()` + ## 1.1.1 ### Patch changes @@ -10,4 +20,4 @@ ### Minor changes -- [#563](https://github.com/pilcrowOnPaper/lucia/pull/563) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Add `d1` adapter for Cloudflare D1 +- [#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 diff --git a/packages/adapter-sqlite/package.json b/packages/adapter-sqlite/package.json index 95973ba40..e2364bc64 100644 --- a/packages/adapter-sqlite/package.json +++ b/packages/adapter-sqlite/package.json @@ -1,59 +1 @@ -{ - "name": "@lucia-auth/adapter-sqlite", - "version": "1.1.1", - "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" - }, - "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" - } -} +{"name":"@lucia-auth/adapter-sqlite","version":"2.0.0-beta.0","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"},"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 diff --git a/packages/adapter-test/CHANGELOG.md b/packages/adapter-test/CHANGELOG.md index 05699984c..66de4ebaf 100644 --- a/packages/adapter-test/CHANGELOG.md +++ b/packages/adapter-test/CHANGELOG.md @@ -1,5 +1,17 @@ # @lucia-auth/adapter-test +## 4.0.0-beta.0 + +### Major changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Require `lucia@^2.0.0` + - Update tests + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Update `testAdapter()` and `testSessionAdapter()` + - Rename type `QueryHandler` to `LuciaQueryHandler` + - Remove `testUserAdapter()` + - Test modules no longer end process by default + ## 3.0.1 ### Patch changes @@ -110,4 +122,4 @@ ## 0.1.2 -- Update peer dependency +- Update peer dependency \ No newline at end of file diff --git a/packages/adapter-test/package.json b/packages/adapter-test/package.json index a1b428302..ae6bc6aaa 100644 --- a/packages/adapter-test/package.json +++ b/packages/adapter-test/package.json @@ -1,45 +1 @@ -{ - "name": "@lucia-auth/adapter-test", - "version": "3.0.1", - "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" - }, - "dependencies": { - "mocha": "^10.2.0" - } -} +{"name":"@lucia-auth/adapter-test","version":"4.0.0-beta.0","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"},"dependencies":{"mocha":"^10.2.0"}} \ No newline at end of file diff --git a/packages/oauth/CHANGELOG.md b/packages/oauth/CHANGELOG.md index 79edddd63..53e5d6734 100644 --- a/packages/oauth/CHANGELOG.md +++ b/packages/oauth/CHANGELOG.md @@ -1,5 +1,17 @@ # @lucia-auth/oauth +## 2.0.0-beta.0 + +### Major changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Remove `redirectUri` from `getAuthorizationUrl()` + +### Minor changes + +- [#682](https://github.com/pilcrowOnPaper/lucia/pull/682) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Require `lucia@^2.0.0` + - Export `useAuth()` + - Remove `provider()` + ## 1.2.1 ### Minor changes @@ -230,4 +242,4 @@ ## 0.1.1 -- Update peer dependency +- Update peer dependency \ No newline at end of file diff --git a/packages/oauth/package.json b/packages/oauth/package.json index 75efceef2..3fad21528 100644 --- a/packages/oauth/package.json +++ b/packages/oauth/package.json @@ -1,48 +1 @@ -{ - "name": "@lucia-auth/oauth", - "version": "1.2.1", - "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" - } -} +{"name":"@lucia-auth/oauth","version":"2.0.0-beta.0","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"}} \ No newline at end of file