@trackunit/react-graphql-hooks 1.6.89 → 1.7.4

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
@@ -5,7 +5,7 @@ var i18nLibraryTranslation = require('@trackunit/i18n-library-translation');
5
5
  var sharedUtils = require('@trackunit/shared-utils');
6
6
  var ApolloClient = require('@apollo/client');
7
7
  var reactTablePagination = require('@trackunit/react-table-pagination');
8
- var isEqual = require('lodash/isEqual');
8
+ var esToolkit = require('es-toolkit');
9
9
  var react = require('react');
10
10
 
11
11
  function _interopNamespaceDefault(e) {
@@ -147,7 +147,7 @@ const usePaginationQuery = (document, { ...props }) => {
147
147
  const variablesRef = react.useRef(props.variables);
148
148
  // Use effect to update the ref when props.variables changes
149
149
  react.useEffect(() => {
150
- if (!isEqual(props.variables, variablesRef.current)) {
150
+ if (!esToolkit.isEqual(props.variables, variablesRef.current)) {
151
151
  variablesRef.current = props.variables;
152
152
  setStableVariables(props.variables);
153
153
  if (!props.skip) {
package/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import { registerTranslations } from '@trackunit/i18n-library-translation';
3
3
  import { truthy, objectKeys } from '@trackunit/shared-utils';
4
4
  import * as ApolloClient from '@apollo/client';
5
5
  import { useRelayPagination, defaultPageSize } from '@trackunit/react-table-pagination';
6
- import isEqual from 'lodash/isEqual';
6
+ import { isEqual } from 'es-toolkit';
7
7
  import { useState, useRef, useEffect, useMemo, useCallback } from 'react';
8
8
 
9
9
  var defaultTranslations = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-graphql-hooks",
3
- "version": "1.6.89",
3
+ "version": "1.7.4",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -9,11 +9,11 @@
9
9
  "dependencies": {
10
10
  "@apollo/client": "3.13.8",
11
11
  "react": "19.0.0",
12
- "lodash": "4.17.21",
13
- "@trackunit/i18n-library-translation": "1.6.70",
14
- "@trackunit/shared-utils": "1.8.66",
15
- "@trackunit/react-table-pagination": "1.6.64",
16
- "@trackunit/react-test-setup": "1.3.65"
12
+ "@trackunit/i18n-library-translation": "1.7.4",
13
+ "@trackunit/shared-utils": "1.9.4",
14
+ "@trackunit/react-table-pagination": "1.7.4",
15
+ "@trackunit/react-test-setup": "1.4.4",
16
+ "es-toolkit": "^1.39.10"
17
17
  },
18
18
  "module": "./index.esm.js",
19
19
  "main": "./index.cjs.js",