Update Rust crate spdx to v0.11.1 #11722
Open
+3
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
=0.10.9
->=0.11.1
Release Notes
EmbarkStudios/spdx (spdx)
v0.11.1
Compare Source
Changed
Licensee::satisfies
works for GNU licenses again, it now requires that the license ids match exactly. This is incredibly pedantic but means it's up to consumers if the want to have a smarter comparison, I just don't want to have to care about GNU licenses, ever.Fixed
GPL-2.0
=>GPL-2.0-only
. This is no longer done, resolving #79.v0.11.0
Compare Source
Changed
ParseMode::allow_lower_case_operators
, newer revisions of the SPDX spec allow all lower-case operators, making the option pointless.ParseMode::allow_deprecated
, which will cause an error if a deprecated license identifier is used,false
inLAX
andtrue
inSTRICT
.-only
versions.Expression::canonicalize
now always changes GNU licenses to be-only
or-or-later
as the bare identifiers are deprecated.Added
LicenseId::version
to retrieve the numeric version of the license if it has one.LicenseId::base
to retrieve the base name of the license.gnu_license_id
which attempts to retrieve the license id for a GNU license from its base identifier. This retrieves the-only
or-or-later
license that matches.Licensee::parse_mode
,Licensee::parse
now forwards to that function withParseMode::STRICT
.Reason::GnuPlusWithSuffix
andReason::DeprecatedLicenseId
as errors.Fixed
Licensee::satisfies
would not properly allow some licenses if the version was not at the end when using a+
, notably the BSD licenses have the version in the middle of the license id.Licensee::satisfies
, at least to my best understanding.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.