Skip to content

Commit 9d1b6e0

Browse files
authored
feat!: remove deprecated reexports (#1377)
<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅 You can expedite processing of your PR by using this template to provide context and additional information. Before actually opening a PR please make sure that it does NOT fall into any of the following categories 🚫 Spam PRs (accidental or intentional) - these will result in a 30-days or even ∞ ban from interacting with the project depending on reoccurrence and severity. 🚫 Lazy typo fixing PRs - if you fix a typo in a file, your PR will only be merged if all other typos in the same file are also fixed with the same PR 🚫 If you fail to provide any _Description_ below, your PR will be considered spam. If you do not check the _Affirmation_ box below, your PR will not be merged. 🚫 If you do not check one of the _AI Tool Disclosure_ boxes below, your PR will not be merged. If you used AI tools to assist you in writing code, but fail to provide the required disclosure, your PR will not be merged. 🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅--> ### Description <!-- ✍️--> in #1343 some contrib implementations were moved, and the old exports were kept. they are marked deprecated -- and now the were removed * Removed * Entrypoint `Builders` (via [#1377]) * Entrypoint `Factories` (via [#1377]) * Entrypoint `Utils` (via [#1377]) * Deprecated symbol `Builders` ([#1346] via [#1377]) * Deprecated symbol `Builders.FromNodePackageJson` ([#1346] via [#1377]) * Deprecated symbol `Builders.FromNodePackageJson.ToolBuilder` ([#1346] via [#1377]) Use `Contrib.FromNodePackageJson.Builders.ToolBuilder` instead. * Deprecated symbol `Builders.FromNodePackageJson.ComponentBuilder` ([#1346] via [#1377]) Use `Contrib.FromNodePackageJson.Builders.ComponentBuilder` instead. * Deprecated symbol `Factories` ([#1346] via [#1377]) * Deprecated symbol `Factories.FromNodePackageJson` ([#1346] via [#1377]) * Deprecated symbol `Factories.FromNodePackageJson.ExternalReferenceFactory` ([#1346] via [#1377]) Use `Contrib.FromNodePackageJson.Factories.ExternalReferenceFactory` instead. * Deprecated symbol `Factories.FromNodePackageJson.PackageUrlFactory` ([#1346] via [#1377]) Use `Contrib.FromNodePackageJson.Factories.PackageUrlFactory` instead. * Deprecated symbol `Factories.LicenseFactory` ([#1346] via [#1377]) Use `Contrib.License.Factories.LicenseFactory` instead. * Deprecated symbol `Factories.PackageUrlFactory` ([#1346] via [#1377]) Use `Contrib.PackageUrl.Factories.PackageUrlFactory` instead. * Deprecated symbol `Types.NodePackageJson` ([#1346] via [#1377]) Use `Contrib.FromNodePackageJson.Types.NodePackageJson` instead. * Deprecated symbol `Types.assertNodePackageJson` ([#1346] via [#1377]) Use `Contrib.FromNodePackageJson.Types.assertNodePackageJson` instead. * Deprecated symbol `Types.isNodePackageJson` ([#1346] via [#1377]) Use `Contrib.FromNodePackageJson.Types.isNodePackageJson` instead. * Deprecated symbol `Utils` ([#1346] via [#1377]) * Deprecated symbol `Utils.BomUtility` ([#1346] via [#1377]) * Deprecated symbol `Utils.BomUtility.randomSerialNumber` ([#1346] via [#1377]) Use `Contrib.Bom.Utils.randomSerialNumber` instead. * Deprecated symbol `Utils.LicenseUtility` ([#1346] via [#1377]) * Deprecated symbol `Utils.LicenseUtility.FsUtils` ([#1346] via [#1377]) Use `Contrib.License.Utils.FsUtils` instead. * Deprecated symbol `Utils.LicenseUtility.PathUtils` ([#1346] via [#1377]) * Use `Contrib.License.Utils.PathUtils` instead. * Deprecated symbol `Utils.LicenseUtility.FileAttachment` ([#1346] via [#1377]) Use `Contrib.License.Utils.FileAttachment` instead. * Deprecated symbol `Utils.LicenseUtility.ErrorReporter` ([#1346] via [#1377]) Use `Contrib.License.Utils.ErrorReporter` instead. * Deprecated symbol `Utils.LicenseUtility.LicenseEvidenceGatherer` ([#1346] via [#1377]) Use `Contrib.License.Utils.LicenseEvidenceGatherer` instead. * Deprecated symbol `Utils.NpmjsUtility` ([#1346] via [#1377]) * Deprecated symbol `Utils.NpmjsUtility.parsePackageIntegrity` ([#1346] via [#1377]) Use `Contrib.FromNodePackageJson.Utils.parsePackageIntegrity` instead. * Deprecated symbol `Utils.NpmjsUtility.defaultRegistryMatcher` ([#1346] via [#1377]) Use `Contrib.FromNodePackageJson.Utils.defaultRegistryMatcher` instead. fixes: #1346 ### AI Tool Disclosure - [x] My contribution does not include any AI-generated content - [ ] My contribution includes AI-generated content, as disclosed below: - AI Tools: `[e.g. GitHub CoPilot, ChatGPT, JetBrains Junie etc.]` - LLMs and versions: `[e.g. GPT-4.1, Claude Haiku 4.5, Gemini 2.5 Pro etc.]` - Prompts: `[Summarize the key prompts or instructions given to the AI tools]` ### Affirmation - [x] My code follows the [CONTRIBUTING.md](https://github.com/CycloneDX/cyclonedx-javascript-library/blob/main/CONTRIBUTING.md) guidelines
2 parents 241f5a5 + 4ed8754 commit 9d1b6e0

40 files changed

Lines changed: 209 additions & 905 deletions

.github/workflows/nodejs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,6 @@ jobs:
360360
- name: run example
361361
run: node -- 'example.${{ matrix.js-type }}'
362362
working-directory: ${{ env.EXAMPLE_DIR }}
363-
- name: run deprecated
364-
run: node -- 'deprecated.${{ matrix.js-type }}'
365-
working-directory: ${{ env.EXAMPLE_DIR }}
366363

367364
example-TS:
368365
needs: [ 'build' ]

HISTORY.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,61 @@ All notable changes to this project will be documented in this file.
66

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

9+
* BREAKING changes
10+
* Removed deprecated symbols
11+
* Removed
12+
* Entrypoint `Builders` (via [#1377])
13+
* Entrypoint `Factories` (via [#1377])
14+
* Entrypoint `Utils` (via [#1377])
15+
* Deprecated symbol `Builders` ([#1346] via [#1377])
16+
* Deprecated symbol `Builders.FromNodePackageJson` ([#1346] via [#1377])
17+
* Deprecated symbol `Builders.FromNodePackageJson.ToolBuilder` ([#1346] via [#1377])
18+
Use `Contrib.FromNodePackageJson.Builders.ToolBuilder` instead.
19+
* Deprecated symbol `Builders.FromNodePackageJson.ComponentBuilder` ([#1346] via [#1377])
20+
Use `Contrib.FromNodePackageJson.Builders.ComponentBuilder` instead.
21+
* Deprecated symbol `Factories` ([#1346] via [#1377])
22+
* Deprecated symbol `Factories.FromNodePackageJson` ([#1346] via [#1377])
23+
* Deprecated symbol `Factories.FromNodePackageJson.ExternalReferenceFactory` ([#1346] via [#1377])
24+
Use `Contrib.FromNodePackageJson.Factories.ExternalReferenceFactory` instead.
25+
* Deprecated symbol `Factories.FromNodePackageJson.PackageUrlFactory` ([#1346] via [#1377])
26+
Use `Contrib.FromNodePackageJson.Factories.PackageUrlFactory` instead.
27+
* Deprecated symbol `Factories.LicenseFactory` ([#1346] via [#1377])
28+
Use `Contrib.License.Factories.LicenseFactory` instead.
29+
* Deprecated symbol `Factories.PackageUrlFactory` ([#1346] via [#1377])
30+
Use `Contrib.PackageUrl.Factories.PackageUrlFactory` instead.
31+
* Deprecated symbol `Types.NodePackageJson` ([#1346] via [#1377])
32+
Use `Contrib.FromNodePackageJson.Types.NodePackageJson` instead.
33+
* Deprecated symbol `Types.assertNodePackageJson` ([#1346] via [#1377])
34+
Use `Contrib.FromNodePackageJson.Types.assertNodePackageJson` instead.
35+
* Deprecated symbol `Types.isNodePackageJson` ([#1346] via [#1377])
36+
Use `Contrib.FromNodePackageJson.Types.isNodePackageJson` instead.
37+
* Deprecated symbol `Utils` ([#1346] via [#1377])
38+
* Deprecated symbol `Utils.BomUtility` ([#1346] via [#1377])
39+
* Deprecated symbol `Utils.BomUtility.randomSerialNumber` ([#1346] via [#1377])
40+
Use `Contrib.Bom.Utils.randomSerialNumber` instead.
41+
* Deprecated symbol `Utils.LicenseUtility` ([#1346] via [#1377])
42+
* Deprecated symbol `Utils.LicenseUtility.FsUtils` ([#1346] via [#1377])
43+
Use `Contrib.License.Utils.FsUtils` instead.
44+
* Deprecated symbol `Utils.LicenseUtility.PathUtils` ([#1346] via [#1377])
45+
* Use `Contrib.License.Utils.PathUtils` instead.
46+
* Deprecated symbol `Utils.LicenseUtility.FileAttachment` ([#1346] via [#1377])
47+
Use `Contrib.License.Utils.FileAttachment` instead.
48+
* Deprecated symbol `Utils.LicenseUtility.ErrorReporter` ([#1346] via [#1377])
49+
Use `Contrib.License.Utils.ErrorReporter` instead.
50+
* Deprecated symbol `Utils.LicenseUtility.LicenseEvidenceGatherer` ([#1346] via [#1377])
51+
Use `Contrib.License.Utils.LicenseEvidenceGatherer` instead.
52+
* Deprecated symbol `Utils.NpmjsUtility` ([#1346] via [#1377])
53+
* Deprecated symbol `Utils.NpmjsUtility.parsePackageIntegrity` ([#1346] via [#1377])
54+
Use `Contrib.FromNodePackageJson.Utils.parsePackageIntegrity` instead.
55+
* Deprecated symbol `Utils.NpmjsUtility.defaultRegistryMatcher` ([#1346] via [#1377])
56+
Use `Contrib.FromNodePackageJson.Utils.defaultRegistryMatcher` instead.
957
* Build
1058
* Use _webpack_ `5.105.2` now, was `v5.103.0` (via [#1360], [#1374])
1159

60+
[#1346]: https://github.com/CycloneDX/cyclonedx-javascript-library/issues/1346
1261
[#1360]: https://github.com/CycloneDX/cyclonedx-javascript-library/pull/1360
1362
[#1374]: https://github.com/CycloneDX/cyclonedx-javascript-library/pull/1374
63+
[#1377]: https://github.com/CycloneDX/cyclonedx-javascript-library/pull/1377
1464

1565
## 9.4.1 -- 2025-12-04
1666

examples/node/javascript/deprecated.cjs

Lines changed: 0 additions & 60 deletions
This file was deleted.

examples/node/javascript/deprecated.mjs

Lines changed: 0 additions & 60 deletions
This file was deleted.

examples/node/typescript/example.cjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"scripts": {
2424
"prebuild": "tsc -b --clean",
2525
"build": "tsc -b",
26-
"example": "node dist/example.js && node dist/deprecated.js"
26+
"example": "node dist/example.js"
2727
}
2828
}

examples/node/typescript/example.cjs/src/deprecated.ts

Lines changed: 0 additions & 68 deletions
This file was deleted.

examples/node/typescript/example.mjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"scripts": {
2424
"prebuild": "tsc -b --clean",
2525
"build": "tsc -b",
26-
"example": "node dist/example.js && node dist/deprecated.js"
26+
"example": "node dist/example.js"
2727
}
2828
}

examples/node/typescript/example.mjs/src/deprecated.ts

Lines changed: 0 additions & 68 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,10 @@
145145
"default": "./dist.node/index.node.js"
146146
},
147147
"./package.json": "./package.json",
148-
"./Builders": {
149-
"types": "./dist.d/builders/index.node.d.ts",
150-
"default": "./dist.node/builders/index.node.js"
151-
},
152148
"./Enums": {
153149
"types": "./dist.d/enums/index.d.ts",
154150
"default": "./dist.node/enums/index.js"
155151
},
156-
"./Factories": {
157-
"types": "./dist.d/factories/index.node.d.ts",
158-
"default": "./dist.node/factories/index.node.js"
159-
},
160152
"./Models": {
161153
"types": "./dist.d/models/index.d.ts",
162154
"default": "./dist.node/models/index.js"
@@ -177,10 +169,6 @@
177169
"types": "./dist.d/types/index.d.ts",
178170
"default": "./dist.node/types/index.js"
179171
},
180-
"./Utils": {
181-
"types": "./dist.d/utils/index.node.d.ts",
182-
"default": "./dist.node/utils/index.node.js"
183-
},
184172
"./Validation": {
185173
"types": "./dist.d/validation/index.node.d.ts",
186174
"default": "./dist.node/validation/index.node.js"

0 commit comments

Comments
 (0)