Skip to content

Commit a159023

Browse files
1.7.0 (#85)
* dependencies updates (#83) * New ESLint config (#84) * dependencies updates * new eslint config * eslint fix * comments resolving * auth helper refactoring * Config interface improving (#82) * config interface improved * dependencies updates * code refactoring * README updated * header changed * readme updated * Global handlers added * readme updated * tests fixes * New endpoints added * Missed type added * globalHandlers -> middlewares * readme improves
1 parent 08e765e commit a159023

File tree

105 files changed

+2102
-1679
lines changed

Some content is hidden

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

105 files changed

+2102
-1679
lines changed

.eslintrc

Lines changed: 28 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
22
"parser": "@typescript-eslint/parser",
33
"extends": [
4-
"plugin:@typescript-eslint/recommended",
5-
"plugin:import/errors",
6-
"plugin:import/typescript"
4+
"airbnb-typescript/base"
75
],
86
"parserOptions": {
97
"ecmaVersion": 2018,
10-
"sourceType": "module"
8+
"sourceType": "module",
9+
"project": "./tsconfig.json"
1110
},
1211
"plugins": [
1312
"import"
@@ -18,68 +17,12 @@
1817
"jest": true
1918
},
2019
"rules": {
21-
"camelcase": "off",
22-
"semi": "error",
23-
"eqeqeq": "error",
24-
"eol-last": "error",
25-
"lines-between-class-members": "off",
26-
"no-trailing-spaces": "error",
27-
"indent": [
20+
"@typescript-eslint/lines-between-class-members": "off",
21+
"import/prefer-default-export": "off",
22+
"no-underscore-dangle": "off",
23+
"lines-between-class-members": [
2824
"error",
29-
2,
30-
{
31-
"SwitchCase": 1
32-
}
33-
],
34-
"quotes": [
35-
"error",
36-
"single"
37-
],
38-
"prefer-const": "error",
39-
"no-var": "error",
40-
"no-undef": "error",
41-
"comma-dangle": [
42-
"error",
43-
"always-multiline"
44-
],
45-
"import/no-unresolved": "error",
46-
"@typescript-eslint/no-explicit-any": "off",
47-
"@typescript-eslint/naming-convention": [
48-
"error",
49-
{
50-
"selector": "default",
51-
"format": [
52-
"camelCase"
53-
]
54-
},
55-
{
56-
"selector": "variable",
57-
"format": [
58-
"camelCase",
59-
"UPPER_CASE"
60-
]
61-
},
62-
{
63-
"selector": "parameter",
64-
"format": [
65-
"camelCase"
66-
],
67-
"leadingUnderscore": "allow"
68-
},
69-
{
70-
"selector": "memberLike",
71-
"format": [
72-
"camelCase",
73-
"PascalCase"
74-
],
75-
"leadingUnderscore": "allow"
76-
},
77-
{
78-
"selector": "typeLike",
79-
"format": [
80-
"PascalCase"
81-
]
82-
}
25+
"always"
8326
],
8427
"padding-line-between-statements": [
8528
"error",
@@ -114,7 +57,7 @@
11457
"next": "*"
11558
},
11659
{
117-
"blankLine": "never",
60+
"blankLine": "any",
11861
"prev": [
11962
"const",
12063
"let",
@@ -127,15 +70,31 @@
12770
]
12871
},
12972
{
130-
"blankLine": "any",
73+
"blankLine": "never",
13174
"prev": [
132-
"export",
13375
"import"
13476
],
13577
"next": [
136-
"export",
13778
"import"
13879
]
80+
},
81+
{
82+
"blankLine": "always",
83+
"prev": [
84+
"import"
85+
],
86+
"next": [
87+
"export"
88+
]
89+
},
90+
{
91+
"blankLine": "any",
92+
"prev": [
93+
"export"
94+
],
95+
"next": [
96+
"export"
97+
]
13998
}
14099
]
141100
},

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
node_modules
2-
src
32
docs
43
tests
54
coverage
65
.eslintrc
76
.editorconfig
87
.travis.yml
8+
.DS_Store

CHANGELOG.md

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# Jira.js changelog
2+
3+
### 1.7.0
4+
5+
- IMPROVEMENT: Readme examples updated
6+
---
7+
- IMPROVEMENT: Config typings refactored
8+
- DEPRECATION: Property `timeout` deprecated in `Config`
9+
---
10+
- FEATURE: Property `middlewares` added to `Config`
11+
---
12+
- FEATURE: Property `baseRequestConfig` added to `Config`
13+
---
14+
- FEATURE: Method `getOptionsForContext` added to `IssueCustomFieldOptions` [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-custom-field-options/#api-rest-api-2-customfield-fieldid-context-contextid-option-get)
15+
- FEATURE: Method `deleteCustomFieldOption` added to `IssueCustomFieldOptions` [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-custom-field-options/#api-rest-api-2-customfield-fieldid-context-contextid-option-optionid-delete)
16+
---
17+
- FEATURE: Method `changeOrderOfIssueTypes` added to `IssueTypeSchemes` [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-type-schemes/#api-rest-api-2-issuetypescheme-issuetypeschemeid-issuetype-move-put)
18+
---
19+
- FEATURE: Method `assignWorkflowSchemeToProject` added to `WorkflowSchemeProjectAssociations` [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-workflow-scheme-project-associations/#api-rest-api-2-workflowscheme-project-put)
20+
---
21+
- FEATURE: New API `ScreenSchemes` added. [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-screen-schemes/#api-group-screen-schemes).
22+
- FEATURE: New API `ScreenTabFields` added [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-screen-tab-fields/#api-group-screen-tab-fields)
23+
- FEATURE: New API `ScreenTabs` added [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-screen-tabs/)
24+
---
25+
- FEATURE: Added models for new endpoints
26+
27+
28+
### 1.6.2
29+
30+
- FIX: Sprints added to client
31+
- IMPROVEMENT: Dependencies updated
32+
33+
### 1.6.1
34+
35+
- FIX: Added the ability to use the library without authorization [#75](https://github.com/MrRefactoring/jira.js/pull/75)
36+
37+
### 1.6.0
38+
39+
- FEATURE: New API `IssueTypeScreenSchemes` added
40+
- FEATURE: New API `ProjectEmail` added
41+
---
42+
- FEATURE: Method `bulkGetGroups` added to `Groups`
43+
- FEATURE: Method `restoreDeletedProject` added to `Projects`
44+
- FEATURE: Method `createIssueTypeScheme` added to `IssueTypeSchemes`
45+
- FEATURE: Method `deleteIssueTypeScheme` added to `IssueTypeSchemes`
46+
- FEATURE: Method `updateIssueTypeScheme` added to `IssueTypeSchemes`
47+
- FEATURE: Method `addIssueTypesToIssueTypeScheme` added to `IssueTypeSchemes`
48+
- FEATURE: Method `deleteIssueTypeFromIssueTypeScheme` added to `IssueTypeSchemes`
49+
---
50+
- FEATURE: Property `id` added to `IssueFieldConfigurations.getAllFieldConfigurations`
51+
- FEATURE: Property `sortByOpsBarAndStatus` added to `Issues.getTransitions`
52+
- FEATURE: Property `accountId` added to `Permissions.getBulkPermissions`
53+
---
54+
- DEPRECATION: Method `getIssueTypeScreenSchemes` are deprecated in `Screens`
55+
- DEPRECATION: Method `getIssueTypeScreenSchemeItems` are deprecated in `Screens`
56+
- DEPRECATION: Method `getIssueTypeScreenSchemesForProjects` are deprecated in `Screens`
57+
58+
### 1.5.0
59+
60+
- FEATURE: Method `getAllFieldConfigurationSchemes` added to `IssueFieldConfigurations`
61+
- FEATURE: Method `getFieldConfigurationSchemesForProjects` added to `IssueFieldConfigurations`
62+
- FEATURE: Property `fieldConfigurationSchemeId` added to `issueFieldConfigurations.getFieldConfigurationIssueTypeItems`
63+
- FEATURE: Method `getIssueSecurityLevelMembers` added to `IssueSecurityLevel`
64+
- FEATURE: Issue type schemes API added
65+
- FEATURE: Method `getLicensedProjectTypes` added to `ProjectTypes`
66+
- FEATURE: Method `deleteProjectAsynchronously` added to `Projects`
67+
- FEATURE: Method `getIssueTypeScreenSchemes` added to `Screens`
68+
- FEATURE: Method `getAllScreenSchemes` renamed to `getScreenSchemes`
69+
- DEPRECATION: `getAllScreenSchemes` are deprecated (Renamed to `getScreenSchemes`)
70+
71+
### 1.4.0
72+
73+
- FEATURE: Now requests where there are no required parameters do not have to pass an empty object to make a request
74+
- FEATURE: `dashboards.createDashboard` was added
75+
- FEATURE: `dashboards.updateDashboard` was added
76+
- FEATURE: `dashboards.deleteDashboard` was added
77+
- FEATURE: `dashboards.copyDashboard` was added
78+
- FEATURE: `screens.getIssueTypeScreenSchemesForProjects` was added
79+
- FEATURE: `issueFieldConfigurations.getAllFieldConfiguration` was added
80+
- FEATURE: `issueFieldConfigurations.getFieldConfigurationItems` was added
81+
- FEATURE: `issueFieldConfigurations.getFieldConfigurationIssueTypeItems` was added
82+
- FEATURE: In `issues.getTransitions` was added `includeUnavailableTransitions` property
83+
- DEPRECATION: `issueFields.getFieldConfigurationItems` are deprecated (Removed from official API, use `issueFieldConfigurations.getFieldConfigurationItems`). Will be removed in next major version
84+
85+
### 1.3.0
86+
87+
- FEATURE: `jiraExpressions.analyseJiraExpression` was added
88+
- FEATURE: `screens.getIssueTypeScreenSchemeItems` was added
89+
- FEATURE: In `projects.getProjectsPaginated` was added `status` property
90+
- FEATURE: In `projects.deleteProject` was added `enableUndo` property
91+
- DEPRECATION: `timeTracking.disableTimeTracking` are deprecated (Removed from official API). Will be removed in next major version
92+
93+
### 1.2.0
94+
95+
- FEATURE: `issueFields.getAllFieldConfigurations` added as experimental
96+
- FEATURE: `issueFields.getFieldConfigurationItems` added as experimental
97+
- IMPROVEMENT: dependencies update
98+
99+
### 1.1.1
100+
101+
- FIX: `strictGDPR` feature fixed
102+
- FIX: `Cannot read property 'Authorization' of undefined` fixed
103+
104+
### 1.1.0
105+
106+
- FEATURE: `strictGDPR` property added to Config. Allows use only [GDPR-compliant functionality](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
107+
- FEATURE: `users.getAllUsersDefault` added
108+
- FEATURE: `issueCustomFieldOptions.updateCustomFieldOptions` added as experimental
109+
- DEPRECATION: `projectRoleActors.getActorsCountForProjectRole` are deprecated (Removed from official API). Will be removed in next major version
110+
111+
### 1.0.3
112+
113+
- DEPRECATION: `permissionsSchemes` and `issueAttachment` are deprecated
114+
- IMPROVEMENT: agile api typings improved
115+
- IMPROVEMENT: dependencies update
116+
- FIX: Authorization parameter excluded for agile API in the request body
117+
118+
### 1.0.2
119+
120+
- FIX: JWT Authentication default expire time added
121+
- IMPROVEMENT: modified `atlassian-jwt` (removed lodash from dependencies, bundle size decreased)
122+
- IMPROVEMENT: small tests for authentication added
123+
124+
### 1.0.1
125+
126+
- FIX: documentation link fixed
127+
128+
### 1.0.0
129+
130+
- RELEASE

0 commit comments

Comments
 (0)