Skip to content

1.16.0

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Nov 19:25

Breaking

  • SequentialPCMSource.readNextChunk is now async, so a conformer whose decode blocks its thread can admit each read. A conformer that reads inline keeps its synchronous implementation; calls through the protocol need await.

Added

  • BlockingCallLimiter, a process-wide bound on synchronous framework calls that block a cooperative thread. A waiting caller suspends instead of holding a thread, and width is nonisolated.
  • BlockingCallAdmission selects how such a call is admitted: .limited (a BlockingCallLimiter.shared slot, the default) or .ownThread (a detached thread while the caller suspends, for a call that must not queue).
  • OrientationEdit, a pending rotation and mirror for an image or video, with mapping of unit points between displayed and shown space.
  • CropEdit, a still image's pending crop and straighten: the kept rectangle in displayed space, its aspect, straightened(to:), applyingAspect, shownRatio, unoriented(fileOrientation:) to map a crop into a file's stored pixels, and keptPixelSize(imageWidth:imageHeight:) as the one rounding rule for the size a crop keeps.
  • CropCanvas, a picture as an interactive crop shows it, with the inverse from a frame back to a CropEdit.
  • ParseProgressAccess gains parseProgressScanning(foundCount:) and parseProgressAdding(count:), both with no-op defaults.
  • ProductErrorVocabulary gains librarySaveFailed and libraryDamaged.

Changed

  • HexColor(string:) keeps parsed colors by their input string, capped at 1,024, so a repeated color is parsed once.

Other

  • Comment punctuation cleanup, and removal of tests that only restated the code under test.