Skip to content

Commit 30a5bf9

Browse files
v4.1.3 (#376)
* Set Content-Type in issueBulkOperations.submitBulkTransition to work around api issue (#375) * Set Content-Type in issueBulkOperations.submitBulkTransition to work around api issue. Fixes #374 * Fix test typescript build * Add getAvailableTransitions tests * v4.1.3 * Changelog updated --------- Co-authored-by: Michael "Mike" Ferris <[email protected]>
1 parent 8637655 commit 30a5bf9

14 files changed

+213
-79
lines changed

Diff for: .github/workflows/publish.yml

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
push:
44
tags:
55
- 'v*.*.*'
6-
branches:
7-
- master
86

97
env:
108
NODE_VERSION: '18'

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Jira.js changelog
22

3+
### 4.1.3
4+
5+
- **Fix:** Fixed failed `issueBulkOperations.getAvailableTransitions` method call (problem from jira side with headers). Thanks to Michael "Mike" Ferris ([Cellule](https://github.com/Cellule)) for reporting this issue ([#374](https://github.com/MrRefactoring/jira.js/issues/374)) and fix ([#375](https://github.com/MrRefactoring/jira.js/pull/375))
6+
37
### 4.1.2
48

59
- **Fix:** Fixed compilation issues for projects using the `Plans.updatePlan` method in `Version3Client`. Thanks to Jakub Gladykowski ([gladykov](https://github.com/gladykov)) for reporting this issue ([#370](https://github.com/MrRefactoring/jira.js/issues/370)).

Diff for: package-lock.json

+59-59
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jira.js",
3-
"version": "4.1.2",
3+
"version": "4.1.3",
44
"description": "A comprehensive JavaScript/TypeScript library designed for both Node.JS and browsers, facilitating seamless interaction with the Atlassian Jira API.",
55
"main": "out/index.js",
66
"types": "out/index.d.ts",
@@ -19,7 +19,9 @@
1919
"library"
2020
],
2121
"scripts": {
22-
"build": "tsc",
22+
"build": "npm run build:src && npm run build:tests",
23+
"build:src": "tsc --project tsconfig.json",
24+
"build:tests": "tsc --project tests/tsconfig.json",
2325
"prettier": "prettier --write src",
2426
"lint": "npm run lint:tests && npm run lint:examples && npm run lint:src:agile && npm run lint:src:clients && npm run lint:src:services && npm run lint:src:version2 && npm run lint:src:version3 && npm run lint:src:files",
2527
"lint:tests": "npm run lint:base -- tests",
@@ -59,17 +61,17 @@
5961
"devDependencies": {
6062
"@types/node": "^18.19.86",
6163
"@types/sinon": "^17.0.4",
62-
"@typescript-eslint/eslint-plugin": "^8.29.0",
63-
"@typescript-eslint/parser": "^8.29.0",
64-
"dotenv": "^16.4.7",
64+
"@typescript-eslint/eslint-plugin": "^8.30.0",
65+
"@typescript-eslint/parser": "^8.30.0",
66+
"dotenv": "^16.5.0",
6567
"eslint": "^8.57.1",
6668
"eslint-config-airbnb-base": "^15.0.0",
6769
"eslint-import-resolver-typescript": "^3.10.0",
6870
"eslint-plugin-import": "^2.31.0",
6971
"prettier": "^3.5.3",
7072
"prettier-plugin-jsdoc": "^1.3.2",
7173
"sinon": "^18.0.1",
72-
"typedoc": "^0.28.1",
74+
"typedoc": "^0.28.2",
7375
"typescript": "^5.8.3",
7476
"vite-tsconfig-paths": "^5.1.4",
7577
"vitest": "^3.1.1"

Diff for: src/version3/issueBulkOperations.ts

+3
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ export class IssueBulkOperations {
355355
endingBefore: parameters.endingBefore,
356356
startingAfter: parameters.startingAfter,
357357
},
358+
headers: {
359+
'Content-Type': 'application/json',
360+
},
358361
};
359362

360363
return this.client.sendRequest(config, callback);

Diff for: tests/integration/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from '@tests/constants';
2-
export * as Utils from '@tests/utils';
1+
export * from '@tests/integration/constants';
2+
export * as Utils from '@tests/integration/utils';

Diff for: tests/integration/utils/createSoftwareProject.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ export const createSoftwareProject = async () => {
66
const client = getVersion2Client();
77
const currentUser = await client.myself.getCurrentUser();
88

9-
if (!currentUser.accountId) throw new Error("Couldn't get the current user's account ID", { cause: { currentUser } });
9+
if (!currentUser.accountId) {
10+
throw new Error(
11+
"Couldn't get the current user's account ID",
12+
// @ts-expect-error -- Requires to use lib ES2022+ in tsconfig to use "cause"
13+
{ cause: { currentUser } },
14+
);
15+
}
1016

1117
return client.projects
1218
.createProject({

Diff for: tests/integration/version2/issueComments.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test.sequential('should update comment', async ({ expect }) => {
4343

4444
const updatedComment = await client.issueComments.updateComment({
4545
issueIdOrKey: issue.key,
46-
id: comment.id,
46+
id: comment.id!,
4747
comment: 'updated comment',
4848
});
4949

0 commit comments

Comments
 (0)