From 4793530783443e5ee2da48faaec0f88d3c00945c Mon Sep 17 00:00:00 2001 From: Sam Willis Date: Mon, 29 Jul 2024 17:12:36 +0100 Subject: [PATCH] Remove withExtensions static method --- packages/pglite/src/pglite.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/packages/pglite/src/pglite.ts b/packages/pglite/src/pglite.ts index b1078519..371057ff 100644 --- a/packages/pglite/src/pglite.ts +++ b/packages/pglite/src/pglite.ts @@ -761,22 +761,6 @@ export class PGlite implements PGliteInterface { this.#globalNotifyListeners.delete(callback); } - /** - * Create a new PGlite instance with extensions on the Typescript interface - * (The main constructor does enable extensions, however due to the limitations - * of Typescript, the extensions are not available on the instance interface) - * @param dataDir The directory to store the database files - * Prefix with idb:// to use indexeddb filesystem in the browser - * Use memory:// to use in-memory filesystem - * @param options Optional options - * @returns A new PGlite instance with extensions - */ - static withExtensions( - options?: O, - ): PGlite & PGliteInterfaceExtensions { - return new PGlite(options) as any; - } - /** * Dump the PGDATA dir from the filesystem to a gziped tarball. * @returns The tarball as a File object where available, and fallback to a Blob