Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
@voltagent_supabase@0.1.19 source code.tar.gz | 2025-08-09 | 3.5 MB | |
@voltagent_supabase@0.1.19 source code.zip | 2025-08-09 | 4.2 MB | |
README.md | 2025-08-09 | 1.7 kB | |
Totals: 3 Items | 7.6 MB | 0 |
Patch Changes
-
#479
8b55691
Thanks @zrosenbauer! - feat: Addedlogger
to the SupabaseMemory provider and provided improved type safety for the constructorNew Features
logger
You can now pass in a
logger
to the SupabaseMemory provider and it will be used to log messages.```typescript import { createPinoLogger } from "@voltagent/logger";
const memory = new SupabaseMemory({ client: supabaseClient, logger: createPinoLogger({ name: "memory-supabase" }), }); ```
Improved type safety for the constructor
The constructor now has improved type safety for the
client
andlogger
options.typescript const memory = new SupabaseMemory({ client: supabaseClient, supabaseUrl: "https://test.supabase.co", // this will show a TypeScript error supabaseKey: "test-key", });
The
client
option also checks that theclient
is an instance ofSupabaseClient
typescript const memory = new SupabaseMemory({ client: aNonSupabaseClient, // this will show a TypeScript error AND throw an error at runtime });
Internal Changes
- Cleaned up and reorganized the SupabaseMemory class
- Renamed files to be more descriptive and not in the
index.ts
file - Added improved mocking to the test implementation for the SupabaseClient
- Removed all
console.*
statements and added abiome
lint rule to prevent them from being added back