hyper_render_clipboard 1.3.4 copy "hyper_render_clipboard: ^1.3.4" to clipboard
hyper_render_clipboard: ^1.3.4 copied to clipboard

Image clipboard support for HyperRender using super_clipboard. Enables copying, saving, and sharing images.

Changelog โ€” hyper_render_clipboard #

1.3.4 - 2026-06-04 #

๐Ÿ”ง Dependency Widening #

  • Widened share_plus dependency constraint to ^12.0.2 || ^13.0.0 to resolve pub.dev out-of-date package scoring.
  • Updated hyper_render_core dependency to ^1.3.4.

1.3.3 - 2026-06-04 #

๐Ÿ—๏ธ Maintenance #

  • Updated hyper_render_core dependency to ^1.3.3

1.3.2 - 2026-05-19 #

๐Ÿ”’ Security โ€” Path Traversal #

  • saveImageBytes(filename:) and shareImageBytes(filename:) now sanitise the caller-supplied filename. _getFilenameFromUrl already stripped URL-decoded path separators (%2F โ†’ /), but a malicious app dev who passed filename: '../../etc/passwd.png' through to the public API would still escape the storage directory. Every code path that lands in File('${dir.path}/$name') now runs through a single _sanitiseFilename helper that replaces / and \ with _. Self-supplied filenames remain untouched in spirit (extensions, dots, dashes preserved).

๐Ÿงช Tests #

  • +8 tests added in filename_safety_test: URL-encoded slash, URL-encoded backslash, plain filename pass-through, extensionless URL fallback, caller-supplied traversal payloads (../../etc/passwd.png, Windows backslash variants), safe filename round-trip, mixed separator handling.

1.3.1 - 2026-05-14 #

๐Ÿ—๏ธ Packaging #

  • Opt-in add-on: hyper_render_clipboard is no longer bundled with the root hyper_render package. Add it explicitly to your pubspec.yaml if you use SuperClipboardHandler. This removes the compileSdk = 34 requirement from default hyper_render users.

1.3.0 - 2026-05-03 #

โœจ New Features #

  • share_plus: ^10.0.0: Upgraded from ^7.2.0 โ€” resolves mime version conflict with newer Flutter projects
  • Image copy: SuperClipboardHandler.copyImage() supports PNG byte data via super_clipboard
  • Image share: SuperClipboardHandler.shareImage() via share_plus

๐Ÿ› Bug Fixes #

  • Race condition: Copy operation now guards against concurrent calls with a lock flag โ€” prevents duplicate clipboard writes
  • Static analysis: Replaced deprecated Share.shareXFiles() with SharePlus.instance.share() โ€” 0 analyzer issues
  • Directory convention: Renamed docs/ โ†’ doc/ (pub.dev singular directory convention)

1.2.0 - 2026-03-30 #

  • Initial release: image clipboard and share support for HyperRender selections
6
likes
160
points
267
downloads

Documentation

API reference

Publisher

verified publisherbrewkits.dev

Weekly Downloads

Image clipboard support for HyperRender using super_clipboard. Enables copying, saving, and sharing images.

Homepage
Repository (GitHub)
View/report issues

Topics

#flutter #clipboard #image-copy

License

MIT (license)

Dependencies

flutter, http, hyper_render_core, path_provider, share_plus, super_clipboard

More

Packages that depend on hyper_render_clipboard