Skip to content

v0.19.0

Compare
Choose a tag to compare
@jpalumickas jpalumickas released this 17 Mar 20:37
· 11 commits to main since this release

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'),
  })
)