Point light and spot light are changed to double-sided sphere lights (#108506#109329). Besides, the light normal now points from light center to the sampled/intersected position on the sphere, any pipeline that was using the light normal should use the Incoming socket of the Geometry shader node instead.
So for 4.0+, the texture coordinate node with the normal socket needs to be shifted to the geometry node with its incoming socket. For backwards compatibility, use the IS_BPY_V3 check like in 4404194d93df5a2b61138982629e014cb2b085c4
In the release notes for 4.0:
So for 4.0+, the texture coordinate node with the normal socket needs to be shifted to the geometry node with its incoming socket. For backwards compatibility, use the
IS_BPY_V3
check like in 4404194d93df5a2b61138982629e014cb2b085c4