You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Breaking changes
* `--action=versions`:
* _Reports_: The `tsv` and `text` reports have now changed to reflect
dependencies hierarchies as _installed_ (e.g., `[email protected] ->
[email protected] -> @scope/[email protected]`) to a semever range meaning
something like as _depended_ (e.g., `[email protected] -> flattened-foo@^1.1.0
-> @scope/foo@^1.1.1`). We expect that this change will provide much more
useful information as to how and why your dependency graph impacts what is
installed on disk in `node_modules` and ultimately what ends up in your
webpack bundle.
* _Metadata_: The following `meta` fields have been renamed to be easier
to understand.
* `skewedPackages` → `packages`: Number of packages with skews.
* `skewedVersions` → `resolved`: Number of unique resolved versions.
* `installedPackages` → `installed`: Number of on-disk installs.
* `dependedPackages` → `depended`: Number of dependency paths.
### Features
* Add `range` information to all dependency items returned internally for
dependencies utilities and ultimately all the way to `versions` data.
* Add `installed` aggregate statistic to `versions` metadata.
* Add `DuplicatesPlugin` webpack plugin.
### Fixes
* BUG: Per-asset `meta` stats were never set (all `0`) before in data.
* BUG: Multiple package roots incorrectly collapse / don't prefix. Fixes#90
### Miscellaneous
- Updated README.md with note that `--action=versions` is not filtered to only
packages that would have files show up in the `--action=duplicates` report.
- Update `--action=versions` logic to explicitly use `semver-compare` for sort
order.
We have an existing
multiple-roots
test scenario that is wrong in the new plugin:Plugin
Notice the two
foo/index.js (I, 54)
for1.1.1
. There should be a separatepackage2
root, that we need to handle differentlyCLI
Versions:
Duplicates:
Task
Deal with this scenario:
./packages/package1/node_modules/foo/index.js
./packages/package2/node_modules/foo/index.js
./node_modules/different-foo/node_modules/foo/index.js
in the following way:
The text was updated successfully, but these errors were encountered: