{"id":31741768,"url":"https://github.com/chasmical/chasm","last_synced_at":"2025-10-09T10:57:36.940Z","repository":{"id":212775267,"uuid":"732296042","full_name":"Chasmical/Chasm","owner":"Chasmical","description":"A set of utility and helper libraries that I'm developing and maintaining primary for myself.","archived":false,"fork":false,"pushed_at":"2025-07-03T12:19:21.000Z","size":999,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T12:37:49.590Z","etag":null,"topics":["collections","formatting","semantic-versioning","semver","utilities"],"latest_commit_sha":null,"homepage":"","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/Chasmical.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2023-12-16T07:42:21.000Z","updated_at":"2025-08-09T01:14:38.000Z","dependencies_parsed_at":"2024-04-25T20:24:11.410Z","dependency_job_id":"8462a34e-ca2c-4d0e-b6bd-ad0af612d489","html_url":"https://github.com/Chasmical/Chasm","commit_stats":null,"previous_names":["chasmical/chasm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chasmical/Chasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chasmical%2FChasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chasmical%2FChasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chasmical%2FChasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chasmical%2FChasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chasmical","download_url":"https://codeload.github.com/Chasmical/Chasm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chasmical%2FChasm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001255,"owners_count":26083041,"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-10-09T02:00:07.460Z","response_time":59,"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"}},"keywords":["collections","formatting","semantic-versioning","semver","utilities"],"created_at":"2025-10-09T10:57:26.286Z","updated_at":"2025-10-09T10:57:36.935Z","avatar_url":"https://github.com/Chasmical.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## [Chasm.SemanticVersioning](./Chasm.SemanticVersioning#readme)\n\n[![Latest NuGet version](https://img.shields.io/nuget/v/Chasm.SemanticVersioning)](https://www.nuget.org/packages/Chasm.SemanticVersioning/)\n[![Open issues](https://img.shields.io/github/issues/Chasmical/Chasm)](https://github.com/Chasmical/Chasm/issues)\n[![Open PRs](https://img.shields.io/github/issues-pr/Chasmical/Chasm)](https://github.com/Chasmical/Chasm/pulls)\n[![MIT License](https://img.shields.io/github/license/Chasmical/Chasm)](./LICENSE)\n\nA library designed for efficiently working with [SemVer 2.0.0](https://semver.org/spec/v2.0.0.html) versions and [`node-semver`](https://github.com/npm/node-semver) version ranges.\n\n- **Focus on functionality and performance.** I will make sure to implement any common manipulations with semantic versions, and I will microoptimize the hell out of everything! [See the benchmarks]([./Chasm.SemanticVersioning.Benchmarks#readme](https://github.com/Chasmical/Chasm/tree/main/Chasm.SemanticVersioning.Benchmarks#readme)). `SemanticVersion`, `SemverPreRelease`, `SemverOptions`, `SemanticVersionBuilder`, `SemverComparer`, `SemverComparison`.\n\n- **Implements `node-semver`'s version ranges.** Notably, advanced comparators and wildcards (`^1.2.x`, `~5.3`) are preserved as is, instead of being desugared into primitives like in all other libraries. That allows to interpret and manipulate version ranges more precisely. `VersionRange`, `ComparatorSet`, `Comparator`, `PartialVersion`, `PartialComponent`, `PrimitiveComparator`, `AdvancedComparator`, `CaretComparator`, `HyphenRangeComparator`, `TildeComparator`, `XRangeComparator`.\n\n- **Operations with version ranges.** Now this is definitely a unique feature - this library defines operations for `Comparator`, `ComparatorSet` and `VersionRange`. You can complement (`~`), union (`|`), intersect (`\u0026`) and desugar ranges. Soon you'll also be able to normalize, transform and minimize ranges.\n\n- **Default comparison ignores build metadata.** I think it's more correct to have the default comparison be compliant with SemVer's specification. You can still do metadata-sensitive comparison using a custom comparer, if you want - `SemverComparer.IncludeBuild`.\n\n- **Out-of-the-box serialization support.** Supports serialization/deserialization with `Newtonsoft.Json`, `System.Text.Json` and `System.Xml` (and any libraries using `TypeConverter`s) with no extra configuration needed.\n\n- **Thoroughly tested, 100% code coverage.** All of the library's functionality has been covered by tests. There may be some really obscure edge cases that haven't been covered, if you encounter them, [file an issue here](https://github.com/Chasmical/Chasm/issues)!\n\n- **.NET-style documentation.** Written in the style of `System` namespace docs. I don't know if it's worth advertising, but I really like how descriptive and consistent it is, so I thought I should mention that.\n\nSee more information and examples in [the project's README](./Chasm.SemanticVersioning#readme).\n\n\n\n## [Chasm.Collections](./Chasm.Collections#readme)\n\n[![Latest NuGet version](https://img.shields.io/nuget/v/Chasm.Collections)](https://www.nuget.org/packages/Chasm.Collections/)\n[![MIT License](https://img.shields.io/github/license/Chasmical/Chasm)](./LICENSE)\n\nProvides various collection-related extension and utility methods:\n- `ArrayExtensions` - extension versions of most static methods in the `Array` class, and some more.\n- `CollectionExtensions` - some extensions for lists of tuples and key-value pairs.\n- `EnumerableExtensions` - a couple of extensions for enumerables.\n- Methods for returning empty read-only collections/enumerators/dictionaries (`ReadOnlyCollection.Empty\u003cT\u003e()`).\n\n\n\n## [Chasm.Utilities](./Chasm.Utilities#readme)\n\n[![Latest NuGet version](https://img.shields.io/nuget/v/Chasm.Utilities)](https://www.nuget.org/packages/Chasm.Utilities/)\n[![MIT License](https://img.shields.io/github/license/Chasmical/Chasm)](./LICENSE)\n\nProvides various utility types and methods:\n- `Util.Fail`, `Util.Catch`, `Util.Is`, `Util.With` utility methods for shortening common branch code.\n- `DelegateDisposable` - a class for quickly and easily creating custom disposable objects.\n\n\n\n## [Chasm.Formatting](./Chasm.Formatting#readme)\n\n[![Latest NuGet version](https://img.shields.io/nuget/v/Chasm.Formatting)](https://www.nuget.org/packages/Chasm.Formatting/)\n[![MIT License](https://img.shields.io/github/license/Chasmical/Chasm)](./LICENSE)\n\nProvides various formatting and parsing utility types and methods:\n- `SpanBuilder` - for formatting complex deep objects without unnecessary memory allocations.\n- `SpanParser` - for fluently and efficiently parsing text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchasmical%2Fchasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchasmical%2Fchasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchasmical%2Fchasm/lists"}