Releases: EmbarkStudios/spdx
Releases Β· EmbarkStudios/spdx
0.12.0
0.11.1
Changed
- PR#80 changed how
Licensee::satisfiesworks 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
0.11.0
Changed
- PR#78 removed
ParseMode::allow_lower_case_operators, newer revisions of the SPDX spec allow all lower-case operators, making the option pointless. - PR#78 added
ParseMode::allow_deprecated, which will cause an error if a deprecated license identifier is used,falseinLAXandtrueinSTRICT. - PR#78 changed the various imprecise names for GPL licenses to be mapped to the non-deprecated
-onlyversions. - PR#78
Expression::canonicalizenow always changes GNU licenses to be-onlyor-or-lateras the bare identifiers are deprecated.
Added
- PR#78 added
LicenseId::versionto retrieve the numeric version of the license if it has one. - PR#78 added
LicenseId::baseto retrieve the base name of the license. - PR#78 added
gnu_license_idwhich attempts to retrieve the license id for a GNU license from its base identifier. This retrieves the-onlyor-or-laterlicense that matches. - PR#78 added
Licensee::parse_mode,Licensee::parsenow forwards to that function withParseMode::STRICT. - PR#78 added
Reason::GnuPlusWithSuffixandReason::DeprecatedLicenseIdas errors.
Fixed
- PR#78 fixed an issue where
Licensee::satisfieswould 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. - PR#78 fixed the handling of GNU licenses in
Licensee::satisfies, at least to my best understanding.Licensee GPL-1.0-only GPL-1.0-or-later GPL-2.0-only GPL-2.0-or-later GPL-3.0-only GPL-3.0-or-later GPL-1.0-only β β β β β β GPL-1.0-or-later β β β β β β GPL-2.0-only β β β β β β GPL-2.0-or-later β β β β β β GPL-3.0-only β β β β β β GPL-3.0-or-later β β β β β β