Releases: alexindigo/node-global-define
Releases · alexindigo/node-global-define
Release list
AliasRequire
Invasive Mode
- Added Invasive Mode (to work with instrumentation libraries like
istanbul) - Added
empty:paths support - Apply paths in specific (longest) to general (shortest) order.
Undesired Exposure
Fixed undesired expose of the global.define after modules have been loaded
Proper Instantiation
Fixed embarrassing bug where it was unable to instantiate.
Proper Returns
- Made it always return proper
definefunction.
Nest All The Things
- Added nesting support. Allows to have dependencies with their own configurations of
global-define. - Internal refactoring – creates new instance per invocation.
- Downgraded eslint, to make it lint (Investigating).
- Changed
deleteModuleCacheoption todisableCache.
Proper Dependencies
- Keep linting/pre-commit as development dependencies.
Single-File-Module Support
- Fixed single file module resolution.
If you have file like env.js in your base folder, then define/require like following
define(['env'], function(env) {});and
define(['env!env/file'], function(file) {});will be properly resolved.
- Added pre-commit hook and linting via eslint.
Busted Cache
Better integration
- Exposed internal methods to allow easier integration.
- Made Readme readble on npmjs.
- Added same file invocation to the Readme.