pg-listen

📡 PostgreSQL LISTEN & NOTIFY for node.js that finally works.

MIT License

Downloads
135.2K
Stars
563
Committers
6

Bot releases are visible (Hide)

pg-listen - v1.7.0 Latest Release

Published by andywer almost 4 years ago

Small release, significantly improving performance when working with A LOT of channels.
Thanks for the pull request, @maxpain!

Changes

  • Improve channel management performance (#48)
pg-listen - v1.6.1

Published by andywer almost 4 years ago

Just a small release shipping a performance fix by @maxpain.

Bug fixes

  • Performance fix: Avoid potentially expensive operation when not debugging (#44)
  • Commit the updated TypeScript declarations file (didn't update for previous release)
pg-listen - v1.6.0

Published by andywer about 4 years ago

Minor feature release, adding dynamic retry intervals. Makes things like exponentially increasing retry intervals possible.

Features

  • Allow passing retryInterval callback (#41)
pg-listen - v1.5.1

Published by andywer over 4 years ago

Just a tiny patch release updating the pg peer dependency version range.

Chores

  • Update pg version range (#37)
pg-listen - v1.5.0

Published by andywer about 5 years ago

Minor release, shipping improved type declarations only. You can now exactly declare the channels and notification types.

Features

  • Make subscriber interface generic (#28)
pg-listen - v1.4.0

Published by andywer about 5 years ago

Minor release, shipping a tiny feature.

Features

  • Emit connected event (#26)
pg-listen - v1.3.2

Published by andywer about 5 years ago

Ships a bug fix and comes with updated dependencies to fix npm audit security warnings.

Bug fixes

  • Allow .notify() without payload and fix parsing payload-less notifications (#24)
pg-listen - v1.3.1

Published by andywer over 5 years ago

Ships an important bug fix.

Bug fixes

  • Fix unhandled promise rejection (#22)
pg-listen - v1.3.0

Published by andywer over 5 years ago

Minor feature release.

Allows you to set a custom parse and serialize option. It still defaults to JSON.parse / JSON.stringify, but you are now able to work with different data formats, too.

See #18.

pg-listen - v1.2.2

Published by andywer over 5 years ago

Important bug fix!

A critical bug has been fixed were the library did not successfully re-subscribe to the channels after reconnecting. See #14.

The bug has been fixed and a comprehensive integration test that also serves as a regression test has been added.

Happy hacking!

pg-listen - v1.2.1

Published by andywer over 5 years ago

Just a tiny fix to get rid of an annoying error message on start.

Bug fixes

  • Fix Cannot find module "pg-native" error message (#15)
  • Fix one situation where a re-connection error might not have been logged (#17)
pg-listen - v1.2.0

Published by andywer over 5 years ago

Another small update, thanks to @bergundy!

Chores

  • Explicitly define & export Subscriber interface (#11)
  • Updated (mostly dev) dependencies (#13)
pg-listen - v1.1.0

Published by andywer almost 6 years ago

A small update: Introducing a CommonJS default export convenience hack.

New features

  • Additionally to the ES module default export, you can now require() from the package without .default (#6)
- const createSubscriber = require("pg-listen").default
+ const createSubscriber = require("pg-listen")

Note: require("pg-listen").default will still work.

pg-listen - v1.0

Published by andywer almost 6 years ago

Bump to v1.0 🥳🚀

Feels stable enough that it now deserves a major version greater than zero. No noticeable changes.

pg-listen - v0.1.4

Published by andywer almost 6 years ago

Bug fixes

  • Use pg.ClientConfig type for connection options (#3)
pg-listen -

Published by andywer about 6 years ago

Bug fixes

  • Cancel paranoid checking when closing the pg-listener (#2, by @kesla)
pg-listen - v0.1.2

Published by andywer about 6 years ago

Initial release.

v0.1.0 had a typo in the package.json peerDependencies property and v0.1.1 was lacking files that should have been published.