{"id":15536571,"url":"https://github.com/turbo87/semver-cargo","last_synced_at":"2025-04-14T06:42:44.500Z","repository":{"id":65812623,"uuid":"600467426","full_name":"Turbo87/semver-cargo","owner":"Turbo87","description":"Parser and evaluator for Cargo's flavor of Semantic Versioning ... in JavaScript","archived":false,"fork":false,"pushed_at":"2025-04-04T22:12:44.000Z","size":1857,"stargazers_count":2,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T23:20:25.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Turbo87.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2023-02-11T15:33:39.000Z","updated_at":"2025-04-01T22:45:05.000Z","dependencies_parsed_at":"2023-10-01T18:05:19.955Z","dependency_job_id":"89caef10-faf1-449e-80cb-6e2e25f58b7a","html_url":"https://github.com/Turbo87/semver-cargo","commit_stats":{"total_commits":733,"total_committers":68,"mean_commits":"10.779411764705882","dds":0.694406548431105,"last_synced_commit":"bb728c07abaef85ac71d0b7c9e42e4de3fbae0da"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fsemver-cargo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fsemver-cargo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fsemver-cargo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fsemver-cargo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turbo87","download_url":"https://codeload.github.com/Turbo87/semver-cargo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837260,"owners_count":21169373,"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","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":[],"created_at":"2024-10-02T11:52:30.740Z","updated_at":"2025-04-14T06:42:44.479Z","avatar_url":"https://github.com/Turbo87.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"semver-cargo\n===============================================================================\n\nA parser and evaluator for [Cargo]'s flavor of Semantic Versioning.\n\nSemantic Versioning (see \u003chttps://semver.org\u003e) is a guideline for how version\nnumbers are assigned and incremented. It is widely followed within the\n[Cargo]/[crates.io] ecosystem for [Rust].\n\nThis project is a JavaScript port of the original Rust project at\n\u003chttps://github.com/dtolnay/semver\u003e.\n\n\nExample\n-------------------------------------------------------------------------------\n\n```ts\nimport { Version, VersionReq } from 'semver-cargo';\n\nlet req = VersionReq.parse(\"\u003e=1.2.3, \u003c1.8.0\");\n\n// Check whether this requirement matches version 1.2.3-alpha.1 (no)\nlet version1 = new Version(1, 2, 3, 'alpha.1');\nassert(!req.matches(version1));\n\n// Check whether it matches 1.3.0 (yes it does)\nlet version2 = Version.parse(\"1.3.0\");\nassert(req.matches(version2));\n```\n\n\nScope of this crate\n-------------------------------------------------------------------------------\n\nBesides Cargo, several other package ecosystems and package managers for other\nlanguages also use SemVer:\u0026ensp;RubyGems/Bundler for Ruby, npm for JavaScript,\nComposer for PHP, CocoaPods for Objective-C...\n\nThe `semver-cargo` package is specifically intended to implement Cargo's\ninterpretation of Semantic Versioning.\n\nWhere the various tools differ in their interpretation or implementation of the\nspec, this crate follows the implementation choices made by Cargo. If you are\noperating on version numbers from some other package ecosystem, you will want to\nuse a different semver library which is appropriate to that ecosystem.\n\nThe extent of Cargo's SemVer support is documented in the *[Specifying\nDependencies]* chapter of the Cargo reference.\n\nLicense\n-------------------------------------------------------------------------------\n\nLicensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or\n[MIT license](LICENSE-MIT) at your option.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this crate by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\n[Cargo]: https://doc.rust-lang.org/cargo/\n[crates.io]: https://crates.io/\n[Rust]: https://www.rust-lang.org/\n[Specifying Dependencies]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbo87%2Fsemver-cargo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbo87%2Fsemver-cargo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbo87%2Fsemver-cargo/lists"}