Skip to content

Commit f9191e1

Browse files
authored
fix: PackageUrlFactory generic default (#1076)
## Fixed * Added `Factories.PackageUrlFactory`'s generic type's default back in --------- Signed-off-by: Jan Kowalleck <[email protected]>
1 parent f45a49a commit f9191e1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: HISTORY.md

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file.
66

77
<!-- add unreleased items here -->
88

9+
## 6.8.2 -- 2024-05-21
10+
11+
* Fixed
12+
* Added `Factories.PackageUrlFactory`'s generic type's default back in (via [#1076])
13+
14+
[#1076]: https://github.com/CycloneDX/cyclonedx-javascript-library/pull/1076
15+
916
## 6.8.1 -- 2024-05-21
1017

1118
* Fixed

Diff for: src/factories/packageUrl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { PackageUrlQualifierNames } from '../_helpers/packageUrl'
2323
import { ExternalReferenceType } from '../enums/externalReferenceType'
2424
import type { Component } from '../models/component'
2525

26-
export class PackageUrlFactory<PurlType extends PackageURL['type']> {
26+
export class PackageUrlFactory<PurlType extends PackageURL['type'] = PackageURL['type']> {
2727
readonly #type: PurlType
2828

2929
constructor (type: PurlType) {

0 commit comments

Comments
 (0)