File tree Expand file tree Collapse file tree 4 files changed +32
-9
lines changed
Expand file tree Collapse file tree 4 files changed +32
-9
lines changed Original file line number Diff line number Diff line change 22
33All notable changes to this project will be documented in this file.
44
5+ ## [ 7.1.0] - 2026-03-06
6+
7+ ### 🚀 Features
8+
9+ - Add retry logic for Windows Metadata downloads, retrying up to 5 attempts on
10+ failure
11+
12+ ### ⚡ Performance
13+
14+ - Optimize the metadata reader for improved throughput
15+
16+ ### 🧹 Refactor
17+
18+ - Replace the global ` winmdLogger ` (now deprecated) with a constructor-injected
19+ ` Logger ` for better testability and flexibility
20+ - Improve console output formatting
21+
22+ ### 🎨 Styling
23+
24+ - Apply Dart dot shorthand syntax across the codebase
25+
26+ [ 7.1.0 ] : https://github.com/halildurmus/win32/compare/winmd-v7.0.2..winmd-v7.1.0
27+
528## [ 7.0.2] - 2026-02-27
629
730### 🏠 Repository
Original file line number Diff line number Diff line change @@ -177,11 +177,10 @@ final class WindowsMetadataLoader {
177177 // For WinRT, merge metadata if necessary.
178178 if (package == .winrt && ! metadataFile.existsSync ()) {
179179 final metadataPath = p.join (packageDirectory, 'ref' , 'netstandard2.0' );
180- final ansi = cli_logging.Ansi (stdout.supportsAnsiEscapes);
181- final logger = cli_logging.Logger .standard (ansi: ansi);
182- final progress = logger.progress (
183- '${ansi .bold }Merging WinRT metadata files${ansi .none }' ,
180+ final logger = cli_logging.Logger .standard (
181+ ansi: .new (stdout.supportsAnsiEscapes),
184182 );
183+ final progress = logger.progress ('Merging WinRT metadata files' );
185184 mdmerge (inputPaths: [metadataPath], outputPath: metadataFile.path);
186185 progress.finish (showTiming: true );
187186 }
Original file line number Diff line number Diff line change @@ -95,17 +95,18 @@ final class LocalStorageManager {
9595 final metadataPath = p.join (packagePath, package.assetName);
9696 if (File (metadataPath).existsSync ()) return packagePath;
9797 Directory (packagePath).createSync (recursive: true );
98- final ansi = cli_logging.Ansi (stdout.supportsAnsiEscapes);
99- final logger = cli_logging.Logger .standard (ansi: ansi);
98+ final logger = cli_logging.Logger .standard (
99+ ansi: .new (stdout.supportsAnsiEscapes),
100+ );
100101 var progress = logger.progress (
101- '${ ansi . bold } Downloading NuGet package "$package " (v$version )${ ansi . none } ' ,
102+ 'Downloading NuGet package "$package " (v$version )' ,
102103 );
103104 final archiveBytes = await _downloadPackage (
104105 downloadFunction,
105106 logger: logger,
106107 );
107108 progress.finish (showTiming: true );
108- progress = logger.progress ('${ ansi . bold } Extracting archive${ ansi . none } ' );
109+ progress = logger.progress ('Extracting $ package .$ version .nupkg ' );
109110 final archive = ZipDecoder ().decodeBytes (archiveBytes);
110111 await extractArchiveToDisk (archive, packagePath);
111112 progress.finish (showTiming: true );
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: winmd
22description : >
33 Inspect and generate Windows Metadata (.winmd) files based on the ECMA-335
44 standard.
5- version : 7.0.2
5+ version : 7.1.0
66repository : https://github.com/halildurmus/win32/tree/main/packages/winmd
77issue_tracker : https://github.com/halildurmus/win32/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22package%3A%20winmd%22
88funding :
You can’t perform that action at this time.
0 commit comments