• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RobotWebTools / rclnodejs / 24123105776
86%

Build:
DEFAULT BRANCH: develop
Ran 08 Apr 2026 07:37AM UTC
Jobs 1
Files 55
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Apr 2026 07:20AM UTC coverage: 85.844% (+0.5%) from 85.368%
24123105776

push

github

web-flow
Remove compatibility and custom utility code (#1479)

## Changed Files

- [lib/client.js](lib/client.js)
  - Removed the `AbortSignal.any()` polyfill for older Node.js versions.
  - Net effect: the code now relies on native `AbortSignal.any()` support from the runtime.

- [lib/message_introspector.js](lib/message_introspector.js)
  - Replaced the custom private `#deepClone()` implementation with `structuredClone(this.#defaultsCache)`.
  - Net effect: simpler default-message cloning logic with less handwritten recursion.

- [lib/message_serialization.js](lib/message_serialization.js)
  - Replaced `Object.prototype.hasOwnProperty.call(obj, key)` with `Object.hasOwn(obj, key)` in two object-walk helpers.
  - Net effect: minor modernization with no intended behavior change.

- [lib/action/uuid.js](lib/action/uuid.js)
  - Replaced `.replace(/-/g, '')` with `.replaceAll('-', '')`.

- [rosidl_gen/packages.js](rosidl_gen/packages.js)
  - Replaced `.replace(/\\\\/g, '/')` with `.replaceAll('\\', '/')` in two path-normalization helpers.
  - Replaced deprecated `.substr(1)` with `.substring(1)`.

- [rosidl_gen/templates/message-template.js](rosidl_gen/templates/message-template.js)
  - Replaced `.indexOf(...) !== -1` with `.includes(...)` in `isPrimitivePackage()` and `isTypedArrayType()`.

- [scripts/run_test.js](scripts/run_test.js)
  - Replaced `.substr(0, 5) === 'test-'` with `.startsWith('test-')`.
  - Replaced `.indexOf(test) === -1` with `!...includes(test)`.

## Overall Impact

- Removes legacy compatibility code (`AbortSignal.any()` polyfill, custom `#deepClone()`).
- Replaces deprecated APIs (`substr`) and verbose patterns (regex `.replace`, `indexOf`, `hasOwnProperty.call`) with modern equivalents (`substring`, `replaceAll`, `includes`, `startsWith`, `Object.hasOwn`, `structuredClone`).
- All replacements are safe, drop-in substitutions available since Node.js 16–20, well within the 20.20.2 minimum.

Fix: #1458

1559 of 1978 branches covered (78.82%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 4 files covered. (100.0%)

3177 of 3539 relevant lines covered (89.77%)

459.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24123105776.1 08 Apr 2026 07:37AM UTC 55
85.84
GitHub Action Run
Source Files on build 24123105776
  • Tree
  • List 55
  • Changed 5
  • Source Changed 5
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24123105776
  • 79ce8fc1 on github
  • Prev Build on develop (#24119700938)
  • Next Build on develop (#24175810628)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc