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

Deprecate passing in just an id #97

Closed
lholmquist opened this issue Jul 7, 2020 · 0 comments · Fixed by #98
Closed

Deprecate passing in just an id #97

lholmquist opened this issue Jul 7, 2020 · 0 comments · Fixed by #98

Comments

@lholmquist
Copy link
Contributor

I would like to deprecate passing just an id like client.getPerson(1) and switch to using just an object like client.getPerson({id: 1})

This would be a breaking change, but we could do the deprecation message first.

However, this library is not at 1.x yet, so breaking changes could be expected, but having a deprecation message would be nice and will be removed once it hits 1.0.0

lholmquist added a commit to lholmquist/swapi-node that referenced this issue Jul 7, 2020
lholmquist added a commit that referenced this issue Jul 7, 2020
* feat: Add deprecation notice for passing just an ID in.

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

Successfully merging a pull request may close this issue.

1 participant