Skip to content

Commit 7d04a40

Browse files
Release v4.0.2 (MrRefactoring#325)
1 parent a9fbcc1 commit 7d04a40

File tree

13 files changed

+668
-473
lines changed

13 files changed

+668
-473
lines changed

Diff for: CHANGELOG.md

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

3+
### 4.0.2
4+
5+
- `getAllProjects` in README and examples replaced to `searchProjects`. Thanks to [Alexander Pivovarov](https://github.com/bladerunner2020) for reporting [the issue](https://github.com/MrRefactoring/jira.js/issues/323).
6+
- Personal access token link changed to actual in README
7+
- Test platform changed from `ava` to `vitest`
8+
- Dependencies updated
9+
- Vulnerabilities fixes
10+
311
### 4.0.1
412

513
- Vulnerabilities fixes

Diff for: README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ const client = new Version3Client({
111111
});
112112
```
113113

114-
##### [Personal access token](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html)
114+
##### [Personal access token](https://id.atlassian.com/manage-profile/security/api-tokens)
115+
116+
To create a personal access token, use this link: [https://id.atlassian.com/manage-profile/security/api-tokens](https://id.atlassian.com/manage-profile/security/api-tokens)
115117

116118
```typescript
117119
import { Version3Client } from 'jira.js';
@@ -175,7 +177,7 @@ const client = new Version3Client({
175177
});
176178
177179
async function main() {
178-
const projects = await client.projects.getAllProjects();
180+
const { values: projects } = await client.projects.searchProjects();
179181
180182
if (projects.length) {
181183
const project = projects[0];

Diff for: examples/package-lock.json

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

Diff for: examples/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"license": "MIT",
1414
"devDependencies": {
15-
"@types/node": "^22.5.2",
15+
"@types/node": "^22.5.4",
1616
"ts-node": "^10.9.2",
1717
"typescript": "^5.5.4"
1818
},

Diff for: examples/src/basic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const client = new Version3Client({
99
});
1010

1111
async function main() {
12-
const projects = await client.projects.getAllProjects();
12+
const { values: projects } = await client.projects.searchProjects();
1313

1414
if (projects.length) {
1515
const project = projects[0];

Diff for: examples/src/utils/createIssue.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Version3Client } from 'jira.js';
22

33
export const createIssue = async (client: Version3Client) => {
4-
const projects = await client.projects.getAllProjects();
4+
const { values: projects } = await client.projects.searchProjects();
55

66
if (projects.length) {
77
const { key } = projects[0];

0 commit comments

Comments
 (0)