We have a couple of places here and there where version_added is invalidly the same as version_removed; we need to update the linter to catch this.
Would you mind sharing a couple of these examples?
I just submitted a PR that will fix them, but RTCPeerConnection.onaddstream has this problem, for instance:
https://github.com/mdn/browser-compat-data/blob/master/api/RTCPeerConnection.json#L1999
I鈥檓 also fixing https://github.com/mdn/browser-compat-data/blob/master/api/RTCPeerConnection.json#L1999 in #1712.
+1 for this. Having a feature removed in the same version it was introduced in doesn鈥檛 make any sense!
I thought this would be checked here https://github.com/mdn/browser-compat-data/blob/master/test/test-versions.js#L51
But maybe it is suitable to test this in the consistency tests as well. I haven't reviewed it yet.
The test should be compareVersions(a, b) >= 0.
Most helpful comment
I just submitted a PR that will fix them, but
RTCPeerConnection.onaddstreamhas this problem, for instance:https://github.com/mdn/browser-compat-data/blob/master/api/RTCPeerConnection.json#L1999