Releases: enconvert/node-sdk
Releases · enconvert/node-sdk
Release list
v0.3.0
Added
perceiveDirect(url, opts)— one-call raw-byte retrieval: the response body is the artifact itself (markdown, PDF, screenshot…), metadata parsed fromX-*headers intoPerceiveDirectResult. No second fetch to a signed URL.downloadPerceiveArtifact(operationId, output?)— re-download a stored artifact of an earlier operation.onlyMainContentoption (server defaulttrue) — markdown is main-content-only with site chrome stripped behind a fidelity guard; setfalsefor the full page.directDownloadoption onPerceiveOptions.- New result fields:
statusCode(upstream HTTP status of the rendered page),deductions(named render-quality deductions),optionsEcho(the options the server honoured).
Removed
markdown_fitoutput — removed by the API. Usemarkdown(main-content-only by default) instead.
Compatibility
- Requires the 2026-08 gateway for
directDownload/onlyMainContentto take effect; older gateways ignore the flags.
v0.2.0
Additive release. Nothing from 0.1.1 was removed or renamed.
New
compressImage(file, { targetSizeKb })forPOST /v1/convert/compress-image. PNG, JPEG and WebP only. The output keeps the input format and extension and is never larger than the input. Lossless first, with metadata stripped but the ICC profile and EXIF orientation preserved.targetSizeKbis best effort: an unreachable target returns the smallest file achieved rather than throwing, so checkresult.fileSize.widthandheightonconvertImage, for SVG input only (svg-to-png,svg-to-jpeg,svg-to-webp). Each 1 to 10000. One alone preserves the SVG's aspect ratio. Total output capped at 25 megapixels.npx enconvert-sdk upgradeCLI, with--dry-runandversion. Detects npm, pnpm, yarn or bun and always prints the command before running it.
Improved
convertToMarkdownandconvertToPdfnow pre-validate the file extension locally (22 and 36 accepted extensions), so a bad input throws before any upload.- Corrected the
convertToPdfpdfOptionsdocumentation. Full page geometry is honored for HTML, Markdown, plain text, EPUB, image and SVG input. Office, ODF, iWork, RTF and CSV input plus PDF passthrough acceptgrayscaleonly. - Repository URL fixed from the old
conversionapiorg toenconvert.
Published manually, so this version has no npm provenance attestation. Future releases publish from CI with provenance.
v0.1.0
Full Changelog: https://github.com/conversionapi/node-sdk/commits/v0.1.0