# react-native-bundle-discovery-ui

## 2.13.0

### Minor Changes

- [#33](https://github.com/retyui/react-native-bundle-discovery/pull/33) [`98b4264`](https://github.com/retyui/react-native-bundle-discovery/commit/98b42642afdf38c09389417c08bb2918dfdbfc76) Thanks [@retyui](https://github.com/retyui)! - Add a recommendation to replace `@revenuecat/purchases-js-hybrid-mappings` (the RevenueCat web SDK bundled by `react-native-purchases`, used only on web and in Expo Go) with an empty module in production iOS/Android bundles via Metro's `resolveRequest`.

- [`1284d7a`](https://github.com/retyui/react-native-bundle-discovery/commit/1284d7a593e9935b5d497f0b2ea49d5fb4da2cc2) Thanks [@retyui](https://github.com/retyui)! - Add a recommendation to exclude the web Session Replay and User Feedback integrations of `@sentry/react-native` from native bundles with `includeWebReplay: false` and `includeWebFeedback: false` in the Metro config.

### Patch Changes

- [`1284d7a`](https://github.com/retyui/react-native-bundle-discovery/commit/1284d7a593e9935b5d497f0b2ea49d5fb4da2cc2) Thanks [@retyui](https://github.com/retyui)! - Show `XMLHttpRequest` module paths relative to the project root in the "duplicate `XMLHttpRequest` implementations" recommendation.

## 2.12.0

### Minor Changes

- [`bd2a5e0`](https://github.com/retyui/react-native-bundle-discovery/commit/bd2a5e08f41a2051fef7c9a1a1dedeaf89a057bc) Thanks [@retyui](https://github.com/retyui)! - Add a recommendation to remove extra `XMLHttpRequest` implementations from the bundle and use the one built into React Native (`react-native/Libraries/Network/XMLHttpRequest.js`).

- [`fe3306e`](https://github.com/retyui/react-native-bundle-discovery/commit/fe3306e8f3306702a023748559838e25492f57d6) Thanks [@retyui](https://github.com/retyui)! - Add a recommendation that lists packages shipping inlined TypeScript (`__awaiter`, `__extends`, ...) or Babel (`_classCallCheck`, `_asyncToGenerator`, ...) helpers in their source code, with the files that contain them.

- [`2f2b1ac`](https://github.com/retyui/react-native-bundle-discovery/commit/2f2b1ac79111e2a7f4d68ee29249f1c236dff677) Thanks [@retyui](https://github.com/retyui)! - Add a "sort by size" button to expanded package versions in the Packages tab, which sorts that version's files by size (largest first, smallest first, or bundle order).

## 2.11.0

### Minor Changes

- [`07bb945`](https://github.com/retyui/react-native-bundle-discovery/commit/07bb94580e59966c72f427a1da2a5212a0cdc1cc) Thanks [@retyui](https://github.com/retyui)! - Add a recommendation to put i18n libraries (`fbtee`, `i18next`, `react-intl`, `@lingui/core`, …) into Metro's `nonInlinedRequires`, as they are expected to be required in many places of the code.

### Patch Changes

- [`f50c377`](https://github.com/retyui/react-native-bundle-discovery/commit/f50c37761e5880f4499a6f2213d95460637768fb) Thanks [@retyui](https://github.com/retyui)! - Mention `@react-native/metro-config` alongside `@react-native/babel-preset` in the "platform-specific dead code" recommendation.

## 2.10.0

### Patch Changes

- [`88cae65`](https://github.com/retyui/react-native-bundle-discovery/commit/88cae65917c4ac28e62be67d32d5ea943c237419) Thanks [@retyui](https://github.com/retyui)! - Flag mock and fixture files (`__mocks__/`, `__fixtures__/`, `mock(s).ts`, `*.mock(s).ts`) in the "dev files in production bundle" recommendation.

- [`88cae65`](https://github.com/retyui/react-native-bundle-discovery/commit/88cae65917c4ac28e62be67d32d5ea943c237419) Thanks [@retyui](https://github.com/retyui)! - Show only duplicated packages when the "Duplicates" sort is selected.

- [`88cae65`](https://github.com/retyui/react-native-bundle-discovery/commit/88cae65917c4ac28e62be67d32d5ea943c237419) Thanks [@retyui](https://github.com/retyui)! - Allow Cmd/Ctrl/Shift+Click on links to open them in a new tab or window ([discoveryjs/discovery#113](https://github.com/discoveryjs/discovery/issues/113)).

- [`44d56f0`](https://github.com/retyui/react-native-bundle-discovery/commit/44d56f0dfb94c99c8f4eb689302a22674508496a) Thanks [@retyui](https://github.com/retyui)! - Fix `Cannot find module @discoveryjs/discovery` when running via `npx` outside a project that has it installed

## 2.9.1

### Patch Changes

- [`bcd0922`](https://github.com/retyui/react-native-bundle-discovery/commit/bcd09227bd83179005e484146c527cb01ad0d589) Thanks [@retyui](https://github.com/retyui)! - Readable "Dev bundle" and "Not minified" warnings in the top bar in dark mode.

- [`e3ff2b1`](https://github.com/retyui/react-native-bundle-discovery/commit/e3ff2b1546289f054a8103958698ca8b47016763) Thanks [@retyui](https://github.com/retyui)! - Package ids like `memoize-one@5.2.1` in the "Update outdated packages", "Replace deprecated packages" and "Remove dev-only packages from production bundle" recommendations are shown as code instead of being turned into `mailto:` links in the UI.

## 2.9.0

### Minor Changes

- [#23](https://github.com/retyui/react-native-bundle-discovery/pull/23) [`9a7d932`](https://github.com/retyui/react-native-bundle-discovery/commit/9a7d9325d6039354ba661d68b47eef85dc8334ff) Thanks [@retyui](https://github.com/retyui)! - New `--compare <before.json>` option for the `server` and `build` commands: adds a "Compare" tab to the default page with the difference between the two reports (bundle size, modules and packages count, new duplicates and deprecated packages, package version changes, added/removed/changed modules). Uses the same comparison as `react-native-bundle-discovery-cli compare`.

- [#23](https://github.com/retyui/react-native-bundle-discovery/pull/23) [`1819d53`](https://github.com/retyui/react-native-bundle-discovery/commit/1819d53c4c0b560f186c90d8cf9cfabf52d2be5e) Thanks [@retyui](https://github.com/retyui)! - Module page: the "Imported by" graph is drawn with D3 (a tree from the current module to its importers, sized by module size, with zoom/pan, hover highlighting and click to open a module). Highcharts and the vendored `vendors/` files were removed.

- [#23](https://github.com/retyui/react-native-bundle-discovery/pull/23) [`6271156`](https://github.com/retyui/react-native-bundle-discovery/commit/627115602e54b474670fcaf42b1599570fc76940) Thanks [@retyui](https://github.com/retyui)! - New default "Insights" tab: bundle summary cards, heaviest packages and own modules, and the optimization recommendations of the `analyze` CLI command ranked by estimated savings (production reports only). Header badges show the share of the bundle, the treemap can be colored by package, file type or issues (duplicates / removable code), the "Duplicates" tab lists duplicate packages with possible savings, and the package page shows the shortest import chain ("Why is this in my bundle?").

- [`237407e`](https://github.com/retyui/react-native-bundle-discovery/commit/237407e43ffaf3a298f86fce71ff0e3850e5015f) Thanks [@retyui](https://github.com/retyui)! - Module page: new header with package/version and status chips, stat cards (size share and rank, transform delta, lines, package share, imports, importers, duplicates) and a new Imports tab.

- [#23](https://github.com/retyui/react-native-bundle-discovery/pull/23) [`2cfe22d`](https://github.com/retyui/react-native-bundle-discovery/commit/2cfe22dda8ded6fd37076aadde194a4142c46c7a) Thanks [@retyui](https://github.com/retyui)! - Package page: new header with versions, status and recommendation chips and quick links, stat cards (bundle share and rank, files, copies with possible savings, importers, publish date) and tabs for files, importers, the import chain and versions. Fixes a package page showing files of another package whose name contains the requested one (e.g. `react` and `react-native`).

- [#23](https://github.com/retyui/react-native-bundle-discovery/pull/23) [`a910869`](https://github.com/retyui/react-native-bundle-discovery/commit/a910869464542f8bdfe62776ca8f608610a3a735) Thanks [@retyui](https://github.com/retyui)! - Default page: the row of badges on top is replaced with a compact report bar: platform, a warning for dev or unminified bundles (green "Production · Minified" otherwise), the total size with a "your code / node_modules" split bar, and the report build date.

- [#20](https://github.com/retyui/react-native-bundle-discovery/pull/20) [`5817574`](https://github.com/retyui/react-native-bundle-discovery/commit/58175749496a860dbfa87da7fbdd7a9e8dd67844) Thanks [@retyui](https://github.com/retyui)! - Packages and Modules tabs: show the total size of filtered items and allow sorting by size, name or duplicates.

### Patch Changes

- [#23](https://github.com/retyui/react-native-bundle-discovery/pull/23) [`d40a350`](https://github.com/retyui/react-native-bundle-discovery/commit/d40a350eb97f2077a84c28421d2d063288167577) Thanks [@retyui](https://github.com/retyui)! - Treemap: more vivid colors with cushion shading, and sub-folders of a package get a slightly shifted hue so big packages show their structure.

- [#23](https://github.com/retyui/react-native-bundle-discovery/pull/23) [`2cfe22d`](https://github.com/retyui/react-native-bundle-discovery/commit/2cfe22dda8ded6fd37076aadde194a4142c46c7a) Thanks [@retyui](https://github.com/retyui)! - Packages tab: remove the "Copy list" and "Ask ChatGPT" buttons. Packages and Modules tabs: "Sort by" is now on the left of the filter.

- [`9331e2f`](https://github.com/retyui/react-native-bundle-discovery/commit/9331e2f875f4b6cdeeda4ccda2ac5bb2c03700cd) Thanks [@retyui](https://github.com/retyui)! - Packages and Modules tabs: keep the entered filter value after opening a package/module page and navigating back.

## 2.8.0

### Minor Changes

- [`64fd3fd`](https://github.com/retyui/react-native-bundle-discovery/commit/64fd3fdb878fa539ed3c9f032588c61d301f61d1) Thanks [@retyui](https://github.com/retyui)! - Support [esbuild metafile](https://esbuild.github.io/api/#metafile) as input (e.g. from `@rnx-kit/metro-serializer-esbuild` with the `metafile` option), with module sizes after tree shaking.

## 2.7.0

### Minor Changes

- [#16](https://github.com/retyui/react-native-bundle-discovery/pull/16) [`ac2af30`](https://github.com/retyui/react-native-bundle-discovery/commit/ac2af3063e3c4031ee026b58d4039e56f7152383) Thanks [@retyui](https://github.com/retyui)! - Rewrite in TypeScript and ship compiled JavaScript from `dist/` (with type definitions for `react-native-bundle-discovery` and the Rozenite plugin). Package entry points are unchanged; deep imports of internal files (e.g. `react-native-bundle-discovery/webpack.js`, `react-native-bundle-discovery-ui/.discoveryrc.js`) moved under `dist/`.
