- replacing new Buffer(int) to Buffer.alloc(int) - replacing new Buffer('string' [, 'encoding']) to Buffer.from('string' [, 'encoding'])