@dotcom-tool-kit/conflict 2.0.0-beta.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/lib/index.js +4 -5
- package/package.json +5 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
### Dependencies
|
|
4
|
+
|
|
5
|
+
* The following workspace dependencies were updated
|
|
6
|
+
* dependencies
|
|
7
|
+
* @dotcom-tool-kit/plugin bumped from ^1.0.0 to ^1.1.0
|
|
8
|
+
|
|
9
|
+
## [2.0.0](https://github.com/Financial-Times/dotcom-tool-kit/compare/conflict-v1.0.1...conflict-v2.0.0) (2025-10-28)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### ⚠ BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
* declare Node engines in all libraries
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* declare Node engines in all libraries ([648d4d0](https://github.com/Financial-Times/dotcom-tool-kit/commit/648d4d0267d329655056ad38614b6659c80f5409))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Dependencies
|
|
22
|
+
|
|
23
|
+
* The following workspace dependencies were updated
|
|
24
|
+
* dependencies
|
|
25
|
+
* @dotcom-tool-kit/plugin bumped from ^1.1.0 to ^2.0.0
|
|
26
|
+
|
|
27
|
+
## 1.0.0 (2024-09-10)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* move conflict into its own package ([8ab46a0](https://github.com/Financial-Times/dotcom-tool-kit/commit/8ab46a06370d32fd19300fd6a58a775e04a96717))
|
package/lib/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isConflict = isConflict;
|
|
4
|
+
exports.findConflictingEntries = findConflictingEntries;
|
|
5
|
+
exports.findConflicts = findConflicts;
|
|
6
|
+
exports.withoutConflicts = withoutConflicts;
|
|
4
7
|
function isConflict(thing) {
|
|
5
8
|
return Boolean(thing.conflicting);
|
|
6
9
|
}
|
|
7
|
-
exports.isConflict = isConflict;
|
|
8
10
|
function findConflictingEntries(items) {
|
|
9
11
|
return Object.entries(items).filter((entry) => isConflict(entry[1]));
|
|
10
12
|
}
|
|
11
|
-
exports.findConflictingEntries = findConflictingEntries;
|
|
12
13
|
function findConflicts(items) {
|
|
13
14
|
const conflicts = [];
|
|
14
15
|
for (const item of items) {
|
|
@@ -18,7 +19,6 @@ function findConflicts(items) {
|
|
|
18
19
|
}
|
|
19
20
|
return conflicts;
|
|
20
21
|
}
|
|
21
|
-
exports.findConflicts = findConflicts;
|
|
22
22
|
function withoutConflicts(items) {
|
|
23
23
|
const nonConflicts = [];
|
|
24
24
|
for (const item of items) {
|
|
@@ -28,4 +28,3 @@ function withoutConflicts(items) {
|
|
|
28
28
|
}
|
|
29
29
|
return nonConflicts;
|
|
30
30
|
}
|
|
31
|
-
exports.withoutConflicts = withoutConflicts;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcom-tool-kit/conflict",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib",
|
|
6
6
|
"scripts": {
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dotcom-tool-kit/plugin": "2.0.0
|
|
13
|
+
"@dotcom-tool-kit/plugin": "^2.0.0"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=20.x"
|
|
14
17
|
}
|
|
15
18
|
}
|