@haniffalab/cherita-react 2.0.0-dev.2026-05-07.sha-4912ae8d → 2.1.0
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.
|
@@ -176,7 +176,7 @@ function SettingsProvider(_ref2) {
|
|
|
176
176
|
|
|
177
177
|
// If the buster is not set or does not match the current package version,
|
|
178
178
|
// reset localSettings to avoid stale data
|
|
179
|
-
if (!buster || buster !== "2.
|
|
179
|
+
if (!buster || buster !== "2.1.0") {
|
|
180
180
|
localSettings = {};
|
|
181
181
|
}
|
|
182
182
|
const initSettings = (0, _react.useRef)(initializer({
|
|
@@ -201,7 +201,7 @@ function SettingsProvider(_ref2) {
|
|
|
201
201
|
if (canOverrideSettings && settings) {
|
|
202
202
|
try {
|
|
203
203
|
localStorage.setItem(DATASET_STORAGE_KEY, JSON.stringify(_objectSpread({
|
|
204
|
-
buster: "2.
|
|
204
|
+
buster: "2.1.0" || '0.0.0',
|
|
205
205
|
timestamp: Date.now()
|
|
206
206
|
}, _lodash.default.omit(settings, 'data'))));
|
|
207
207
|
} catch (err) {
|
|
@@ -166,7 +166,7 @@ export function SettingsProvider(_ref2) {
|
|
|
166
166
|
|
|
167
167
|
// If the buster is not set or does not match the current package version,
|
|
168
168
|
// reset localSettings to avoid stale data
|
|
169
|
-
if (!buster || buster !== "2.
|
|
169
|
+
if (!buster || buster !== "2.1.0") {
|
|
170
170
|
localSettings = {};
|
|
171
171
|
}
|
|
172
172
|
const initSettings = useRef(initializer({
|
|
@@ -191,7 +191,7 @@ export function SettingsProvider(_ref2) {
|
|
|
191
191
|
if (canOverrideSettings && settings) {
|
|
192
192
|
try {
|
|
193
193
|
localStorage.setItem(DATASET_STORAGE_KEY, JSON.stringify(_objectSpread({
|
|
194
|
-
buster: "2.
|
|
194
|
+
buster: "2.1.0" || '0.0.0',
|
|
195
195
|
timestamp: Date.now()
|
|
196
196
|
}, _.omit(settings, 'data'))));
|
|
197
197
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haniffalab/cherita-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"author": "Haniffa Lab",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -148,6 +148,5 @@
|
|
|
148
148
|
"bugs": {
|
|
149
149
|
"url": "https://github.com/haniffalab/cherita-react/issues"
|
|
150
150
|
},
|
|
151
|
-
"homepage": "https://github.com/haniffalab/cherita-react#readme"
|
|
152
|
-
|
|
153
|
-
}
|
|
151
|
+
"homepage": "https://github.com/haniffalab/cherita-react#readme"
|
|
152
|
+
}
|