Skip to content

Upgrading win32 3 to 4

Breaking3.1.4 → 4.1.4Breaking3Platform1New9Changed6Fixed2Other3

BreakingUpgrade verdict

3 breaking changes and a platform requirement change.

  • Some method and property names that contained all-caps acronyms are now spelled with lowercase acronyms, so code using the old names must be updated.
  • Renames some enums, methods and properties so acronyms are written in the Dart style, which can break existing code.
  • COM objects are now cleaned up automatically. Instead of freeing their memory yourself, call .release() and the memory is freed once nothing else uses it.
  • Updates the upper Dart SDK constraint to explicitly support Dart 3.
4 items need code or config changes

Dart SDK requirement changed in 4.1.2: >=2.17.0 <3.0.0 → >=2.17.0 <4.0.0.

Breaking3
Converts acronyms in method and property names to lowercase.
Converts acronyms in enums, methods and properties to match the Dart style guide.
COM objects now inherit from NativeFinalizer; call .release() to decrement the reference count and memory is disposed automatically at zero.
NativeFinalizer.release()
Platform1
Updates the upper Dart SDK constraint to explicitly support Dart 3.