fix(mikro-orm-adapter): update MikroORM to V6
☕️ Reasoning
- Updating documentation to reflect changing from V5 to V6 when initializing Mikro-ORM: https://mikro-orm.io/docs/upgrading-v5-to-v6#the-type-option-is-removed-in-favour-of-driver-exports
- Updating adapter
@auth/mikro-orm-adapterto MikroORM V6
🧢 Checklist
- [x] Documentation
- [ ] Tests
- [ ] Ready to be merged
🎫 Affected issues
📌 Resources
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| auth-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Dec 29, 2024 8:23pm |
1 Skipped Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| next-auth-docs | ⬜️ Ignored (Inspect) | Visit Preview | Dec 29, 2024 8:23pm |
@emulienfou is attempting to deploy a commit to the authjs Team on Vercel.
A member of the Team first needs to authorize it.
The @auth/mikro-orm-adapter is still on v5 it looks like.
If you'd like to bump the peer dependencies and ensure it still works with v6, etc. we'd really appreciate it though!
Hi @ndom91 Trying to update @auth/mikro-orm-adapter to MikroORM V6, however having one last issue:
src/index.ts(143,28): error TS2345: Argument of type 'AdapterAccount' is not assignable to parameter of type 'AdapterAccount & { readonly [x: string]: never; readonly expires_in?: undefined; }'.
Type 'AdapterAccount' is not assignable to type '{ readonly [x: string]: never; readonly expires_in?: undefined; }'.
Types of property 'expires_in' are incompatible.
Type 'number | undefined' is not assignable to type 'undefined'.
Type 'number' is not assignable to type 'undefined'.
Seems to be an issue with interface OpenIDTokenEndpointResponse properties:
-
readonly expires_in?: number; -
readonly [parameter: string]: JsonValue | undefined;
Should I omit them, or do you have any ideas?
Hi @ndom91 Trying to update
@auth/mikro-orm-adapterto MikroORM V6, however having one last issue:src/index.ts(143,28): error TS2345: Argument of type 'AdapterAccount' is not assignable to parameter of type 'AdapterAccount & { readonly [x: string]: never; readonly expires_in?: undefined; }'. Type 'AdapterAccount' is not assignable to type '{ readonly [x: string]: never; readonly expires_in?: undefined; }'. Types of property 'expires_in' are incompatible. Type 'number | undefined' is not assignable to type 'undefined'. Type 'number' is not assignable to type 'undefined'.Seems to be an issue with interface
OpenIDTokenEndpointResponseproperties:
readonly expires_in?: number;readonly [parameter: string]: JsonValue | undefined;Should I omit them, or do you have any ideas?
Hmm, where does that expires_in field, for example, even come from? It's not part of the Account default entity, right? I'd almost say you can put a // @ts-expect-error on it, but if you do make sure you test that method :pray:
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎
This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@auth/[email protected], npm/@solidjs/[email protected], npm/@solidjs/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]
Deployment failed with the following error:
The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.
Note to other maintainers. This will require a MAJOR version bump, as it modifies peer dependencies.