Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add basic support for CycloneDX v1.6 #422

Merged
merged 19 commits into from
Apr 10, 2024
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,27 @@ All notable changes to this project will be documented in this file.

<!-- add unreleased items here -->

Added _basic_ support for [_CycloneDX_ Specification-1.6](https://github.com/CycloneDX/specification/releases/tag/1.6).

* Changed
* Method `\CycloneDX\Core\Spec\SpecFactory::makeForVersion()` supports _CycloneDX_ Specification-1.6 now ([#421] via [#422])
* Classes `\CycloneDX\Core\Serialization\{DOM,JSON}\Normalizers\*` support _CycloneDX_ Specification-1.6 now ([#421] via [#422])
* Classes `\CycloneDX\Core\Validation\Validators\*` support _CycloneDX_ Specification-1.6 now ([#421] via [#422])
* Added
* Namespace `\CycloneDX\Core\Enums`
* Enum `ComponentType` got new cases ([#421] via [#422])
New: `CryptographicAsset`
* Enum `ExternalReferenceType` got new cases ([#421] via [#422])
New: `SourceDistribution`, `ElectronicSignature`, `DigitalSignature`, `RFC9116`
* Namespace `\CycloneDX\Core\Spec`
* New method `SpecFactory::make1dot6()` to reflect _CycloneDX_ Specification-1.6 ([#421] via [#422])
* Enum `Version` got new case `v1dot6` to reflect _CycloneDX_ Specification-1.6 ([#421] via [#422])
* Style
* Applied latest PHP Coding Standards (via [#415])

[#415]: https://github.com/CycloneDX/cyclonedx-php-library/pull/415
[#421]: https://github.com/CycloneDX/cyclonedx-php-library/issues/421
[#422]: https://github.com/CycloneDX/cyclonedx-php-library/pull/422

## 3.1.2 - 2024-03-18

Expand Down
2 changes: 1 addition & 1 deletion examples/build_and_serialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

// endregion build the BOM

$spec = \CycloneDX\Core\Spec\SpecFactory::make1dot5();
$spec = \CycloneDX\Core\Spec\SpecFactory::make1dot6();

$prettyPrint = false;

Expand Down
4 changes: 3 additions & 1 deletion res/schema/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ some schema for offline use as download via [script](../../tools/schema-download
original sources: <https://github.com/CycloneDX/specification/tree/master/schema>

Currently using version
[fd4d383658196992364e5d62568a48c431ace515](https://github.com/CycloneDX/specification/tree/fd4d383658196992364e5d62568a48c431ace515)
[55343ba19dee1785acf1ce9191540d5fd7b590db](https://github.com/CycloneDX/specification/commit/55343ba19dee1785acf1ce9191540d5fd7b590db)

| file | note |
|------|------|
Expand All @@ -14,10 +14,12 @@ Currently using version
| [`bom-1.3.SNAPSHOT.xsd`](bom-1.3.SNAPSHOT.xsd) | applied changes: 1 |
| [`bom-1.4.SNAPSHOT.xsd`](bom-1.4.SNAPSHOT.xsd) | applied changes: 1 |
| [`bom-1.5.SNAPSHOT.xsd`](bom-1.5.SNAPSHOT.xsd) | applied changes: 1 |
| [`bom-1.6.SNAPSHOT.xsd`](bom-1.6.SNAPSHOT.xsd) | applied changes: 1 |
| [`bom-1.2.SNAPSHOT.schema.json`](bom-1.2.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`bom-1.3.SNAPSHOT.schema.json`](bom-1.3.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`bom-1.4.SNAPSHOT.schema.json`](bom-1.4.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`bom-1.5.SNAPSHOT.schema.json`](bom-1.5.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`bom-1.6.SNAPSHOT.schema.json`](bom-1.6.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`bom-1.2-strict.SNAPSHOT.schema.json`](bom-1.2-strict.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`bom-1.3-strict.SNAPSHOT.schema.json`](bom-1.3-strict.SNAPSHOT.schema.json) | applied changes: 2,3,4 |
| [`spdx.SNAPSHOT.xsd`](spdx.SNAPSHOT.xsd) | |
Expand Down
5,673 changes: 5,673 additions & 0 deletions res/schema/bom-1.6.SNAPSHOT.schema.json

Large diffs are not rendered by default.

8,290 changes: 8,290 additions & 0 deletions res/schema/bom-1.6.SNAPSHOT.xsd

Large diffs are not rendered by default.

Loading
Loading