[Snyk] Upgrade msnodesqlv8 from 4.1.0 to 4.2.1 #5
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.
Snyk has created this PR to upgrade msnodesqlv8 from 4.1.0 to 4.2.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 4 versions ahead of your current version.
The recommended version was released on 4 months ago.
Release notes
Package name: msnodesqlv8
-
4.2.1 - 2024-04-23
description
link
next js example, note cant run driver on UI thread.
todo-with-nextjs_msnodesqlv8
using in typescript
msnodesqlv8_ts_sample
js example typings in IDE
msnodesqlv8_yarn_sample
using sequelize
msnodesqlv8-sequelize
- release binaries for electron v29,v30,v31 (v28 not supported) #324
- node v22 binaries
- patch PR from contributor on date parsing #318
- update packages to latest
- reworked typings to better interop with JS/TS
import sql from 'msnodesqlv8'
const connectionString = "Driver={ODBC Driver 17 for SQL Server};Server=(localdb)\node;Database=scratch;Trusted_Connection=yes;"

-
4.2.0 - 2024-04-23
-
4.1.2 - 2023-11-19
-
4.1.1 - 2023-10-20
- electron v27 binaries
- node v21 binaries
-
4.1.0 - 2023-05-23
- #284
- #285
OS
Node Version
ODBC Version
SSL version
action
Windows 10
12, 14, 16, 18, 20
17, 18
leave default
Windows 11
18, 20
18
leave default
Ubuntu 22.04.2
18, 20
17, 18
openssl 3.2
e.g. tool/openssl.sh
Ubuntu 20.04
18, 20
18
openssl 3.2
e.g. tool/openssl.sh
Ubuntu 20.04
12, 14, 16
17, 18
openssl 1.1
leave default
Lubuntu 20.04
18, 20
18
openssl 3.2
e.g. tool/openssl.sh
Debian
18, 20
17, 18
openssl 3.2
e.g tool/openssl.sh
Alpine 3.16
18
18
openssl 1.1.1t
leave default
MacOS Big Sur
18, 20
18
libressl 2.8.3
leave default
-
-
-
from msnodesqlv8 GitHub release notesimport Connection = MsNodeSqlV8.Connection
import ConnectionPromises = MsNodeSqlV8.ConnectionPromises
async function t() {
const connectionString = "Driver={ODBC Driver 17 for SQL Server};Server=(localdb)\node;Database=scratch;Trusted_Connection=yes;"
const con:Connection = await sql.promises.open(connectString)
const promises:ConnectionPromises = con.promises
const res = await promises.query('select @@ servername as server')
console.log(JSON.stringify(res, null, 4))
await con.promises.close()
}
t().then(() => {
console.log('closed')
})
const sql = require('msnodesqlv8')
const query = 'SELECT top 2 * FROM syscolumns'
async function runner() {
console.log(
using connection '<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">connectionString</span><span class="pl-kos">}</span></span>' run query '<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">query</span><span class="pl-kos">}</span></span>')const res = await sql.promises.query(connectionString, query)
console.log(JSON.stringify(res, null, 4))
}
runner().then(() => {
console.log('done.')
}).catch(e => {
console.error(e)
})
Merge pull request #326 from TimelordUK/electron.v29
Electron.v29
NextJS patch
please see https://github.com/TimelordUK/todo-with-nextjs_msnodesqlv8
for a sample NextJS application using msnodesqlv8
typescript users note types are now split into their own module
proven solution for Debian, Ubuntu running node 18, 20 experiencing SEGV core dump - install from src openssl 3.2
see appveyor and tool/openssl.sh
tested platforms
#287 - unicode 16 bit col names
electron 25 binaries
electron 26 binaries
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: