Skip to content

Releases: alexindigo/node-global-define

AliasRequire

Choose a tag to compare

@alexindigo alexindigo released this 02 Aug 07:40

Added aliasRequire

Invasive Mode

Choose a tag to compare

@alexindigo alexindigo released this 26 Oct 03:44
  • 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

Choose a tag to compare

@alexindigo alexindigo released this 23 Oct 01:54

Fixed undesired expose of the global.define after modules have been loaded

Proper Instantiation

Choose a tag to compare

@alexindigo alexindigo released this 12 Sep 02:18

Fixed embarrassing bug where it was unable to instantiate.

Proper Returns

Choose a tag to compare

@alexindigo alexindigo released this 23 Aug 09:25
  • Made it always return proper define function.

Nest All The Things

Choose a tag to compare

@alexindigo alexindigo released this 23 Aug 09:22
  • 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 deleteModuleCache option to disableCache.

Proper Dependencies

Choose a tag to compare

@alexindigo alexindigo released this 23 Aug 03:54
  • Keep linting/pre-commit as development dependencies.

Single-File-Module Support

Choose a tag to compare

@alexindigo alexindigo released this 23 Aug 03:42
  • 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

Choose a tag to compare

@alexindigo alexindigo released this 20 Aug 00:16
  • Added auto cache deletion option.

Better integration

Choose a tag to compare

@alexindigo alexindigo released this 04 Feb 00:31
  • Exposed internal methods to allow easier integration.
  • Made Readme readble on npmjs.
  • Added same file invocation to the Readme.