Skip to content

Conversation

@noxify
Copy link
Owner

@noxify noxify commented Sep 3, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@vorsteh-queue/[email protected]

Minor Changes

  • 73cdaf2: Add Kysely ORM adapter for PostgreSQL with type-safe database operations

    Features:

    • PostgresQueueAdapter: PostgreSQL support using Kysely ORM
    • Raw SQL with SKIP LOCKED for race condition prevention
    • UTC-first design with proper timezone handling
    • Database schema uses UTC defaults: timezone('utc', now()) for PostgreSQL
    • All timestamps explicitly stored as UTC for consistent behavior

    Usage:

    import { Kysely, PostgresDialect } from "kysely"
    import { Pool } from "pg"
    
    import { PostgresQueueAdapter } from "@vorsteh-queue/adapter-kysely"
    import { Queue } from "@vorsteh-queue/core"
    
    const db = new Kysely({
      dialect: new PostgresDialect({
        pool: new Pool({ connectionString: "postgresql://..." }),
      }),
    })
    
    const adapter = new PostgresQueueAdapter(db)
    const queue = new Queue(adapter, { name: "my-queue" })
    
    // Register job handlers
    queue.register("send-email", async (payload: { to: string }) => {
      // Send email logic
      return { sent: true }
    })
    
    // Add jobs
    await queue.add("send-email", { to: "[email protected]" })
    
    // Start processing
    queue.start()

Patch Changes

@vorsteh-queue/[email protected]

Patch Changes

@vorsteh-queue/[email protected]

Patch Changes

@vorsteh-queue/[email protected]

Patch Changes

[email protected]

Patch Changes

@vercel
Copy link

vercel bot commented Sep 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
vorsteh-queue-docs Ready Ready Preview Comment Sep 3, 2025 9:26am

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 3, 2025

Open in StackBlitz

@vorsteh-queue/adapter-drizzle

npm i https://pkg.pr.new/noxify/vorsteh-queue/@vorsteh-queue/adapter-drizzle@22

@vorsteh-queue/adapter-kysely

npm i https://pkg.pr.new/noxify/vorsteh-queue/@vorsteh-queue/adapter-kysely@22

@vorsteh-queue/adapter-prisma

npm i https://pkg.pr.new/noxify/vorsteh-queue/@vorsteh-queue/adapter-prisma@22

@vorsteh-queue/core

npm i https://pkg.pr.new/noxify/vorsteh-queue/@vorsteh-queue/core@22

create-vorsteh-queue

npm i https://pkg.pr.new/noxify/vorsteh-queue/create-vorsteh-queue@22

commit: 37f7fff

@noxify noxify force-pushed the changeset-release/main branch from 8012e10 to 37f7fff Compare September 3, 2025 09:22
@noxify noxify merged commit f666c77 into main Sep 3, 2025
9 checks passed
@noxify noxify deleted the changeset-release/main branch September 3, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants