forked from lix-project/lix-website
16 KiB
16 KiB
@rollup/plugin-commonjs ChangeLog
v21.1.0
2022-04-15
Features
- feat: make defaultIsModuleExports as funtion to config defaultIsModuleExports for each source (#1052)
v21.0.3
2022-03-27
Updates
- docs: sync required rollup version (#1118)
v21.0.2
2022-02-23
Updates
- chore: transpile dynamic helper to ES5 (#1082)
v21.0.1
2021-10-19
Bugfixes
- fix: pass on isEntry and custom resolve options (#1018)
v21.0.0
2021-10-01
Breaking Changes
- fix: use safe default value for ignoreTryCatch (#1005)
v20.0.0
2021-07-30
Breaking Changes
- fix: Correctly infer module name for any separator (#924)
v19.0.2
2021-07-26
Bugfixes
- fix convert module.exports with
__esModule
property(#939) (#942)
v19.0.1
2021-07-15
Bugfixes
- fix: short-circuit to actual module entry point when using circular ref through a different entry (#888)
v19.0.0
2021-05-07
Breaking Changes
- feat!: Add support for circular dependencies (#658)
v18.1.0
2021-05-04
Bugfixes
- fix: idempotence issue (#871)
Features
- feat: Add
defaultIsModuleExports
option to match Node.js behavior (#838)
v18.0.0
2021-03-26
Breaking Changes
- feat!: Add ignore-dynamic-requires option (#819)
Bugfixes
- fix:
isRestorableCompiledEsm
should also trigger code transform (#816)
v17.1.0
2021-01-29
Bugfixes
- fix: correctly replace shorthand
require
(#764)
Features
- feature: load dynamic commonjs modules from es
import
(#766) - feature: support cache/resolve access inside dynamic modules (#728)
- feature: allow keeping
require
calls inside try-catch (#729)
Updates
- chore: fix lint error (#719)
v17.0.0
2020-11-30
Breaking Changes
- feat!: reconstruct real es module from __esModule marker (#537)
v16.0.0
2020-10-27
Breaking Changes
- feat!: Expose cjs detection and support offline caching (#604)
Bugfixes
- fix: avoid wrapping
commonjsRegister
call increateCommonjsModule(...)
(#602) - fix: register dynamic modules when a different loader (i.e typescript) loads the entry file (#599)
- fix: fixed access to node_modules dynamic module with subfolder (i.e 'logform/json') (#601)
Features
- feat: pass type of import to node-resolve (#611)
v15.1.0
2020-09-21
Features
- feat: inject __esModule marker into ES namespaces and add Object prototype (#552)
- feat: add requireReturnsDefault to types (#579)
v15.0.0
2020-08-13
Breaking Changes
- feat!: return the namespace by default when requiring ESM (#507)
- fix!: fix interop when importing CJS that is transpiled ESM from an actual ESM (#501)
Bugfixes
- fix: add .cjs to default file extensions. (#524)
Updates
- chore: update dependencies (fe399e2)
v14.0.0
2020-07-13
Release Notes
This restores the fixes from v13.0.1, but as a semver compliant major version.
v13.0.2
2020-07-13
Rollback
Rolls back breaking change in v13.0.1 whereby the exported unwrapExports
method was removed.
v13.0.1
2020-07-12
Bugfixes
- fix: prevent rewrite require.resolve (#446)
- fix: Support __esModule packages with a default export (#465)
v13.0.0
2020-06-05
Breaking Changes
- fix!: remove namedExports from types (#410)
- fix!: do not create fake named exports (#427)
Bugfixes
- fix: __moduleExports in multi entry + inter dependencies (#415)
v12.0.0
2020-05-20
Breaking Changes
- feat: add kill-switch for mixed es-cjs modules (#358)
- feat: set syntheticNamedExports for commonjs modules (#149)
Bugfixes
- fix: expose the virtual
require
function on mockmodule
. fixes #307 (#326) - fix: improved shouldWrap logic. fixes #304 (#355)
Features
- feat: support for explicit module.require calls. fixes #310 (#325)
v11.1.0
2020-04-12
Bugfixes
- fix: produce legal variable names from filenames containing hyphens. (#201)
Features
- feat: support dynamic require (#206)
- feat: export properties defined using Object.defineProperty(exports, ..) (#222)
Updates
- chore: snapshot mismatch running tests before publish (d6bbfdd)
- test: add snapshots to all "function" tests (#218)
v11.0.2
2020-02-01
Updates
- docs: fix link for plugin-node-resolve (#170)
- chore: update dependencies (5405eea)
- chore: remove jsnext:main (#152)
v11.0.1
2020-01-04
Bugfixes
- fix: module.exports object spread (#121)
11.0.0
2019-12-13
- Breaking: Minimum compatible Rollup version is 1.20.0
- Breaking: Minimum supported Node version is 8.0.0
- Published as @rollup/plugin-commonjs
10.1.0
2019-08-27
- Normalize ids before looking up in named export map (#406)
- Update README.md with note on symlinks (#405)
10.0.2
2019-08-03
- Support preserveSymlinks: false (#401)
10.0.1
2019-06-27
- Make tests run with Node 6 again and update dependencies (#389)
- Handle builtins appropriately for resolve 1.11.0 (#395)
10.0.0
2019-05-15
- Use new Rollup@1.12 context functions, fix issue when resolveId returns an object (#387)
9.3.4
2019-04-04
9.3.3
2019-04-04
- Remove colon from module prefixes (#371)
9.3.2
2019-04-04
- Use shared extractAssignedNames, fix destructuring issue (#303)
9.3.1
2019-04-04
- Include typings in release (#382)
9.3.0
2019-04-03
- Add TypeScript types (#363)
9.2.3
2019-04-02
- Improve support for ES3 browsers (#364)
- Add note about monorepo usage to readme (#372)
- Add .js extension to generated helper file (#373)
9.2.2
2019-03-25
- Handle array destructuring assignment (#379)
9.2.1
2019-02-23
- Use correct context when manually resolving ids (#370)
9.2.0
2018-10-10
- Fix missing default warning, produce better code when importing known ESM default exports (#349)
- Refactor code and add prettier (#346)
9.1.8
2018-09-18
- Ignore virtual modules created by other plugins (#327)
- Add "location" and "process" to reserved words (#330)
9.1.6
2018-08-24
- Keep commonJS detection between instantiations (#338)
9.1.5
2018-08-09
- Handle object form of input (#329)
9.1.4
2018-07-27
- Make "from" a reserved word (#320)
9.1.3
2018-04-30
- Fix a caching issue (#316)
9.1.2
2018-04-30
- Re-publication of 9.1.0
9.1.1
2018-04-30
- Fix ordering of modules when using rollup 0.58 (#302)
9.1.0
- Do not automatically wrap modules with return statements in top level arrow functions (#302)
9.0.0
- Make rollup a peer dependency with a version range (#300)
8.4.1
- Re-release of 8.3.0 as #287 was actually a breaking change
8.4.0
- Better handle non-CJS files that contain CJS keywords (#285)
- Use rollup's plugin context
parse
function (#287) - Improve error handling (#288)
8.3.0
- Handle multiple entry points (#283)
- Extract named exports from exported object literals (#272)
- Fix when
options.external
is modified by other plugins (#264) - Recognize static template strings in require statements (#271)
8.2.4
- Don't import default from ES modules that don't export default (#206)
8.2.3
- Prevent duplicate default exports (#230)
- Only include default export when it exists (#226)
- Deconflict
require
aliases (#232)
8.2.1
- Fix magic-string deprecation warning
8.2.0
- Avoid using
index
as a variable name (#208)
8.1.1
- Compatibility with 0.48 (#220)
8.1.0
8.0.2
- Fix another
var
rewrite bug (#181)
8.0.1
- Remove declarators within a var declaration correctly (#179)
8.0.0
- Prefer the names dependencies are imported by for the common
var foo = require('foo')
pattern (#176)
7.1.0
- Allow certain
require
statements to pass through unmolested (#174)
7.0.2
- Handle duplicate default exports (#158)
7.0.1
- Fix exports with parentheses (#168)
7.0.0
- Rewrite
typeof module
,typeof module.exports
andtypeof exports
as'object'
(#151)
6.0.1
- Don't overwrite globals (#127)
6.0.0
- Rewrite top-level
define
asundefined
, so AMD-first UMD blocks do not cause breakage (#144) - Support ES2017 syntax (#132)
- Deconflict exported reserved keywords (#116)
5.0.5
- Fix parenthesis wrapped exports (#120)
5.0.4
- Ensure named exports are added to default export in optimised modules (#112)
5.0.3
- Respect custom
namedExports
in optimised modules (#35)
5.0.2
5.0.1
- Deconflict against globals (#84)
5.0.0
- Optimise modules that don't need to be wrapped in a function (#106)
- Ignore modules containing
import
andexport
statements (#96)
4.1.0
- Ignore dead branches (#93)
4.0.1
- Fix
ignoreGlobal
option (#86)
4.0.0
- Better interop and smaller output (#92)
3.3.1
- Deconflict export and local module (rollup/rollup#554)
3.3.0
3.2.0
- Use named exports as a function when no default export is defined (#524)
3.1.0
- Replace
typeof require
with'function'
(#38) - Don't attempt to resolve entry file relative to importer (#63)
3.0.2
- Handle multiple references to
global
3.0.1
- Return a
name
3.0.0
- Make
transform
stateless (#71) - Support web worker
global
(#50) - Ignore global with
options.ignoreGlobal
(#48)
2.2.1
- Prevent false positives with
namedExports
(#36)
2.2.0
- Rewrite top-level
this
expressions to mean the same asglobal
(#31)
2.1.0
- Optimised module wrappers (#20)
- Allow control over named exports via
options.namedExports
(#18) - Handle bare imports correctly (#23)
- Blacklist all reserved words as export names (#21)
- Configure allowed file extensions via
options.extensions
(#27)
2.0.0
- Support for transpiled modules –
exports.default
is used as the default export in place ofmodule.exports
, if applicable, and__esModule
is not exported (#16)
1.4.0
- Generate sourcemaps by default
1.3.0
- Handle references to
global
(#6)
1.2.0
- Generate named exports where possible (#5)
- Handle shadowed
require
/module
/exports
1.1.0
- Handle dots in filenames (#3)
- Wrap modules in IIFE for more readable output
1.0.0
- Stable release, now that Rollup supports plugins
0.2.1
- Allow mixed CommonJS/ES6 imports/exports
- Use
var
instead oflet
0.2.0
- Sourcemap support
- Support
options.include
andoptions.exclude
- Bail early if module is obviously not a CommonJS module
0.1.1
Add dist files to package (whoops!)
0.1.0
- First release