Skip to content

Commit a41d208

Browse files
committed
add esm support
1 parent 89ab3a6 commit a41d208

File tree

230 files changed

+3323
-7319
lines changed

Some content is hidden

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

230 files changed

+3323
-7319
lines changed

.eslintrc.yml

Lines changed: 0 additions & 92 deletions
This file was deleted.

.github/workflows/publish-legacy.yml

Lines changed: 0 additions & 189 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.idea/
22
.vscode/
33
node_modules/
4-
out/
4+
dist/
55
docs/
66
coverage/
77

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ examples
99
.eslintrc
1010
.editorconfig
1111
.DS_Store
12+
pnpm-lock.yaml
13+
pnpm-workspace.yaml
14+
package-lock.json
1215
yarn.lock
1316
yarn-error.log
1417
tsconfig.lint.json

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Jira.js changelog
22

3+
## 5.0.0
4+
5+
- Added ESM (ECMAScript Modules) support
6+
- Fixed comment generation logic in `IssueWorklogs.addWorklog` method
7+
- Removed all telemetry-related code and references
8+
39
### 4.1.3
410

511
- **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))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Usability, consistency, and performance are key focuses of jira.js, and it also
3131

3232
## Installation
3333

34-
**Node.js 18.0.0 or newer is required.**
34+
**Node.js 20.0.0 or newer is required.**
3535

3636
Install with the npm:
3737

eslint.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import tseslint from "typescript-eslint";
4+
import { defineConfig } from "eslint/config";
5+
import stylisticJs from '@stylistic/eslint-plugin-js';
6+
import stylisticTs from '@stylistic/eslint-plugin-ts';
7+
8+
export default defineConfig([
9+
{ files: ["**/*.{js,mjs,cjs,ts}"], plugins: { js }, extends: ["js/recommended"] },
10+
{ files: ["**/*.{js,mjs,cjs,ts}"], languageOptions: { globals: {...globals.browser, ...globals.node} } },
11+
tseslint.configs.recommended,
12+
{
13+
plugins: {
14+
'@stylistic/js': stylisticJs,
15+
'@stylistic/ts': stylisticTs,
16+
},
17+
rules: {
18+
'@stylistic/ts/indent': ['error', 2],
19+
'@stylistic/js/no-trailing-spaces': 'error',
20+
'@typescript-eslint/no-empty-object-type': 'off', // todo fix it
21+
}
22+
}
23+
]);

examples/src/addFixVersion.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ async function addFixVersion() {
1515
const fix = await client.issueProperties.setIssueProperty({
1616
issueIdOrKey,
1717
propertyKey: 'fixVersion',
18-
// @ts-ignore
1918
propertyValue: 'N/a',
2019
});
2120

examples/src/credentials.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
21
export const host = '';
32
export const email = '';
43
export const apiToken = '';

examples/src/getAllWorklogs.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ async function getAllWorklogs() {
2525
let total = 0;
2626

2727
do {
28-
// eslint-disable-next-line no-await-in-loop
2928
const worklogsPaginated = await client.issueWorklogs.getIssueWorklog({ issueIdOrKey: issue.key, startAt: offset });
3029

3130
offset += worklogsPaginated.worklogs.length;

0 commit comments

Comments
 (0)