Abdullah Atta
d35d355fb3
web: move backup time forward when it is skipped
2022-10-17 22:39:54 +05:00
Abdullah Atta
577d50b512
core: move index migrations to main database migrations
...
this is better design wise as we won't have to keep checking if the
indices have been migrated or not. We'll just check the database version
and do the appropriate migrations based on that.
2022-10-17 22:36:53 +05:00
Abdullah Atta
f3fa7fe744
core: update core version to 5.8
2022-10-13 19:18:52 +05:00
Abdullah Atta
0e6150a0f5
core: change db keys to include collection name
...
This should not affect the items or their server representation.
This change is necessary to allow multiple items with same id
that live in different collections.
For example, shortcuts have the same id as the inner reference they
point to. This was not possible before and would cause an overwrite
of the original value.
2022-10-13 19:18:52 +05:00
Abdullah Atta
c09715d053
core: make item migration fall through all db versions
...
this was not exactly a bug but it can cause a lot of unintended
behaviour. Previously, you'd have to manually specify which version the
item migration should jump to. This was buggy and poorly designed.
This change makes the item iterate over all the db migrations one by one
automatically.
For example:
An item at version 5.2 will go through:
- 5.3
- 5.4
- and so on
2022-10-13 19:18:52 +05:00
Abdullah Atta
6469c6d689
core: forcefully set item type to tiptap if it is content
2022-09-29 16:59:43 +05:00
Abdullah Atta
7c99c3acb9
core: add migrations for notebooks & settings ( #1020 )
2022-09-21 11:47:09 +05:00
Abdullah Atta
6c613c6f1e
Merge branch 'move-pins-out'
2022-09-21 10:45:58 +05:00
Abdullah Atta
201366b39e
core: get rid of noteIds in notebook topics
...
This is a BREAKING change in the core & will require updating the
clients. The way it works is instead of keeping noteIds of all the
notes in the topic, it keeps an in-memory cache. This in-memory
cache `topicReferences` lives in the notes collection & decouples
notes from notebooks/topics. This also simplifies all the different
actions where references would persist after the note was deleted.
Since the note acts as the source of truth for where it currently is,
there is nothing else to do except rebuild the `topicReferences`
cache.
2022-09-08 13:39:06 +05:00
Abdullah Atta
ac7aad93b3
core: shorcuts -> shortcuts
2022-09-07 14:13:26 +05:00
Abdullah Atta
1e99d7732c
core: add new collection for shortcuts
2022-09-07 12:47:02 +05:00
Abdullah Atta
d81f5dba65
refactor: migrate to theme-ui from rebass
2022-08-31 07:26:27 +05:00
Abdullah Atta
c317774c8a
docs: add license header
2022-08-30 16:17:04 +05:00
thecodrr
d35b2d4250
fix: backup fails if user is not pro but encrypted backups is on
...
(fixes streetwriters/notesnook#781 )
2022-08-15 21:11:05 +05:00
thecodrr
62b715645f
fix: cachedcollection returns empty array on db reinit
2022-08-06 10:30:25 +05:00
thecodrr
d3e77a9063
feat: remove migrated property
2022-07-20 08:33:50 +05:00
thecodrr
a4f7058f1b
feat: move database version to 5.6
2022-07-15 19:31:18 +05:00
thecodrr
3f54f36d50
feat: migrate from tiny -> tiptap
2022-07-07 13:17:55 +05:00
thecodrr
751305e04c
perf: optimize grouping/sorting & id creation
2022-06-16 16:01:08 +05:00
thecodrr
2cbe8dffd8
feat: make sync more resilient
2022-03-30 20:45:16 +05:00
thecodrr
4135028137
feat: improve sync over websockets
2022-03-30 15:52:48 +05:00
thecodrr
32545d4320
feat: disable at rest encryption
2022-03-28 10:22:26 +05:00
thecodrr
a3bc778660
Merge branch 'master' into websockets-encrypted-sync
2022-03-28 10:17:18 +05:00
thecodrr
f455442b76
fix: use access_token when deleting attachment
2022-02-28 12:59:58 +05:00
thecodrr
bb675e9da2
initial
2022-02-08 13:16:41 +05:00
thecodrr
e54a5e8ef0
fix: do not send salt param during random key gen
2022-01-12 09:47:10 +05:00
thecodrr
cce90b8f56
feat: require password for encrypted backups
2022-01-10 13:10:21 +05:00
thecodrr
278d1681ca
fix: table getting converted to raw html
2021-12-29 14:33:29 +05:00
thecodrr
fa556015f6
feat: add dateEdited to dateModified migration
2021-12-22 10:24:01 +05:00
thecodrr
06828ac35c
feat: dateEdited -> dateModified
2021-12-20 14:37:06 +05:00
thecodrr
0421c9c452
refactor: getItems should return an object intead of an array
2021-12-20 09:28:58 +05:00
thecodrr
485f464f13
feat: acquire lock using syncMutex
2021-11-18 19:40:59 +05:00
thecodrr
4b9453d91b
fix: acquire sync lock during backup restore
2021-11-18 15:28:36 +05:00
thecodrr
2c927a5dd7
feat: send metadata along with download request
2021-11-18 15:17:02 +05:00
thecodrr
9ccb0fee12
fix: attach alias with tag for sorting/grouping
2021-11-18 11:01:12 +05:00
thecodrr
64535cc61c
fix: repair all notebook references on sync/backup
2021-11-12 11:47:03 +05:00
thecodrr
e608eaaedf
fix: repair notebook references in notes on sync
2021-11-12 10:32:25 +05:00
thecodrr
b139623420
feat: remove trash from merger & backup
2021-11-12 09:38:11 +05:00
thecodrr
7ed920e49e
fix: clear file storage on user logout
2021-11-02 14:31:30 +05:00
thecodrr
36597616cc
fix: handle chunkSize
2021-10-30 13:49:41 +05:00
thecodrr
23e584f272
fix: add attachments support to migrator & backup
2021-10-28 13:37:55 +05:00
thecodrr
011a99d322
fix: improve syncing & merge conflict detection
2021-10-27 10:53:36 +05:00
thecodrr
888481b858
refactor: sendCheckUserStatusEvent -> checkIsUserPremium
2021-10-26 23:05:47 +05:00
thecodrr
51794e001e
feat: add 3-layer-encryption for attachments
2021-10-25 11:35:00 +05:00
thecodrr
69defdb367
feat: handle attachments merge conflict
2021-10-23 11:41:17 +05:00
thecodrr
6fab9ad1f3
chore: remove all comments
2021-10-22 16:29:03 +05:00
thecodrr
df13446e30
feat: redirect request instead of returning presigned url
2021-10-15 11:12:05 +05:00
thecodrr
f3a617d20f
fix: send db update event before comitting changes
2021-10-04 11:55:14 +05:00
thecodrr
051be837ae
fix: delete operation on cancel or done
2021-10-01 11:53:46 +05:00
thecodrr
5be2a5ebd6
fix: reset progress on operation cancel
2021-10-01 11:40:18 +05:00