-
Notifications
You must be signed in to change notification settings - Fork 446
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
Refactor Streams and Connections to include Stat properties #1849
Labels
good first issue
Good issue for new contributors
help wanted
Seeking public contribution on this issue
Comments
maschad
added
good first issue
Good issue for new contributors
help wanted
Seeking public contribution on this issue
labels
Jun 7, 2023
achingbrain
added a commit
that referenced
this issue
Jun 26, 2023
Moves `direction`, `timeline`, `status`, etc from `.stat` objects on `Stream` and `Connection` objects onto the root object so we don't have awkward constructs like `conn.stat.status`, instead the simpler `conn.status`. Fixes #1849 BREAKING CHANGE: `stream.stat.*` and `conn.stat.*` properties are now accessed via `stream.*` and `conn.*`
achingbrain
added a commit
that referenced
this issue
Jun 27, 2023
Moves `direction`, `timeline`, `status`, etc from `.stat` objects on `Stream` and `Connection` objects onto the root object so we don't have awkward constructs like `conn.stat.status`, instead the simpler `conn.status`. Fixes #1849 BREAKING CHANGE: `stream.stat.*` and `conn.stat.*` properties are now accessed via `stream.*` and `conn.*`
achingbrain
added a commit
that referenced
this issue
Jul 20, 2023
Moves `direction`, `timeline`, `status`, etc from `.stat` objects on `Stream` and `Connection` objects onto the root object so we don't have awkward constructs like `conn.stat.status`, instead the simpler `conn.status`. Fixes #1849 BREAKING CHANGE: `stream.stat.*` and `conn.stat.*` properties are now accessed via `stream.*` and `conn.*`
achingbrain
added a commit
that referenced
this issue
Jul 20, 2023
Moves `direction`, `timeline`, `status`, etc from `.stat` objects on `Stream` and `Connection` objects onto the root object so we don't have awkward constructs like `conn.stat.status`, instead the simpler `conn.status`. Fixes #1849 BREAKING CHANGE: `stream.stat.*` and `conn.stat.*` properties are now accessed via `stream.*` and `conn.*`
This was referenced Jan 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
Good issue for new contributors
help wanted
Seeking public contribution on this issue
@wemeetagain what do you think?
Originally posted by @achingbrain in libp2p/js-libp2p-interfaces#265 (comment)
Refactor the Stream and Connection stat properties should be at the top level for ease of extendability. This would enforce that negotiated streams have a protocol for instance and avoid these unnecessary types of non-nullish assertions
The text was updated successfully, but these errors were encountered: