{"id":23491914,"url":"https://github.com/jonathanstarup/semver","last_synced_at":"2026-03-27T00:35:05.235Z","repository":{"id":109809456,"uuid":"591103053","full_name":"JonathanStarup/SemVer","owner":"JonathanStarup","description":"A Flix package for Semantic Versioning 2.0","archived":false,"fork":false,"pushed_at":"2023-01-23T22:50:30.000Z","size":14,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-24T08:55:05.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/JonathanStarup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-01-19T23:27:06.000Z","updated_at":"2023-01-20T07:52:58.000Z","dependencies_parsed_at":"2023-03-08T22:00:54.830Z","dependency_job_id":null,"html_url":"https://github.com/JonathanStarup/SemVer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JonathanStarup/SemVer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanStarup%2FSemVer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanStarup%2FSemVer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanStarup%2FSemVer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanStarup%2FSemVer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonathanStarup","download_url":"https://codeload.github.com/JonathanStarup/SemVer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanStarup%2FSemVer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31003880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T00:15:12.539Z","status":"ssl_error","status_checked_at":"2026-03-27T00:14:54.741Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-12-25T01:43:26.620Z","updated_at":"2026-03-27T00:35:05.189Z","avatar_url":"https://github.com/JonathanStarup.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# SemVar\n\nA Flix package for [Semantic Versioning 2.0](https://semver.org/).\n\n# Example Use\n\n```scala\n\n//\n// A SemVer can be created\n//\nSemVer.firstVersion(); // 0.1.0\nSemVer.semVer(1, 2, 3); // Some(1.2.3)\nSemVer.semVer(1, 2, -1); // None\nSemVer.semVerLenient(1, 2, -1); // 1.2.0\nSemVer.fromString(\"1.2.3\"); // 1.2.3\nFromString.fromString(\"99.99.98\"); // Some(99.99.98)\nFromString.fromString(\"099.99.98\"); // None\nFromString.fromString(\"99.99.98-alpha\"); // None\nFromString.fromString(\"99.99.98-alpha+meta\"); // None\n\n//\n// Information can be extracted from a SemVer\n//\nlet v = SemVer.semVer(1, 2, 3);\nSemVer.getMajor(v); // 1\nSemVer.getMinor(v); // 2\nSemVer.getPatch(v); // 3\nSemVer.toString(v); // \"1.2.3\"\nToString.toString(v); // \"1.2.3\"\n\n//\n// A SemVer can be modified\n//\nlet v = SemVer.semVer(1, 2, 3);\nSemVer.increaseMajor(v); // 2.0.0\nSemVer.increaseBreaking(v); // 2.0.0\nSemVer.increaseMinor(v); // 1.3.0\nSemVer.increasePatch(v); // 1.2.4\nSemVer.increaseBugFix(v); // 1.2.4\n\n//\n// A SemVer can be compared\n//\nlet v1 = SemVer.semVer(1, 2, 3);\nlet v2 = SemVer.semVer(1, 3, 1);\nv1 == v2; // false\nv1 \u003e v2 // false\nv1 \u003c v2 // true\nv1 \u003c=\u003e v2 // LessThan\n\n```\n\n# License\n\nSee full license [here](LICENSE.md)\n\nCopyright 2023 Jonathan Lindegaard Starup\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstarup%2Fsemver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanstarup%2Fsemver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstarup%2Fsemver/lists"}