diff --git a/CHANGELOG.md b/CHANGELOG.md index c4ce4b5b..a45f2e41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,24 @@ This changelog starts with the restructured 1.0.0 release that happened after context isolation changes. The changelogs here should more-or-less mirror the ones that get shown in the client but probably with less formatting and pizzazz. +## 1.8.1 + +### Added +- A script to automatically grab the new translations from POEditor +- Several new translations + +### Removed + +### Changed +- Moved some hardcoded strings to be part of the translation system +- Several updated translations + +### Fixed +- Fixed context menu patcher not patching consistently +- Fixed context menu toggle item UI not updating +- Fixed an issue with the bound API checking the wrong arguments +- Fixed `getOwnerInstance` calling the wrong functions internally + ## 1.8.0 ### Added diff --git a/package.json b/package.json index 9120627f..3de658f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "betterdiscord", - "version": "1.8.0", + "version": "1.8.1", "description": "Enhances Discord by adding functionality and themes.", "main": "src/index.js", "scripts": { diff --git a/renderer/src/data/changelog.js b/renderer/src/data/changelog.js index cec42bff..4a5fd130 100644 --- a/renderer/src/data/changelog.js +++ b/renderer/src/data/changelog.js @@ -1,31 +1,27 @@ // fixed, improved, added, progress export default { - description: "Big improvements have been made!", + description: "Several new translations have been added thanks to our wonderful volunteers!", changes: [ { - title: "What's New?", + title: "New or Updated Translations", type: "improved", items: [ - "BetterDiscord now has a built-in update system to help update broken plugins and themes.", - "New API options for plugin developers.", - "`Patcher` now works with the configurable getters.", - "A new tooltip component for use in plugins.", - "The plugin API now includes context menu capabilties.", - "Public servers button has found a new home on your Discord homepage above the DM list." + "Finnish", + "Hungarian", + "Italian", + "Japanese", + "Korean", + "Russian", + "Ukrainian" ] }, { title: "Bug Fixes", type: "fixed", items: [ - "Fixed many issues regarding memory leaks and out-of-memory errors!", - "Fixed a major issue where webpack searches would iterate by default.", - "Fixed an issue with `byStrings` and `combine` filters in the API.", - "Fixed an issue where searching for multiple modules could yield the same module multiple times.", - "Fixed an issue where misnamed addon files could prevent startup.", - "Fixed an issue where the `request` module would not follow redirects.", - "Fixed an issue where certain modals could crash the client.", - "Fixed an issue where toasts would not show on the crash screen." + "Fixed a few issues with our context menu api.", + "Fixed an issue in our API that could lead to styles not being removed correctly.", + "Fixed an issue where `getOwnerInstance` would cause an error." ] } ] diff --git a/renderer/src/modules/api/reactutils.js b/renderer/src/modules/api/reactutils.js index 58561c63..b9edfc43 100644 --- a/renderer/src/modules/api/reactutils.js +++ b/renderer/src/modules/api/reactutils.js @@ -1,4 +1,3 @@ -import Utilities from "../utilities"; import DiscordModules from "../discordmodules"; /** @@ -48,10 +47,10 @@ const ReactUtils = { } let curr = ReactUtils.getInternalInstance(node); - for (curr = curr && curr.return; !Utilities.isNil(curr); curr = curr.return) { - if (Utilities.isNil(curr)) continue; + for (curr = curr && curr.return; curr !== null; curr = curr.return) { + if (curr === null) continue; const owner = curr.stateNode; - if (!Utilities.isNil(owner) && !(owner instanceof HTMLElement) && classFilter(curr) && filter(owner)) return owner; + if (owner !== null && !(owner instanceof HTMLElement) && classFilter(curr) && filter(owner)) return owner; } return null;