Revert "Revert "Revert "add deprecation notice"""

This reverts commit 308dbe6f379e9894b646c13bb0e9b12b2c0bbc82.
add toBuffer method
mit license
Release 1.1.0