Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export default tseslint.config(
parserOptions: {
projectService: true,
},
},
rules: {
'@typescript-eslint/no-explicit-any': 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Personally I'd prefer we hold unknown data in unknown not any, but I won't be super picky about that if you feel strongly since I could see it being a barrier to contribution for people who aren't TypeScript experts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can defer this one, I had it at one point because I had a really uncooperative type but I ended up smoothing it out. It can probably be dropped for now

}
},
{
Expand Down
26 changes: 21 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"@xmldom/xmldom": "^0.9.0",
"cbor-js": "^0.1.0",
"cbor2": "^2.0.1",
"eventemitter3": "^5.0.1",
"pngparse": "^2.0.0",
"ws": "^8.0.0"
Expand Down
8 changes: 4 additions & 4 deletions src/core/Action.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { EventEmitter } from 'eventemitter3';
import Ros from '../core/Ros.js';
import { GoalStatus } from '../core/GoalStatus.ts';
import { GoalStatus } from '../types/RosMessageTypes.js';

/**
* A ROS 2 action client.
Expand Down Expand Up @@ -217,7 +217,7 @@ export default class Action extends EventEmitter {
id: id,
action: this.name,
values: result,
status: GoalStatus.STATUS_SUCCEEDED,
status: GoalStatus.Succeeded,
result: true
};
this.ros.callOnConnection(call);
Expand All @@ -235,7 +235,7 @@ export default class Action extends EventEmitter {
id: id,
action: this.name,
values: result,
status: GoalStatus.STATUS_CANCELED,
status: GoalStatus.Canceled,
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't changing these member names technically an API-breaking change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't think so. GoalStatus was just used in Action and wasn't exported from an index.js file, so it wasn't exposed in the actual "public api". People might have been using it, but it would've been from the dist folder which IMO doesn't count as public API. Happy to discuss it though

result: true
};
this.ros.callOnConnection(call);
Expand All @@ -251,7 +251,7 @@ export default class Action extends EventEmitter {
op: 'action_result',
id: id,
action: this.name,
status: GoalStatus.STATUS_ABORTED,
status: GoalStatus.Aborted,
result: false
};
this.ros.callOnConnection(call);
Expand Down
14 changes: 0 additions & 14 deletions src/core/GoalStatus.ts

This file was deleted.

143 changes: 0 additions & 143 deletions src/core/SocketAdapter.js
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like git mv isn't cooperating here..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you want the file history I can do the same dance with the linter/checker we did before?

This file was deleted.

Loading