mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-30 02:46:44 -05:00
fix(adapters): restore deprecated createAdapter and type exports for backcompat (#8461)
This commit is contained in:
@@ -779,7 +779,6 @@ All previously deprecated APIs have been removed. This includes deprecated adapt
|
||||
|
||||
| Removed | Replacement |
|
||||
| --- | --- |
|
||||
| `createAdapter` | `createAdapterFactory` |
|
||||
| `Adapter` | `DBAdapter` |
|
||||
| `TransactionAdapter` | `DBTransactionAdapter` |
|
||||
| `Store` (client) | `ClientStore` |
|
||||
|
||||
@@ -35,3 +35,23 @@ export {
|
||||
initGetFieldAttributes,
|
||||
initGetIdField,
|
||||
};
|
||||
|
||||
/**
|
||||
* @deprecated Use `createAdapterFactory` instead.
|
||||
*/
|
||||
export const createAdapter = createAdapterFactory;
|
||||
|
||||
/**
|
||||
* @deprecated Use `AdapterFactoryOptions` instead.
|
||||
*/
|
||||
export type CreateAdapterOptions = AdapterFactoryOptions;
|
||||
|
||||
/**
|
||||
* @deprecated Use `AdapterFactoryConfig` instead.
|
||||
*/
|
||||
export type AdapterConfig = AdapterFactoryConfig;
|
||||
|
||||
/**
|
||||
* @deprecated Use `AdapterFactoryCustomizeAdapterCreator` instead.
|
||||
*/
|
||||
export type CreateCustomAdapter = AdapterFactoryCustomizeAdapterCreator;
|
||||
|
||||
Reference in New Issue
Block a user