Skip to content

3.12.0

Compare
Choose a tag to compare
@bjrmatos bjrmatos released this 08 Jun 21:27
· 280 commits to master since this release

highlights of updates

general updates

  • all extensions dependencies were updated to ensure that we don't use vulnerable packages, so npm audit now reports 0 vulnerabilities in most cases
  • improve memory usage when receiving lot of requests that require external modules
  • npm require now supports scoped modules @packageName/module and sub paths module/subpath
  • xlsx now supports multi-row loops and nested loops
  • docx improvement to support conditional table cells and async image src

core

  • render requests are now rotated across not busy workers but considering its last usage too
  • require in sandbox now uses a custom require implementation that takes care of isolate module resolving and that uses our own cache (different to built in require.cache) to avoid using a lot of memory when there are a lot of requests. if module isolation is not needed (because user can trust the templates) then it can be disabled by using sandbox.isolateModules: false

studio

  • remove title (the one that appears when you put mouse over it for some seconds) of log messages, to prevent them showing when trying to read the log and scrolling

browser-client

  • fix url normalization. it was breaking playground serverUrl

assets

  • fix resolving assets as links

components

  • fix components cache

npm

  • allow jsreport.npm.require to require sub paths await jsreport.npm.require('yargs@17.7.2/package.json')
  • allow jsreport.npm.require to require @ scoped packages

xlsx

  • add support for nested loops (row/block loops nested)
  • remove VERTICAL TAB character (\u000b) and prevent bad xml to be generated
  • improve performance (and prevent hang) by not using regexp for the auto detect content feature
  • cells outside of loop should not access data from loop
  • add support for block loop (loop that repeats cells across multiple rows)

docx

  • fix table cells not being well-formed when user uses conditions (#if) across table rows and cells
  • support setting docxImage src from async result