Skip to content

Commit 982076b

Browse files
2.11.0 RC (MrRefactoring#192)
* updates upload * Version3 updates * telemetry metadata removed * crlf -> lf * Service Desk API (MrRefactoring#174) * initial service desk api code uploading * reverting agile changes * improvements * JSDoc improvements * Tests enabled in CI * Maxworkers removed from integration tests * updates * timeout moved * timeout moved * test fixes * lint fix * readme updated * service desk added to index * big tests refactoring * tests migration * tests migration * JSDocs fixes * integration tests migration to ava * lint fix * test script changed * unit tests speed up. Integration pattern fixed * ava speed up improvements * concurrency flag removed for unit tests * version2 api changes * API updated * PAT authentication support (MrRefactoring#191) * PAT authentication support * PAT config to string * Apply suggestions from code review * README updated Co-authored-by: Vladislav Tupikin <[email protected]> * test fixes * export sorts * CHANGELOG described * paramSerializer improved Co-authored-by: Nizam Moidu <[email protected]>
1 parent 9909dec commit 982076b

File tree

372 files changed

+7042
-9861
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

372 files changed

+7042
-9861
lines changed

.eslintrc

+18-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
"parserOptions": {
77
"ecmaVersion": 2018,
88
"sourceType": "module",
9-
"project": "./tsconfig.tests.json"
9+
"project": "./tsconfig.lint.json"
1010
},
1111
"plugins": [
1212
"import"
1313
],
1414
"env": {
1515
"node": true,
16-
"browser": true,
17-
"jest": true
16+
"browser": true
1817
},
1918
"rules": {
2019
"@typescript-eslint/lines-between-class-members": "off",
@@ -25,6 +24,22 @@
2524
"no-underscore-dangle": "off",
2625
"lines-between-class-members": "off",
2726
"linebreak-style": ["error", "unix"],
27+
"eol-last": "error",
28+
"sort-imports": [
29+
"error",
30+
{
31+
"ignoreCase": true,
32+
"ignoreDeclarationSort": false,
33+
"ignoreMemberSort": false,
34+
"memberSyntaxSortOrder": [
35+
"all",
36+
"single",
37+
"multiple",
38+
"none"
39+
],
40+
"allowSeparatedGroups": false
41+
}
42+
],
2843
"padding-line-between-statements": [
2944
"error",
3045
{

CHANGELOG.md

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

3+
### 2.11.0
4+
5+
- Personal access token authentication added. Thanks, [Nizam Moidu](https://github.com/netmaxt3r) for adding this feature!
6+
- Version 2:
7+
- `notifyUsers` property added to `IssueComments.updateComment` method.
8+
- `setFieldConfigurationSchemeMapping` method added to `IssueFieldConfigurations`.
9+
- `removeIssueTypesFromGlobalFieldConfigurationScheme` method added to `IssueFieldConfigurations`.
10+
- `getIsWatchingIssueBulk` method added to `IssueWatchers`.
11+
- `queryString`, `orderBy`, `isActive` properties added to `Workflows.getWorkflowsPaginated` method.
12+
- `AppMigration.updateEntityPropertiesValue` method parameters for sending fixed.
13+
- `Workflows.getWorkflowsPaginated` parameters serializing fixed.
14+
- Tests improving.
15+
- JSDoc improved.
16+
- Expand properties typings improved for few Parameters.
17+
318
### 2.10.4
419

5-
- `accountId` property added to `IssueWatchers`. Thanks [Brent Van Geertruy](https://github.com/knor-el-snor) for catching and fixing this issue!
20+
- `accountId` property added to `IssueWatchers`. Thanks, [Brent Van Geertruy](https://github.com/knor-el-snor) for catching and fixing this issue!
621

722
### 2.10.3
823

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Usability, consistency, and performance are key focuses of jira.js, and it also
2424
- [OAuth](#oauth)
2525
- [OAuth 2.0](#oauth-20)
2626
- [JWT](#jwt)
27+
- [Personal access token](#personal-access-token)
2728
- [Your first request and using algorithm](#your-first-request-and-using-algorithm)
2829
- [Decreasing Webpack bundle size](#decreasing-webpack-bundle-size)
2930
- [Take a look at our other products](#take-a-look-at-our-other-products)
@@ -141,6 +142,19 @@ const client = new Version2Client({
141142
});
142143
```
143144

145+
##### [Personal access token](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html)
146+
147+
```typescript
148+
import { Version2Client } from 'jira.js';
149+
150+
const client = new Version2Client({
151+
host: 'https://your-domain.atlassian.net',
152+
authentication: {
153+
personalAccessToken: 'secrectPAT',
154+
},
155+
});
156+
```
157+
144158
#### Your first request and using algorithm
145159

146160
```typescript

0 commit comments

Comments
 (0)