@next-core/dev-dependencies 1.18.60 → 1.19.1
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<?xml version="1.0" ?>
|
|
2
2
|
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
|
|
3
|
-
<coverage lines-valid="
|
|
3
|
+
<coverage lines-valid="414" lines-covered="406" line-rate="0.9806" branches-valid="154" branches-covered="145" branch-rate="0.9415" timestamp="1724746391280" complexity="0" version="0.1">
|
|
4
4
|
<sources>
|
|
5
5
|
<source>/home/runner/work/next-core/next-core/packages/dev-dependencies</source>
|
|
6
6
|
</sources>
|
|
7
7
|
<packages>
|
|
8
|
-
<package name="main" line-rate="0.
|
|
8
|
+
<package name="main" line-rate="0.9806" branch-rate="0.9415">
|
|
9
9
|
<classes>
|
|
10
10
|
<class name="addMocksForBrickIcons.js" filename="patches/addMocksForBrickIcons.js" line-rate="1" branch-rate="1">
|
|
11
11
|
<methods>
|
|
@@ -786,6 +786,32 @@
|
|
|
786
786
|
<line number="12" hits="1" branch="false"/>
|
|
787
787
|
</lines>
|
|
788
788
|
</class>
|
|
789
|
+
<class name="updateRenovateExecutionMode.js" filename="patches/updateRenovateExecutionMode.js" line-rate="1" branch-rate="1">
|
|
790
|
+
<methods>
|
|
791
|
+
<method name="updateRenovateExecutionMode" hits="3" signature="()V">
|
|
792
|
+
<lines>
|
|
793
|
+
<line number="4" hits="3"/>
|
|
794
|
+
</lines>
|
|
795
|
+
</method>
|
|
796
|
+
<method name="(anonymous_1)" hits="3" signature="()V">
|
|
797
|
+
<lines>
|
|
798
|
+
<line number="9" hits="3"/>
|
|
799
|
+
</lines>
|
|
800
|
+
</method>
|
|
801
|
+
</methods>
|
|
802
|
+
<lines>
|
|
803
|
+
<line number="1" hits="1" branch="false"/>
|
|
804
|
+
<line number="2" hits="1" branch="false"/>
|
|
805
|
+
<line number="5" hits="3" branch="false"/>
|
|
806
|
+
<line number="6" hits="3" branch="false"/>
|
|
807
|
+
<line number="8" hits="3" branch="false"/>
|
|
808
|
+
<line number="9" hits="3" branch="false"/>
|
|
809
|
+
<line number="12" hits="3" branch="true" condition-coverage="100% (2/2)"/>
|
|
810
|
+
<line number="17" hits="1" branch="false"/>
|
|
811
|
+
<line number="19" hits="1" branch="false"/>
|
|
812
|
+
<line number="23" hits="1" branch="false"/>
|
|
813
|
+
</lines>
|
|
814
|
+
</class>
|
|
789
815
|
<class name="updateRenovateFileFilters.js" filename="patches/updateRenovateFileFilters.js" line-rate="1" branch-rate="1">
|
|
790
816
|
<methods>
|
|
791
817
|
<method name="updateRenovateFileFilters" hits="3" signature="()V">
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.19.1](https://github.com/easyops-cn/next-core/compare/@next-core/dev-dependencies@1.19.0...@next-core/dev-dependencies@1.19.1) (2024-08-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @next-core/dev-dependencies
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [1.19.0](https://github.com/easyops-cn/next-core/compare/@next-core/dev-dependencies@1.18.60...@next-core/dev-dependencies@1.19.0) (2024-08-26)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* update renovate post execution mode ([37d8895](https://github.com/easyops-cn/next-core/commit/37d88959be4019c1e6a57eb9f045cdf05f503b1e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [1.18.60](https://github.com/easyops-cn/next-core/compare/@next-core/dev-dependencies@1.18.59...@next-core/dev-dependencies@1.18.60) (2024-08-26)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @next-core/dev-dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/dev-dependencies",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.1",
|
|
4
4
|
"description": "Dev dependencies for brick-next related packages",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/dev-dependencies",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"@babel/core": "^7.20.5",
|
|
22
22
|
"@next-core/babel-preset-next": "^0.9.16",
|
|
23
23
|
"@next-core/babel-preset-prismjs": "^1.0.20",
|
|
24
|
-
"@next-core/brick-container": "^2.96.
|
|
25
|
-
"@next-core/brick-dll": "^2.47.
|
|
24
|
+
"@next-core/brick-container": "^2.96.25",
|
|
25
|
+
"@next-core/brick-dll": "^2.47.20",
|
|
26
26
|
"@next-core/brick-scripts": "^3.0.8",
|
|
27
27
|
"@next-core/browserslist-config-next": "^0.1.4",
|
|
28
|
-
"@next-core/build-config-factory": "^2.26.
|
|
28
|
+
"@next-core/build-config-factory": "^2.26.9",
|
|
29
29
|
"@next-core/build-next-libs": "^0.2.16",
|
|
30
30
|
"@next-core/custom-antd-styles": "^1.27.1",
|
|
31
31
|
"@next-core/eslint-config-next": "^1.0.40",
|
|
32
32
|
"@next-core/jest-config-factory": "^0.4.14",
|
|
33
33
|
"@next-core/rollup-config-factory": "^2.8.0",
|
|
34
34
|
"@next-core/webpack-config-factory": "^2.25.1",
|
|
35
|
-
"@next-dll/ace": "^2.0.
|
|
35
|
+
"@next-dll/ace": "^2.0.771",
|
|
36
36
|
"@next-dll/d3": "^2.0.83",
|
|
37
37
|
"@next-dll/echarts": "^2.0.84",
|
|
38
|
-
"@next-dll/editor-bricks-helper": "^0.38.
|
|
39
|
-
"@next-dll/react-dnd": "^0.1.
|
|
38
|
+
"@next-dll/editor-bricks-helper": "^0.38.116",
|
|
39
|
+
"@next-dll/react-dnd": "^0.1.709",
|
|
40
40
|
"@testing-library/jest-dom": "^5.16.5",
|
|
41
41
|
"@testing-library/react": "^12.1.5",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^5.46.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"enzyme": "^3.11.0",
|
|
86
86
|
"lolex": "^5.1.2"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "f6e5ae6a8ca1f99be96c0d7f2bd5bcd3ab84a301"
|
|
89
89
|
}
|
package/patch.js
CHANGED
|
@@ -30,6 +30,7 @@ const {
|
|
|
30
30
|
enableLernaWithNx,
|
|
31
31
|
updateRenovateForV2,
|
|
32
32
|
updateRenovatePostExecutionMode,
|
|
33
|
+
updateRenovateExecutionMode,
|
|
33
34
|
} = require("./patches");
|
|
34
35
|
|
|
35
36
|
function initAndGetDevDependenciesVersion() {
|
|
@@ -209,6 +210,10 @@ module.exports = async function patch() {
|
|
|
209
210
|
updateRenovatePostExecutionMode();
|
|
210
211
|
}
|
|
211
212
|
|
|
213
|
+
if (semver.lt(currentRenewVersion, "1.19.0")) {
|
|
214
|
+
updateRenovateExecutionMode();
|
|
215
|
+
}
|
|
216
|
+
|
|
212
217
|
updateDevDependenciesVersion();
|
|
213
218
|
};
|
|
214
219
|
|
package/patches/index.js
CHANGED
|
@@ -23,3 +23,4 @@ exports.onlyAutoMergePatchVersions = require("./onlyAutoMergePatchVersions");
|
|
|
23
23
|
exports.enableLernaWithNx = require("./enableLernaWithNx");
|
|
24
24
|
exports.updateRenovateForV2 = require("./updateRenovateForV2");
|
|
25
25
|
exports.updateRenovatePostExecutionMode = require("./updateRenovatePostExecutionMode");
|
|
26
|
+
exports.updateRenovateExecutionMode = require("./updateRenovateExecutionMode");
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const { readJson, writeJsonFile } = require("../utils");
|
|
3
|
+
|
|
4
|
+
function updateRenovateExecutionMode() {
|
|
5
|
+
const renovateJsonPath = path.resolve("renovate.json");
|
|
6
|
+
const renovateJson = readJson(renovateJsonPath);
|
|
7
|
+
|
|
8
|
+
const nextCoreGroup = renovateJson.packageRules.find(
|
|
9
|
+
(item) => item.groupName === "next-core packages"
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
if (
|
|
13
|
+
nextCoreGroup &&
|
|
14
|
+
nextCoreGroup.postUpgradeTasks &&
|
|
15
|
+
nextCoreGroup.postUpgradeTasks.executionMode !== "branch"
|
|
16
|
+
) {
|
|
17
|
+
nextCoreGroup.postUpgradeTasks.executionMode = "branch";
|
|
18
|
+
|
|
19
|
+
writeJsonFile(renovateJsonPath, renovateJson);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
module.exports = updateRenovateExecutionMode;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const updateRenovateExecutionMode = require("./updateRenovateExecutionMode");
|
|
2
|
+
const { writeJsonFile, readJson } = require("../utils");
|
|
3
|
+
|
|
4
|
+
jest.mock("../utils");
|
|
5
|
+
|
|
6
|
+
describe("updateRenovateExecutionMode", () => {
|
|
7
|
+
afterEach(() => {
|
|
8
|
+
jest.clearAllMocks();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it("should ignore if no next core group", () => {
|
|
12
|
+
readJson.mockReturnValueOnce({
|
|
13
|
+
packageRules: [{}],
|
|
14
|
+
});
|
|
15
|
+
updateRenovateExecutionMode();
|
|
16
|
+
expect(writeJsonFile).not.toBeCalled();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it("should ignore if no postUpgradeTasks", () => {
|
|
20
|
+
readJson.mockReturnValueOnce({
|
|
21
|
+
packageRules: [
|
|
22
|
+
{
|
|
23
|
+
groupName: "next-core packages",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
});
|
|
27
|
+
updateRenovateExecutionMode();
|
|
28
|
+
expect(writeJsonFile).not.toBeCalled();
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it("should update executionMode", () => {
|
|
32
|
+
readJson.mockReturnValueOnce({
|
|
33
|
+
packageRules: [
|
|
34
|
+
{
|
|
35
|
+
groupName: "next-core packages",
|
|
36
|
+
postUpgradeTasks: {
|
|
37
|
+
commands: [],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
});
|
|
42
|
+
updateRenovateExecutionMode();
|
|
43
|
+
expect(writeJsonFile).toBeCalledWith(
|
|
44
|
+
expect.stringContaining("renovate.json"),
|
|
45
|
+
{
|
|
46
|
+
packageRules: [
|
|
47
|
+
{
|
|
48
|
+
groupName: "next-core packages",
|
|
49
|
+
postUpgradeTasks: {
|
|
50
|
+
commands: [],
|
|
51
|
+
executionMode: "branch",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
});
|
|
58
|
+
});
|