add node v22 to test matrix
add node 22 to ci test pipeline and use with { type: 'json' }
import syntax for node >= 20,
- add node 22 to ci test pipeline thanks @aladdin-add
- use json import syntax
with { type: 'json' }
for node 22 - skip node 22 tests on windows-latest ci, where node 22 is in a broken state, see nodejs/node#52682