🤖 Bip Bop - Fusion Framework Release #2198
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@equinor/[email protected]
Major Changes
#2181
ba2379b
Thanks @odinr! - Theblob
andblob# Change Log methods in the
HttpClient` class have been updated to provide a more robust and flexible API for fetching blob resources.blob
andblob# Change Log methods now accept an optional
argsparameter of type
FetchRequestInit<T, TRequest, TResponse>, where
T` is the type of the expected blob result. This allows consumers to customize the fetch request and response handling.blob
andblob# Change Log methods now return a
Promiseand
StreamResponserespectively, where
T` is the type of the expected blob result. This allows consumers to handle the blob data in a more type-safe manner.blobSelector
function has been updated to extract the filename (if available) from thecontent-disposition
header and return it along with the blob data in aBlobResult
object.blob
orblob# Change Log methods and expecting a
Blobresult, you must now use the new
BlobResult` type, which includes the filename (if available) and the blob data.Example:
blob
orblob# Change Log methods, you can now use the new
BlobResult` type in your selector function.Example:
blob# Change Log method and expecting a
StreamResponse, you can now use the new
StreamResponsetype, where
T` is the type of the expected blob result.Example:
Patch Changes
#2196
1e60919
Thanks @odinr! - ThejsonSelector
function was not checking the error type in thecatch
block.This lead to not throwing the error with parsed data, but always throwing a parser error, where the correct error was
cause
in theErrorOptions
BREAKING CHANGE:
If for some reason developers has catched the error and assumed the
cause
property would give the proper error data, this will no longer be the case.@equinor/[email protected]
Minor Changes
#2181
ba2379b
Thanks @odinr! - If you were previously using theblob
orblob# Change Log methods from the
IHttpClientand expecting a
Blobresult, you must now use the new
BlobResult` type, which includes the filename (if available) and the blob data.Migration Guide:
Patch Changes
1e60919
,ba2379b
,ba2379b
]:@equinor/[email protected]
Minor Changes
#2181
ba2379b
Thanks @odinr! - If you were previously using theblob
orblob# Change Log methods from the
IHttpClientand expecting a
Blobresult, you must now use the new
BlobResult` type, which includes the filename (if available) and the blob data.Migration Guide:
Patch Changes
ba2379b
,1e60919
,ba2379b
]:@equinor/[email protected]
Minor Changes
#2207
cc6b519
Thanks @odinr! - Updated the@ag-grid-enterprise/core
dependency to version~31.3.2
. This is a patch version bump.Sticky Group Total and Grand Total Rows: Group and grand total rows can now be displayed as sticky rows at the top or bottom of the grid, making it easier to track total values in large datasets.
Theme Builder: A new powerful styling tool that allows users to easily build highly-customized themes for AG Grid using presets and visual configurations.
Skeleton Content in Loading Grid Cells: Skeleton loading placeholders are now displayed in grid cells while data is being loaded, providing a better user experience.
Background Image in Excel Exports: Users can now add a background image to Excel files exported from AG Grid.
Global Grid Options: A new feature that allows users to apply global configuration options to all AG Grid instances in their application.
Accessibility Improvements: AG Grid 31.3 includes enhancements to keyboard navigation and overall accessibility support.
see full release note
@equinor/[email protected]
Minor Changes
#2181
ba2379b
Thanks @odinr! - ## @equinor/fusion-framework-module-servicesUpdated the
PeopleApiClient.photo
method to properly type the response asPersonPhotoApiResponse<TVersion>
instead ofBlob
. This allows for more accurate type checking when using the method.To update your code:
PeopleApiClient.photo
method directly, no changes are needed. The method will now properly type the response.PeopleApiClient.photo
, you may need to update them to handlePersonPhotoApiResponse<TVersion>
instead ofBlob
.Example:
@equinor/[email protected]
Minor Changes
#2181
ba2379b
Thanks @odinr! - If you were previously using theblob
orblob# Change Log methods from the
IHttpClientand expecting a
Blobresult, you must now use the new
BlobResult` type, which includes the filename (if available) and the blob data.Migration Guide:
Patch Changes
ba2379b
]:@equinor/[email protected]
Minor Changes
#2181
ba2379b
Thanks @odinr! - ## @equinor/fusion-framework-module-servicesUpdated the
PeopleApiClient.photo
method to properly type the response asPersonPhotoApiResponse<TVersion>
instead ofBlob
. This allows for more accurate type checking when using the method.To update your code:
PeopleApiClient.photo
method directly, no changes are needed. The method will now properly type the response.PeopleApiClient.photo
, you may need to update them to handlePersonPhotoApiResponse<TVersion>
instead ofBlob
.Example:
Patch Changes
ba2379b
,ba2379b
,1681940
]:@equinor/[email protected]
Minor Changes
#2181
ba2379b
Thanks @odinr! - If you were previously using theblob
orblob# Change Log methods from the
IHttpClientand expecting a
Blobresult, you must now use the new
BlobResult` type, which includes the filename (if available) and the blob data.Migration Guide:
Patch Changes
ba2379b
,72f48ec
]:@equinor/[email protected]
Patch Changes
4e64552
Thanks @odinr! - Updated@equinor/eds-core-react
dependency to version^0.38.0
Updated
@equinor/eds-utils
dependency to version^0.8.5
ba2379b
,ba2379b
,72f48ec
]:@equinor/[email protected]
Patch Changes
1681940
,72f48ec
]:@equinor/[email protected]
Patch Changes
1681940
,72f48ec
]:@equinor/[email protected]
Patch Changes
1681940
]:@equinor/[email protected]
Patch Changes
72f48ec
]:@equinor/[email protected]
Patch Changes
1e60919
,1681940
,ba2379b
]:@equinor/[email protected]
Patch Changes
@equinor/[email protected]
Patch Changes
1e60919
,1681940
,ba2379b
,72f48ec
]:@equinor/[email protected]
Patch Changes
4e64552
Thanks @odinr! - Updated@equinor/eds-core-react
dependency to version^0.38.0
Updated
@equinor/eds-utils
dependency to version^0.8.5
ba2379b
]:@equinor/[email protected]
Patch Changes
1e60919
,ba2379b
,ba2379b
,72f48ec
]:@equinor/[email protected]
Patch Changes
ba2379b
,1681940
,72f48ec
]:@equinor/[email protected]
Patch Changes
1681940
,72f48ec
]:@equinor/[email protected]
Patch Changes
1e60919
,ba2379b
]:@equinor/[email protected]
Patch Changes
@equinor/[email protected]
Patch Changes
ba2379b
]:@equinor/[email protected]
Patch Changes
#2204
72f48ec
Thanks @odinr! - Updated@testing-library/react
dev dependency from^14.2.0
to^15.0.0
.This is a patch bump because it only updates a dev dependency, which does not affect the public API or functionality of the
@equinor/fusion-framework-observable
package. Consumers of this package do not need to make any changes.The
@testing-library/react
library is used internally for unit testing React components. Updating to the latest version ensures we have the latest testing utilities and improvements.Highlights from the
@testing-library/react
v15.0.0 changelog:@testing-library/dom
changes various roles. Check out the changed types if you are usingByRole
queries.@equinor/[email protected]
Patch Changes
#2148
1681940
Thanks @odinr! - ---"@equinor/fusion-query": minor
This release introduces a new method
persistentQuery
to theQuery
class. This method allows for creating persistent queries that automatically update when the underlying cache entry changes.The
persistentQuery
method was added to simplify the process of creating queries that need to stay up-to-date with the latest data. Previously, developers had to manually handle cache updates and re-subscribe to the query observable when changes occurred. WithpersistentQuery
, this process is automated, reducing boilerplate code and improving developer experience.To use the
persistentQuery
method, simply call it with the desired query arguments and options, similar to the existingquery
method:The persistentQuery method returns an observable that emits the cached result immediately if available. It then continues to emit new results whenever the cache entry changes, either due to a new query or a manual cache mutation.
How to migrate
If you have existing code that manually handles cache updates and re-subscribes to queries, you can migrate to the persistentQuery method by replacing the manual logic with a call to persistentQuery.
For example, if you had code like this:
You can replace it with the following:
The persistentQuery method handles the cache updates automatically, eliminating the need for manual logic and re-subscriptions.
Additional notes
The persistentQuery method uses the distinctUntilChanged operator to only emit new results when the cache entry's transaction or mutation status changes, reducing unnecessary emissions.
If you need to customize the cache validation logic for the persistentQuery, you can pass a custom validate function in the cache options object, similar to the existing query method.
The persistentQuery method internally uses the _query and #generateCacheKey methods from the Query class, ensuring consistent behavior with the existing query functionality.
Updated dependencies [
72f48ec
]:@equinor/[email protected]
Patch Changes
1e60919
,ba2379b
,ba2379b
]:@equinor/[email protected]
Minor Changes
#2197
5426b23
Thanks @odinr! - - Added documentation and examples for using components from the@equinor/fusion-react-person
package.useSearchPersons
hook to search for persons using the People API.searchPerson
function to perform person searches with an HTTP client.HomePage
component with an overview of working with the People API.ListItemPage
component to fetch and display a list of persons based on a search query.The
@equinor/fusion-framework-cookbook-app-react-people
package lacked documentation and examples for consuming the@equinor/fusion-react-person
components. The changes aim to provide clear guidance and showcase how to interact with the People API to fetch and display person information.By adding the
useSearchPersons
hook andsearchPerson
function, developers how to implement functionality to their applications. The new types for the API response and error handling improve type safety and provide a structured way to handle different error scenarios.The updates to the
HomePage
andListItemPage
components demonstrate practical usage of the People API and components, making it easier for developers to understand and implement similar functionality in their own applications.Patch Changes
4e64552
Thanks @odinr! - Updated@equinor/eds-core-react
dependency to version^0.38.0
Updated
@equinor/eds-utils
dependency to version^0.8.5
@equinor/[email protected]
Patch Changes
#2207
cc6b519
Thanks @odinr! - @equinor/fusion-framework-module-ag-gridUpdated ag-grid dependencies to latest minor versions:
@ag-grid-community/client-side-row-model
from~31.2.0
to~31.3.2
@ag-grid-community/core
from~31.2.0
to~31.3.2
@ag-grid-community/react
from~31.2.0
to~31.3.2
Updated dependencies [
cc6b519
]:@equinor/[email protected]
Patch Changes
ba2379b
,4e64552
,72f48ec
]:@equinor/[email protected]
Patch Changes
ba2379b
,4e64552
,72f48ec
]:@equinor/[email protected]
Patch Changes
4e64552
Thanks @odinr! - Updated@equinor/eds-core-react
dependency to version^0.38.0
Updated
@equinor/eds-utils
dependency to version^0.8.5
1e60919
,ba2379b
,4e64552
,ba2379b
,72f48ec
]:@equinor/[email protected]
Patch Changes
#2200
d63b99e
Thanks @odinr! - Updated the following dependencies:#2199
c568a06
Thanks @odinr! - ## @equinor/fusion-framework-docsRemoved an outdated warning message about React version support in the Fusion Portal getting started guide.
Why
The warning message stated:
However, this is no longer accurate, as the Fusion Portal now supports newer versions of React beyond 17.