feat(sql-escaper): add Temporal support when escaping values - #4392
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4392 +/- ##
=======================================
Coverage 91.52% 91.52%
=======================================
Files 91 91
Lines 14768 14768
Branches 1948 1948
=======================================
Hits 13516 13516
Misses 1252 1252
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Marking as draft: this bump surfaces |
1.5.1 already released 🙋🏻♂️ |
sql-escaper v1.5.x adds Temporal API support (Temporal.Instant, PlainDate, PlainTime, PlainDateTime, ZonedDateTime) when escaping values. Bumping the direct dependency ensures existing installations pick up the support on `npm update` rather than only on fresh installs. 1.5.1 is required: 1.5.0's emitted types referenced the global Temporal namespace, breaking `tsc` for consumers without the ESNext.Temporal lib (fixed in mysqljs/sql-escaper#49). Refs sidorares#4216 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
728f7d1 to
361667c
Compare
|
Bumped to |
Summary
Bumps the direct
sql-escaperdependency from^1.4.0to^1.5.1.sql-escaper 1.5.x adds Temporal API support when escaping values (
Temporal.Instant,PlainDate,PlainTime,PlainDateTime,ZonedDateTime), detected viaObject.prototype.toStringso no newer runtime is required.As discussed in #4216, the range
^1.4.0already permits these on fresh installs, but existing installations won't pick them up without this bump. Releasing as afeat:forces the update to reach all users onnpm update.^1.5.1(not1.5.0): 1.5.0's emitted types referenced the globalTemporalnamespace, which broketscfor any consumer without theESNext.Temporallib (TypeScript < 7) — including this repo's own typecheck. Fixed in mysqljs/sql-escaper#49, released as 1.5.1.Refs #4216