Add deprecation notice

This commit is contained in:
Zack Rauen 2023-10-19 05:27:29 -04:00
parent 3d3fa6016d
commit f77110affe
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
lockfileVersion: '6.0'
settings:
autoInstallPeers: true
autoInstallPeers: false
excludeLinksFromLockfile: false
importers:

View File

@ -1,5 +1,11 @@
import Logger from "@common/logger";
Object.defineProperty(window, "Buffer", {
get() {return Buffer;},
get() {
Logger.warn("Deprecated", `Usage of the Buffer global is deprecated. Consider using web standards such as Uint8Array and TextDecoder/TextEncoder.`);
return Buffer;
},
configurable: true,
enumerable: false
});