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 recent upstream activity (last push 2026-06-09) and multiple tagged updates in the past year (v1.1.4 through v1.1.7).
- Apparent update cadence is relatively steady, with updates clustered from 2025-12-08 to 2026-04-19 (three releases in about 4 months), and additional commits after that (June 2026 push) suggesting ongoing work.
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.