Skip to content

v1.4.0

Compare
Choose a tag to compare
@mmomtchev mmomtchev released this 22 Jan 17:47
· 297 commits to main since this release
  • The new minimum supported versions of Node.js are now v12.22.0, v14.17.0, v16.0.0

New Features

  • Allow limiting the depth of the recursion of toJS()
  • Allow disabling of the generic Buffer protocol transformation to toJS()
  • Add PyObject.prototype.map method compatible with Array.prototype.map
  • Proxified functions are now also Proxy objects, resolves #58
  • PyObject.item() now returns undefined instead of throwing an exception when an element cannot be retrieved by []
  • Allow enabling of debug output via the environment (PYMPORT_DEBUG_sys vars)
  • Improved bootstrap and shutdown allowing to load and unload the addon in worker_threads, partially resolves #69
Bug Fixes
  • Fix #66, race condition can result in an abort when using pymport with worker_threads
  • Fix #40, patch _sysconfigdata after installation
  • Fix #70, random crash in a worker_thread
  • Fix #69, pymport leaks TLS memory when used in a worker_thread