Releases: LoveDoLove/CS_CommonUtilities
Releases · LoveDoLove/CS_CommonUtilities
v2.0.2
Release 2.0.2 Update package versions and assembly to 2.0.2 Bumped assembly, file, and package version to 2.0.2. Updated several NuGet dependencies to newer versions, including Google.Apis.Drive.v3, Microsoft.EntityFrameworkCore.SqlServer, Serilog.Extensions.Hosting, and System.Runtime.Caching.
v2.0.1
Release 2.0.1 * Update default User-Agent and refactor cache fields Changed the default User-Agent to a more realistic browser string. Refactored cache-related fields to use PascalCase for consistency and updated their usage throughout the class. Added 'where T : notnull' constraints to relevant async methods for improved type safety. * Update project version and package references Bumped project version to 2.0.1 and enabled package generation on build. Updated, removed, and replaced several NuGet package references to streamline dependencies and ensure compatibility. * Update project metadata in CommonUtilities.csproj Expanded the package description to provide more detail about the library's features and target framework. Added PackageId and Product properties for improved NuGet packaging and identification. * Update PackageId in CommonUtilities.csproj Changed the PackageId from 'CommonUtilities' to 'LoveDoLove.CommonUtilities' to reflect the new naming convention and improve package identification.
v2.0.0
Release 2.0.0
v1.9.9
Release 1.9.9 * Refactor IpInfoHelper to use dual-stack endpoint Updated IpInfoHelper to use the https://ipinfo.io/ dual-stack endpoint for retrieving IP information, supporting both IPv4 and IPv6 clients. Improved error handling, simplified client IP extraction logic, and added logging for failed requests. * Bump version to 1.9.9 in CommonUtilities.csproj Updated AssemblyVersion and FileVersion to 1.9.9 to prepare for a new release.
v1.9.8
Release 1.9.8 * Improve client IP extraction logic in IpInfoHelper Enhanced GetClientIp to prioritize common proxy/CDN headers, handle multiple comma-separated IPs, and normalize IPv6 loopback and IPv4-mapped IPv6 addresses. This provides more accurate client IP detection in environments with proxies or load balancers. * Bump version to 1.9.8 in CommonUtilities.csproj Updated AssemblyVersion and FileVersion to 1.9.8 to prepare for a new release of the CommonUtilities library.
v1.9.7
Release 1.9.7 * Add IsValidLanguage method to LanguageHelper Introduces IsValidLanguage to validate language code strings, allowing empty values and ensuring codes match known LanguageCodeType values in LanguageMappings. Also refactors GetLanguageName for improved clarity. * Bump version to 1.9.7 in CommonUtilities.csproj Updated AssemblyVersion and FileVersion to 1.9.7 to prepare for a new release.
v1.9.6
Release 1.9.6 * Add caller context to log messages in LoggerUtilities Introduces stack inspection to prepend calling class and method names to log messages. This enhances log traceability by providing contextual information about the origin of each log entry. All logging methods now use the new FormatMessage helper to include this context. * Replace LICENSE with full Apache 2.0 text Updated the LICENSE file to include the complete Apache License, Version 2.0, replacing the previous abbreviated version. This provides full legal clarity and compliance with open source standards. * Revise and expand README for clarity and structure Improved the README with clearer usage instructions, updated feature lists, and reorganized sections for better readability. Added a project structure section, clarified configuration and installation steps, and streamlined contribution guidelines. Updated acknowledgments and removed outdated or redundant content. * Bump version to 1.9.6 in project file Updated AssemblyVersion and FileVersion in CommonUtilities.csproj from 1.9.5 to 1.9.6 to reflect new changes or release.
v1.9.5
Release 1.9.5 * Allow img tags and src/class attributes in HTML sanitizer Updated HtmlSanitizerHelper to permit <img> tags and allow 'src' and 'class' attributes. Also clarified comments, ensured URI attributes include 'src', and improved post-processing for <a> tags to enforce rel policy. This enhances support for safe image embedding while maintaining XSS protection. * Bump version to 1.9.5 in project file Updated AssemblyVersion and FileVersion in CommonUtilities.csproj from 1.9.4 to 1.9.5 to prepare for a new release.
v1.9.4
Release 1.9.4 * Add HtmlSanitizerHelper for safe HTML input handling Introduced HtmlSanitizerHelper to sanitize HTML-like input and prevent XSS attacks using a custom whitelist of tags and attributes. Added HtmlSanitizer package dependency to the project. * Enhance HTML sanitizer with stricter policy Refines the HTML sanitizer to use a more conservative whitelist of tags and attributes, restricts allowed URI schemes, forbids event and style attributes, and enforces rel="noopener noreferrer nofollow" on links. Improves newline handling and adds code comments for clarity. * Bump version to 1.9.4 in project file Updated AssemblyVersion and FileVersion in CommonUtilities.csproj from 1.9.3 to 1.9.4 to reflect the new release.
v1.9.3
Release 1.9.3 * Add Gemini grounding support and config options Introduces Google Search grounding capabilities to GeminiHelper, including new config options for enabling grounding, setting thresholds, and choosing grounding mode. Updates IGeminiHelper interface and appsettings.json to support these features. Also refactors ImagenHelper for improved type safety. * Bump version to 1.9.3 in CommonUtilities.csproj Updated AssemblyVersion and FileVersion to 1.9.3 to reflect new release. No other changes made.