Skip to content

Commit

Permalink
Release v2.1.3 (#54)
Browse files Browse the repository at this point in the history
* move src/modules/index.js into src/main.js
* update logger debug method to be controlled by URL search param
* fix logic of checkPlaylistReady
* add debug logs
* add function "isElementVisible"
* move setupPage() from processPlaylist() to the start of main()
* update vite-plugin-web-extension to v4.1.6
* add override for [email protected]>braces
* update docs/testing
  • Loading branch information
nrednav authored Jul 13, 2024
1 parent 5eb5ce7 commit 4123047
Show file tree
Hide file tree
Showing 7 changed files with 1,297 additions and 1,008 deletions.
39 changes: 36 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,38 @@
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
and this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0.html).

## [v2.1.3] - 2024-07-12

### Added

- Added `isElementVisible` function

### Changed

- Updated the logger `debug` method to be controlled by the presence of a
`ytpdc-debug=true` search param in the URL

### Fixed

- Fixed (hopefully) a rare bug where the extension would not load despite the
playlist being visible
- This was caused by unreliable logic in the `checkPlaylistReady` function

## [v2.1.2] - 2024-04-16

### Fixed

- Fixed bug with extension on non-playlist pages where it would spam error logs
due to not finding a playlist element
- Fixed bug where playlists containing "Upcoming" videos would not calculate a
total duration
- Fixed bug where the yt-navigate-finish event listener was not being removed
before a new one could be added
- Added browser console logs to indicate when the extension loads & when it
cannot find a playlist

## [v2.1.1] - 2024-04-13

Expand All @@ -23,7 +54,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added ability to sort playlists by different criteria (index, duration, views, channel name, upload date)
- Added ability to sort playlists by different criteria (index, duration, views,
channel name, upload date)
- Added i18n support & language translations:
- English (en, en-GB, en-IN, en-US)
- Spanish (es, es-419, es-us)
Expand All @@ -39,6 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Fixed several bugs
- Bug with mutation observer not disconnecting when navigating between playlists
- Bug with mutation observer not disconnecting when navigating between
playlists
- Bug where timestamps were not being summed properly
- Addressed vulnerabilities reported by pnpm audit and dependabot
4 changes: 4 additions & 0 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ This document describes the process involved in testing the extension.
recalulation of the playlist duration
- For non-playlist pages, after 15 seconds have elapsed there should be a yellow
warning log in the browser console with the text `Could not find a playlist.`
- Appending `?ytpdc-debug=true` or `&ytpdc-debug=true` to the URL should enable
& output extension debug logs to the browser console
- Note: To see the logs, you must have `DEBUG` logs selected in the console
for Firefox and `VERBOSE` for Chrome
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "An extension to calculate & display the total duration of a youtube playlist.",
"author": "nrednav",
"private": true,
"version": "2.1.2",
"version": "2.1.3",
"type": "module",
"engines": {
"node": ">=20",
Expand All @@ -20,14 +20,14 @@
"prepare": "husky install"
},
"devDependencies": {
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"vite": "^4.5.2",
"vite-plugin-web-extension": "^4.1.3",
"prettier": "^3.3.2",
"vite": "^4.5.3",
"vite-plugin-web-extension": "^4.1.6",
"webextension-polyfill": "^0.10.0"
},
"lint-staged": {
Expand All @@ -38,7 +38,8 @@
},
"pnpm": {
"overrides": {
"postcss@<8.4.31": ">=8.4.31"
"postcss@<8.4.31": ">=8.4.31",
"[email protected]>braces": "3.0.3"
}
},
"dependencies": {
Expand Down
Loading

0 comments on commit 4123047

Please sign in to comment.