Update dependency pg-promise to v11 [SECURITY] #45
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^8.2.1->^11.0.0GitHub Vulnerability Alerts
CVE-2025-29744
pg-promise before 11.5.5 is vulnerable to SQL Injection due to improper handling of negative numbers.
Release Notes
vitaly-t/pg-promise (pg-promise)
v11.5.5Compare Source
Thanks to @paul-gerste-sonarsource!
v11.5.4Compare Source
v11.5.3Compare Source
v11.5.2Compare Source
This update is to clarify the full range of environments officially supported:
It is worth noting that:
The CI has been updated accordingly. No functional changes.
v11.5.1Compare Source
v11.5.0Compare Source
Please note that at the time of publishing this, GitHub CI started showing problems again, unrelated to the project. All tests pass locally fine, disregard Failed Build status for the time being.
v11.4.3Compare Source
v11.4.2Compare Source
v11.4.1Compare Source
log.v11.4.0Compare Source
"pg" -> "8.10.0"and"pg-query-stream" -> "4.4.0"IPoolTypeScript declaration with propertiesexpiredCount+log. The latter in case you want to log what the pool is doing:v11.3.0Compare Source
lock_timeout- abort any statement that waits longer than the specified durationidle_in_transaction_session_timeout- terminate any session with an open transaction that has been idle for longerv11.2.0Compare Source
Quick follow up on issues within the previous release:
streamproperty toSocketv11.1.0Compare Source
Please ignore CI errors that are due to this issue, which can be addressed later.
v11.0.2Compare Source
CI integration added, thanks to @dplewis
v11.0.1Compare Source
Removed use of operator
??=, which was causing error under NodeJS version < 15.v11.0.0Compare Source
BREAKING CHANGES
noLockingand all the locking logic has been removed. It was a bit of an over-engineering thing.poolSizehas been retired. You should just use optionmaxnow, for the pool size.OTHER CHANGES
v10.15.4Compare Source
v10.15.3Compare Source
v10.15.2Compare Source
v10.15.1Compare Source
query+paramseven for regular query errors (see pr #852)v10.15.0Compare Source
v10.14.2Compare Source
global.pgPromiseAssert. See assert-options module.Bufferdetectionv10.14.1Compare Source
Fixes for TypeScript declarations:
resulttxModenamespace, so it is consistent with how the library works:Example of correct
txModeusage:Or, you still can extract those from both uninitialized library:
... and from initialized library instance:
v10.14.0Compare Source
Result(returned from methods result and multiResult) is now iterable, automatically exposing rows of data:Above,
res(of typeResult) is now iterable, automatically exposingres.rows.values().To that end, the typescript declarations have been updated accordingly.
TypeScript example
v10.12.1Compare Source
v10.12.0Compare Source
v10.11.1Compare Source
Gitterlink, moving into Discussionsv10.11.0Compare Source
allowExitOnIdle, to let process exit when pool is idle. This means you no longer need to destroy the connection pool inside tests or any run-through process. Instead, just setallowExitOnIdle: truewithin the database connection parameters.pgdriver to v8.7.1v10.10.2Compare Source
v10.10.1Compare Source
Promisefrom methoddone, specifically for direct connections. This was added mainly for consistency with the underlying driver.v10.9.5Compare Source
useCountfor connections is incremented, to make sure it never overfloats, and never resets to zero.v10.9.4Compare Source
pg-nativefrom dependencies, which crawled into the package during tests, yet again.Damn NPM, with its auto-save features!!! 😠
v10.9.3Compare Source
sp_x_yform. See Transaction Limitations.v10.9.2Compare Source
v10.9.1Compare Source
QueryFileclass.v10.9.0Compare Source
v10.8.7Compare Source
pgreplacement with a mock.v10.8.6Compare Source
spexdependency updated.v10.8.5Compare Source
helpersis now more type-strict.v10.8.4Compare Source
v10.8.3Compare Source
v10.8.1Compare Source
pg-query-streamnow requires >= v4.0.0v10.8.0Compare Source
Following up on #765, this release extends filter
:alias, to auto-split name, based on., to support composite SQL names.See also: Alias Filter.
v10.7.5Compare Source
v10.7.4Compare Source
v10.7.3Compare Source
IPooldeclaration.v10.7.2Compare Source
db.$poolis now strongly-typed asIPool.v10.7.1Compare Source
v10.7.0Compare Source
v10.6.2Compare Source
v10.6.1Compare Source
v10.6.0Compare Source
v10.5.8Compare Source
byteatype, see this PR.v10.5.7Compare Source
v10.5.6Compare Source
pgdriver to v8.2.1v10.5.5Compare Source
v10.5.4Compare Source
pgdriver to v8.1.0v10.5.3Compare Source
v10.5.2Compare Source
v10.5.1Compare Source
v10.5.0Compare Source
idleTimeoutMillis(in TypeScript) fromdefaults, due to this bug, and #703v10.4.4Compare Source
v10.4.3Compare Source
v10.4.2Compare Source
v10.4.1Compare Source
v10.4.0Compare Source
pg-query-stream< 3.0.0, see #695v10.3.5Compare Source
This is an important overall-connectivity fix on the base driver, which sometimes would give us a dead connection.
v10.3.4Compare Source
There has been a discrepancy with the driver, as it's undergone many changes when it comes to supporting connection timeouts.
Property
connect_timeoutnow has been removed from thedefaultsof the driver, and propertyconnectionTimeoutMillisadded to the connection parameters, which is the only correct way to set the connection timeout:Note that this change affects only TypeScript clients.
v10.3.3Compare Source
Method proc had a limited functionality, without supporting procedures with output parameters. The method's signature has been revised, to let you get the output values + optionally transform them.
Example
Say, you have a procedure like this one:
Then the following calls can be made now:
v10.3.2Compare Source
No code changes.
After some tests, and looking at what's going on with the driver, decided again upgrading, for now, until it becomes something better. Sometime in January 2020, perhaps.
v10.3.1Compare Source
minconnection option from the TypeScript. The connection pool no longer supports it.v10.3.0Compare Source
v10.2.1Compare Source
pg-nativecrawled into10.2.0package, yet again, after my local tests, thanks to the npm's damn auto-save feature, and it got published unknowingly 😠This update just throws
pg-nativeaway from the package, as it doesn't belong there.v10.2.0Compare Source
UPDATE
The package got crippled here, with
pg-nativedependency injected by mistake. Removed in 10.2.1.v10.1.0Compare Source
Implemented #673 - adding
serverVersioneverywhere.Now you have the server version inside any task or transaction context (see TaskContext):
And the low-level
Clienttype has been extended as well:NOTE: This feature is not available with
Native Bindingsv10.0.1Compare Source
Documentation updates only.
v10.0.0Compare Source
Below are breaking changes:
CALL procName()syntax, for native stored procedures, which requires PostgreSQL v11 or later.v9.3.6Compare Source
v9.3.5Compare Source
Quick patch for #667, to let TypeScript also infer the client type for events within the initialization options.
Example
v9.3.4Compare Source
No code changes.
v9.3.3Compare Source
Finalizing #657, added many tests, and changed internal
BigIntreplacement pattern to"123#bigint", which should not break anything by accident.v9.3.2Compare Source
Patches #657 to properly format BigInt when used with JSON Filter and as.json function.
v9.3.1Compare Source
Improving on #657, with support for JSON serialization for BigInt, i.e. now JSON Filter will work for BigInt, as well as method as.json, and all inner serializations within the library.
v9.3.0Compare Source
BigInttype.BigIntNative SupportNow you can enable native BigInt support when running under Node.js v10.4.0 or later.
The following will make types
BIGINTandBIGSERIALarrive as BigInt type:And if you make use of arrays of BigInt, you can convert them with this:
And the query-formatting engine now lets you use type BigInt for query values directly:
v9.2.1Compare Source
A quick follow-up on v9.2.0 release:
v9.2.0Compare Source
Major refactoring within the query-formatting engine + the
helpersnamespace, to support more generic way of propagating formatting options through all layers of the library.Method as.format now supports option
capSQL, which currently will only affect arrays, to be formatted usingARRAYinstead ofarray. Andhelpersnamespace is affected by this automatically, while the globalcapSQLoption is used in the absence of the one set locally.Method as.array now supports the same option
capSQL.v9.1.4Compare Source
Documentation updates only.
v9.1.3Compare Source
v9.1.2Compare Source
Dependency updates.
v9.1.1Compare Source
If you are using TypeScript, and importing types for extensions
batch,sequenceorpage, you may need to update those, as types were replaced with interfaces, to make them extendable.Also, all errors that can be generated by the above methods are no longer ES5 errors, they are now proper ES6 error classes.
v9.1.0Compare Source
Implementation of #642 has been merged into the main branch, for the official release.
Dropped connections are now processed differently, without returning them into the pool. It is a major internal change, but other than that, nothing changed within the client's protocol.
From the previous updates, TypeScript issues related to the
strictmode have been resolved also.This update is a must-have, especially if you are writing in TypeScript's
strictmode.v9.0.3Compare Source
Major TypeScript updates, no code changes.
In reality, there was substantial refactoring within TypeScript declarations, to support
strictmode, for the driver, plus other issues that came up within tests. And pg-promise-demo has been updated to take advantage of thestrictmode compatibility.And to make sure it stays that way, TypeScript tests in the project are now in strict mode, as per tsconfig.json.
Thanks @72636c for pointing out the
strictmode issue, and the initial PR.v9.0.2Compare Source
v9.0.1Compare Source
builtinsproperty within TypeScript, i.e.pgp.pg.types.builtinsv9.0.0Compare Source
Official v9 Release
Node.js and TypeScript Requirements
TypeScript
Many declarations have been renamed and refactored to comply with the latest TypeScript recommendations. So if you are using TypeScript, you may need to update a few types. Follow the official start page for the TypeScript. And pg-promise-demo has been updated for v9.
ES6/ES7
Significant portion of the code has been rewritten from ES5 syntax to ES6, and ES7, which is why Node.js requirements were upgraded.
Removed Features
async/awaitonly.objectToCodeandbuildSqlModulewere removed from the utils namespace.Removed Mixed Parameters
Such types as TableName, TransactionMode, PreparedStatement and ParameterizedQuery no longer support mixed parameterization, they now only support an object-parameter, with correct options, to avoid ambiguity.
Dependency Updates
pgdriver to the latest7.12.0, plus internalassert-optionsmodule.v8.7.5Compare Source
ROLLBACKlogic for failed connections, following this PR.v8.7.4Compare Source
v8.7.3Compare Source
v8.7.2Compare Source
v8.7.1Compare Source
v8.7.0Compare Source
Fixing #599 and #600, thanks to @johanneswuerbach
Updating many dependencies, including:
v8.6.5Compare Source
Updated dependencies + documentation.
v8.6.4Compare Source
Updating dependencies, including the driver version to 7.9.0
v8.6.3Compare Source
v8.6.2Compare Source
Patching 8.6.1 update with this PR.
v8.6.1Compare Source
Minor breaking change: Finalizing assert-options integration, into type
QueryFilethat was missed in v8.6.0.v8.6.0Compare Source
defaulttodeffor method as.format, to avoid conflicts with the JavaScript reserved word.v8.5.6Compare Source
v8.5.5Compare Source
v8.5.4Compare Source
v8.5.3Compare Source
v8.5.2Compare Source
v8.5.1Compare Source
v8.5.0Compare Source
v8.4.6Compare Source
v8.4.5Compare Source
v8.4.4Compare Source
v8.4.3Compare Source
v8.4.2Compare Source
v8.4.1Compare Source
v8.4.0Compare Source
v8.3.3Compare Source
v8.3.2Compare Source
v8.3.1Compare Source
v8.3.0Compare Source
v8.2.3Compare Source
v8.2.2Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.