Migrating community nodes for n8n v2

How are you adapting your community nodes for n8n v2? Since we now have to make breaking changes to our modules.

Major change:
Since n8n version 2 no longer supports in-memory binary data, we now use a method that explicitly provides binary data as input. Previously, the data was accessed directly from a variable.

Minor change: The constant NodeConnectionType.Main has been renamed to NodeConnectionTypes.Main.

Should we provide two separate versions: one for n8n <2.0 and one for n8n >=2.0. Or just maintain a single, current version and drop support for older n8n versions?

Is there an officially recommended approach?

For migrating community nodes to n8n v2, the recommended approach is to maintain a single version that supports n8n >=2.0 and drop support for older versions. This simplifies maintenance and ensures compatibility with the latest n8n features. Focus on updating binary data handling and the NodeConnectionTypes.Main reference in your code. Let me know if you need help with the specific code changes!