Skip to content

Conversation

@KenLee360
Copy link
Owner

snyk-top-banner

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
    1. release binaries for electron v29,v30,v31 (v28 not supported) #324
    2. node v22 binaries
    3. patch PR from contributor on date parsing #318
    4. update packages to latest
    5. reworked typings to better interop with JS/TS
    import sql from 'msnodesqlv8'
    import 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 connectionString = "Driver={ODBC Driver 17 for SQL Server};Server=(localdb)\node;Database=scratch;Trusted_Connection=yes;"

    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)
    })

    image

  • 4.2.0 - 2024-04-23

    Merge pull request #326 from TimelordUK/electron.v29

    Electron.v29

  • 4.1.2 - 2023-11-19

    NextJS patch

    please see https://github.com/TimelordUK/todo-with-nextjs_msnodesqlv8

    for a sample NextJS application using msnodesqlv8

  • 4.1.1 - 2023-10-20
    1. electron v27 binaries
    2. node v21 binaries
  • 4.1.0 - 2023-05-23

    typescript users note types are now split into their own module

    import { Error, PoolOptions, Query, SqlClient, QueryDescription, Pool, PoolStatusRecord } from 'msnodesqlv8/types'
    const sql: SqlClient = require('msnodesqlv8')
    1. #284

    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

    1. #285

    tested platforms

    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
    1. #287 - unicode 16 bit col names

    2. electron 25 binaries

    3. electron 26 binaries

from msnodesqlv8 GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

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:

Snyk has created this PR to upgrade msnodesqlv8 from 4.1.0 to 4.2.1.

See this package in npm:
msnodesqlv8

See this project in Snyk:
https://app.snyk.io/org/kenlee360/project/0020c4fe-5eba-4ac2-9f62-d031e31a1a31?utm_source=github&utm_medium=referral&page=upgrade-pr
@KenLee360 KenLee360 closed this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants