0.2.1 • Published 7 months ago
@fedify/postgres v0.2.1
@fedify/postgres: PostgreSQL drivers for Fedify
This package provides Fedify's KvStore
and MessageQueue
implementations for PostgreSQL:
import { createFederation } from "@fedify/fedify";
import { PostgresKvStore, PostgresMessageQueue } from "@fedify/postgres";
import postgres from "postgres";
const sql = postgres("postgresql://user:password@localhost/dbname");
const federation = createFederation({
kv: new PostgresKvStore(sql),
queue: new PostgresMessageQueue(sql),
});
Installation
Deno
deno add @fedify/postgres
Node.js
npm install @fedify/postgres
Bun
bun add @fedify/postgres
Changelog
Version 0.2.1
Released on November 3, 2024.
- Fixed a bug where some scalar values have failed to be stored in the database.
Version 0.2.0
Released on November 3, 2024.
Fixed a bug where JSON values are double-quoted in the database. Since it's a breaking change data-wise, the default values of the following options are also changed:
PostgresKvStoreOptions.tableName
defaults to"fedify_kv_v2"
.PostgresMessageQueueOptions.tableName
defaults to"fedify_message_v2"
.
Version 0.1.0
Initial release. Released on September 26, 2024.
0.2.1
7 months ago
0.2.0
7 months ago
0.1.0
9 months ago
0.1.0-dev.4
9 months ago
0.1.0-dev.3
9 months ago
0.1.0-dev.2
9 months ago