Skip to content

fix: ensure Node.js 12 compatibility - #52

Merged
wellwelwel merged 1 commit into
mainfrom
node12
Sep 14, 2026
Merged

wellwelwel merged 1 commit into
mainfrom
node12

Conversation

@wellwelwel

@wellwelwel wellwelwel commented Sep 14, 2026

Copy link
Copy Markdown
Member

Fixes #51.


Testing:

FROM node:12.22.12-slim

WORKDIR /app
COPY package.json /app/node_modules/sql-escaper/package.json
COPY lib /app/node_modules/sql-escaper/lib

CMD node --version && node -p "require('sql-escaper')"

Output:

v12.22.12
{
  dateToString: [Function: dateToString],
  temporalToString: [Function: temporalToString],
  escapeId: [Function: escapeId],
  objectToValues: [Function: objectToValues],
  bufferToString: [Function: bufferToString],
  arrayToList: [Function: arrayToList],
  escape: [Function: escape],
  format: [Function: format],
  raw: [Function: raw]
}

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (72fbc98) to head (6d0c4bc).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #52   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          561       561           
  Branches       170       170           
=========================================
  Hits           561       561           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wellwelwel
wellwelwel marked this pull request as ready for review September 14, 2026 00:30
@wellwelwel
wellwelwel merged commit 8b830c7 into main Sep 14, 2026
11 checks passed
@wellwelwel
wellwelwel deleted the node12 branch September 14, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sql-escaper cannot be required on Node.js v12 due to node:buffer

2 participants