{"id":"src_BfU0p37FAcZe0kGugGFm9","slug":"planetscale-database-js","name":"PlanetScale database-js","type":"github","url":"https://github.com/planetscale/database-js","orgId":"org_2z0vY9-qvBjZ_eVjlzWCh","productId":null,"productSlug":null,"org":{"id":"org_2z0vY9-qvBjZ_eVjlzWCh","slug":"planetscale","name":"PlanetScale"},"isPrimary":false,"isHidden":false,"discovery":"curated","fetchPriority":"normal","metadata":"{\"wellKnownSweptAt\":\"2026-11-16T06:00:35.854Z\"}","notice":null,"kind":"sdk","stars":1207,"starsFetchedAt":"2026-11-16T11:00:29.511Z","releaseCount":36,"releasesLast30Days":0,"avgReleasesPerWeek":0.2,"latestVersion":"v2.0.0","latestDate":"2026-09-24T14:54:54.000Z","changelogUrl":null,"hasChangelogFile":false,"lastFetchedAt":"2026-11-16T11:00:29.511Z","lastPolledAt":"2026-11-16T11:00:23.687Z","changeDetectedAt":null,"trackingSince":"2023-04-06T16:49:55.000Z","releases":[{"id":"rel_MPtAZFVPHFE9M2ce3rDpD","version":"v2.0.0","type":"feature","title":"v2.0.0","summary":"Parameter interpolation has been removed from PlanetScale database-js, and the required Node version is now 22. The major release also includes an npm audit fix.","titleGenerated":"PlanetScale database-js v2.0.0 removes parameter interpolation and requires Node 22","titleShort":"Parameter interpolation removed; Node 22 required","breaking":"major","importance":4,"content":"## What's Changed\n* Remove parameter interpolation by @joshmgross in https://github.com/planetscale/database-js/pull/219\n* Bump required Node version to 22 by @joshmgross in https://github.com/planetscale/database-js/pull/220\n* `npm audit fix` by @joshmgross in https://github.com/planetscale/database-js/pull/221\n* Update version to 2.0.0 by @joshmgross in https://github.com/planetscale/database-js/pull/222\n\n\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.20.2...v2.0.0","publishedAt":"2026-09-24T14:54:54.000Z","fetchedAt":"2026-09-24T18:11:11.554Z","url":"https://github.com/planetscale/database-js/releases/tag/v2.0.0","media":[],"coverageCount":0},{"id":"rel_OwvcUFyToo0reaGapOoZS","version":"v1.20.2","type":"feature","title":"v1.20.2","summary":"Sanitization is hardened in placeholder parsing, and outstanding npm audit warnings are resolved with undici updated. The rest is CI and repo hygiene, including pinned GitHub Actions, workflow security checks, and removal of the jest dependency.","titleGenerated":"PlanetScale database-js v1.20.2 hardens placeholder parsing","titleShort":"Placeholder parsing hardened; npm audit warnings resolved","breaking":"none","importance":2,"content":"## What's Changed\n* security: pin GitHub Actions to commit SHAs by @mattrobenolt in https://github.com/planetscale/database-js/pull/200\n* security: harden GitHub Actions workflows by @mattrobenolt in https://github.com/planetscale/database-js/pull/201\n* ci: add GitHub Actions security checks by @mattrobenolt in https://github.com/planetscale/database-js/pull/202\n* Add a secure NPM configuration by @joshmgross in https://github.com/planetscale/database-js/pull/203\n* Add CODEOWNERS by @joshmgross in https://github.com/planetscale/database-js/pull/204\n* Resolve oustanding `npm audit` warnings by @joshmgross in https://github.com/planetscale/database-js/pull/205\n* Update `undici` by @joshmgross in https://github.com/planetscale/database-js/pull/206\n* Remove dependency on `jest` by @joshmgross in https://github.com/planetscale/database-js/pull/207\n* Bump js-yaml from 4.1.1 to 4.3.1 by @dependabot[bot] in https://github.com/planetscale/database-js/pull/215\n* Sanitization: Harden placeholder parsing by @no-itsbackpack in https://github.com/planetscale/database-js/pull/218\n\n## New Contributors\n* @joshmgross made their first contribution in https://github.com/planetscale/database-js/pull/203\n* @no-itsbackpack made their first contribution in https://github.com/planetscale/database-js/pull/218\n\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.20.1...v1.20.2","publishedAt":"2026-09-23T18:23:02.000Z","fetchedAt":"2026-09-23T21:54:54.506Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.20.2","media":[],"coverageCount":0},{"id":"rel_ul9bKrS3GyQ_Blr-AmLis","version":"v1.20.1","type":"feature","title":"v1.20.1","summary":"What's Changed Add npm trusted publisher workflow by @mattrobenolt in https://github.com/planetscale/database-js/pull/197 Detect Cloudflare errors in UnknownError messaging by @mattrobenolt in https://github.com/planetscale/database-js/pull/198","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\n* Add npm trusted publisher workflow by @mattrobenolt in https://github.com/planetscale/database-js/pull/197\n* Detect Cloudflare errors in UnknownError messaging by @mattrobenolt in https://github.com/planetscale/database-js/pull/198\n\n\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.20.0...v1.20.1","publishedAt":"2026-03-25T21:22:54.000Z","fetchedAt":"2026-03-26T19:18:59.591Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.20.1","media":[],"coverageCount":0},{"id":"rel_e8gdBQ7XizlhY38NirGUg","version":"v1.20.0","type":"feature","title":"v1.20.0","summary":"What's Changed README: remove extra docs by @nickvanw in https://github.com/planetscale/database-js/pull/184 Update README by @iheanyi in https://github.com/planetscale/database-js/pull/189 Add link to postgres documentation by @SimeonGriggs in…","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\n* README: remove extra docs by @nickvanw in https://github.com/planetscale/database-js/pull/184\n* Update README by @iheanyi in https://github.com/planetscale/database-js/pull/189\n* Add link to postgres documentation by @SimeonGriggs in https://github.com/planetscale/database-js/pull/194\n* Add UnknownError with full response context for non-JSON API errors by @mattrobenolt in https://github.com/planetscale/database-js/pull/196\n\n## New Contributors\n* @SimeonGriggs made their first contribution in https://github.com/planetscale/database-js/pull/194\n\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.19.0...v1.20.0","publishedAt":"2026-03-24T18:38:01.000Z","fetchedAt":"2026-03-26T19:18:59.591Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.20.0","media":[],"coverageCount":0},{"id":"rel_ltWo0MM4rTD4BzXDk_1sX","version":"v1.19.0","type":"feature","title":"v1.19.0","summary":"What's Changed Fix formatting empty Uint8Arrays by @emmatown in https://github.com/planetscale/database-js/pull/181 Pin license finder by @ayrton in https://github.com/planetscale/database-js/pull/182 New Contributors @emmatown made their first contribution in…","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n\r\n* Fix formatting empty Uint8Arrays by @emmatown in https://github.com/planetscale/database-js/pull/181\r\n* Pin license finder by @ayrton in https://github.com/planetscale/database-js/pull/182\r\n\r\n## New Contributors\r\n* @emmatown made their first contribution in https://github.com/planetscale/database-js/pull/181\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.18.0...v1.19.0","publishedAt":"2024-08-14T11:37:33.000Z","fetchedAt":"2026-04-03T19:02:22.914Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.19.0","media":[],"coverageCount":0},{"id":"rel_sl1JRnndtQgOCUKhIZ2aS","version":"v1.18.0","type":"feature","title":"v1.18.0","summary":"What's Changed Fix JSON cast logic. JSON is always UTF8 by @mattrobenolt in https://github.com/planetscale/database-js/pull/176 Full Changelog: https://github.com/planetscale/database-js/compare/v1.17.0...v1.18.0","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Fix JSON cast logic. JSON is always UTF8 by @mattrobenolt in https://github.com/planetscale/database-js/pull/176\r\n\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.17.0...v1.18.0","publishedAt":"2024-04-29T16:17:18.000Z","fetchedAt":"2026-04-03T19:02:22.914Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.18.0","media":[],"coverageCount":0},{"id":"rel_3_qXtkOGib5E_CyieuFAe","version":"v1.17.0","type":"feature","title":"v1.17.0","summary":"What's Changed Fix binary cast logic by @mattrobenolt and @ayrton in https://github.com/planetscale/database-js/pull/174 Full Changelog: https://github.com/planetscale/database-js/compare/v1.16.0...v1.17.0","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Fix binary cast logic by @mattrobenolt and @ayrton in https://github.com/planetscale/database-js/pull/174\r\n\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.16.0...v1.17.0","publishedAt":"2024-04-26T20:39:25.000Z","fetchedAt":"2026-04-03T19:02:22.914Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.17.0","media":[],"coverageCount":0},{"id":"rel_X3890YpfRRCNqKzqI-Is8","version":"v1.16.0","type":"feature","title":"v1.16.0","summary":"What's Changed Support binary text data by @ayrton in https://github.com/planetscale/database-js/pull/167 Full Changelog: https://github.com/planetscale/database-js/compare/v1.15.0...v1.16.0","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Support binary text data by @ayrton in https://github.com/planetscale/database-js/pull/167\r\n\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.15.0...v1.16.0","publishedAt":"2024-02-09T21:53:36.000Z","fetchedAt":"2026-04-03T19:02:23.137Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.16.0","media":[],"coverageCount":0},{"id":"rel_UAF7r0t9rQEY0s-utrWYy","version":"v1.15.0","type":"feature","title":"v1.15.0","summary":"What's Changed Strict check by @ayrton in https://github.com/planetscale/database-js/pull/157 Constructor type overloading cleanup by @ayrton in https://github.com/planetscale/database-js/pull/162 Support binary data by @mattrobenolt and @ayrton in…","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Strict check by @ayrton in https://github.com/planetscale/database-js/pull/157\r\n* Constructor type overloading cleanup by @ayrton in https://github.com/planetscale/database-js/pull/162\r\n* Support binary data by @mattrobenolt and @ayrton in https://github.com/planetscale/database-js/pull/164\r\n\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.14.0...v1.15.0","publishedAt":"2024-02-05T11:52:23.000Z","fetchedAt":"2026-04-03T19:02:23.137Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.15.0","media":[],"coverageCount":0},{"id":"rel_ljKTbjj3k0WHZfYwiDdap","version":"v1.14.0","type":"feature","title":"v1.14.0","summary":"What's Changed Expose Client#config and Connection#config by @SevInf in https://github.com/planetscale/database-js/pull/153 BigInt query paremeter support by @jkomyno in https://github.com/planetscale/database-js/pull/159 New Contributors @SevInf made their first contribution…","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Expose `Client#config` and `Connection#config` by @SevInf in https://github.com/planetscale/database-js/pull/153\r\n* `BigInt` query paremeter support by @jkomyno in https://github.com/planetscale/database-js/pull/159\r\n\r\n## New Contributors\r\n* @SevInf made their first contribution in https://github.com/planetscale/database-js/pull/153\r\n* @jkomyno made their first contribution in https://github.com/planetscale/database-js/pull/159\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.13.0...v1.14.0","publishedAt":"2024-01-18T19:28:01.000Z","fetchedAt":"2026-04-03T19:02:23.137Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.14.0","media":[],"coverageCount":0},{"id":"rel_Ns4ECaZTaOmr5tDEAFThA","version":"v1.13.0","type":"feature","title":"v1.13.0","summary":"What's Changed Faster date sanitization by @andrewvasilchuk in https://github.com/planetscale/database-js/pull/131 Row type parameters execute<T>() by @ayrton in https://github.com/planetscale/database-js/pull/154 New Contributors @ayrton made their first contribution in…","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Faster date sanitization by @andrewvasilchuk in https://github.com/planetscale/database-js/pull/131\r\n* Row type parameters `execute<T>()` by @ayrton in https://github.com/planetscale/database-js/pull/154\r\n\r\n## New Contributors\r\n* @ayrton made their first contribution in https://github.com/planetscale/database-js/pull/155\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.12.0...v1.13.0","publishedAt":"2023-12-14T23:50:13.000Z","fetchedAt":"2026-04-03T19:02:23.137Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.13.0","media":[],"coverageCount":0},{"id":"rel_wEmkbGysFMYuYW3Uwalr4","version":"v1.12.0","type":"feature","title":"v1.12.0","summary":"What's Changed Add tests for float- and JSON casting by @andrewvasilchuk in https://github.com/planetscale/database-js/pull/132 Full Changelog: https://github.com/planetscale/database-js/compare/v1.11.0...v1.12.0","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Add tests for float- and JSON casting by @andrewvasilchuk in https://github.com/planetscale/database-js/pull/132\r\n\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.11.0...v1.12.0","publishedAt":"2023-12-14T23:49:59.000Z","fetchedAt":"2026-04-03T19:02:23.137Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.12.0","media":[],"coverageCount":0},{"id":"rel_tDcI1wBgZnT-H6ZiopZIb","version":"v1.11.0","type":"feature","title":"v1.11.0","summary":"What's Changed Add usage instructions with boost by @mscoutermarsh in https://github.com/planetscale/database-js/pull/130 Respect config.url as source of truth for API calls by @iheanyi in https://github.com/planetscale/database-js/pull/138 New Contributors @mscoutermarsh made…","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Add usage instructions with boost by @mscoutermarsh in https://github.com/planetscale/database-js/pull/130\r\n* Respect `config.url` as source of truth for API calls by @iheanyi in https://github.com/planetscale/database-js/pull/138\r\n\r\n## New Contributors\r\n* @mscoutermarsh made their first contribution in https://github.com/planetscale/database-js/pull/130\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.10.0...v1.11.0","publishedAt":"2023-08-21T18:31:00.000Z","fetchedAt":"2026-04-03T19:02:23.348Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.11.0","media":[],"coverageCount":0},{"id":"rel_ALXGejQKYkBtJ8F3lsFQ7","version":"v1.10.0","type":"feature","title":"v1.10.0","summary":"What's Changed Set session before throwing an error. by @iheanyi in https://github.com/planetscale/database-js/pull/129 Full Changelog: https://github.com/planetscale/database-js/compare/v1.9.0...v1.10.0","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Set session before throwing an error. by @iheanyi in https://github.com/planetscale/database-js/pull/129\r\n\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.9.0...v1.10.0","publishedAt":"2023-07-25T22:05:30.000Z","fetchedAt":"2026-04-03T19:02:23.348Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.10.0","media":[],"coverageCount":0},{"id":"rel_ORzzSvfWe_epy0mhQKX3Y","version":"v1.9.0","type":"feature","title":"v1.9.0","summary":"What's Changed Add CommonJS build by @dgraham in https://github.com/planetscale/database-js/pull/128 Full Changelog: https://github.com/planetscale/database-js/compare/v1.8.0...v1.9.0","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Add CommonJS build by @dgraham in https://github.com/planetscale/database-js/pull/128\r\n\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.8.0...v1.9.0","publishedAt":"2023-07-24T16:50:27.000Z","fetchedAt":"2026-04-03T19:02:23.348Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.9.0","media":[],"coverageCount":0},{"id":"rel_YMTD8R3Vb9FWOSQKw0q3u","version":"v1.8.0","type":"feature","title":"v1.8.0","summary":"What's Changed Fix fetch-h2 link in README by @jvandenaardweg in https://github.com/planetscale/database-js/pull/109 Return geometry as its raw value. by @iheanyi in https://github.com/planetscale/database-js/pull/121 New Contributors @jvandenaardweg made their first…","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Fix fetch-h2 link in README by @jvandenaardweg in https://github.com/planetscale/database-js/pull/109\r\n* Return geometry as its raw value. by @iheanyi in https://github.com/planetscale/database-js/pull/121\r\n\r\n## New Contributors\r\n* @jvandenaardweg made their first contribution in https://github.com/planetscale/database-js/pull/109\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.7.0...v1.8.0","publishedAt":"2023-06-29T18:36:43.000Z","fetchedAt":"2026-04-03T19:02:23.348Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.8.0","media":[],"coverageCount":0},{"id":"rel_-Qe0E3E77tsjt3jrY9s-V","version":"v1.6.0","type":"feature","title":"v1.6.0","summary":"What's Changed Bump json5 from 2.2.1 to 2.2.3 by @dependabot in https://github.com/planetscale/database-js/pull/79 coerce rowsAffected and insertId to concrete values by @mattrobenolt in https://github.com/planetscale/database-js/pull/89 Fix the 'types' property path in…","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Bump json5 from 2.2.1 to 2.2.3 by @dependabot in https://github.com/planetscale/database-js/pull/79\r\n* coerce rowsAffected and insertId to concrete values by @mattrobenolt in https://github.com/planetscale/database-js/pull/89\r\n* Fix the 'types' property path in package.json by @bjesuiter in https://github.com/planetscale/database-js/pull/93\r\n* Cast as execute option by @cdcarson in https://github.com/planetscale/database-js/pull/81\r\n\r\n## New Contributors\r\n* @bjesuiter made their first contribution in https://github.com/planetscale/database-js/pull/93\r\n* @cdcarson made their first contribution in https://github.com/planetscale/database-js/pull/81\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.5.0...v1.6.0","publishedAt":"2023-04-06T17:16:59.000Z","fetchedAt":"2026-04-03T19:02:23.569Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.6.0","media":[],"coverageCount":0},{"id":"rel_mUUttZdPDX6uXs0mvrsaK","version":"v1.5.0","type":"feature","title":"v1.5.0","summary":"What's Changed Better timing information for queries by @iheanyi in https://github.com/planetscale/database-js/pull/77 Full Changelog: https://github.com/planetscale/database-js/compare/v1.4.1...v1.5.0","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Better timing information for queries by @iheanyi in https://github.com/planetscale/database-js/pull/77\r\n\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.4.1...v1.5.0","publishedAt":"2023-04-06T17:16:46.000Z","fetchedAt":"2026-04-03T19:02:23.569Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.5.0","media":[],"coverageCount":0},{"id":"rel_RIxuHolRboigo3gxPGl1O","version":"v1.4.1","type":"feature","title":"v1.4.1","summary":"What's Changed Add documentation on new array option. by @iheanyi in https://github.com/planetscale/database-js/pull/66 actions: add workflow for codeql scanning by @skottler in https://github.com/planetscale/database-js/pull/74 Better support for NULLs by @mattrobenolt in…","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Add documentation on new array option. by @iheanyi in https://github.com/planetscale/database-js/pull/66\r\n* actions: add workflow for codeql scanning by @skottler in https://github.com/planetscale/database-js/pull/74\r\n* Better support for NULLs by @mattrobenolt in https://github.com/planetscale/database-js/pull/73\r\n\r\n## New Contributors\r\n* @skottler made their first contribution in https://github.com/planetscale/database-js/pull/74\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.4.0...v1.4.1","publishedAt":"2023-04-06T17:16:24.000Z","fetchedAt":"2026-04-03T19:02:23.569Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.4.1","media":[],"coverageCount":0},{"id":"rel_mpR-9GOHYLkHhwc6Q2Kun","version":"v1.4.0","type":"feature","title":"v1.4.0","summary":"What's Changed Remove timezone from sanitized date strings by @dgraham in https://github.com/planetscale/database-js/pull/64 Add options for returning rows from queries as an array or object by @iheanyi in https://github.com/planetscale/database-js/pull/65 Full Changelog:…","titleGenerated":null,"titleShort":null,"breaking":"unknown","importance":null,"content":"## What's Changed\r\n* Remove timezone from sanitized date strings by @dgraham in https://github.com/planetscale/database-js/pull/64\r\n* Add options for returning rows from queries as an array or object by @iheanyi in https://github.com/planetscale/database-js/pull/65\r\n\r\n\r\n**Full Changelog**: https://github.com/planetscale/database-js/compare/v1.3.0...v1.4.0","publishedAt":"2023-04-06T17:16:12.000Z","fetchedAt":"2026-04-03T19:02:23.569Z","url":"https://github.com/planetscale/database-js/releases/tag/v1.4.0","media":[],"coverageCount":0}],"pagination":{"nextCursor":"2023-04-06T17:16:12.000Z|2026-04-03T19:02:23.569Z|rel_mpR-9GOHYLkHhwc6Q2Kun","limit":20},"summaries":{"rolling":null,"monthly":[]}}