semantic-release-minecraft 2.3.7 → 2.3.9
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/.github/workflows/release.yml +1 -1
- package/.oxfmtrc.json +28 -0
- package/.oxlintrc.json +27 -0
- package/.releaserc.json +4 -0
- package/CHANGELOG.md +12 -0
- package/dist/curseforge.js +11 -14
- package/dist/curseforge.js.map +1 -1
- package/package.json +7 -12
- package/src/curseforge.ts +11 -14
- package/src/prepare.ts +1 -1
- package/.prettierrc +0 -18
- package/eslint.config.js +0 -22
package/.oxfmtrc.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
|
3
|
+
"trailingComma": "es5",
|
|
4
|
+
"tabWidth": 4,
|
|
5
|
+
"singleQuote": true,
|
|
6
|
+
"experimentalSortImports": {
|
|
7
|
+
"groups": [
|
|
8
|
+
[
|
|
9
|
+
"^(?:@[^/].*|[A-Za-z].*)$"
|
|
10
|
+
],
|
|
11
|
+
[
|
|
12
|
+
"^@/.*$"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"^[./].*$"
|
|
16
|
+
]
|
|
17
|
+
],
|
|
18
|
+
"ignoreCase": true,
|
|
19
|
+
"newlinesBetween": true,
|
|
20
|
+
"sortSideEffects": false,
|
|
21
|
+
"partitionByComment": false,
|
|
22
|
+
"partitionByNewline": false,
|
|
23
|
+
"internalPattern": [
|
|
24
|
+
"^@/"
|
|
25
|
+
],
|
|
26
|
+
"order": "asc"
|
|
27
|
+
}
|
|
28
|
+
}
|
package/.oxlintrc.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
+
"plugins": [],
|
|
4
|
+
"categories": {
|
|
5
|
+
"correctness": "off"
|
|
6
|
+
},
|
|
7
|
+
"env": {
|
|
8
|
+
"builtin": true
|
|
9
|
+
},
|
|
10
|
+
"overrides": [
|
|
11
|
+
{
|
|
12
|
+
"files": [
|
|
13
|
+
"src/**/*.ts"
|
|
14
|
+
],
|
|
15
|
+
"rules": {
|
|
16
|
+
"curly": "off",
|
|
17
|
+
"no-unexpected-multiline": "off",
|
|
18
|
+
"unicorn/empty-brace-spaces": "off",
|
|
19
|
+
"unicorn/no-nested-ternary": "off",
|
|
20
|
+
"unicorn/number-literal-case": "off"
|
|
21
|
+
},
|
|
22
|
+
"plugins": [
|
|
23
|
+
"unicorn"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
package/.releaserc.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [2.3.9](https://github.com/pynickle/semantic-release-minecraft/compare/v2.3.8...v2.3.9) (2025-12-04)
|
|
2
|
+
|
|
3
|
+
### 🔧 Miscellaneous Changes
|
|
4
|
+
|
|
5
|
+
* update dependencies, use oxfmt and oxlint ([6b12a6d](https://github.com/pynickle/semantic-release-minecraft/commit/6b12a6da28151655c2d92bdd37e5d573f6f13673))
|
|
6
|
+
|
|
7
|
+
## [2.3.8](https://github.com/pynickle/semantic-release-minecraft/compare/v2.3.7...v2.3.8) (2025-11-20)
|
|
8
|
+
|
|
9
|
+
### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
* fix curseforge error with no dependency ([bfaa35d](https://github.com/pynickle/semantic-release-minecraft/commit/bfaa35d213dc1813bbc163bdfc7f00b8d840bcba))
|
|
12
|
+
|
|
1
13
|
## [2.3.7](https://github.com/pynickle/semantic-release-minecraft/compare/v2.3.6...v2.3.7) (2025-11-20)
|
|
2
14
|
|
|
3
15
|
## [2.3.6](https://github.com/pynickle/semantic-release-minecraft/compare/v2.3.5...v2.3.6) (2025-11-20)
|
package/dist/curseforge.js
CHANGED
|
@@ -70,11 +70,6 @@ function prepareMetadata(pluginConfig, context, strategy, curseforgeGameVersionI
|
|
|
70
70
|
changelog: lodash.template(curseforge?.changelog || context.nextRelease.notes)({ ...context, ...strategy }),
|
|
71
71
|
changelogType: curseforge?.changelog_type || 'markdown',
|
|
72
72
|
isMarkedForManualRelease: curseforge?.is_marked_for_manual_release || false,
|
|
73
|
-
relations: curseforge?.relations
|
|
74
|
-
? {
|
|
75
|
-
projects: curseforge?.relations,
|
|
76
|
-
}
|
|
77
|
-
: {},
|
|
78
73
|
};
|
|
79
74
|
if (curseforge?.relations) {
|
|
80
75
|
metadata.relations = {
|
|
@@ -87,16 +82,18 @@ function prepareMetadata(pluginConfig, context, strategy, curseforgeGameVersionI
|
|
|
87
82
|
}
|
|
88
83
|
else {
|
|
89
84
|
let projects = [];
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
85
|
+
if (pluginConfig.dependencies) {
|
|
86
|
+
for (const dependency of pluginConfig.dependencies) {
|
|
87
|
+
projects.push({
|
|
88
|
+
slug: dependency.slug,
|
|
89
|
+
projectId: dependency.curseforge_project_id,
|
|
90
|
+
type: DependencyTypeMap[dependency.type],
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
metadata.relations = {
|
|
94
|
+
projects,
|
|
95
|
+
};
|
|
96
96
|
}
|
|
97
|
-
metadata.relations = {
|
|
98
|
-
projects,
|
|
99
|
-
};
|
|
100
97
|
}
|
|
101
98
|
metadata.displayName =
|
|
102
99
|
resolveAndRenderTemplate([curseforge?.display_name, pluginConfig.display_name], {
|
package/dist/curseforge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curseforge.js","sourceRoot":"","sources":["../src/curseforge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B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1
1
|
{
|
|
2
2
|
"name": "semantic-release-minecraft",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.9",
|
|
4
4
|
"description": "Automated Release For Minecraft Project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"semantic-release",
|
|
@@ -13,20 +13,16 @@
|
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"scripts": {
|
|
16
|
-
"lint": "
|
|
17
|
-
"lint:fix": "
|
|
16
|
+
"lint": "npx oxlint ./src",
|
|
17
|
+
"lint:fix": "npx oxlint ./src --fix",
|
|
18
|
+
"fmt": "npx oxfmt ./src",
|
|
18
19
|
"build": "tsc",
|
|
19
|
-
"prepublishOnly": "npm run build",
|
|
20
20
|
"semantic-release": "semantic-release"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
|
|
24
24
|
"@types/node": "^24.10.1",
|
|
25
|
-
"@types/lodash": "^4.17.
|
|
26
|
-
"eslint": "^9.39.1",
|
|
27
|
-
"eslint-config-prettier": "^10.1.8",
|
|
28
|
-
"eslint-plugin-prettier": "^5.5.4",
|
|
29
|
-
"prettier": "^3.6.2",
|
|
25
|
+
"@types/lodash": "^4.17.21",
|
|
30
26
|
"semantic-release": "^25.0.2",
|
|
31
27
|
"@semantic-release/changelog": "^6.0.3",
|
|
32
28
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
@@ -34,8 +30,7 @@
|
|
|
34
30
|
"@semantic-release/npm": "^13.1.2",
|
|
35
31
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
36
32
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
37
|
-
"typescript": "^5.9.3"
|
|
38
|
-
"typescript-eslint": "^8.47.0"
|
|
33
|
+
"typescript": "^5.9.3"
|
|
39
34
|
},
|
|
40
35
|
"peerDependencies": {
|
|
41
36
|
"semantic-release": ">=18.0.0"
|
|
@@ -43,7 +38,7 @@
|
|
|
43
38
|
"dependencies": {
|
|
44
39
|
"axios": "^1.13.2",
|
|
45
40
|
"form-data": "^4.0.5",
|
|
46
|
-
"glob": "^
|
|
41
|
+
"glob": "^13.0.0",
|
|
47
42
|
"lodash": "^4.17.21"
|
|
48
43
|
}
|
|
49
44
|
}
|
package/src/curseforge.ts
CHANGED
|
@@ -141,11 +141,6 @@ function prepareMetadata(
|
|
|
141
141
|
changelogType: curseforge?.changelog_type || 'markdown',
|
|
142
142
|
isMarkedForManualRelease:
|
|
143
143
|
curseforge?.is_marked_for_manual_release || false,
|
|
144
|
-
relations: curseforge?.relations
|
|
145
|
-
? {
|
|
146
|
-
projects: curseforge?.relations,
|
|
147
|
-
}
|
|
148
|
-
: {},
|
|
149
144
|
};
|
|
150
145
|
|
|
151
146
|
if (curseforge?.relations) {
|
|
@@ -158,16 +153,18 @@ function prepareMetadata(
|
|
|
158
153
|
};
|
|
159
154
|
} else {
|
|
160
155
|
let projects = [];
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
156
|
+
if (pluginConfig.dependencies) {
|
|
157
|
+
for (const dependency of pluginConfig.dependencies) {
|
|
158
|
+
projects.push({
|
|
159
|
+
slug: dependency.slug,
|
|
160
|
+
projectId: dependency.curseforge_project_id,
|
|
161
|
+
type: DependencyTypeMap[dependency.type],
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
metadata.relations = {
|
|
165
|
+
projects,
|
|
166
|
+
};
|
|
167
167
|
}
|
|
168
|
-
metadata.relations = {
|
|
169
|
-
projects,
|
|
170
|
-
};
|
|
171
168
|
}
|
|
172
169
|
|
|
173
170
|
metadata.displayName =
|
package/src/prepare.ts
CHANGED
|
@@ -53,7 +53,7 @@ export async function getCurseForgeGameVersionIds(
|
|
|
53
53
|
const javaVersionNames = javaVersions.map(
|
|
54
54
|
(javaVersion: number) => `Java ${javaVersion}`
|
|
55
55
|
);
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
// get CurseForge game version IDs from mapped game versions
|
|
58
58
|
const gameVersionIds = findCurseForgeGameVersionIdsByNames(
|
|
59
59
|
map.game_versions,
|
package/.prettierrc
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"trailingComma": "es5",
|
|
3
|
-
"tabWidth": 4,
|
|
4
|
-
"singleQuote": true,
|
|
5
|
-
"importOrder": [
|
|
6
|
-
"^(?:@[^/].*|[A-Za-z].*)$",
|
|
7
|
-
"^@/.*$",
|
|
8
|
-
"^[./].*$"
|
|
9
|
-
],
|
|
10
|
-
"importOrderSortSpecifiers": true,
|
|
11
|
-
"importOrderParserPlugins": [
|
|
12
|
-
"typescript",
|
|
13
|
-
"decorators"
|
|
14
|
-
],
|
|
15
|
-
"plugins": [
|
|
16
|
-
"@trivago/prettier-plugin-sort-imports"
|
|
17
|
-
],
|
|
18
|
-
}
|
package/eslint.config.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import typescriptEslint from 'typescript-eslint';
|
|
2
|
-
import prettier from 'eslint-plugin-prettier';
|
|
3
|
-
import prettierConfig from 'eslint-config-prettier';
|
|
4
|
-
|
|
5
|
-
export default typescriptEslint.config({
|
|
6
|
-
files: ['src/**/*.ts'],
|
|
7
|
-
plugins: {
|
|
8
|
-
'@typescript-eslint': typescriptEslint.plugin,
|
|
9
|
-
prettier,
|
|
10
|
-
},
|
|
11
|
-
languageOptions: {
|
|
12
|
-
parser: typescriptEslint.parser,
|
|
13
|
-
parserOptions: {
|
|
14
|
-
project: true,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
rules: {
|
|
18
|
-
...typescriptEslint.configs.recommended.rules,
|
|
19
|
-
...prettierConfig.rules,
|
|
20
|
-
'prettier/prettier': ['error']
|
|
21
|
-
},
|
|
22
|
-
});
|