The Buffer() function and new Buffer() constructor are deprecated due to API usability issues that can potentially lead to accidental security issues.