Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(node:428317) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated #427

Open
mmattel opened this issue Aug 1, 2023 · 1 comment

Comments

@mmattel
Copy link

mmattel commented Aug 1, 2023

Using node v16.13.2

I started to get error messages when running yarn serve:

(node:428317) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

There are 5 occurrences of ._headers in the final build of asciidoctor-kroki.js.

Doing some research, a possible fix can be done by replacing:
._headers with .getHeaders()

@ggrossetie
Copy link
Member

I think it comes from https://github.com/browserify/http-browserify
Having said that, are you using https://github.com/asciidoctor/asciidoctor-kroki/blob/master/dist/browser/asciidoctor-kroki.js in a Node environment? This file should only be used in a browser environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants