Skip to content

Releases: PerryTS/mysql

v0.1.3

07 May 17:34

Choose a tag to compare

Patch release: fix transport/net-socket.ts::openSocket to call net.createConnection(port, host) on Perry, matching Node's documented positional signature.

  • Pre-fix the file's header comment incorrectly asserted Perry took (host, port) and the call followed suit. Perry has always matched Node's (port, host) (see crates/perry-codegen/src/lower_call.rs in the perry tree). Under the wrong order Perry coerced the host string to a port (NaN-coerced) and the port number to a host pointer, returning an invalid socket handle that silently no-op'd through every sock.on(...) registration. await connect(...) then never resolved against any MySQL server, surfacing as the immediate-exit / (number).next is not a function symptom from PerryTS/perry#536.
  • Header comment rewritten to reflect Perry's actual (port, host) contract. The Node.js / Bun code path is unchanged — it uses the object form ({ host, port }) and works as before.
  • Requires perry >= v0.5.652 for the matching runtime-side fixes ([].pop() / [].shift() returning undefined instead of NaN, perry-ext-net active-handles wiring under the well-known flip). With both halves in place, the issue's repro returns the SELECT row end-to-end.

See CHANGELOG.md for full history.

v0.1.2

07 May 04:15

Choose a tag to compare

Patch release: fix binary decoders for DATE, DATETIME/TIMESTAMP, and TIME columns.

  • The upstream resultset framing already consumes the length-encoded prefix, so the binary decoders must discriminate on buf.length instead of reading a leading length byte. Previously this caused off-by-one parsing of the year and other fields on binary-protocol rows.
  • .gitignore: minor housekeeping.

See CHANGELOG.md for full history.

v0.1.1

06 May 07:39

Choose a tag to compare

First test of the automated release workflow.

  • Add .github/workflows/publish.yml for OIDC trusted-publisher npm releases.
  • Restore canonical PerryTS casing in package.json repo URL (provenance verification is case-sensitive).
  • README: add headline benchmarks vs mysql2 and Perry AOT.
  • Scrub leftover hard-coded benchmark connection details (repo-only; not in the published tarball).

See CHANGELOG.md for full history.