JSON Endpoint Example-1 fails at later versions of Node

Hi,

I’ve copied the https://runkit.com/runkit/json-endpoint-example-1 into https://runkit.com/andrewm/json-endpoint-test# and tried running it at Node versions higher than the original v4.9.1.

I want to run at Node v10.16.0, but the example fails at anything above v6 - is this a known limitation with Runkit or something about the example?

Thanks,

      Andrew
1 Like

When running under Node v10.16.0 the logs show:

(node:1) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Would this be within “@runkit/runkit/json-endpoint/1.0.0”?

2nd this issue. It looks like @runkit/runkit/json-endpoint/1.0.0 needs an update

1 Like