Skip to content

Commit cf114d4

Browse files
1.7.3 release candidat (#87)
1 parent f3d75d2 commit cf114d4

File tree

5 files changed

+1125
-1142
lines changed

5 files changed

+1125
-1142
lines changed

CHANGELOG.md

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

3+
### 1.7.3
4+
5+
- DEPENDENCIES: `atlassian-jwt` installed from npm instead git
6+
- DEPENDENCIES: Updated dependencies versions
7+
- README: Contributors section added, small redesign
8+
39
### 1.7.2
410

511
- FIX: console.log removed

README.md

+30-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# JavaScript JIRA API Client
1+
# JavaScript / TypeScript JIRA API Client
22

3-
A JavaScript/TypeScript wrapper for the JIRA REST API
3+
A JavaScript / TypeScript wrapper for the JIRA REST API
44

55
[![npm](https://img.shields.io/npm/v/jira.js.svg?style=flat-square)](https://www.npmjs.com/package/jira.js)
66
[![Downloads](https://img.shields.io/npm/dm/jira.js.svg?style=flat-square)](https://npmjs.com/jira.js)
@@ -28,21 +28,27 @@ yarn add jira.js
2828
### Create the JIRA client
2929

3030
```js
31-
// ES5
32-
var { Client } = require("jira.js");
33-
34-
// ES6
3531
import { Client } from "jira.js";
3632

3733
// Initialize
38-
var client = new Client({
34+
const client = new Client({
3935
host: "https://jira.somehost.com"
4036
});
4137
```
4238

43-
### Get all projects
39+
### Working with API (How to get a list of all projects, for example)
4440

4541
```js
42+
// Callbacks
43+
client.projects.getAllProjects({}, (err, data) => {
44+
if (err) {
45+
throw err;
46+
}
47+
48+
console.log(data);
49+
});
50+
51+
4652
// ES5/ES6
4753
client.projects
4854
.getAllProjects()
@@ -165,15 +171,29 @@ const client = new Client({
165171

166172
## Documentation
167173

174+
Library based on [Jira API v2](https://developer.atlassian.com/cloud/jira/platform/rest/v2) and [Jira Agile API](https://developer.atlassian.com/cloud/jira/software/rest)
175+
168176
Can't find what you need in the readme? Check out our documentation here: https://mrrefactoring.github.io/jira.js/
169177

178+
## Contributors
179+
180+
[<img alt="MrRefactoring" src="https://avatars0.githubusercontent.com/u/10329528?v=4&s=117 width=117">](https://github.com/MrRefactoring) |[<img alt="Swapnull" src="https://avatars0.githubusercontent.com/u/4456346?v=4&s=117 width=117">](https://github.com/Swapnull) |[<img alt="violine1101" src="https://avatars0.githubusercontent.com/u/12451842?v=4&s=117 width=117">](https://github.com/violine1101) |
181+
:---:|:---:|:---:|
182+
[MrRefactoring](https://github.com/MrRefactoring)|[Swapnull](https://github.com/Swapnull)|[violine1101](https://github.com/violine1101)|
183+
170184
## Road map
171185

172-
- Response models
173-
- Method names reducing
186+
- Response models ([Check 2.0 version PR](https://github.com/MrRefactoring/jira.js/pull/76))
187+
- Method names reducing ([Check 2.0 version PR](https://github.com/MrRefactoring/jira.js/pull/76))
174188

175189
## Latest version changelog
176190

191+
### 1.7.3
192+
193+
- DEPENDENCIES: `atlassian-jwt` installed from npm instead git
194+
- DEPENDENCIES: Updated dependencies versions
195+
- README: Contributors section added, small redesign
196+
177197
### 1.7.2
178198

179199
- FIX: console.log removed

package.json

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jira.js",
3-
"version": "1.7.2",
3+
"version": "1.7.3",
44
"main": "out/index.js",
55
"types": "out/index.d.ts",
66
"repository": "https://github.com/MrRefactoring/jira.js.git",
@@ -26,23 +26,24 @@
2626
"preset": "ts-jest"
2727
},
2828
"devDependencies": {
29-
"@types/jest": "^26.0.14",
30-
"@types/node": "^14.11.2",
31-
"@types/sinon": "^9.0.7",
32-
"@typescript-eslint/eslint-plugin": "^4.3.0",
33-
"@typescript-eslint/parser": "^4.3.0",
34-
"eslint": "^7.10.0",
35-
"eslint-config-airbnb-typescript": "^11.0.0",
29+
"@types/express": "^4.17.8",
30+
"@types/jest": "^26.0.15",
31+
"@types/node": "^14.14.5",
32+
"@types/sinon": "^9.0.8",
33+
"@typescript-eslint/eslint-plugin": "^4.6.0",
34+
"@typescript-eslint/parser": "^4.6.0",
35+
"eslint": "^7.12.1",
36+
"eslint-config-airbnb-typescript": "^12.0.0",
3637
"eslint-import-resolver-typescript": "^2.3.0",
3738
"eslint-plugin-import": "^2.22.1",
38-
"jest": "^26.4.2",
39-
"sinon": "^9.1.0",
40-
"ts-jest": "^26.4.1",
39+
"jest": "^26.6.1",
40+
"sinon": "^9.2.1",
41+
"ts-jest": "^26.4.3",
4142
"typedoc": "^0.19.2",
42-
"typescript": "^4.0.3"
43+
"typescript": "^4.0.5"
4344
},
4445
"dependencies": {
45-
"atlassian-jwt": "https://github.com/MrRefactoring/atlassian-jwt.git#dist",
46-
"axios": "^0.20.0"
46+
"atlassian-jwt": "^1.0.3",
47+
"axios": "^0.21.0"
4748
}
4849
}

src/sender.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { AxiosRequestConfig } from 'axios';
1+
import { Config } from './config';
22
import { Callback } from './callback';
33

44
export type Sender = {
55
[key: string]: any;
6-
sendRequest: (request: AxiosRequestConfig, callback?: Callback) => Promise<any>;
6+
sendRequest: (request: Config.BaseRequestConfig, callback?: Callback) => Promise<any>;
77
};

0 commit comments

Comments
 (0)