@trackunit/react-core-contexts 2.1.50 → 2.1.53

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/index.cjs.js CHANGED
@@ -26,7 +26,7 @@ const FeatureFlagProviderIrisApp = ({ children }) => {
26
26
  try {
27
27
  setFeatureFlags(await irisAppRuntimeCore.FeatureFlagRuntime.getFeatureFlags());
28
28
  }
29
- catch (error) {
29
+ catch {
30
30
  setFeatureFlags(null);
31
31
  // eslint-disable-next-line no-console
32
32
  console.error("Could not load environment!");
@@ -595,7 +595,7 @@ const EnvironmentProviderIrisApp = ({ children }) => {
595
595
  try {
596
596
  setEnvironment(await irisAppRuntimeCore.EnvironmentRuntime.getEnvironmentContext());
597
597
  }
598
- catch (error) {
598
+ catch {
599
599
  setEnvironment(null);
600
600
  // eslint-disable-next-line no-console
601
601
  console.error("Could not load environment!");
@@ -618,10 +618,10 @@ const ErrorHandlingProviderIrisApp = ({ children, errorHandler }) => {
618
618
  // eslint-disable-next-line no-console
619
619
  console.error(details);
620
620
  },
621
- addBreadcrumb: breadcrumb => {
621
+ addBreadcrumb: () => {
622
622
  // do nothing
623
623
  },
624
- setTag: (key, value) => {
624
+ setTag: (_key, _value) => {
625
625
  // do nothing
626
626
  },
627
627
  }), []);
@@ -767,7 +767,7 @@ const TimeRangeProviderIrisApp = ({ children }) => {
767
767
  void irisAppRuntimeCore.TimeRangeRuntime.getTimeRange()
768
768
  .catch(() => null)
769
769
  .then(result => {
770
- setTimeRangeContext(prev => ({
770
+ setTimeRangeContext(() => ({
771
771
  timeRange: result?.timeRange || null,
772
772
  temporalPeriod: result?.temporalPeriod || null,
773
773
  }));
@@ -775,7 +775,7 @@ const TimeRangeProviderIrisApp = ({ children }) => {
775
775
  }, []);
776
776
  const methods = react.useMemo(() => ({
777
777
  onTimeRangeChanged: (timeRange, temporalPeriod) => {
778
- setTimeRangeContext(prev => ({
778
+ setTimeRangeContext(() => ({
779
779
  timeRange: timeRange || null,
780
780
  temporalPeriod: temporalPeriod || null,
781
781
  }));
package/index.esm.js CHANGED
@@ -24,7 +24,7 @@ const FeatureFlagProviderIrisApp = ({ children }) => {
24
24
  try {
25
25
  setFeatureFlags(await FeatureFlagRuntime.getFeatureFlags());
26
26
  }
27
- catch (error) {
27
+ catch {
28
28
  setFeatureFlags(null);
29
29
  // eslint-disable-next-line no-console
30
30
  console.error("Could not load environment!");
@@ -593,7 +593,7 @@ const EnvironmentProviderIrisApp = ({ children }) => {
593
593
  try {
594
594
  setEnvironment(await EnvironmentRuntime.getEnvironmentContext());
595
595
  }
596
- catch (error) {
596
+ catch {
597
597
  setEnvironment(null);
598
598
  // eslint-disable-next-line no-console
599
599
  console.error("Could not load environment!");
@@ -616,10 +616,10 @@ const ErrorHandlingProviderIrisApp = ({ children, errorHandler }) => {
616
616
  // eslint-disable-next-line no-console
617
617
  console.error(details);
618
618
  },
619
- addBreadcrumb: breadcrumb => {
619
+ addBreadcrumb: () => {
620
620
  // do nothing
621
621
  },
622
- setTag: (key, value) => {
622
+ setTag: (_key, _value) => {
623
623
  // do nothing
624
624
  },
625
625
  }), []);
@@ -765,7 +765,7 @@ const TimeRangeProviderIrisApp = ({ children }) => {
765
765
  void TimeRangeRuntime.getTimeRange()
766
766
  .catch(() => null)
767
767
  .then(result => {
768
- setTimeRangeContext(prev => ({
768
+ setTimeRangeContext(() => ({
769
769
  timeRange: result?.timeRange || null,
770
770
  temporalPeriod: result?.temporalPeriod || null,
771
771
  }));
@@ -773,7 +773,7 @@ const TimeRangeProviderIrisApp = ({ children }) => {
773
773
  }, []);
774
774
  const methods = useMemo(() => ({
775
775
  onTimeRangeChanged: (timeRange, temporalPeriod) => {
776
- setTimeRangeContext(prev => ({
776
+ setTimeRangeContext(() => ({
777
777
  timeRange: timeRange || null,
778
778
  temporalPeriod: temporalPeriod || null,
779
779
  }));
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts",
3
- "version": "2.1.50",
3
+ "version": "2.1.53",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
7
7
  "node": ">=24.x"
8
8
  },
9
9
  "dependencies": {
10
- "@trackunit/iris-app-api": "2.0.42",
11
- "@trackunit/iris-app-runtime-core-api": "1.16.55",
12
- "@trackunit/react-core-hooks": "1.17.61",
13
- "@trackunit/i18n-library-translation": "2.0.50",
14
- "@trackunit/react-components": "2.1.49",
15
- "@trackunit/iris-app-runtime-core": "1.17.56",
10
+ "@trackunit/iris-app-api": "2.0.44",
11
+ "@trackunit/iris-app-runtime-core-api": "1.16.57",
12
+ "@trackunit/react-core-hooks": "1.17.63",
13
+ "@trackunit/i18n-library-translation": "2.0.52",
14
+ "@trackunit/react-components": "2.1.52",
15
+ "@trackunit/iris-app-runtime-core": "1.17.58",
16
16
  "graphql-sse": "^2.5.4",
17
- "@trackunit/react-core-contexts-api": "1.17.55"
17
+ "@trackunit/react-core-contexts-api": "1.17.57"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@apollo/client": "^3.13.8",