consumer-pgmq 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -5
  2. package/package.json +4 -1
package/README.md CHANGED
@@ -54,9 +54,8 @@ if you use read consume type, the pool size is the number of messages will get a
54
54
  import { config } from "dotenv"
55
55
  config()
56
56
 
57
- import Consumer from '../src/consumer';
57
+ import { SupabaseQueueDriver, Consumer } from "consumer-pgmq"
58
58
  import { createClient, SupabaseClient } from '@supabase/supabase-js';
59
- import SupabaseQueueDriver from '../src/queueDriver/SupabaseQueueDriver';
60
59
 
61
60
 
62
61
  const supabase = createClient(
@@ -142,8 +141,7 @@ start()
142
141
  import { config } from "dotenv"
143
142
  config()
144
143
 
145
- import Consumer from '../src/consumer';
146
- import PostgresQueueDriver from '../src/queueDriver/PostgresQueueDriver';
144
+ import { Consumer, PostgresQueueDriver } from "consumer-pgmq"
147
145
  import timersPromises from "node:timers/promises";
148
146
  import knex from 'knex'
149
147
 
@@ -160,7 +158,7 @@ async function start() {
160
158
  }
161
159
  });
162
160
 
163
- const postgresQueueDriver = new PostgresQueueDriver(connection)
161
+ const postgresQueueDriver = new PostgresQueueDriver(connection, "schema_name_here")
164
162
 
165
163
  const consumer = new Consumer(
166
164
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "consumer-pgmq",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "The consumer of Supabase pgmq",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
@@ -32,5 +32,8 @@
32
32
  "jest": "^30.1.1",
33
33
  "knex": "^3.1.0",
34
34
  "pg": "^8.16.3"
35
+ },
36
+ "engines": {
37
+ "node": ">=20.0.0"
35
38
  }
36
39
  }