Upgrading vm_service 14 to 15
Breaking14.3.1 → 15.4.0Breaking1Deprecated2New12Changed5Fixed3
BreakingUpgrade verdict
1 breaking change.
In plain terms
- A field that used to always hold one specific kind of function reference can now hold a different kind too, so code that assumed the old type may need updating.
- Two parts of the API are marked as deprecated and may be removed in a future release.
- The streamCpuSamplesWithUserTag RPC is deprecated and should be avoided.
Must act 3 items need code or config changes
Dart SDK requirement changed in 15.0.1: ^3.3.0 → ^3.5.0.
What you must change
Breaking1
Changes the type of CodeRef.function from FuncRef to dynamic to allow NativeFunction functions.
CodeRef.functionFuncRefNativeFunctionDeprecations to plan for
Deprecated2
Deprecates the
Message type and the messages field of the Stack type.MessageStack.messagesDeprecates the
streamCpuSamplesWithUserTag RPC.streamCpuSamplesWithUserTag