@nubitio/crud 0.5.3 → 0.5.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/dist/index.cjs CHANGED
@@ -5323,8 +5323,12 @@ function createAuditFieldLabelResolver(config, fields) {
5323
5323
  return fieldLabelByName.get(field) ?? field;
5324
5324
  };
5325
5325
  }
5326
+ function normalizeAuditScalar(value) {
5327
+ if (value == null || value === "") return null;
5328
+ return value;
5329
+ }
5326
5330
  function auditValuesEqual(before, after) {
5327
- return JSON.stringify(before) === JSON.stringify(after);
5331
+ return JSON.stringify(normalizeAuditScalar(before)) === JSON.stringify(normalizeAuditScalar(after));
5328
5332
  }
5329
5333
  function mergeAuditEntryGroup(entries) {
5330
5334
  const chronological = [...entries].sort((left, right) => {
package/dist/index.mjs CHANGED
@@ -5299,8 +5299,12 @@ function createAuditFieldLabelResolver(config, fields) {
5299
5299
  return fieldLabelByName.get(field) ?? field;
5300
5300
  };
5301
5301
  }
5302
+ function normalizeAuditScalar(value) {
5303
+ if (value == null || value === "") return null;
5304
+ return value;
5305
+ }
5302
5306
  function auditValuesEqual(before, after) {
5303
- return JSON.stringify(before) === JSON.stringify(after);
5307
+ return JSON.stringify(normalizeAuditScalar(before)) === JSON.stringify(normalizeAuditScalar(after));
5304
5308
  }
5305
5309
  function mergeAuditEntryGroup(entries) {
5306
5310
  const chronological = [...entries].sort((left, right) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubitio/crud",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "type": "module",
5
5
  "description": "Declarative CRUD engine with field DSL, forms, datagrids, RBAC, conditional logic and pluggable adapters (Hydra/REST).",
6
6
  "license": "MIT",
@@ -56,8 +56,8 @@
56
56
  "react-dom": "^19.0.0",
57
57
  "react-i18next": "^14.0.0",
58
58
  "react-router-dom": "^6.0.0",
59
- "@nubitio/core": "^0.5.3",
60
- "@nubitio/ui": "^0.5.3"
59
+ "@nubitio/core": "^0.5.4",
60
+ "@nubitio/ui": "^0.5.4"
61
61
  },
62
62
  "dependencies": {
63
63
  "react-dropzone": "^15.0.0"