Repository navigation
v0.5.3 - bundle for the browser without shims
Fixes bundling for the browser. luaconf.js called require('os').platform() whenever process existed, and a bundler's process shim also made ldblib.js crash at load on an empty readline-sync stub, so consumers had to write a local shim.
- Node detection goes through one module,
src/isnode.js(process.versions.node), instead oftypeof processin 13 places;os.platform()becameprocess.platform. package.jsonhas abrowserfield mappingfs,os,path,tmp,child_processandreadline-syncto empty modules, so webpack, esbuild, Vite and Browserify bundle the package without shims orresolve.fallback.test/browser-compat.test.jsfails if the library requires a Node-only module on the browser path.
See CHANGES.md for details.