pirates

Properly hijack require

MIT License

Downloads
120.4M
Stars
398
Committers
12

Bot releases are visible (Hide)

pirates - v4.0.6 Latest Release

Published by github-actions[bot] over 1 year ago

4.0.6 (2023-06-20)

Bug Fixes

pirates - v4.0.5

Published by github-actions[bot] over 2 years ago

4.0.5 (2022-01-24)

Bug Fixes

  • Ensure revert() does revert correctly (4e1b015), closes #90
pirates - v4.0.4

Published by github-actions[bot] almost 3 years ago

4.0.4 (2021-12-07)

Bug Fixes

  • Inline node_modules regex and remove dependency (7fab36b)
pirates - v4.0.3

Published by github-actions[bot] almost 3 years ago

4.0.3 (2021-12-07)

Bug Fixes

  • Correctly revert to undefined if no previous loader exists (cf74daf)
  • release: Fix release (6170d3a)
pirates - v4.0.2

Published by github-actions[bot] almost 3 years ago

Release broken

pirates - v4.0.1

Published by danez over 5 years ago

4.0.1 (2019-02-17)

Bug Fixes

pirates - v4.0.0

Published by danez over 6 years ago

4.0.0 (2018-07-11)

Features

  • node: Drop support of node <6 (14b1b13)

BREAKING CHANGES

  • node: Node <6 is not supported anymore
pirates - v3.0.2

Published by danez almost 7 years ago

<a name"3.0.2">

3.0.2 (2017-11-11)

Bug Fixes

  • compatibility: Make Module assignment more generic. (#35) (e543ad0)
pirates - v3.0.1

Published by danez over 7 years ago

<a name"3.0.1">

3.0.1 (2017-04-07)

Bug Fixes

  • export: Correctly export as ES module (#35) (55998f37)
pirates - v3.0.0

Published by danez over 7 years ago

<a name"3.0.0">

3.0.0 (2017-04-06)

Breaking Changes

  • Requires node >= 4 now

(be3a7358)

pirates - v2.1.2

Published by ariporad about 8 years ago

<a name"2.1.2">

2.1.2 (2016-09-18)

Bug Fixes

  • only call the loader once per file (14c36791)
pirates - v2.1.1

Published by ariporad over 8 years ago

<a name"2.1.1">

2.1.1 (2016-01-20)

Bug Fixes

pirates - v2.1.0

Published by ariporad almost 9 years ago

<a name"2.1.0">

2.1.0 (2015-12-11)

Features

  • use node-module-regexp to detect node_modules (08adf40b)
pirates - v2.0.1

Published by ariporad almost 9 years ago

<a name"2.0.1">

2.0.1 (2015-12-08)

Bug Fixes

  • ignoreNodeModules option should accept false (93313a62)
pirates - v2.0.0

Published by ariporad almost 9 years ago

<a name"2.0.0">

2.0.0 (2015-12-08)

Features

  • throw an error when the hook doesn't return anything (vs. logging) (cd1c43fe)
  • make auto-ignoring node_modules a configurable option (a4040e93)
  • switch to options object (d7c7c092)

Breaking Changes

  • /* @pirates: ignore */ now doesn't do anything. Since this was undocumented, you shouldn't have been using it, but if you were, now you're not.

    (4ea6953c)

  • You can't just pass exts, hook, matcher into addHook. Now it looks like:

    (d7c7c092)

pirates - v1.1.0

Published by ariporad almost 9 years ago

<a name"1.1.0">

1.1.0 (2015-12-06)

Features

  • add the ability to revert hooks. (391e9179)
pirates - v1.0.2

Published by ariporad almost 9 years ago

<a name"1.0.2">

1.0.2 (2015-12-05)

Bug Fixes

pirates - v1.0.1

Published by ariporad almost 9 years ago

<a name"1.0.1">

1.0.1 (2015-12-05)

Bug Fixes

pirates - v1.0.0

Published by ariporad almost 9 years ago

<a name"1.0.0">

1.0.0 (2015-12-05)

Features

  • handle cases when the hook doesn't return anything (40655cd8)
  • add some type checking (1129c3dd)
  • add some logging for debug purposes using npmlog (57fa09d3)
  • support require hooks that don't use pirates (35f6635c)
  • ignore any file conaining '@pirates: ignore' (3cc82fb1)
  • add some more flexible arguments parsing (d1d077d0)
  • inital implimentation (and tests!) (887188c5)

Breaking Changes

  • addCompiler is now addHook. Same API, diffrent name. Use the new one

    (32302ea4)