Add deprecation notice
This commit is contained in:
parent
3d3fa6016d
commit
f77110affe
|
@ -1,7 +1,7 @@
|
|||
lockfileVersion: '6.0'
|
||||
|
||||
settings:
|
||||
autoInstallPeers: true
|
||||
autoInstallPeers: false
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
importers:
|
||||
|
|
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue