Skip to content

Commit 1ef5575

Browse files
fix: CHANGELOG structure and clipboard dep constraints for pub.dev
- Fix root CHANGELOG.md: move 1.0.1 entry below # Changelog heading - Add [1.0.1] reference link at bottom - hyper_render_clipboard: bump to 1.0.2 - Migrate share_plus API to SharePlus.instance.share(ShareParams(...)) - Widen share_plus to >=10.0.0 <13.0.0, super_clipboard to >=0.8.0 <1.0.0
1 parent a6c1269 commit 1ef5575

4 files changed

Lines changed: 28 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
## 1.0.1
2-
3-
- Add `example/example.dart` for pub.dev example scoring
4-
- Fix `.pubignore` to correctly exclude build artifacts while keeping example
5-
61
# Changelog
72

83
All notable changes to HyperRender are documented in this file.
@@ -12,6 +7,11 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
127

138
---
149

10+
## [1.0.1] - 2026-03-08
11+
12+
- Add `example/example.dart` for pub.dev example scoring
13+
- Fix `.pubignore` to correctly exclude build artifacts while keeping example
14+
1515
## [1.0.0] - 2026-03-01
1616

1717
First stable release. Core features, plugin architecture, and cross-platform support are production-ready.
@@ -181,4 +181,5 @@ CSS lookup: 3–16 µs median (100–5,000 rules). Source: `benchmark/RESULTS.md
181181

182182
---
183183

184+
[1.0.1]: https://github.com/brewkits/hyper_render/releases/tag/v1.0.1
184185
[1.0.0]: https://github.com/brewkits/hyper_render/releases/tag/v1.0.0
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 1.0.2
2+
3+
- Migrate `share_plus` API: `Share.shareXFiles()``SharePlus.instance.share(ShareParams(...))` (compatible with share_plus 11+ / 12.x)
4+
- Verified compatibility with `super_clipboard` 0.9.x — no API changes required
5+
6+
## 1.0.1
7+
8+
- Widen `share_plus` constraint to `>=10.0.0 <13.0.0` (covers 12.x)
9+
- Widen `super_clipboard` constraint to `>=0.8.0 <1.0.0` (covers 0.9.x)
10+
111
## 1.0.0
212

313
Initial public release. See the [root CHANGELOG](https://github.com/brewkits/hyper_render/blob/main/CHANGELOG.md) for full release notes.

packages/hyper_render_clipboard/lib/src/super_clipboard_handler.dart

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:flutter/foundation.dart';
44
import 'package:http/http.dart' as http;
55
import 'package:hyper_render_core/hyper_render_core.dart';
66
import 'package:path_provider/path_provider.dart';
7-
import 'package:share_plus/share_plus.dart';
7+
import 'package:share_plus/share_plus.dart' show SharePlus, ShareParams, XFile;
88
import 'package:super_clipboard/super_clipboard.dart' show DataWriterItem, Formats, SystemClipboard;
99

1010
/// Image clipboard handler using super_clipboard package
@@ -169,10 +169,13 @@ class SuperClipboardHandler implements ImageClipboardHandler {
169169
final file = File('${tempDir.path}/$name');
170170
await file.writeAsBytes(bytes);
171171

172-
// Share using share_plus
173-
await Share.shareXFiles(
174-
[XFile(file.path)],
175-
text: text,
172+
// Share using share_plus (SharePlus.instance.share is the current API;
173+
// Share.shareXFiles is deprecated since share_plus 11.0.0)
174+
await SharePlus.instance.share(
175+
ShareParams(
176+
files: [XFile(file.path)],
177+
text: text,
178+
),
176179
);
177180

178181
return true;

packages/hyper_render_clipboard/pubspec.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: hyper_render_clipboard
22
description: Image clipboard support for HyperRender using super_clipboard. Enables copying, saving, and sharing images.
3-
version: 1.0.0
3+
version: 1.0.2
44
homepage: https://github.com/brewkits/hyper_render
55
repository: https://github.com/brewkits/hyper_render/tree/main/packages/hyper_render_clipboard
66

@@ -13,11 +13,10 @@ dependencies:
1313
sdk: flutter
1414

1515
# Core hyper_render for interfaces
16-
hyper_render_core:
17-
path: ../hyper_render_core
16+
hyper_render_core: ^1.0.0
1817

1918
# Cross-platform clipboard with image support
20-
super_clipboard: ^0.8.0
19+
super_clipboard: ">=0.8.0 <1.0.0"
2120

2221
# HTTP for downloading images
2322
http: ^1.2.0
@@ -26,7 +25,7 @@ dependencies:
2625
path_provider: ^2.1.0
2726

2827
# Share functionality
29-
share_plus: ^10.0.0
28+
share_plus: ">=10.0.0 <13.0.0"
3029

3130
topics:
3231
- flutter

0 commit comments

Comments
 (0)