Skip to content

Releases: voxpelli/node-connect-pg-simple

v10.0.0

13 Sep 17:04
9d6765e
Compare
Choose a tag to compare

10.0.0 (2024-09-13)

⚠ BREAKING CHANGES

  • require node.js >=18

🩹 Fixes

  • add name to main function (c98e2ec)
  • deps: use latest version of pg (81b5630)
  • require node.js >=18 (d51b6ca)

🧹 Chores

  • deps: update knip (f78ef50)
  • deps: update validate-conventional-commit (84f525a)
  • deps: update dependency dotenv to ^16.4.5 (#308) (f97bd51)
  • deps: update dependency express to ^4.21.0 (#310) (01c9a55)
  • deps: update dependency express-session to ^1.18.0 (#309) (eef0e31)
  • deps: update dependency pg-promise to ^11.9.1 (#312) (a553301)
  • deps: update dev dependencies (d4488dc)
  • deps: update dev dependencies (21e41c4)
  • deps: update linting dependencies (817f082)
  • deps: update linting dependencies (a4e9e46)
  • deps: update type dependencies (97e581f)
  • deps: update typescript setup (7c86411)
  • deps: use neostandard linting (354f6b3)
  • fix @types/superagent type regression (649888c)

v9.0.1

01 Nov 19:20
285c3e9
Compare
Choose a tag to compare

9.0.1 (2023-11-01)

Bug Fixes

  • Move @types/pg to dev dependencies (ea4a9c1)

v9.0.0

07 Jun 16:47
83abd00
Compare
Choose a tag to compare
  • Breaking change: Require Node version >=16.0.0
  • Notable: Start automatic pruning lazily. Wait for first use of the session manager before scheduling the pruning. #285
  • Change: Log whole error object instead of only message. Thanks @safareli! #225
  • ...and internal updates to dev dependencies etc

v8.0.0...v9.0.0

v8.0.0

12 Nov 18:39
f461146
Compare
Choose a tag to compare
  • BREAKING: Require Node version ^14.18.0 || >=16.0.0 ec7aa41 390aecb
  • Notable: Mark most private methods and properties as actually private using the Private class feature (having the name begin with a #) This can be breaking if you relied on those properties or methods 75bf29b 96493b6
  • Internal: Update included version of pg 43c015d
  • Internal: Use node: to import built in modules 4ebc956
  • ...and a lot of updates to dev dependencies, GitHub Action workflows etc

All commits: v7.0.0...v8.0.0

v7.0.0

06 Sep 21:31
Compare
Choose a tag to compare
  • Breaking change: Now requires at least Node.js 12.x
  • Possibly breaking change: Align session expiration logic with connect-redis which in turned aligned with connect-mongo. Fixes #54.
  • Minor breaking change: The .close() method is now async and returns a Promise that will be resolved when this session store is fully shut down. Fixes #183.
  • Feature: New option: disableTouch. Disables updating of TTL in database on touch. Fixes #55.
  • Feature: New option: createTableIfMissing. When set, the session table will be automatically created if missing. Fixes #158 and #173. Thanks @aadeshmisra!
  • Tweak: Slightly tweaked the pg-promise integration. Fixes #153.
  • Tweak: Introduced a new internal _asyncQuery() function in a move to modernize internal code on top of Promise / async / await.

v6.2.1...v7.0.0

v7.0.0-0

18 Jan 10:14
Compare
Choose a tag to compare
v7.0.0-0 Pre-release
Pre-release
  • Possibly breaking change: Align session expiration logic with connect-redis which in turned aligned with connect-mongo. Fixes #54.
  • Minor breaking change: The .close() method is now async and returns a Promise that will be resolved when this session store is fully shut down. Fixes #183.
  • Minor breaking change: Now requires Node version ^10.17.0 || >=11.14.0
  • Feature: New option: disableTouch. Disables updating of TTL in database on touch. Fixes #55.
  • Feature: New option: createTableIfMissing. When set, the session table will be automatically created if missing. Fixes #158 and #173. Thanks @aadeshmisra!
  • Tweak: Slightly tweaked the pg-promise integration. Fixes #153.
  • Tweak: Introduced a new internal _asyncQuery() function in a move to modernize internal code on top of Promise / async / await.

v6.2.1...v7.0.0-0

v6.2.1

19 Aug 13:44
Compare
Choose a tag to compare
  • Fix: Regression, query errors wasn't properly forwarded. Fixes #180 and #179. Thanks @alxndrsn! (5c324ac)
  • Test: Added test for above regression (fd36978)
  • Change: Improved types + error return values (f73ea0d 68a2242)
  • Change: Updated SECURITY.md to delegate security reports to Tidelift, and thus ensure quicker responses (7683d40 59c7fbc)

v6.2.0...v6.2.1

v6.2.0

06 Aug 21:09
Compare
Choose a tag to compare
  • Important fix: Bump pg to 8.2.1 to support node 14+
  • Change: Change default prine interval to 15 mins
  • Test: Add Node 14 to GitHub CI
  • Test: Added more types and type linting

v6.1.0...v6.2.0

v6.1.0

29 Dec 21:22
Compare
Choose a tag to compare
  • Feature: Prune intervals are now by default randomized between 50% and 150% of the set prune value, making the average prune interval be the same as before, but makes database load more even by making it unlikely for eg. many instances to all prune at once.
  • Feature: New option pruneSessionRandomizedInterval enables deactivation + customization of the new random prune interval feature.
  • Change: Default prune interval is now 5 minutes, rather than 1 minute. No need to clean extremely often. Will probably make even longer eventually, but a more drastic change could be kind of a breaking change. Please comment in #162 with feedback on future default.
  • Performance: The database schema definition now specifies an index on the expire column. You have to add this yourself if you have already set up this module. The change is purely for enhancing performance and can be skipped if no performance issues have been experiences. It is recommended to apply it though.

v6.0.1...v6.1.0

v6.0.1

21 Aug 21:25
Compare
Choose a tag to compare
  • Very minor security fix: schemaName and tableName wasn't escaped. If any of the two contained a string with a double quote in it, then that would enable an SQL injection. This was previously a feature of tableName, before the introduction of a separate schemaName, as that allowed a schema to be defined as part of tableName. Defining schema name through tableName is still supported after this fix, but is now deprecated.
  • Fix: Errors wasn't propagated properly. Fixed in #150. Thanks @bobnil!

v6.0.0...v6.0.1