Git Product home page Git Product logo

Comments (1)

garethr avatar garethr commented on July 28, 2024 1

Thanks for reporting and helping to fix, just to say this is available now in the latest 0.2.0 release 🙇

Enriched version of the sample you provided.

{"$schema":"http://cyclonedx.org/schema/bom-1.4.schema.json","bomFormat":"CycloneDX","specVersion":"1.4","serialNumber":"urn:uuid:f3a24198-a2ef-492f-b122-a75453849d64","version":1,"components":[{"type":"library","supplier":{"name":"Masterminds"},"author":"Masterminds","name":"github.com/Masterminds/semver","version":"v1.5.0","description":"Package semver provides the ability to work with Semantic Versions (http://semver.org) in Go.\n\nSpecifically it provides the ability to:\n\nTo parse a semantic version use the `NewVersion` function. For example,\n\nIf there is an error the version wasn't parseable. The version object has methods\nto get the parts of the version, compare it to other versions, convert the\nversion back into a string, and get the original string. For more details\nplease see the documentation at https://godoc.org/github.com/Masterminds/semver.\n\nA set of versions can be sorted using the `sort` package from the standard library.\nFor example,\n\nChecking a version against version constraints is one of the most featureful\nparts of the package.\n\nThere are two elements to the comparisons. First, a comparison string is a list\nof comma separated and comparisons. These are then separated by || separated or\ncomparisons. For example, `\"\u003e= 1.2, \u003c 3.0.0 || \u003e= 4.2.3\"` is looking for a\ncomparison that's greater than or equal to 1.2 and less than 3.0.0 or is\ngreater than or equal to 4.2.3.\n\nThe basic comparisons are:\n\nThere are multiple methods to handle ranges and the first is hyphens ranges.\nThese look like:\n\nThe `x`, `X`, and `*` characters can be used as a wildcard character. This works\nfor all comparison operators. When used on the `=` operator it falls\nback to the pack level comparison (see tilde below). For example,\n\nTilde Range Comparisons (Patch)\n\nThe tilde (`~`) comparison operator is for patch level ranges when a minor\nversion is specified and major level changes when the minor number is missing.\nFor example,\n\nCaret Range Comparisons (Major)\n\nThe caret (`^`) comparison operator is for major level changes. This is useful\nwhen comparisons of API versions as a major change is API breaking. For example,","licenses":[{"expression":"MIT"}],"purl":"pkg:golang/github.com/Masterminds/[email protected]","externalReferences":[{"url":"https://github.com/masterminds/semver","type":"website"},{"url":"https://pkg.go.dev/github.com/masterminds/semver","type":"distribution"},{"url":"https://github.com/masterminds/semver","type":"vcs"},{"url":"https://pkg.go.dev/github.com/masterminds/semver#section-documentation","type":"documentation"}],"properties":[{"name":"ecosystems:first_release_published_at","value":"2016-06-30T14:46:44Z"},{"name":"ecosystems:latest_release_published_at","value":"2019-09-11T18:23:18Z"},{"name":"ecosystems:topic","value":"caret"},{"name":"ecosystems:topic","value":"comparison"},{"name":"ecosystems:topic","value":"constraints"},{"name":"ecosystems:topic","value":"go"},{"name":"ecosystems:topic","value":"golang"},{"name":"ecosystems:topic","value":"semantic-versions"},{"name":"ecosystems:topic","value":"semver"},{"name":"ecosystems:topic","value":"tilde"}]}]}

from parlay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.