v0.19.0
Breaking Changes
Drop support for node older than 18
Extracted analyzer to separate package
npm i @uplo/analyzer
const uploAnalyzer = UploAnalyzer({
analyzers: [ImageAnalyzer()]
})
uploAnalyzer.analyze({ blob })
Attach file now accepts blob inputs (blobFileInput, blobBufferInput, blobStringInput)
import { blobBufferInput } from '@uplo/node'
await uplo.attachments.link(link.id).html.attachFile(
await blobBufferInput({
fileName: 'index.html',
contentType: 'text/html',
content: Buffer.from(content.html, 'utf-8'),
})
)