A Node.js utility that compiles PDO-style named placeholders into unnamed placeholders, turning SQL like `:bar` into `?` and producing the corresponding parameter array. Useful when you want to write readable named SQL but run it with drivers that only accept unnamed placeholders.
Project status
- Actively maintained, with the most recent upstream push on 2026-09-07 and ongoing versioned updates through 2026 (latest noted tag v1.1.7 on 2026-04-19).
- Update cadence appears steady, roughly every 3 to 6 months in 2025-2026 (v1.1.5 and v1.1.6 in mid-December 2025, then v1.1.7 in April 2026, plus an upstream push in September 2026).
AI summary generated
Recent updates
v1.1.7
v1.1.7 is a small patch release focused on fixing a parsing edge case in the SQL placeholder compiler. It resets an internal escape state after placeholder parsing so subsequent placeholders are recognized correctly.
v1.1.6
Release v1.1.6 mainly updates repository metadata to reflect the correct GitHub path (mysqljs/named-placeholders). The code diff also includes standard version bumps in package.json and package-lock.json and a small test comment URL update.
v1.1.5
v1.1.5 primarily contains a bug fix to improve how the query parser handles mixed and nested quotes. The diff also includes substantial formatting and test/CI/tooling changes, but the only runtime logic adjustment appears to be in quote parsing state handling.
v1.1.4
v1.1.4 primarily addresses a dependency conflict reported in the project. It also updates the test setup to use Node's built-in test runner, removing the mocha dependency.