Update version and changelog

This commit is contained in:
Zack Rauen 2022-10-15 01:00:14 -04:00
parent 86b6a671a2
commit 1dd9df2f48
4 changed files with 34 additions and 21 deletions

View File

@ -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

View File

@ -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": {

View File

@ -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."
]
}
]

View File

@ -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;