Skip to content

Upgrading package_config 1 to 2

Breaking1.9.3 → 2.2.0Breaking3Platform1New2Changed55Fixed1Other4

Fetching 7 releases from GitHub…5 / 7
BreakingUpgrade verdict

3 breaking changes and a platform requirement change.

  • Three font file types now use new names, so code looking up the old names will not find them.
  • 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 handing back the MIME type itself.
  • You need Dart 3.4 or newer to use this version.
4 items need code or config changes

Dart SDK requirement changed in 2.1.1: >=2.7.0 <3.0.0 → ^3.4.0.

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/woff
Removes the model/vnd.mts mime type.
model/vnd.mts
extensionFromMime(String mimeType) returns null instead of mimeType for an unknown mime type.
extensionFromMime
Platform1
Requires Dart 3.4.