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

either reqCustomProps or customProps are valid #122

Merged
merged 4 commits into from
Feb 4, 2021

Conversation

josh-hemphill
Copy link
Contributor

Since the function's name no longer accurately represents its new signature, whenever there are other breaking changes to be made to the interface, this would be a good semantic change to also include.

Changed `reqCustomProps(req,res)` to `customProps(req,res)` since `req` is not the only object from which it provides props.

breaks: `reqCustomProps` usage, options signature will have to be changed to update
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

Can you keep the previous name as an alias? In this way this will be a minor change.

Either customProps or reqCustomProps will be valid
@josh-hemphill josh-hemphill changed the title feat/chore: semantics change reqCustomProps name to customProps on next semver major either reqCustomProps or customProps are valid Feb 1, 2021
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

Can you please add a test to verify the old prop?

Added a duplicate of the customProps function test for the old reqCustomProps interface
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

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