Skip to content

Remove deprecated APIs ahead of v3#98

Merged
b-Tomas merged 2 commits into
nextfrom
remove-deprecated-apis
May 26, 2026
Merged

Remove deprecated APIs ahead of v3#98
b-Tomas merged 2 commits into
nextfrom
remove-deprecated-apis

Conversation

@b-Tomas

@b-Tomas b-Tomas commented May 26, 2026

Copy link
Copy Markdown
Member

Your checklist for this pull request

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your main!
  • Make sure you are making a pull request against the next branch (left side).
  • Check your code additions will fail neither code linting checks nor unit test.

Description

Remove two deprecated APIs ahead of the v3 major version bump:

  • with_counter_metric_async() (deprecated v2.0.2) -- replaced by with_counter_metric() which auto-detects async functions
  • RobotSessionPool.register_command_callback() (deprecated v1.7.2) -- replaced by RobotSessionFactory.register_command_callback()

Also removes the deprecated package from requirements.txt since it is not used anymore.

Files changed:

  • inorbit_edge/metrics.py -- removed function + import
  • inorbit_edge/robot.py -- removed method + import
  • inorbit_edge/tests/test_metrics.py -- removed deprecation warning test + unused import
  • requirements.txt -- removed deprecated dependency

Remove `with_counter_metric_async()` (deprecated in v2.0.2) and
`RobotSessionPool.register_command_callback()` (deprecated in v1.7.2).
Both had zero production callers. Also removes the `deprecated` package
dependency since no other code imports it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR removes two previously deprecated public APIs in preparation for the upcoming v3 major release, and cleans up the associated dependency now that deprecation decorators are no longer used.

Changes:

  • Removed with_counter_metric_async() from inorbit_edge.metrics (deprecated in v2.0.2) in favor of with_counter_metric() which already auto-detects async functions.
  • Removed RobotSessionPool.register_command_callback() from inorbit_edge.robot (deprecated in v1.7.2) in favor of RobotSessionFactory.register_command_callback().
  • Dropped the deprecated dependency from requirements.txt and removed the corresponding deprecation-warning test.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
requirements.txt Removes the now-unused deprecated runtime dependency.
inorbit_edge/metrics.py Removes the deprecated with_counter_metric_async() alias and deprecated import.
inorbit_edge/robot.py Removes the deprecated RobotSessionPool.register_command_callback() method and deprecated import.
inorbit_edge/tests/test_metrics.py Removes the deprecation-warning test and the unused warnings import.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@b-Tomas b-Tomas merged commit 9432b22 into next May 26, 2026
24 checks passed
b-Tomas added a commit that referenced this pull request May 27, 2026
Remove `with_counter_metric_async()` (deprecated in v2.0.2) and
`RobotSessionPool.register_command_callback()` (deprecated in v1.7.2).
Both had zero production callers. Also removes the `deprecated` package
dependency since no other code imports it.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

3 participants