Releases: pixeldesu/moduleRaid
6.2.0
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
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
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
- ⬆️ Bump json5 and postcss-modules by @dependabot in #21
Full Changelog: 6.0.1...6.1.0
6.0.1
What's Changed
- A bug was fixed that prevented any of the Webpack 3 (and earlier) injection methods to function.
Dependency updates
- ⬆️ Bump nanoid from 3.1.23 to 3.3.1 by @dependabot in #12
- ⬆️ Bump minimist from 1.2.5 to 1.2.6 by @dependabot in #13
- ⬆️ Bump terser from 5.7.1 to 5.14.2 by @dependabot in #15
- ⬆️ Bump loader-utils from 1.4.0 to 1.4.2 by @dependabot in #16
- ⬆️ Bump minimatch from 3.0.4 to 3.1.2 by @dependabot in #17
- ⬆️ Bump marked from 2.1.3 to 4.2.2 by @dependabot in #18
Full Changelog: 6.0.0...6.0.1
6.0.0
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
andfindConstructor
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 restrictiveWebpackModule
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