Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sidorares/node-mysql2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.21.0
Choose a base ref
...
head repository: sidorares/node-mysql2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.21.1
Choose a head ref
  • 11 commits
  • 14 files changed
  • 4 contributors

Commits on Apr 9, 2026

  1. 1 Configuration menu
    Copy the full SHA
    01c3977 View commit details
    Browse the repository at this point in the history
  2. fix: use Number.isSafeInteger for supportBigNumbers boundary check (#…

    …4225)
    
    * fix: use Number.isSafeInteger for supportBigNumbers boundary check (#3597)
    
    The previous toString() round-trip check incorrectly returned ±2^53
    (MAX_SAFE_INTEGER ± 1) as numbers because that value is exactly
    representable as a double. Number.isSafeInteger is the correct predicate
    — it returns false for ±2^53 and the values are now returned as strings.
    
    Fixes #3597
    
    * test: add integration test for supportBigNumbers boundary (#3597)
    
    Verifies that values at ±(MAX_SAFE_INTEGER+1) are returned as strings
    when supportBigNumbers is enabled, on both text and binary protocols.
    
    * fix: update test expectations for supportBigNumbers boundary fix (#3597)
    
    - test-insert-bigint: 9007199254740992 (2^53) is now correctly returned
      as a string with supportBigNumbers enabled
    - test-support-big-numbers-boundary: fix prettier formatting
    sidorares authored Apr 9, 2026
    Configuration menu
    Copy the full SHA
    295264b View commit details
    Browse the repository at this point in the history
  3. fix: limit client flags to server capabilities (#4227)

    * Limit client flags to server capabilities
    
    * fix: default serverFlags for backward compatibility in fromPacket
    
    When fromPacket is called without serverFlags (e.g. in tests or
    external consumers), (clientFlags & undefined) evaluates to NaN,
    making all isSet() checks return 0. Default to 0xFFFFFFFF (all bits
    set) so omitting serverFlags preserves the original behavior.
    
    * test: add unit tests for fromPacket server flags masking
    
    Covers the fix for #2261 where clients set CONNECT_ATTRS without
    including the attributes payload:
    
    - All flags match: every field parsed correctly
    - CONNECT_ATTRS stripped by server: attributes skipped, no buffer overrun
    - Both sides omit CONNECT_ATTRS: clean parse without attribute data
    - Raw clientFlags preserved in returned args despite server masking
    - No serverFlags argument: backward-compatible full parse
    
    * test: add integration test for server handshake without CONNECT_ATTRS
    
    Uses a custom Command to create a fake MySQL server that advertises
    capabilities without CONNECT_ATTRS. Verifies that:
    
    - fromPacket masks out CONNECT_ATTRS when parsing the client response
    - connectAttributes is undefined in the parsed result
    - raw clientFlags still contain the original CONNECT_ATTRS bit
    - the handshake completes and a query succeeds afterward
    
    * docs: update query attributes and server API documentation
    
    - Rephrase "Disabling Query Attributes" to clarify automatic negotiation
    - Document capabilityFlags masking behavior in server API docs
    - Fix prettier formatting across all changed files
    
    ---------
    
    Co-authored-by: Kris Braun <kris.braun@letscollide.io>
    sidorares and KrisBraun authored Apr 9, 2026
    Configuration menu
    Copy the full SHA
    e1930b8 View commit details
    Browse the repository at this point in the history
  4. build(deps): bump lucide-react from 1.7.0 to 1.8.0 in /website (#4234)

    Bumps [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) from 1.7.0 to 1.8.0.
    - [Release notes](https://github.com/lucide-icons/lucide/releases)
    - [Commits](https://github.com/lucide-icons/lucide/commits/1.8.0/packages/lucide-react)
    
    ---
    updated-dependencies:
    - dependency-name: lucide-react
      dependency-version: 1.8.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 9, 2026
    Configuration menu
    Copy the full SHA
    ec230ae View commit details
    Browse the repository at this point in the history
  5. build(deps-dev): bump @docusaurus/types from 3.9.2 to 3.10.0 in /webs…

    …ite (#4233)
    
    Bumps [@docusaurus/types](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-types) from 3.9.2 to 3.10.0.
    - [Release notes](https://github.com/facebook/docusaurus/releases)
    - [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/facebook/docusaurus/commits/v3.10.0/packages/docusaurus-types)
    
    ---
    updated-dependencies:
    - dependency-name: "@docusaurus/types"
      dependency-version: 3.10.0
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 9, 2026
    Configuration menu
    Copy the full SHA
    c0d5b8e View commit details
    Browse the repository at this point in the history
  6. build(deps): bump sass from 1.98.0 to 1.99.0 in /website (#4232)

    Bumps [sass](https://github.com/sass/dart-sass) from 1.98.0 to 1.99.0.
    - [Release notes](https://github.com/sass/dart-sass/releases)
    - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
    - [Commits](sass/dart-sass@1.98.0...1.99.0)
    
    ---
    updated-dependencies:
    - dependency-name: sass
      dependency-version: 1.99.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 9, 2026
    Configuration menu
    Copy the full SHA
    754d472 View commit details
    Browse the repository at this point in the history
  7. build(deps-dev): bump @typescript-eslint/eslint-plugin (#4231)

    Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 8.57.0 to 8.58.1.
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.58.1/packages/eslint-plugin)
    
    ---
    updated-dependencies:
    - dependency-name: "@typescript-eslint/eslint-plugin"
      dependency-version: 8.58.1
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 9, 2026
    Configuration menu
    Copy the full SHA
    c196471 View commit details
    Browse the repository at this point in the history
  8. build(deps-dev): bump rollup from 4.60.0 to 4.60.1 (#4230)

    Bumps [rollup](https://github.com/rollup/rollup) from 4.60.0 to 4.60.1.
    - [Release notes](https://github.com/rollup/rollup/releases)
    - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
    - [Commits](rollup/rollup@v4.60.0...v4.60.1)
    
    ---
    updated-dependencies:
    - dependency-name: rollup
      dependency-version: 4.60.1
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 9, 2026
    1 Configuration menu
    Copy the full SHA
    1f9198c View commit details
    Browse the repository at this point in the history
  9. build(deps-dev): bump @pokujs/multi-suite from 1.0.0 to 1.0.1 (#4228)

    Bumps [@pokujs/multi-suite](https://github.com/pokujs/multi-suite) from 1.0.0 to 1.0.1.
    - [Release notes](https://github.com/pokujs/multi-suite/releases)
    - [Changelog](https://github.com/pokujs/multi-suite/blob/main/CHANGELOG.md)
    - [Commits](pokujs/multi-suite@v1.0.0...v1.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: "@pokujs/multi-suite"
      dependency-version: 1.0.1
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 9, 2026
    Configuration menu
    Copy the full SHA
    207a465 View commit details
    Browse the repository at this point in the history
  10. build(deps-dev): bump @types/node from 25.5.0 to 25.5.2 (#4229)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 25.5.0 to 25.5.2.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-version: 25.5.2
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 9, 2026
    Configuration menu
    Copy the full SHA
    0fc476b View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2026

  1. chore(master): release 3.21.1 (#4226)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Apr 10, 2026
    Configuration menu
    Copy the full SHA
    79a4fda View commit details
    Browse the repository at this point in the history
Loading