smashwilson / pushbot

A Hubot instance that's here to protect you.
11 stars 15 forks source link

Bump pg-promise from 10.12.0 to 10.15.0 #754

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps pg-promise from 10.12.0 to 10.15.0.

Release notes

Sourced from pg-promise's releases.

10.15.0

  • Minimum version of NodeJS required is now v12.0.0 (was v8.0.0 previously). See the check.

10.14.2

  • Assertions were refactored internally, so now they can be overridden via global.pgPromiseAssert. See assert-options module.
  • Improved Buffer detection
  • Documentation updates

10.14.1

Fixes for TypeScript declarations:

  • Fixing declaration for method result
  • Fixing declaration for txMode namespace, so it is consistent with how the library works:

Example of correct txMode usage:

import {txMode} from 'pg-promise';

const {isolationLevel, TransactionMode} = txMode;

const mode = new TransactionMode({tiLevel: isolationLevel.none});

Or, you still can extract those from both uninitialized library:

import * as pgPromise from 'pg-promise';

const {isolationLevel, TransactionMode} = pgPromise.txMode; // from uninitialized library

... and from initialized library instance:

import * as pgPromise from 'pg-promise';

const pgp = pgPromise({/* init options */}); // initializing the library

const {isolationLevel, TransactionMode} = pgp.txMode; // from initialized library

10.14.0

  • Type Result (returned from methods [result] and [multiResult]) is now iterable, automatically exposing rows of data:
const res = await db.result('select * from users');
for (const r of res) {
</tr></table> 

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Superseded by #756.