@raphiniert/ra-data-postgrest 2.5.0 → 2.5.1

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 CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Find all notable changes of this project in this file.
4
4
 
5
+ ## v2.5.1 - 2025-04-29
6
+ ### Fixes
7
+ - [#182](https://github.com/raphiniert-com/ra-data-postgrest/issues/182) Fix the need for workaround by switching to [dequal](https://www.npmjs.com/package/dequal)
8
+
5
9
  ## v2.5.0 - 2025-04-23
6
10
  ### Improvements
7
11
  - [#181](https://github.com/raphiniert-com/ra-data-postgrest/pull/181) Add support for embed and prefetch @[djhi](https://github.com/djhi)
package/esm/index.js CHANGED
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { getPrimaryKey, parseFilters, getOrderBy, dataWithVirtualId, dataWithoutVirtualId, removePrimaryKey, getQuery, encodeId, } from './urlBuilder';
13
13
  import qs from 'qs';
14
- import { isDeepStrictEqual as isEqual } from 'node:util';
14
+ import { dequal as isEqual } from 'dequal';
15
15
  export var defaultPrimaryKeys = new Map();
16
16
  export var defaultSchema = function () { return ''; };
17
17
  var useCustomSchema = function (schema, metaSchema, method) {
package/lib/index.js CHANGED
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.defaultSchema = exports.defaultPrimaryKeys = void 0;
18
18
  var urlBuilder_1 = require("./urlBuilder");
19
19
  var qs_1 = __importDefault(require("qs"));
20
- var node_util_1 = require("node:util");
20
+ var dequal_1 = require("dequal");
21
21
  exports.defaultPrimaryKeys = new Map();
22
22
  var defaultSchema = function () { return ''; };
23
23
  exports.defaultSchema = defaultSchema;
@@ -307,7 +307,7 @@ exports.default = (function (config) { return ({
307
307
  }); });
308
308
  var getChanges = function (data, previousData) {
309
309
  var changes = Object.keys(data).reduce(function (changes, key) {
310
- if (!(0, node_util_1.isDeepStrictEqual)(data[key], previousData[key])) {
310
+ if (!(0, dequal_1.dequal)(data[key], previousData[key])) {
311
311
  changes[key] = data[key];
312
312
  }
313
313
  return changes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raphiniert/ra-data-postgrest",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "postgREST data provider for react-admin",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",
@@ -45,6 +45,7 @@
45
45
  "ra-core": "^5.7.3"
46
46
  },
47
47
  "dependencies": {
48
+ "dequal": "^2.0.3",
48
49
  "qs": "^6.14.0"
49
50
  }
50
51
  }
package/src/index.ts CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  PostgRestSortOrder,
25
25
  } from './urlBuilder';
26
26
  import qs from 'qs';
27
- import { isDeepStrictEqual as isEqual } from 'node:util';
27
+ import { dequal as isEqual } from 'dequal';
28
28
 
29
29
  /**
30
30
  * Maps react-admin queries to a postgrest REST API