I have been using the following python code on QGIS3 (2.99) to look up fields, for several months
id = feature.attributes()[layer.pendingFields().lookupField('ID')]
And it gives me an error today:
AttributeError: 'QgsVectorLayer' object has no attribute 'pendingFields'
Is this another breaking change in the QGIS development version? And what's the correct way to write it now?