Skip to content

Releases: pixeldesu/moduleRaid

6.2.0

06 May 19:06
Compare
Choose a tag to compare

What's Changed

  • Older Webpack versions always included the actual package in a exports sub-key, this was removed. A lot of checks used .exports so searches in newer sites have been running empty.
  • The search through module objects has been improved and is now recursively searching through both all keys and values inside an object.

6.1.1

31 Dec 08:35
Compare
Choose a tag to compare

What's Changed

This release fixes a minor incompatibility with Whatsapp Web. Since 6.0.0 it was not able to properly inject, causing the modules list being empty. The cause for this has been identified and fixed, modules is now populated again. This should also be the case for other projects using newer Webpack versions.

Full Changelog: 6.1.0...6.1.1

6.1.0

31 Dec 08:05
Compare
Choose a tag to compare

What's Changed

New feature: ✨ Entrypoint detection ✨

If webpackJsonp can't be found, moduleRaid will try to do some guesswork in the window object and pick the next fitting array/function containing webpack or chunk in the name.

If no entrypoint can be found through this way, moduleRaid will now exit early instead of running into the injection and possibly erroring out.

To restore the old behaviour of requiring an entrypoint to exist, a new constructor flag strict has been added. With strict mode enabled, if webpackJsonp (or an entrypoint set via the entrypoint option) is not found, moduleRaid will also exit early.

Bug fix

The final "brute-force" injection method has been fixed, and if webpackJsonp does not exist as function, you will now correctly see an Unknown Webpack structure error

Dependency updates

Full Changelog: 6.0.1...6.1.0

6.0.1

30 Dec 14:49
Compare
Choose a tag to compare

What's Changed

  • A bug was fixed that prevented any of the Webpack 3 (and earlier) injection methods to function.

Dependency updates

Full Changelog: 6.0.0...6.0.1

6.0.0

19 Mar 23:36
Compare
Choose a tag to compare

What's Changed

Breaking Changes

  • The fallback constructor parameter using only a boolean value to enable debug output has been removed, only using an object to pass initialiation options is supported now.
  • The content of modules now reflects the Webpack module cache by reference, so the structure is different. If you have your code dependent on this, you need to adjust it. (findModule and findConstructor work as before however).
  • There was a minor oversight in findModule, string modules were not lowercased with the search. This is now fixed, but means that your search results might be different from this version on.
  • The ModuleLike type is replaced with a better and less restrictive WebpackModule type.

New Feature:

You can now listen for newly loaded chunks!

If webpackJsonp.push (or any other entrypoint) is called, moduleRaid will now dispatch a moduleraid:webpack-push event on document which you can listen to and re-run searches for modules or any other related logic.

Full Changelog: 5.1.2...6.0.0