Skip to content

Commit c114a07

Browse files
committed
Bumping the version number and writing change notes
1 parent fbbcc45 commit c114a07

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "micropad",
3-
"version": "4.4.0",
3+
"version": "4.5.0",
44
"private": true,
55
"scripts": {
66
"preinstall": "python3 ../libs/build-libs.py && ./get_precache_files.py > src/extraPrecacheFiles.ts",

app/src/app/assets/Help.npx

+11-4
Large diffs are not rendered by default.

app/src/app/root.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -257,18 +257,18 @@ async function hydrateStoreFromLocalforage() {
257257

258258
async function displayWhatsNew() {
259259
// some clean up of an old item, can be removed in the future
260-
localforage.removeItem('oldMinorVersion').catch(e => console.error(e));
260+
localforage.removeItem(SettingsStorageKeys.OLD_MINOR_VERSION).catch(e => console.error(e));
261261

262262
const minorVersion = store.getState().app.version.minor;
263-
const oldMinorVersion = await SETTINGS_STORAGE.getItem<number>('oldMinorVersion');
263+
const oldMinorVersion = await SETTINGS_STORAGE.getItem<number>(SettingsStorageKeys.OLD_MINOR_VERSION);
264264
if (minorVersion === oldMinorVersion) return;
265265

266266
// Open "What's New"
267267
setTimeout(() => {
268268
store.dispatch(actions.openModal('whats-new-modal'));
269269
}, 0);
270270

271-
SETTINGS_STORAGE.setItem<number>('oldMinorVersion', minorVersion).catch(e => console.error(e));
271+
SETTINGS_STORAGE.setItem<number>(SettingsStorageKeys.OLD_MINOR_VERSION, minorVersion).catch(e => console.error(e));
272272
}
273273

274274
function notepadDownloadHandler() {

app/src/app/storage/settings-storage-keys.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ export const enum SettingsStorageKeys {
22
SHOULD_WORD_WRAP = 'shouldWordWrap',
33
SHOULD_SPELL_CHECK = 'shouldSpellCheck',
44
DUE_DATE_OPTS = 'dueDateOpts',
5+
OLD_MINOR_VERSION = 'oldMinorVersion',
56
}

0 commit comments

Comments
 (0)