fix(adapters): restore deprecated createAdapter and type exports for backcompat (#8461)

This commit is contained in:
Alex Yang
2026-03-06 12:46:10 -08:00
committed by GitHub
parent fca4019bba
commit 096d9bdf7e
2 changed files with 20 additions and 1 deletions

View File

@@ -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` |

View File

@@ -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;