@backstage/plugin-catalog-react 0.7.0 → 0.9.0-next.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 +79 -0
- package/alpha/package.json +6 -0
- package/dist/index.alpha.d.ts +681 -0
- package/dist/index.beta.d.ts +657 -0
- package/dist/index.d.ts +441 -496
- package/dist/index.esm.js +64 -194
- package/dist/index.esm.js.map +1 -1
- package/package.json +19 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,84 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
+
## 0.9.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b0af81726d: **BREAKING**: Removed `reduceCatalogFilters` and `reduceEntityFilters` due to low external utility value.
|
|
8
|
+
- 7ffb2c73c9: **BREAKING**: Removed the deprecated `loadCatalogOwnerRefs` function. Usages of this function can be directly replaced with `ownershipEntityRefs` from `identityApi.getBackstageIdentity()`.
|
|
9
|
+
|
|
10
|
+
This also affects the `useEntityOwnership` hook in that it no longer uses `loadCatalogOwnerRefs`, meaning it will no longer load in additional relations and instead only rely on the `ownershipEntityRefs` from the `IdentityApi`.
|
|
11
|
+
|
|
12
|
+
- dd88d1e3ac: **BREAKING**: Removed `useEntityFromUrl`.
|
|
13
|
+
- 9844d4d2bd: **BREAKING**: Removed `useEntityCompoundName`, use `useRouteRefParams(entityRouteRef)` instead.
|
|
14
|
+
- 2b8c986ce0: **BREAKING**: Removed `useEntityListProvider` use `useEntityList` instead.
|
|
15
|
+
- f3a7a9de6d: **BREAKING**: Removed `useOwnedEntities` and moved its usage internally to the scaffolder-backend where it's used.
|
|
16
|
+
|
|
17
|
+
**BREAKING**: Removed `EntityTypeReturn` type which is now inlined.
|
|
18
|
+
|
|
19
|
+
- cf1ff5b438: **BREAKING**: Removed the `useEntityKinds` hook, use `catalogApi.getEntityFacets({ facets: ['kind'] })` instead.
|
|
20
|
+
- fc6290a76d: **BREAKING**: Removed the deprecated `useOwnUser` hook. Existing usage can be replaced with `identityApi.getBackstageIdentity()`, followed by a call to `catalogClient.getEntityByRef(identity.userEntityRef)`.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- b1aacbf96a: Applied the fix for the `/alpha` entry point resolution that was part of the `v0.70.1` release of Backstage.
|
|
25
|
+
- 2986f8e09d: Fixed EntityOwnerPicker and OwnershipCard url filter issue with more than 21 owners
|
|
26
|
+
- f3a7a9de6d: Internalized usage of `useOwnedEntities` hook.
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- @backstage/core-components@0.9.1-next.0
|
|
29
|
+
- @backstage/catalog-model@0.13.0-next.0
|
|
30
|
+
- @backstage/catalog-client@0.9.0-next.0
|
|
31
|
+
|
|
32
|
+
## 0.8.1
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- Fixed runtime resolution of the `/alpha` entry point.
|
|
37
|
+
- Updated dependencies
|
|
38
|
+
- @backstage/catalog-model@0.12.1
|
|
39
|
+
|
|
40
|
+
## 0.8.0
|
|
41
|
+
|
|
42
|
+
### Minor Changes
|
|
43
|
+
|
|
44
|
+
- da79aac2a6: Removed some previously deprecated `routeRefs` as follows:
|
|
45
|
+
|
|
46
|
+
- **BREAKING**: Removed `entityRoute` in favor of `entityRouteRef`.
|
|
47
|
+
- **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.
|
|
48
|
+
|
|
49
|
+
- e26fd1c7ab: Marked `useEntityPermission` as alpha since the underlying permission framework is under active development.
|
|
50
|
+
- 2de1d82bd1: Removing the `EntityName` path for the `useEntityOwnership` as it has never worked correctly. Please pass in an entire `Entity` instead.
|
|
51
|
+
|
|
52
|
+
### Patch Changes
|
|
53
|
+
|
|
54
|
+
- 899f196af5: Use `getEntityByRef` instead of `getEntityByName` in the catalog client
|
|
55
|
+
- f41a293231: - **DEPRECATION**: Deprecated `formatEntityRefTitle` in favor of the new `humanizeEntityRef` method instead. Please migrate to using the new method instead.
|
|
56
|
+
- f590d1681b: Deprecated `favoriteEntityTooltip` and `favoriteEntityIcon` since the utility value is very low.
|
|
57
|
+
- 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.
|
|
58
|
+
- 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.
|
|
59
|
+
|
|
60
|
+
Fixed a risky behavior where `DefaultStarredEntitiesApi` forwarded values to observers that were later mutated.
|
|
61
|
+
|
|
62
|
+
Removed the `isStarred` method from `DefaultStarredEntitiesApi`, as it is not part of the `StarredEntitiesApi`.
|
|
63
|
+
|
|
64
|
+
- 44403296e7: Added the following deprecations to the `catalog-react` package:
|
|
65
|
+
|
|
66
|
+
- **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`.
|
|
67
|
+
|
|
68
|
+
- **DEPRECATION**: the `loading`, `error` and `refresh` properties that are returned from `useEntity` have been deprecated, and are available on `useAsyncEntity` instead.
|
|
69
|
+
|
|
70
|
+
- 8f0e8e039b: Deprecated `getEntityMetadataEditUrl` and `getEntityMetadataViewUrl` as these just return one annotation from the entity passed in.
|
|
71
|
+
- 36aa63022b: Use `CompoundEntityRef` instead of `EntityName`, and `getCompoundEntityRef` instead of `getEntityName`, from `@backstage/catalog-model`.
|
|
72
|
+
- bb2bb36651: Updated usage of `StorageApi` to use `snapshot` method instead of `get`
|
|
73
|
+
- Updated dependencies
|
|
74
|
+
- @backstage/catalog-model@0.12.0
|
|
75
|
+
- @backstage/catalog-client@0.8.0
|
|
76
|
+
- @backstage/core-components@0.9.0
|
|
77
|
+
- @backstage/integration@0.8.0
|
|
78
|
+
- @backstage/core-plugin-api@0.8.0
|
|
79
|
+
- @backstage/plugin-permission-common@0.5.2
|
|
80
|
+
- @backstage/plugin-permission-react@0.3.3
|
|
81
|
+
|
|
3
82
|
## 0.7.0
|
|
4
83
|
|
|
5
84
|
### Minor Changes
|