Commit Graph

2058 Commits

Author SHA1 Message Date
thecodrr
55fe304ecb chore: bump version to 6.16.13 2022-01-03 14:54:43 +05:00
thecodrr
6c6e5a7676 fix: throw error if decrypted data is undefined 2022-01-03 14:54:23 +05:00
thecodrr
0bfc195e5f fix: send event if system clock is out of sync 2022-01-03 14:54:06 +05:00
thecodrr
2021fe56d5 fix: force logout user on 401 unauthorized error 2022-01-03 13:26:57 +05:00
thecodrr
e86ba52af4 fix: do not auto logout on password reset 2022-01-03 10:47:02 +05:00
thecodrr
34140a0cc0 chore: Support for the experimental syntax 'logicalAssignment' isn't currently enabled 2022-01-01 22:04:58 +05:00
thecodrr
c16bfd31e3 fix: cannot read property dateResolved of undefined 2022-01-01 20:58:56 +05:00
thecodrr
700b77042c feat: add interruption resistant password changing 2022-01-01 16:11:55 +05:00
thecodrr
43bb3d2785 fix: throw proper error if local db version is lower than required 2021-12-31 11:50:21 +05:00
thecodrr
dfca8a3a30 fix: do not throw if attachment is invalid 2021-12-31 10:58:38 +05:00
thecodrr
d52cb6a82e fix: keep local content if resolved 2021-12-31 10:45:10 +05:00
thecodrr
e269c8d264 refactor: pass only necessary properties to content collection 2021-12-31 09:42:48 +05:00
thecodrr
12a6ad595f fix: use full regex to migrate 2021-12-31 09:18:06 +05:00
thecodrr
4795d9c13f feat: add endpoing to clear user sessions 2021-12-31 09:06:12 +05:00
thecodrr
f838826e42 fix: re-enable account password changing 2021-12-31 09:05:45 +05:00
thecodrr
c089ccbe19 feat: refresh token on 401 unauthorized error 2021-12-31 09:04:13 +05:00
thecodrr
4a6e3cf774 fix: disable fetch timeout 2021-12-30 12:12:43 +05:00
thecodrr
278d1681ca fix: table getting converted to raw html 2021-12-29 14:33:29 +05:00
thecodrr
c2df49809c chore: bump version to 6.16.2 2021-12-29 10:54:22 +05:00
thecodrr
1cbbce6019 fix: init notes on vault clear & delete 2021-12-29 10:51:50 +05:00
thecodrr
dbbf4a118e fix: make vault password changing more reliable 2021-12-29 10:49:38 +05:00
thecodrr
55e87b6adf feat: send event on auto vault lock 2021-12-29 09:56:19 +05:00
thecodrr
55d16d4672 fix: check if vault is unlocked before saving 2021-12-29 09:45:30 +05:00
thecodrr
edd9dc5de2 fix: notes not merging on sync 2021-12-29 09:34:20 +05:00
thecodrr
828c0eb701 chore: bump version to 6.16.1 2021-12-28 14:50:19 +05:00
thecodrr
3353d2235e feat: add migration for table & checklists 2021-12-28 14:50:04 +05:00
thecodrr
d16a4abfcc chore: remove unnecessary console.trace 2021-12-27 19:13:54 +00:00
thecodrr
bdaf6f506e fix: set default sortBy for tags & trash 2021-12-25 14:06:18 +05:00
thecodrr
addde688f7 feat: timeout all requests after 20 seconds 2021-12-25 12:27:23 +05:00
thecodrr
b70da12b1b fix: merge migrated tags directly 2021-12-23 13:44:19 +05:00
thecodrr
4204d8784d test: rewrite notehistory tests for improved correctness 2021-12-22 12:07:07 +05:00
thecodrr
fa556015f6 feat: add dateEdited to dateModified migration 2021-12-22 10:24:01 +05:00
thecodrr
5337dd482c refactor: extendable formatDate function 2021-12-22 10:07:23 +05:00
thecodrr
b3b5d495f2 refactor: apply formatting to notehistory test 2021-12-22 10:06:37 +05:00
thecodrr
52be317577 refactor: expose decryptContent method 2021-12-22 10:06:20 +05:00
thecodrr
da1c2bbf10 fix: update dateEdited on locked note save 2021-12-22 10:06:01 +05:00
thecodrr
9a984df1bd feat: auto create session history on content edit 2021-12-22 10:05:42 +05:00
thecodrr
dd9b2815ee fix: forgot to await super.init 2021-12-22 10:03:55 +05:00
thecodrr
e7b34bdbc7 fix: merge dateCreated when upserting session 2021-12-22 10:01:15 +05:00
thecodrr
794eb07574 fix: dateEdited -> dateModified 2021-12-22 10:00:47 +05:00
thecodrr
117e84b599 fix: note history returns all the sessions 2021-12-22 10:00:30 +05:00
thecodrr
6a547286c7 fix: sort note history by newest - oldest 2021-12-22 09:59:19 +05:00
thecodrr
1424756bca fix: turn off caching for notehistory collection 2021-12-22 09:58:28 +05:00
thecodrr
2bb1d32533 fix: clear note history when note is locked 2021-12-22 09:57:43 +05:00
thecodrr
711bb77efa refactor: contenthistory -> sessioncontent 2021-12-22 09:57:12 +05:00
thecodrr
5bbff5b88d fix: decompressSync not defined 2021-12-22 09:54:34 +05:00
thecodrr
42d6cfab95 fix: change date style to (MMM DD, YYYY, HH:mm AM/PM) 2021-12-21 14:32:14 +05:00
thecodrr
eef5e96257 fix: do not use default import for fflate 2021-12-21 14:31:11 +05:00
Abdullah Atta
630bb33b10 feat: add note version history (#20)
* feat: note version history

* fix bugs

* add tests for session history

* update tests

* add tests for restoring content

* add more tests

* update jsdoc

* return empty array if no session history present for a note

* init note history with await

* add note history versions limit

* cleanup note history after adding a new session

* fix tests

* add test for session cleanup

* test: add collector tests

* feat: dateEdited -> dateModified

* feat: migrate to liqe for searching

* chore: forceExit jest after test run

* feat: note version history

* fix bugs

* add tests for session history

* update tests

* add tests for restoring content

* add more tests

* update jsdoc

* return empty array if no session history present for a note

* init note history with await

* add note history versions limit

* cleanup note history after adding a new session

* fix tests

* add test for session cleanup

* init ContentHistory with await

* fix reference to db in init

* make sessionId in db

* check if note is locked through note metadata

* make cleanup method private

* use remove methods in notehistory and contenthistory

* restore note content via notes.add method if note is not locked

* move getting all items to seperate functions

* check if parsed json is valid

* deserialize a session only if it's sessionContent exists

* add locked property to sessionContent

* remove makeSessionId function

* update tests

* remove yarn.lock file

* update tests

Co-authored-by: ammarahm-ed <ammarahmed6506@gmail.com>
2021-12-21 13:41:08 +05:00
thecodrr
09d1a22363 chore: forceExit jest after test run 2021-12-21 11:31:31 +05:00