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.