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!: upgrade code to es6 and migrated test to express v5 #334

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

SanderBlom
Copy link

@SanderBlom SanderBlom commented Oct 22, 2024

With the release of Express v5, the minimum supported Node.js version has been updated to v18. In light of this, I noticed this previous PR that attempted to introduce ES6 features such as let and const. That PR was closed with the understanding that the package would follow the Node.js version support of Express.

Since Express has now bumped its Node.js requirement to v18+, it is an opportune time to update the codebase to replace var with let and const, which are now fully supported by the minimum required Node.js version.

This change aims to modernize the code and take advantage of ES6 features for better readability, performance, and maintainability.

I also refactored the code so object-assign is no longer needed, as we can replace it with Object.assign as this was introduced in node v4

@SanderBlom SanderBlom changed the title feat!: added support for es6 and migrated test to express v5 feat!: upgrade code to es6 and migrated test to express v5 Dec 17, 2024
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.

1 participant