{"id":8913635,"name":"libsharp","ecosystem":"nuget","description":"Extends the standard library with:\n  - Async lock and action frequency controls (debounce/throttle).\n  - Async lazy (PublicationOnly and ExecutionAndPublication thread safety modes).\n  - Sync and async in-memory value and key-value caches.\n  - Proactive async cache that refreshes values in the background before they expire.\n  - Thread-safe and priority-based collections.\n  - Optional and Result value types.\n  - Argument validation methods.\n  - Extension methods for collection interfaces.\n  - Extension methods for standard library types like int, string, DateTime.","homepage":"https://www.nuget.org/packages/LibSharp","licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/danylofitel/LibSharp","keywords_array":["LibSharp","AsyncLock","Debounce","Throttle","AsyncLazy","LazyAsync","Cache","AsyncCache","ThreadSafeCache","ConcurrentHashSet","PriorityQueue","Collections","Result","Optional","Extensions","ArgumentValidation"],"namespace":null,"versions_count":15,"first_release_published_at":"2024-02-19T08:40:36.520Z","latest_release_published_at":"2026-04-01T07:37:34.920Z","latest_release_number":"3.0.0","last_synced_at":"2026-04-01T09:06:52.583Z","created_at":"2024-02-26T01:14:36.309Z","updated_at":"2026-04-01T10:11:10.557Z","registry_url":"https://www.nuget.org/packages/libsharp/","install_command":"Install-Package libsharp","documentation_url":null,"metadata":{"copyright":"Copyright (c) Danylo Fitel 2026","license_info":{"type":"file","text":"LICENSE.txt","version":null},"license_url":"https://aka.ms/deprecateLicenseUrl","require_license_acceptance":false,"readme":"README.md","repository":{"type":"git","url":"https://github.com/danylofitel/LibSharp","branch":"refs/heads/main","commit":"52a5856f563aba6ccdf7ee39a451d80f94a2f91d"},"development_dependency":false,"serviceable":false,"framework_assemblies":[],"package_types":[],"release_notes":"# Changelog\n\n- 3.0.0\n  - `Caching`\n    - Async cache/lazy/initializer factories now reject null task returns with a deliberate exception instead of failing with `NullReferenceException`\n    - `ProactiveAsyncCache\u003cT\u003e` no longer implements `IDisposable`; use `await using` / `DisposeAsync()` instead\n    - `ProactiveAsyncCache` no longer supports `refreshTimeout` and `onBackgroundRefreshError` parameters, and now always auto-starts in constructor\n  - `Collections`\n    - Added `ConcurrentHashSet`\n    - Added weighted `Chunk` extension method for `IAsyncEnumerable\u003cT\u003e`\n    - Added `TryPeek` and `TryDequeue` to `IPriorityQueue\u003cT\u003e`, `MinPriorityQueue\u003cT\u003e`, and `MaxPriorityQueue\u003cT\u003e`\n    - `MinPriorityQueue\u003cT\u003e` and `MaxPriorityQueue\u003cT\u003e`: `Contains` and `Remove` now use the queue's comparer instead of `object.Equals`, making them consistent with the ordering relation\n  - `Common`\n    - Added `Result`\n    - Renamed `Box` to `Optional`; null values are now allowed\n    - `Optional\u003cT\u003e.GetHashCode` now differentiates between an empty optional and an optional wrapping `null`\n    - Added `StringExtensions.TruncateTextElements` for text-element-aware truncation\n    - `DateTimeExtensions` epoch conversions now use Unix-time floor semantics instead of rounding fractional units\n    - `TypeExtensions.GetDefaultComparer` now supports types implementing non-generic `IComparable`\n    - Regex extensions now return a `bool` indicating whether the regex match timed out\n    - `FuncExtensions.RunWithTimeout`: timeout must now be strictly greater than zero\n    - `XmlSerializationExtensions`: `XmlSerializer` instances are now cached per type to avoid repeated dynamic assembly generation\n  - `Threading`\n    - Added `AsyncLock`, `DebouncedAction`, and `ThrottledAction`\n\n- 2.0.4\n  - Improved disposal of async caches in edge cases\n\n- 2.0.3\n  - `ProactiveAsyncCache` now calculates retry delay based on the refresh interval and pre-fetch offset\n  - Minor bug fixes and improvements\n\n- 2.0.2\n  - `ProactiveAsyncCache` now supports an optional `refreshTimeout` parameter\n  - Minor bug fixes and improvements\n\n- 2.0.1\n  - `ProactiveAsyncCache` now supports stale reads mode\n  - `ProactiveAsyncCache` now accepts an action to handle failed background refreshes\n\n- 2.0.0\n  - Dropped support for .NET Standard 2.0, .NET Standard 2.1, .NET 5.0, .NET 6.0, and .NET 7.0\n  - Added support for .NET 10.0\n  - Removed `DateTimeExtensions.UnixEpoch`\n  - Added `ProactiveAsyncCache`\n  - Added `TryConvertToEnum` extension method for `string`\n  - Bug fixes and thread safety improvements\n\n- 1.1.6\n  - Added `TryConvertToEnum` extension method for `int`\n\n- 1.1.5\n  - Added Regex extension methods that handle regex timeouts gracefully\n  - Added `Func` extension methods that run asynchronous operations with a timeout\n\n- 1.1.4\n  - Added support for .NET 9.0\n\n- 1.1.3\n  - Updated NuGet package tags and description\n\n- 1.1.2\n  - Added constructors to `KeyValueCache` and `KeyValueCacheAsync` that accept separate factories for creates and updates\n  - Added the ability to specify a custom expiration function\n\n- 1.1.1\n  - Changed the return type of the `Shuffle` extension method from `IEnumerable\u003cT\u003e` to `T[]`\n  - Fixed the signature of `SerializeToXml` so it can be invoked as an extension method\n  - All `IDisposable` types now throw `ObjectDisposedException` when a member is accessed after disposal\n\n- 1.1.0\n  - Added support for .NET Standard 2.0, .NET Standard 2.1, .NET 5.0, .NET 6.0, and .NET 7.0\n\n- 1.0.0\n  - Initial release targeting .NET 8.0","dependency_summary":{"total_dependency_groups":3,"target_frameworks":["net8.0","net9.0","net10.0"],"total_dependencies":0}},"repo_metadata":{"id":223080116,"uuid":"759254276","full_name":"danylofitel/LibSharp","owner":"danylofitel","description":"A library of C# core components that enhance the standard library.","archived":false,"fork":false,"pushed_at":"2025-04-24T16:00:05.000Z","size":94,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-23T15:14:23.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danylofitel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-18T04:17:04.000Z","updated_at":"2025-04-24T16:00:09.000Z","dependencies_parsed_at":"2024-04-03T09:27:14.013Z","dependency_job_id":"ad877478-f704-4fd5-a499-9016b20a382b","html_url":"https://github.com/danylofitel/LibSharp","commit_stats":null,"previous_names":["danylofitel/libsharp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danylofitel/LibSharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danylofitel%2FLibSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danylofitel%2FLibSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danylofitel%2FLibSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danylofitel%2FLibSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danylofitel","download_url":"https://codeload.github.com/danylofitel/LibSharp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danylofitel%2FLibSharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276614770,"owners_count":25673774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"danylofitel","name":"Danylo Fitel","uuid":"3258785","kind":"user","description":"","email":"","website":null,"location":null,"twitter":null,"company":"Microsoft","icon_url":"https://avatars.githubusercontent.com/u/3258785?u=0fa2c3794666263af189f9d5d7aacdbd50d4a176\u0026v=4","repositories_count":13,"last_synced_at":"2023-09-11T18:01:06.504Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/danylofitel","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-08T04:33:22.361Z","updated_at":"2023-09-11T18:01:06.574Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danylofitel","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danylofitel/repositories"},"tags":[]},"repo_metadata_updated_at":"2026-04-01T10:11:10.536Z","dependent_packages_count":0,"downloads":1770,"downloads_period":"total","dependent_repos_count":0,"rankings":{"downloads":52.76332599504905,"dependent_repos_count":14.97801439290325,"dependent_packages_count":20.3376452392213,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":29.35966187572453},"purl":"pkg:nuget/libsharp","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/nuget/libsharp","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/nuget/libsharp","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/nuget/libsharp/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":null,"issues_count":null,"pull_requests_count":null,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":null,"pull_requests_closed_count":null,"pull_request_authors_count":null,"issue_authors_count":null,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":null,"bot_issues_count":null,"bot_pull_requests_count":null,"past_year_issues_count":null,"past_year_pull_requests_count":null,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":null,"past_year_pull_requests_closed_count":null,"past_year_pull_request_authors_count":null,"past_year_issue_authors_count":null,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":null,"past_year_bot_pull_requests_count":null,"past_year_merged_pull_requests_count":null,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/danylofitel%2FLibSharp/issues","maintainers":[{"login":"danylofitel","count":6,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/danylofitel"}],"active_maintainers":[{"login":"danylofitel","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/danylofitel"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/libsharp/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/libsharp/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/libsharp/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/libsharp/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/libsharp/codemeta","maintainers":[{"uuid":"danylofitel","login":"danylofitel","name":null,"email":null,"url":null,"packages_count":1,"html_url":"https://www.nuget.org/profiles/danylofitel","role":null,"created_at":"2024-02-26T01:15:42.107Z","updated_at":"2024-02-26T01:15:42.107Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/nuget.org/maintainers/danylofitel/packages"}]}