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

fix: make Namespace._fns private #5195

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ammut
Copy link

@ammut ammut commented Sep 24, 2024

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Other information (e.g. related issues)

Issue: #5179

This is a variant for PR #5196, please only merge one of these! I created two PRs for the related issue, providing both suggested solutions. I personally prefer this one as it more cleanly encapsulates implementation details.

I tried adding a test to prevent regression, but didn't manage to reproduce the error that caused all this inside the socket.io test suite. I assume this is because we use a stricter TypeScript configuration in our own codebase, but didn't bother verifying it.

# Conflicts:
#	packages/socket.io/lib/namespace.ts
#	packages/socket.io/lib/parent-namespace.ts
@ammut ammut mentioned this pull request Sep 24, 2024
5 tasks
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