This repository was archived by the owner on May 18, 2025. It is now read-only.
Tags: tsukasa/BdBrowser
Tags
Fix: Null openItem, use bd-open-path instead - Fixes an issue that occured starting with BetterDiscord 1.10.0 resulting in an inability to "open" theme or plugin directories to upload new files. (Reported by @Spectre-856) - Added a simple preselection logic for the filetype to the file chooser. - Adjusted eslint checks for declarations in case statements.
Bugfix: BetterDiscord gets initialized outside the indended web client - BdBrowser's check for `getCurrentUser` is not sufficient to determine whether a user really is in the web client, as the UserStore module also gets loaded on the OAuth authorization prompt. This causes BD to initialize on unintended parts of Discord's website. To combat this, the presence of the GuildStore will also be checked now. (Reported by @Serega007RU)
Bugfix: Web requests broken after 58b9cf - Due to slight variations in the export of functions, nativeFetch and https shims failed to convert the Uint8Array body content to a Buffer because of calls to an invalid reference. The function is now being correctly exported in the polyfill to prevent further regressions of this kind.
Fix: Buffer module was removed in client application - Integrated an alternate Buffer module implementation to counter the removal of the Buffer module in the webpack. - Removed the now-defunct Buffer reference from discordmodules.js. - Added copies of the licenses to the `dist` folder that were missing after the new dist structure. - Removed unnecessary events from ipcrenderer.js. - Added bd-get-accent-color IPC response.
Refactoring: Project Structure & Tooling - Switched from npm to pnpm. - Modularized the build for each component. - Improved the bundling, all required artifacts for the extension are now being collected in the `dist` directory after `build-prod`. - Fanned out the modules in `frontend` to make it easier to identify what is a Node shim, an Electron shim etc. This is still ongoing. - Applied the BetterDiscord ESLint rules to BdBrowser and fixed most of the issues ESLint reported. - Added GitHub Actions workflow to automatically generate build artifacts. - Removed the `dist` folder from the repository, please download a release from the GitHub releases page instead or build BdBrowser yourself. - Added `dist` directory to .gitignore to reinforce the previous point. - Changed the location of local BetterDiscord renderer overrides. Instead of putting the betterdiscord.asar or renderer.js into the `dist` directory, please put them into `dist/bd/` instead. Note: BD's renderer.js is now expected as `renderer.js` instead of the previous name `betterdiscord.js`. - Corrected some minor spelling errors. - Early shim for BetterDiscord's upcoming nativeFetch.