npm node-xlsx 0.25.0
v0.25.0

one hour ago

Breaking

  • Requires node 18 or later (was 10).
  • SheetJS is bundled inside the package instead of being installed from the SheetJS CDN. If you imported xlsx
    yourself relying on node-xlsx to install it, add it to your own dependencies.

Fixed

  • Installs no longer fail when pnpm blocks exotic subdependencies or when the SheetJS CDN times out (#206, #215).
  • Codepages other than utf8, such as shift_jis, are now decoded when parsing a buffer (#198).
  • Top-level legacy sheet options passed to build() ("!cols", "!merges", ...) are applied again.
  • WorkSheet.options is optional in the types (#179, #205, thanks @b3nab).
  • Output targets ES2019, so older bundlers such as webpack 4 can parse it (#204).
  • CommonJS consumers get CommonJS type declarations.

Changed

  • Parsing reads sheets in dense mode, about 20% faster and lighter on large sheets (#213, from #218, thanks
    @DokiDoki1103). Sheets stay sparse when range is a function or defval is set.
  • SheetJS updated to 0.20.3. It parses #DIV/0! and other error values in a CSV as error cells, so they no longer
    come back as strings with raw: false.
  • The SheetJS types used by the API (ParsingOptions, Sheet2JSONOpts, Range, ...) are exported, with SheetJS's own
    WorkSheet as SheetJSWorkSheet.

Don't miss a new node-xlsx release

NewReleases is sending notifications on new releases.