Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kerosene-ui: Add boundaries for react-query integration #118

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

nhardy
Copy link
Member

@nhardy nhardy commented May 11, 2023

No description provided.

@nhardy nhardy force-pushed the feature/kerosene-ui-boundaries branch from 03051ab to 9bbba40 Compare May 11, 2023 02:50
@coveralls
Copy link

coveralls commented May 11, 2023

Coverage Status

coverage: 81.562% (+0.2%) from 81.313%
when pulling be860a9 on feature/kerosene-ui-boundaries
into 0350017 on master.

@nhardy nhardy force-pushed the feature/kerosene-ui-boundaries branch 2 times, most recently from d69a39f to 2d2af9d Compare May 21, 2023 23:52
@nhardy nhardy force-pushed the feature/kerosene-ui-boundaries branch 2 times, most recently from b25a4c7 to 552eb36 Compare December 6, 2023 01:46
@nhardy nhardy marked this pull request as ready for review December 6, 2023 01:51
@nhardy nhardy requested a review from angusd3v December 6, 2023 03:31
@nhardy nhardy force-pushed the feature/kerosene-ui-boundaries branch 2 times, most recently from 0e3e1f4 to 265450a Compare December 6, 2023 04:12
Comment on lines -10 to -11
require("core-js/features/array/flat");
require("core-js/features/array/flat-map");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer required in the oldest supported Node LTS version

@@ -7,5 +7,4 @@ require("@babel/register")({
extensions: [".js", ".ts"],
});

require("core-js/features/array/flat");
require("core-js/features/array/flat-map");
require("core-js/features/promise/with-resolvers");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Promise.withResolvers() not yet supported in Node or all browsers.

Comment on lines +69 to +72
"@tanstack/react-query": {
"optional": true
},
"react-error-boundary": {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't want to introduce the requirement for @tanstack/react-query and react-error-boundary onto all consumers of @kablamo/kerosene-ui, so have included these as optional peer dependencies rather than creating a whole separate package for boundaries. This does mean though that any consumers that do have these dependencies will need to have compatible versions.

angusd3v
angusd3v previously approved these changes Dec 7, 2023
@nhardy nhardy merged commit d9bfcb6 into master Dec 7, 2023
4 checks passed
@nhardy nhardy deleted the feature/kerosene-ui-boundaries branch December 7, 2023 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants