Build on the supported package contract
Use @absolutejs/dispatch-push-postgres through its supported public entry points.
@absolutejs/dispatch-push-postgresv0.1.0betaMessagingDurable PostgreSQL device registry and fenced fanout claims for @absolutejs/dispatch push lifecycle.
bun add @absolutejs/dispatch-push-postgresProduction persistence for the provider-neutral push lifecycle in @absolutejs/dispatch.
It stores tenant-isolated device registrations, user/device/topic targeting state, invalid-token retirement, and fenced idempotent fanout claims. Apply both exported schemas, then compose the stores with createPushLifecycle.
Registration is atomic across a stable (tenant, platform, deviceId) identity and the provider token. Token rotation retains the subscription identity and removes any superseded token record inside the same fenced transaction.
Outcomes
Use @absolutejs/dispatch-push-postgres through its supported public entry points.
Hardening checklist
Follow in order
# @absolutejs/dispatch-push-postgres
import { createPushLifecycle } from "@absolutejs/dispatch";
import {
createPostgresPushSubscriptionStore,
createPostgresPushFanoutClaimStore,
} from "@absolutejs/dispatch-push-postgres";
import {
createPostgresIdempotentOperationStore,
createPostgresTransactionRunner,
} from "@absolutejs/reliability";
const runner = createPostgresTransactionRunner(pool);
const lifecycle = createPushLifecycle({
adapterFor: ({ platform, tenant }) => resolveTenantAdapter(tenant, platform),
claimStore: createPostgresPushFanoutClaimStore(
createPostgresIdempotentOperationStore(runner),
),
store: createPostgresPushSubscriptionStore(runner),
});Supported entry points declared by this package manifest.
Package entry point declared in package.json.
Scripts declared by this package manifest.
Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.