unstale

npm / mssql

mssql

What changed in mssql 7 to 12, from its official release notes, upgrade guides and advisories. Also covers @types/mssql. Sources checked 2026-11-28.

19 breaking4 security14 new APIs and options5 behavior and defaults1 tooling54 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

mssql 1271 changes

Breaking changes 8

  • msnodesqlv8 now gives value handlers numbers rather than numeric strings.

    12.7.11release notes

  • Requests are rejected when their errors do not end the batch.

    12.7.5release notes

  • Adds support for tedious 20 and removes the TVP schema workaround.

    12.7.0release notes

  • Node.js >=18.19.0 is now required to use this release.

    12.4.0release notes

  • Prepared-statement tracing channels are now nested under the ps namespace.

    12.4.0release notes

  • The msnodesqlv8 driver now treats bigint as a string.

    12.2.3release notes

  • Removes the default value from the CLI flag, so the TDS version is no longer supplied by default.

    12.1.0release notes

  • Config objects are no longer cloned. They are intended to be readonly; modifying them during the process lifetime results in undefined behaviour.

    12.0.0release notes

Security 4

New APIs and options 7

  • Requests can now set their own requestTimeout instead of relying only on the configured timeout.

    12.5.0release notes

  • The CHANNELS constant is exported from the public API so developers can access diagnostics channel names.

    12.4.0release notes

  • Connection creation, destruction, and abort now emit diagnostics events.

    12.4.0release notes

  • Adds a socket-level pool validation mode.

    12.3.0release notes

  • You can provide a specific config.driver for msnodesqlv8.

    12.2.0release notes

  • Adds the --tds-version flag to the CLI so developers can specify the TDS version.

    12.1.0release notes

  • Prepares the tedious connection pool to receive tdsVersion, allowing the TDS version to be passed through.

    12.1.0release notes

Behavior and default changes 1

  • Tracing channel coverage now includes the callback API.

    12.4.0release notes

Fixes and other changes 51

mssql 113 changes

Breaking changes 2

  • Rejects type metadata that escapes a parameter declaration.

    11.0.2release notes

  • Node.js 18 or newer is now required; Node.js 16 support was dropped.

    11.0.0release notes

Fixes and other changes 1

  • Adds support for using native bigint values from tedious.

    11.0.0release notes

mssql 102 changes

Breaking changes 1

  • Node.js versions 14 and earlier are no longer supported.

    10.0.0release notes

Tooling 1

mssql 91 changes

Breaking changes 1

  • Support for Node versions 12 and earlier was dropped.

    9.0.0release notes

mssql 88 changes

Breaking changes 4

  • Explicitly set driver options in config.options are no longer overridden by other values.

    8.0.0release notes

  • Connection string parser helpers have been removed.

    8.0.0release notes

  • Duplicate column names are now presented as an array even when their values are empty.

    8.0.0release notes

  • Deprecated pool properties have been removed.

    8.0.0release notes

New APIs and options 2

  • Adds a method to clear table rows, allowing for chunking updates.

    8.0.0release notes

  • Adds a map for storing callbacks used to process row values.

    8.0.0release notes

Behavior and default changes 2

  • Error messages for invalid bulk load parameters have changed slightly.

    8.0.0release notes

  • The driver detects the OS platform and attempts to select the correct connection string for it.

    8.0.0release notes

mssql 712 changes

Breaking changes 3

  • Node.js versions older than 10 are no longer supported.

    7.0.0release notes

  • Piped streams no longer have errors forwarded to them.

    7.0.0release notes

  • The tedious config option trustServerCertificate now defaults to false when not supplied.

    7.0.0release notes

New APIs and options 5

  • The msnodesqlv8 driver now supports detailed errors.

    7.0.0release notes

  • Use request.arrayRowMode to handle result sets with duplicate keys.

    7.0.0release notes

  • Requests in stream mode now emit a rowsaffected event.

    7.0.0release notes

  • UseUTC is now supported on msnodesqlv8 connections.

    7.0.0release notes

  • Connections are validated before being released from the pool; set validateConnection to false to disable this check.

    7.0.0release notes

Behavior and default changes 2

  • Connection config objects are now deep cloned when stored against a connection pool.

    7.0.0release notes

  • Request.pipe now pipes a true Node stream, improving backpressure support.

    7.0.0release notes

Fixes and other changes 2

  • Resolved an issue with geography v2 parsing.

    7.0.0release notes

  • Fixed trailing rows failing to be emitted from request streams using the msnodesqlv8 driver.

    7.0.0release notes