Company
Date Published
Author
George MacKerron
Word count
871
Language
English
Hacker News points
None

Summary

The Neon serverless driver for JavaScript and TypeScript now has a more stable structure, with automated bundled types and a set of CI tests to catch regressions. The driver can carry SQL queries over HTTP and WebSockets, making it suitable for environments where raw TCP connections aren't available or low connection latencies are important. New features include tagged-template composability, which allows building up queries from smaller parts, and fixing a potential SQL-injection footgun by introducing a `query` function to safely pass in query and values as variables. Additionally, improvements have been made for inserting binary data over HTTP, speeding up the hex-encoding step using `TextDecoder`, `Uint32Array`, and bit-twiddling.