From 25149bb1f3acea5a294ad58f558fce6fdb42cb27 Mon Sep 17 00:00:00 2001
From: nemanjam <nemanja.mitic.elfak@hotmail.com>
Date: Tue, 23 Apr 2024 12:35:27 +0200
Subject: [PATCH] update version and add release notes

---
 README.md                                     | 14 +++++++-------
 docs/release notes/release-notes.md           | 14 +++++++++++++-
 docs/work-notes/todo.md                       |  4 ++--
 package.json                                  |  2 +-
 source/manifest-v2-firefox.json               |  2 +-
 source/manifest-v3-chrome.json                |  2 +-
 source/manifest.json                          |  2 +-
 source/reddit-comments/popup/section-link.tsx |  2 +-
 8 files changed, 27 insertions(+), 15 deletions(-)

diff --git a/README.md b/README.md
index 73239db..c8bba13 100644
--- a/README.md
+++ b/README.md
@@ -6,11 +6,11 @@ Chrome/Firefox extension for easier tracking of new comments on Reddit. Free, op
 
 #### Update 2024
 
-Around January 2024. Reddit moved all users to the new design and made version `v0.0.4` outdated. In April 2024. I updated the extension to `1.0.0` to support the new design, and that is the only Reddit design that is supported (available on `www.reddit.com`).
+Around January 2024. Reddit moved all users to the new design and made version `v0.0.4` outdated. In April 2024. I updated the extension to `1.1.0` to support the new design, and that is the only Reddit design that is supported (available on `www.reddit.com`).
 
 The screenshot bellow shows the new design, demo video shows deprecated design - all features are the same, it shouldn't be a problem.
 
-Version `1.0.0` also includes `Immediately` checkbox to mark the current thread as read manually.
+Version `1.1.0` also includes `Immediately` checkbox to mark the current thread as read manually.
 
 ## Screenshots
 
@@ -49,19 +49,19 @@ Version `1.0.0` also includes `Immediately` checkbox to mark the current thread
 
 ### Install manually
 
-Go to release page [https://github.com/nemanjam/reddit-unread-comments/releases/tag/1.0.0](https://github.com/nemanjam/reddit-unread-comments/releases/tag/1.0.0) and download Firefox `.xpi` or Chrome `.zip`.
+Go to release page [https://github.com/nemanjam/reddit-unread-comments/releases/tag/1.1.0](https://github.com/nemanjam/reddit-unread-comments/releases/tag/1.1.0) and download Firefox `.xpi` or Chrome `.zip`.
 
 - **Firefox manual install:**
 
-  - In Firefox click `Settings` (three horizontal lines in the top-right corner), click `Extensions tab`, click `Gear` icon right from `Manage Your Extensions`, choose `Install Add-on From File...` from the menu and browse `reddit-unread-comments-1.0.0-firefox.xpi` file which you can download from the release page.
+  - In Firefox click `Settings` (three horizontal lines in the top-right corner), click `Extensions tab`, click `Gear` icon right from `Manage Your Extensions`, choose `Install Add-on From File...` from the menu and browse `reddit-unread-comments-1.1.0-firefox.xpi` file which you can download from the release page.
 
-  - **Firefox `.xpi`:** [reddit-unread-comments-1.0.0-firefox.xpi](https://github.com/nemanjam/reddit-unread-comments/releases/download/1.0.0/reddit-unread-comments-1.0.0-firefox.xpi)
+  - **Firefox `.xpi`:** [reddit-unread-comments-1.1.0-firefox.xpi](https://github.com/nemanjam/reddit-unread-comments/releases/download/1.1.0/reddit-unread-comments-1.1.0-firefox.xpi)
 
 - **Chrome manual install:**
 
-  - In Chrome navigate to `chrome://extensions/`, switch `Enable developer mode` to true, click `Load unpacked` and browse `reddit-unread-comments-1.0.0-chrome.zip` file which you can download from the release page.
+  - In Chrome navigate to `chrome://extensions/`, switch `Enable developer mode` to true, click `Load unpacked` and browse `reddit-unread-comments-1.1.0-chrome.zip` file which you can download from the release page.
 
-  - **Chrome `.zip`:** [reddit-unread-comments-1.0.0-chrome.zip](https://github.com/nemanjam/reddit-unread-comments/releases/download/1.0.0/reddit-unread-comments-1.0.0-chrome.zip)
+  - **Chrome `.zip`:** [reddit-unread-comments-1.1.0-chrome.zip](https://github.com/nemanjam/reddit-unread-comments/releases/download/1.1.0/reddit-unread-comments-1.1.0-chrome.zip)
 
 ## Usage
 
diff --git a/docs/release notes/release-notes.md b/docs/release notes/release-notes.md
index 1b0b07e..40dde3c 100644
--- a/docs/release notes/release-notes.md	
+++ b/docs/release notes/release-notes.md	
@@ -1,8 +1,20 @@
+#### 1.0.0
+
 1. Support new Reddit design (www.reddit.com)
 2. Add Immediately checkbox to mark thread as read manually
 3. Update Readme.md and add new screenshot
 4. Update Chrome manifest v3
 
-
 Screenshot of User Settings popup and highlighted unread comments and highlighted comments by time.
 
+#### 1.1.0
+
+1. Break the existing dom, events, constants logic into separate files
+2. Completely rewrite events logic
+    - attach onScroll, onKeyDown, onVisibilityChange unconditionally on mount
+    - fix onUrlChange mutation observer event and debounce it, await `location.href`, fixed hasLeftThread condition
+    - add custom onArrivedToRedditThread event
+    - replace the existing debounce function with debounceLeading and debounceTrailing from lodash
+3. Add retryAndWait function for better awaitng thread loading state
+
+
diff --git a/docs/work-notes/todo.md b/docs/work-notes/todo.md
index c3f0768..6b785b6 100644
--- a/docs/work-notes/todo.md
+++ b/docs/work-notes/todo.md
@@ -130,8 +130,8 @@ don't forget: update readme with links BEFORE the release
 remove focus from new select box, click somewhere else
 logger switch isn't realtime, Logger.resetInstance()
 
-git tag -a 1.0.0 -m "Release 1.0.0"
-git push all 1.0.0
+git tag -a 1.1.0 -m "Release 1.1.0"
+git push all 1.1.0
 ----------
 add mark thread as read button
 
diff --git a/package.json b/package.json
index 46e0db3..bbad198 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "reddit-unread-comments",
-  "version": "1.0.0",
+  "version": "1.1.0",
   "description": "Web extension for easier tracking of new comments on Reddit.",
   "private": false,
   "repository": "https://github.com/nemanjam/reddit-unread-comments",
diff --git a/source/manifest-v2-firefox.json b/source/manifest-v2-firefox.json
index 1fda161..c8cda3b 100644
--- a/source/manifest-v2-firefox.json
+++ b/source/manifest-v2-firefox.json
@@ -1,7 +1,7 @@
 {
   "manifest_version": 2,
   "name": "Reddit Unread Comments",
-  "version": "1.0.0",
+  "version": "1.1.0",
 
   "icons": {
     "16": "assets/icons/favicon-16.png",
diff --git a/source/manifest-v3-chrome.json b/source/manifest-v3-chrome.json
index a46a416..593d661 100644
--- a/source/manifest-v3-chrome.json
+++ b/source/manifest-v3-chrome.json
@@ -1,7 +1,7 @@
 {
   "manifest_version": 3,
   "name": "Reddit Unread Comments",
-  "version": "1.0.0",
+  "version": "1.1.0",
 
   "icons": {
     "16": "assets/icons/favicon-16.png",
diff --git a/source/manifest.json b/source/manifest.json
index 1fda161..c8cda3b 100644
--- a/source/manifest.json
+++ b/source/manifest.json
@@ -1,7 +1,7 @@
 {
   "manifest_version": 2,
   "name": "Reddit Unread Comments",
-  "version": "1.0.0",
+  "version": "1.1.0",
 
   "icons": {
     "16": "assets/icons/favicon-16.png",
diff --git a/source/reddit-comments/popup/section-link.tsx b/source/reddit-comments/popup/section-link.tsx
index d2b6a93..db37a87 100644
--- a/source/reddit-comments/popup/section-link.tsx
+++ b/source/reddit-comments/popup/section-link.tsx
@@ -20,7 +20,7 @@ const SectionLink: FC = () => {
           Reddit Unread Comments
         </Text>
         <Text as="label" size="1">
-          Version: 1.0.0
+          Version: 1.1.0
         </Text>
       </Flex>
     </Flex>