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

feat(server): switch middleware from connect to express #1076

Closed
wants to merge 3 commits into from

Conversation

setchy
Copy link
Member

@setchy setchy commented May 14, 2024

Closes #1075

Signed-off-by: Adam Setch <adam.setch@outlook.com>
@setchy setchy requested a review from prabhu as a code owner May 14, 2024 21:02
@setchy setchy added enhancement New feature or request mode:server cdxgen used as server labels May 14, 2024
Signed-off-by: Adam Setch <adam.setch@outlook.com>
@setchy setchy marked this pull request as draft May 14, 2024 21:10
@setchy setchy marked this pull request as ready for review May 15, 2024 12:39
@@ -2220,8 +2220,8 @@ test("parsePkgLock v3", async () => {
projectName: "cdxgen",
});
deps = parsedList.pkgList;
expect(deps.length).toEqual(842);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about using the full express since it is bringing 19 more packages. Any issues with connect?

Copy link
Member Author

@setchy setchy May 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, as mentioned in #1075 connect hasn't seen a single commit in ~4 years. I'd consider this critical to replace with something maintained and current.

Additionally, I have a local branch shortly ready to share based on express that can generate an OpenAPI Specification from jsdocs, so that we can avoid using md to document API Specifications

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Express appears to be using connect internally. OpenAPI sounds interesting, too.

@@ -8246,6 +8498,20 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/serve-static": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are very old packages. I am still not convinced about express.

"integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",
"dependencies": {
"encodeurl": "~1.0.2",
"escape-html": "~1.0.3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@setchy setchy closed this May 18, 2024
@setchy
Copy link
Member Author

setchy commented May 18, 2024

Switching to express not desirable at this time...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mode:server cdxgen used as server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[server] replace connect middleware
2 participants