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

code: remove the code registration hooks #91

Merged
merged 2 commits into from
Mar 14, 2023
Merged

Conversation

creachadair
Copy link
Owner

In practice any package that wants to define custom codes has to keep track of them anyway, so that the client can coordinate with the server. The additional hook for cosmetics in the default error string is just not worthwhile.

Updates #46.

In practice any package that wants to define custom codes has to keep track of
them anyway, so that the client can coordinate with the server. The additional
hook for cosmetics in the default error string is just not worthwhile.

Updates #46.
@creachadair creachadair merged commit adef658 into main Mar 14, 2023
@creachadair creachadair deleted the mjf/deregister branch March 14, 2023 15:02
creachadair added a commit that referenced this pull request Mar 14, 2023
Another step toward #46.

Maintenance:
- Update module dependencies.
- handler: fix an outdated comment
- Remove the custom queue implementation. (#93)

Breaking changes:
- code: remove the code registration hooks (#91)
- server: remove the Run helper (#92)

Although these changes are breaking, I surveyed existing usage visible from the
search engine, and did not find anything likely to care.
creachadair added a commit that referenced this pull request Mar 19, 2023
After removing the registration hooks in #91, what is left of the code package
is too small to deserve its own identity. Collapse the package into the root
jrpc2 package.

- Rename the code.FromError helper to jrpc2.ErrorCode.
- Update documentation.

Updates #46.
creachadair added a commit that referenced this pull request Mar 19, 2023
After removing the registration hooks in #91, what is left of the code package
is too small to deserve its own identity. Collapse the package into the root
jrpc2 package.

- Rename the code.FromError helper to jrpc2.ErrorCode.
- Update documentation.

Updates #46.
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.

None yet

1 participant