@backstage/plugin-catalog-react 0.0.0-nightly-202111822629 → 0.0.0-nightly-2021111622350

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,32 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
- ## 0.0.0-nightly-202111822629
3
+ ## 0.0.0-nightly-2021111622350
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - 6156fb8730: `useEntityTypeFilter`: Skip updating selected types if a kind filter change did not change them.
8
+ - Updated dependencies
9
+ - @backstage/core-components@0.0.0-nightly-2021111622350
10
+ - @backstage/core-plugin-api@0.0.0-nightly-2021111622350
11
+ - @backstage/catalog-model@0.0.0-nightly-2021111622350
12
+
13
+ ## 0.6.6
14
+
15
+ ### Patch Changes
16
+
17
+ - 4c0f0b2003: Removed dependency on `@backstage/core-app-api`.
18
+
19
+ ## 0.6.5
20
+
21
+ ### Patch Changes
22
+
23
+ - cd450844f6: Moved React dependencies to `peerDependencies` and allow both React v16 and v17 to be used.
7
24
  - 69034b4419: Fix typo in catalog-react package.json
8
25
  - Updated dependencies
9
- - @backstage/core-components@0.0.0-nightly-202111822629
26
+ - @backstage/core-components@0.8.0
27
+ - @backstage/core-plugin-api@0.3.0
28
+ - @backstage/core-app-api@0.2.0
29
+ - @backstage/version-bridge@0.1.1
10
30
 
11
31
  ## 0.6.4
12
32
 
package/dist/index.cjs.js CHANGED
@@ -13,6 +13,7 @@ var versionBridge = require('@backstage/version-bridge');
13
13
  var reactRouter = require('react-router');
14
14
  var reactUse = require('react-use');
15
15
  var qs = require('qs');
16
+ var isEqual = require('lodash/isEqual');
16
17
  var coreComponents = require('@backstage/core-components');
17
18
  var core = require('@material-ui/core');
18
19
  var jwtDecoder = require('jwt-decode');
@@ -33,6 +34,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
33
34
  var ObservableImpl__default = /*#__PURE__*/_interopDefaultLegacy(ObservableImpl);
34
35
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
35
36
  var qs__default = /*#__PURE__*/_interopDefaultLegacy(qs);
37
+ var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
36
38
  var jwtDecoder__default = /*#__PURE__*/_interopDefaultLegacy(jwtDecoder);
37
39
  var CheckBoxIcon__default = /*#__PURE__*/_interopDefaultLegacy(CheckBoxIcon);
38
40
  var CheckBoxOutlineBlankIcon__default = /*#__PURE__*/_interopDefaultLegacy(CheckBoxOutlineBlankIcon);
@@ -577,7 +579,9 @@ function useEntityTypeFilter() {
577
579
  const newTypes = Object.entries(countByType).sort(([, count1], [, count2]) => count2 - count1).map(([type]) => type);
578
580
  setAvailableTypes(newTypes);
579
581
  const stillValidTypes = selectedTypes.filter((value) => newTypes.includes(value));
580
- setSelectedTypes(stillValidTypes);
582
+ if (!isEqual__default["default"](selectedTypes, stillValidTypes)) {
583
+ setSelectedTypes(stillValidTypes);
584
+ }
581
585
  }, [loading, kind, selectedTypes, setSelectedTypes, entities]);
582
586
  React.useEffect(() => {
583
587
  updateFilters({