Skip to content

Conversation

Smrtnyk
Copy link
Contributor

@Smrtnyk Smrtnyk commented May 13, 2025

http-server had no release for 3 years now and outputs a warnings when ran like

[WebServer] (node:3503) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
[WebServer] (Use `node --trace-deprecation ...` to show where the warning was created)

which is annoying
we are better off with something more modern and properly maintained.
There is also a way to not use http server at all for playwright but just intercept the routes via route handlers and autorespond with files from filesystem.
That would avoid dependency on http server completely and would be faster in theory.

 http-server had no release for 3 years now and outputs a warnings when ran like
 ```text
 [WebServer] (node:3503) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
 [WebServer] (Use `node --trace-deprecation ...` to show where the warning was created)
 ```
 which is annoying
 we are better off with something more modern and properly maintained.
 There is also a way to not use http server at all for playwright but just intercept the routes via route handlers and autorespond with files from filesystem.
 That would avoid dependency on http server completely and would be faster in theory.
Copy link

codesandbox bot commented May 13, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@Smrtnyk Smrtnyk closed this May 13, 2025
@Smrtnyk Smrtnyk reopened this May 13, 2025
Copy link
Contributor

Build Stats

file / KB (diff) bundled minified
fabric 914.662 (0) 301.450 (0)

@asturur
Copy link
Member

asturur commented May 17, 2025

i think i should write an action that on merge conflicts for changelog.md solve the conflicts.

@asturur
Copy link
Member

asturur commented May 17, 2025

I agree because this is GENERALLY SPEAKING best practice.
But if in one week i get an alert of a npm security issue on the new package, i just revert to the old and think about it when that deprecation is definitely gone and breaking the server.

@asturur asturur merged commit 5d80471 into fabricjs:master May 17, 2025
16 of 17 checks passed
@Smrtnyk Smrtnyk deleted the chore-replace-unmantained-http-server branch May 17, 2025 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants