diff --git a/package.json b/package.json index 3a59a491..15286d8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "betterdiscord", - "version": "1.9.5", + "version": "1.9.6", "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 0c7eb5c0..d8964c21 100644 --- a/renderer/src/data/changelog.js +++ b/renderer/src/data/changelog.js @@ -1,21 +1,35 @@ // fixed, improved, added, progress export default { - description: "This update is just a hotfix for the recent Discord update!", + description: "There are some small but important fixes and changes in this update to keep things running smoothly!", changes: [ { - title: "What's Fixed?", - type: "improved", + title: "What's New?", + type: "added", items: [ - "Patching webpack modules is now fixed for plugins.", - "Themes are placed later in the DOM than Discord's CSS giving them priority.", - "BetterDiscord's modals should all be working." + "Keybinds will now show properly instead of `[object Undefined]`.", + "Update banners will now appear consistently when there are updates.", + "Translations should now actually load when a new locale is selected in Discord's settings." ] }, { - title: "What's not fixed?", + title: "Translations", + type: "improved", + items: [ + "Added a new Vietnamese translation thanks to Minato Isuki.", + "Improved Italian translation thanks to TheItalianTranslator.", + "Improved Chinese (traditional) translation thanks to Frost_koi.", + "Removed several outdated keys and strings.", + "Added multiple translated strings to UI where they were hardcoded." + ] + }, + { + title: "Technical Changes", type: "fixed", items: [ - "Individual plugins and themes will still need to make their own updates.", + "The webpack hook now no longer prevents Discord modules from shadowing built-in functions. This was originally meant as a sanity check but now Discord actually does this intentionally which can lead to issues like the incorrectly displayed keybinds.", + "`BdApi.UI.showNotice` should work again in cases where it seemed not to unless you had addons with updates. This was a race condition versus the load order of class modules.", + "`BdApi.Net.fetch` now actually uses all the options passed to it, previously it failed to pass the options to the other process.", + "It also now supports all HTTP request types rather than just `POST`, `GET`, `DELETE`, and `PUT`." ] } ] diff --git a/renderer/src/ui/modals.js b/renderer/src/ui/modals.js index 83e90d44..157b2f62 100644 --- a/renderer/src/ui/modals.js +++ b/renderer/src/ui/modals.js @@ -235,7 +235,7 @@ export default class Modals { static showChangelogModal(options = {}) { const OriginalModalClasses = WebpackModules.getByProps("hideOnFullscreen", "root"); const ChangelogModalClasses = WebpackModules.getModule(m => typeof(m) === "object" && Object.keys(m).length === 2 && m.modal && m.content); - const ChangelogClasses = WebpackModules.getByProps("fixed", "improved") ?? {added: "added__838d6", container: "container__2475a", date: "date__6a5c1", fixed: "fixed_f67fc0", footer: "footer__33610", image: "image__58d6f", improved: "improved_fd72d9", lead: "lead__5fdb1", marginTop: "marginTop__0baf0", premiumBanner: "premiumBanner_d2ce99", premiumIcon: "premiumIcon_a78bd4", progress: "progress__8e0f4", socialLink: "socialLink__64e09", title: "title__19dfe", video: "video__4de58"}; + const ChangelogClasses = WebpackModules.getByProps("fixed", "improved") ?? {added: "added_dc4118 title_cb085d", container: "container_bd6694", date: "date__21306", fixed: "fixed__61d41 title_cb085d", footer: "footer__55d42", image: "image__988dc", improved: "improved_df526b title_cb085d", lead: "lead__8e4f4", marginTop: "marginTop__89620", premiumBanner: "premiumBanner__6597f", premiumIcon: "premiumIcon__9fe69", progress: "progress_be0b9b title_cb085d", socialLink: "socialLink_f11d71", title: "title_cb085d", video: "video__562f3"}; const TextElement = this.TextElement; const FlexChild = this.FlexElements; const MarkdownParser = WebpackModules.getByProps("defaultRules", "parse");