@haniffalab/cherita-react 1.4.1-dev.2025-06-30.e26168b5 → 1.4.1-dev.2025-08-13.6fc43290

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.
@@ -60,7 +60,7 @@ const persistOptions = {
60
60
  return false;
61
61
  }
62
62
  },
63
- buster: "1.4.1-dev.2025-06-30.e26168b5" || "0.0.0"
63
+ buster: "1.4.1-dev.2025-08-13.6fc43290" || "0.0.0"
64
64
  // @TODO: add maxAge and api version numbers as buster
65
65
  };
66
66
  const initialDataset = {
@@ -118,7 +118,7 @@ const initializer = _ref => {
118
118
  defaultSettings,
119
119
  localSettings
120
120
  } = _ref;
121
- const mergedSettings = canOverrideSettings ? _lodash.default.assign({}, initialSettings, defaultSettings, localSettings) : _lodash.default.assign({}, initialSettings, defaultSettings);
121
+ const mergedSettings = canOverrideSettings ? _lodash.default.defaultsDeep({}, localSettings, defaultSettings, initialSettings) : _lodash.default.defaultsDeep({}, defaultSettings, initialSettings);
122
122
  return validateSettings(mergedSettings);
123
123
  };
124
124
  function SettingsProvider(_ref2) {
@@ -140,7 +140,7 @@ function SettingsProvider(_ref2) {
140
140
 
141
141
  // If the buster is not set or does not match the current package version,
142
142
  // reset localSettings to avoid stale data
143
- if (!buster || buster !== "1.4.1-dev.2025-06-30.e26168b5") {
143
+ if (!buster || buster !== "1.4.1-dev.2025-08-13.6fc43290") {
144
144
  localSettings = {};
145
145
  }
146
146
  const [settings, dispatch] = (0, _react.useReducer)(settingsReducer, {
@@ -152,7 +152,7 @@ function SettingsProvider(_ref2) {
152
152
  if (canOverrideSettings) {
153
153
  try {
154
154
  localStorage.setItem(DATASET_STORAGE_KEY, JSON.stringify(_objectSpread({
155
- buster: "1.4.1-dev.2025-06-30.e26168b5" || "0.0.0",
155
+ buster: "1.4.1-dev.2025-08-13.6fc43290" || "0.0.0",
156
156
  timestamp: Date.now()
157
157
  }, settings)));
158
158
  } catch (err) {
@@ -50,7 +50,7 @@ const persistOptions = {
50
50
  return false;
51
51
  }
52
52
  },
53
- buster: "1.4.1-dev.2025-06-30.e26168b5" || "0.0.0"
53
+ buster: "1.4.1-dev.2025-08-13.6fc43290" || "0.0.0"
54
54
  // @TODO: add maxAge and api version numbers as buster
55
55
  };
56
56
  const initialDataset = {
@@ -107,7 +107,7 @@ const initializer = _ref => {
107
107
  defaultSettings,
108
108
  localSettings
109
109
  } = _ref;
110
- const mergedSettings = canOverrideSettings ? _.assign({}, initialSettings, defaultSettings, localSettings) : _.assign({}, initialSettings, defaultSettings);
110
+ const mergedSettings = canOverrideSettings ? _.defaultsDeep({}, localSettings, defaultSettings, initialSettings) : _.defaultsDeep({}, defaultSettings, initialSettings);
111
111
  return validateSettings(mergedSettings);
112
112
  };
113
113
  export function SettingsProvider(_ref2) {
@@ -129,7 +129,7 @@ export function SettingsProvider(_ref2) {
129
129
 
130
130
  // If the buster is not set or does not match the current package version,
131
131
  // reset localSettings to avoid stale data
132
- if (!buster || buster !== "1.4.1-dev.2025-06-30.e26168b5") {
132
+ if (!buster || buster !== "1.4.1-dev.2025-08-13.6fc43290") {
133
133
  localSettings = {};
134
134
  }
135
135
  const [settings, dispatch] = useReducer(settingsReducer, {
@@ -141,7 +141,7 @@ export function SettingsProvider(_ref2) {
141
141
  if (canOverrideSettings) {
142
142
  try {
143
143
  localStorage.setItem(DATASET_STORAGE_KEY, JSON.stringify(_objectSpread({
144
- buster: "1.4.1-dev.2025-06-30.e26168b5" || "0.0.0",
144
+ buster: "1.4.1-dev.2025-08-13.6fc43290" || "0.0.0",
145
145
  timestamp: Date.now()
146
146
  }, settings)));
147
147
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haniffalab/cherita-react",
3
- "version": "1.4.1-dev.2025-06-30.e26168b5",
3
+ "version": "1.4.1-dev.2025-08-13.6fc43290",
4
4
  "author": "Haniffa Lab",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -128,5 +128,5 @@
128
128
  "url": "https://github.com/haniffalab/cherita-react/issues"
129
129
  },
130
130
  "homepage": "https://github.com/haniffalab/cherita-react#readme",
131
- "prereleaseSha": "e26168b526ee80a8dfb494c61e68a64112c8dbc1"
131
+ "prereleaseSha": "6fc43290e91ef296e79a1fd7b3e5b6be1215fd3b"
132
132
  }