You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HISTORY.md
+32-11Lines changed: 32 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
11
11
* Removed support for PHP v7.4 ([#114] via [#125])
12
12
* Removed support for PHP v8.0 (via [#204])
13
13
* Changed models' aggregation properties to be no longer optional ([#66] via [#131])
14
+
* CHanged models to be less restrictive ([#247] via [#249])
14
15
* Streamlined repository data structures to follow a common method naming scheme (via [#131])
15
16
* Enumeration-like classes were converted to native [PHP Enumerations](https://www.php.net/manual/en/language.types.enumerations.php) ([#140] via [#204])
16
17
* Added
@@ -50,9 +51,16 @@ All notable changes to this project will be documented in this file.
50
51
* BREAKING: method `isValidValue()` was removed (via [#204])
51
52
*`CycloneDX\Core\Factories` namespace
52
53
*`LicenseFactory` class
54
+
* BREAKING: check whether something is a valid SPDX Expression is now complete, was best effort implementation ([#247] via [#249])
55
+
This affects all methods that potentially would create `LicenseExpression` models.
* Added new method `getSpdxLicenses()` (via [#249])
56
64
*`\CycloneDX\Core\Models` namespace
57
65
*`Bom` class
58
66
* BREAKING: changed constructor to no longer accept components ([#187] via [#188])
@@ -61,8 +69,8 @@ All notable changes to this project will be documented in this file.
61
69
Also changed parameter & return type to non-nullable, was nullable ([#66] via [#131])
62
70
* BREAKING: renamed methods `{get,set}MetaData()` -> `{get,set}Metadata()` ([#133] via [#131])
63
71
Also changed parameter & return type to non-nullable, was nullable ([#66] via [#131])
64
-
* Added `{get,set}Properties()` ([#228] via [#229])
65
-
* Added `{get,set}SerialNumber()` (via [#186])
72
+
* Added new methods `{get,set}Properties()` ([#228] via [#229])
73
+
* Added new methods `{get,set}SerialNumber()` (via [#186])
66
74
*`Component` class
67
75
* BREAKING: renamed methods `{get,set}DependenciesBomRefRepository()` -> `{get,set}Dependencies()` ([#133] via [#131])
68
76
Also changed parameter & return type to non-nullable, was nullable ([#66] via [#131])
@@ -76,10 +84,10 @@ All notable changes to this project will be documented in this file.
76
84
This affects constructor arguments, and affects methods `{get,set}Version()`.
77
85
* BREAKING: changed property `type` to be of type `\CycloneDX\Core\Enum\ComponentType` ([#140] via [#204])
78
86
This affects constructor arguments, and affects methods `{get,set}Type()`.
79
-
* Added `{get,set}Author()` ([#184] via [#185])
80
-
* Added `{get,set}Copyright()` ([#238] via [#239])
81
-
* Added `{get,set}Evidence()` ([#238] via [#241])
82
-
* Added `{get,set}Properties()` ([#228] via [#165])
87
+
* Added new methods `{get,set}Author()` ([#184] via [#185])
88
+
* Added new methods `{get,set}Copyright()` ([#238] via [#239])
89
+
* Added new methods `{get,set}Evidence()` ([#238] via [#241])
90
+
* Added new methods `{get,set}Properties()` ([#228] via [#165])
83
91
* Added new class `ComponentEvidence` ([#238] via [#241])
84
92
*`ExternalReference` class
85
93
* BREAKING: renamed methods `{get,set}HashRepository()` -> `{get,set}Hashes()` ([#133] via [#131])
@@ -93,6 +101,14 @@ All notable changes to this project will be documented in this file.
93
101
* BREAKING: renamed class to `NamedLicense` ([#164] via [#168])
94
102
*`DisjunctiveLicenseWithId` class
95
103
* BREAKING: renamed class to `SpdxLicense` ([#164] via [#168])
104
+
* BREAKING: removed factory method `makeValidated()` ([#247] via [#249])
105
+
To assert valid values use `\CycloneDX\Core\Factories\LicenseFactory::makeSpdxLicense()`.
106
+
* Changed: constructor `__construct()` is public now, was private ([#247] via [#249])
107
+
* Added new method `setId()` ([#247] via [#249])
108
+
*`LicenseExpression` class
109
+
* BREAKING: constructor `__construct()` and method `setExpression()` no longer do validation, but only assert that the parameter is no empty string. ([#247] ia [#249])
110
+
To assert valid values use `\CycloneDX\Core\Factories\LicenseFactory::makeExpression()`.
111
+
* BREAKING: removed method `isValid()` ([#247] via [#249])
96
112
*`MetaData` class
97
113
* BREAKING: renamed class to `Metadata` ([#133] via [#131])
98
114
Even though PHP is case-insensitive with class names, autoloaders may be case-sensitive. Therefore, this is considered a breaking change.
@@ -135,10 +151,10 @@ All notable changes to this project will be documented in this file.
0 commit comments