- type fixes:
- relax exposed unknown types to
any
to avoid forcing casts - correctly type
module.exports
- relax exposed unknown types to
- reduce the size of the minified build
- relicense: Artistic 2.0 -> MIT
- add note about Deno usage
- unfreeze
module.exported
- improve detection of duplicate assignments
- add an option to assign the
require
function when creating an environment
- remove unused dev dependency
- add support for live bindings (e.g. esbuild's CommonJS output)
- separate the polyfill from the exports
- migrate source to TypeScript
- update build dependencies
- documentation tweaks
- remove redundant/duplicate backing store
- clarify that ES6 support is required, not just ES6 Proxy support, since other features may be used (bumped the major version in case anyone was relying on partial support and a polyfill)
- generate cleaner (flatter) names
- improve detection of duplicate assignments
- documentation tweaks
- add
require
hook (module.require
)
- portability fixes:
- return true from the Proxy#set trap as required by the spec
- catch the ReferenceError when assigning undeclared variables in strict
mode and fall back to
globalThis
- add a caveat about scoping/portability (thanks, darkred)
- reduce the size of the minified build
- documentation tweaks
- don't dedup the names of duplicate assignments, e.g.:
exports.foo = foo && exports.foo = foo
- fix assignment to generated names, e.g. assigning to
foo_1
- add missing license
- add
module.exported
, a read-only view of the exports without the Proxy wrapper
- export the keys of plain objects as named exports, in addition to exporting the object itself as "default", "default_1" etc.
- documentation fixes
- add missing documentation
- initial release