fix: remove optional chainning for compatible with Nodejs12 and below by bugb · Pull Request #2470 · nodejs/undici (original) (raw)
This relates to...
There are a lot of packages those built on top of undici but they are still in Nodejs 12 or below so it can not use optional chainning.
See the issue: #2469
Rationale
To make sure that undici can work with Nodejs 12 or below.
Changes
- Replace optional chainning with a normal check.
Features
N/A
Bug Fixes
To fix the issue: #2469
Breaking Changes and Deprecations
n/a
Status
- I have read and agreed to the Developer's Certificate of Origin
- Tested
- Benchmarked (optional)
- Documented
- Review ready
- In review
- Merge ready