v1.3.4
Breaking Changes
- Remove
fromFilePath
by @Fabiopf02 in #18
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