@backstage/plugin-catalog-react 0.7.0 → 0.8.0

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,5 +1,47 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - da79aac2a6: Removed some previously deprecated `routeRefs` as follows:
8
+
9
+ - **BREAKING**: Removed `entityRoute` in favor of `entityRouteRef`.
10
+ - **BREAKING**: Removed the previously deprecated `rootRoute` and `catalogRouteRef`. If you want to refer to the catalog index page from a public plugin you now need to use an `ExternalRouteRef` instead. For private plugins it is possible to take the shortcut of referring directly to `catalogPlugin.routes.indexPage` instead.
11
+
12
+ - e26fd1c7ab: Marked `useEntityPermission` as alpha since the underlying permission framework is under active development.
13
+ - 2de1d82bd1: Removing the `EntityName` path for the `useEntityOwnership` as it has never worked correctly. Please pass in an entire `Entity` instead.
14
+
15
+ ### Patch Changes
16
+
17
+ - 899f196af5: Use `getEntityByRef` instead of `getEntityByName` in the catalog client
18
+ - f41a293231: - **DEPRECATION**: Deprecated `formatEntityRefTitle` in favor of the new `humanizeEntityRef` method instead. Please migrate to using the new method instead.
19
+ - f590d1681b: Deprecated `favoriteEntityTooltip` and `favoriteEntityIcon` since the utility value is very low.
20
+ - 72431d7bed: - **BREAKING**: The `isOwnerOf` function has been marked as `@alpha` and is now only available via the `@backstage/plugin-catalog-react/alpha` import. The limitations of this function with regards to only supporting direct relations have also been documented.
21
+ - 03ec06bf7f: **BREAKING**: Moved **DefaultStarredEntitiesApi** to `@backstage/plugin-catalog`. If you were using this in tests, you can use the new `MockStarredEntitiesApi` from `@backstage/plugin-catalog-react` instead.
22
+
23
+ Fixed a risky behavior where `DefaultStarredEntitiesApi` forwarded values to observers that were later mutated.
24
+
25
+ Removed the `isStarred` method from `DefaultStarredEntitiesApi`, as it is not part of the `StarredEntitiesApi`.
26
+
27
+ - 44403296e7: Added the following deprecations to the `catalog-react` package:
28
+
29
+ - **DEPRECATION**: `useEntity` will now warn if the entity has not yet been loaded, and will soon throw errors instead. If you're using the default implementation of `EntityLayout` and `EntitySwitch` then these components will ensure that there is an entity loaded before rendering children. If you're implementing your own `EntityLayout` or `EntitySwitch` or something that operates outside or adjacent to them, then use `useAsyncEntity`.
30
+
31
+ - **DEPRECATION**: the `loading`, `error` and `refresh` properties that are returned from `useEntity` have been deprecated, and are available on `useAsyncEntity` instead.
32
+
33
+ - 8f0e8e039b: Deprecated `getEntityMetadataEditUrl` and `getEntityMetadataViewUrl` as these just return one annotation from the entity passed in.
34
+ - 36aa63022b: Use `CompoundEntityRef` instead of `EntityName`, and `getCompoundEntityRef` instead of `getEntityName`, from `@backstage/catalog-model`.
35
+ - bb2bb36651: Updated usage of `StorageApi` to use `snapshot` method instead of `get`
36
+ - Updated dependencies
37
+ - @backstage/catalog-model@0.12.0
38
+ - @backstage/catalog-client@0.8.0
39
+ - @backstage/core-components@0.9.0
40
+ - @backstage/integration@0.8.0
41
+ - @backstage/core-plugin-api@0.8.0
42
+ - @backstage/plugin-permission-common@0.5.2
43
+ - @backstage/plugin-permission-react@0.3.3
44
+
3
45
  ## 0.7.0
4
46
 
5
47
  ### Minor Changes
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "@backstage/plugin-catalog-react",
3
+ "version": "0.8.0",
4
+ "main": "..",
5
+ "types": "../dist/index.alpha.d.ts"
6
+ }