Upgrading stream_transform 1 to 2
Breaking1.2.0 → 2.1.2Breaking3Platform3New1Changed55Fixed3Other1
BreakingUpgrade verdict
3 breaking changes and 3 platform requirement changes.
In plain terms
- Three font file types now report their newer standard names instead of the old x-font names.
- The model/vnd.mts file type is no longer recognized.
- When you ask for a file extension for a MIME type it does not recognize, the function now gives you nothing (null) instead of echoing back the MIME type you passed in.
- You need Dart 3.4 or newer to use this version.
Must act Top 5 of 6 that need code or config changes
Dart SDK requirement changed in 2.1.2: >=2.6.0 <3.0.0 → ^3.4.0.
What you must change
Breaking3
Renames application/x-font-otf, application/x-font-ttf and application/x-font-woff to font/otf, font/ttf and font/woff.
application/x-font-otffont/otfapplication/x-font-ttffont/ttfapplication/x-font-wofffont/woffRemoves the model/vnd.mts mime type.
model/vnd.mtsextensionFromMime(String mimeType) returns null instead of mimeType for an unknown mime type.
extensionFromMime(String mimeType)Platform3
Requires Dart 3.4 or greater.
Requires Dart 3.1 or greater.
Requires Dart 2.14 or greater.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
method Merge.concurrentAsyncExpand<S>(Stream<S> Function(T) convert): Stream<S> - changed:
method RateLimit.buffer(Stream<void> trigger): Stream<List<T>> → method RateLimit.buffer(Stream<void> trigger, {bool longPoll = …}): Stream<List<T>> - changed:
method RateLimit.throttle(Duration duration): Stream<T> → method RateLimit.throttle(Duration duration, {bool trailing = …}): Stream<T> - changed:
method Tap.tap(void Function(T) onValue, {void Function(Object, StackTrace) onError, void Function() onDone}): Stream<T> → method Tap.tap(void Function(T)? onValue, {void Function(Object, StackTrace)? onError, void Function()? onDone}): Stream<T> - added:
extension AsyncExpand<T> on Stream<T> - added:
extension WhereNotNull<T extends Object> on Stream<T?> - added:
method AsyncExpand.concurrentAsyncExpand<S>(Stream<S> Function(T) convert): Stream<S> - added:
method RateLimit.sample(Stream<void> trigger, {bool longPoll = …}): Stream<T> - added:
method WhereNotNull.whereNotNull(): Stream<T>