Skip to content

v1.3.4

Compare
Choose a tag to compare
@Fabiopf02 Fabiopf02 released this 14 Feb 15:52
· 28 commits to main since this release

Breaking Changes

the method to read the file by path has been removed to keep only the functions to read the contents of the file, instead of being linked to a specific environment to read the file (in this case 'fs' which only works on nodejs)

Guide to migrating

import { Ofx } from 'ofx-data-extractor'
import fs from 'fs'

// before
const ofx = await Ofx.fromFilePath('/path/to/file')

// after
const file = fs.readFileSync('/path/to/file') // you can use nodejs 'path' to specify the path to the file
const ofx = Ofx.fromBuffer(file)
...

Full Changelog: v1.3.3...v1.3.4