Skip to content

Commit

Permalink
chore(deps): remove dep packageurl-js (#220)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck authored Nov 20, 2024
1 parent fe671bb commit 4b4b314
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
* Dependencies
* Upgraded runtime-dependency `[email protected]`, was `@6.0.1` (via [#141])
This was done to incorporate non-breaking upstream changes and fixes.
* Removed unused runtime dependency `packageurl-js` (via [#220])
* Build
* Use _TypeScript_ `v5.6.2` now, was `v5.5.3` (via [#160], [#178])
* Use _@yarnpkg/builder_ `v4.2.0` now, was `v4.1.1` (via [#164], [#172])
Expand All @@ -18,6 +19,7 @@ All notable changes to this project will be documented in this file.
[#164]: https://github.com/CycloneDX/cyclonedx-node-yarn/pull/164
[#172]: https://github.com/CycloneDX/cyclonedx-node-yarn/pull/172
[#178]: https://github.com/CycloneDX/cyclonedx-node-yarn/pull/178
[#220]: https://github.com/CycloneDX/cyclonedx-node-yarn/pull/220

## 1.0.2 -- 2024-07-15

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"clipanion": "^4.0.0-rc.3",
"hosted-git-info": "7.0.2",
"normalize-package-data": "6.0.2",
"packageurl-js": "1.2.1",
"typanion": "^3.14.0",
"xmlbuilder2": "3.1.1"
},
Expand Down
3 changes: 1 addition & 2 deletions src/builders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { Cache, type FetchOptions, type Locator, type LocatorHash, type Package,
import { ppath } from '@yarnpkg/fslib'
import { gitUtils as YarnPluginGitUtils } from '@yarnpkg/plugin-git'
import normalizePackageData from 'normalize-package-data'
import type { PackageURL } from 'packageurl-js'

import { getBuildtimeInfo } from './_buildtimeInfo'
import { isString, tryRemoveSecretsFromUrl, trySanitizeGitUrl } from './_helpers'
Expand Down Expand Up @@ -256,7 +255,7 @@ export class BomBuilder {
return component
}

private makePurl (component: Component): PackageURL | undefined {
private makePurl (component: Component): ReturnType<BomBuilder['purlFactory']['makeFromComponent']> {
const purl = this.purlFactory.makeFromComponent(component, this.reproducible)
if (purl === undefined) {
return undefined
Expand Down

0 comments on commit 4b4b314

Please sign in to comment.