Skip to content

Commit 2ef3d99

Browse files
* eslint improvements * MrRefactoring#388: removing ~ from dist folder * v5.2.1
1 parent 58d0560 commit 2ef3d99

File tree

10 files changed

+625
-1145
lines changed

10 files changed

+625
-1145
lines changed

CHANGELOG.md

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

3+
## 5.2.1
4+
5+
### Bug Fixes
6+
- **Removed `~` alias** due to compatibility issues with some build systems. Thanks @ThomasTrepanier, for reporting.
7+
38
## 5.2.0
49

510
### Build & Distribution Improvements

eslint.config.ts

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import js from '@eslint/js';
22
import globals from 'globals';
33
import tseslint from 'typescript-eslint';
44
import { defineConfig } from 'eslint/config';
5-
import stylisticJs from '@stylistic/eslint-plugin-js';
6-
import stylisticTs from '@stylistic/eslint-plugin-ts';
5+
import stylistic from '@stylistic/eslint-plugin';
76

87
export default defineConfig([
98
{ files: ['**/*.{js,mjs,cjs,ts}'], plugins: { js }, extends: ['js/recommended'] },
@@ -17,30 +16,31 @@ export default defineConfig([
1716
},
1817
},
1918
plugins: {
20-
'@stylistic/js': stylisticJs,
21-
'@stylistic/ts': stylisticTs,
19+
'@stylistic': stylistic,
2220
},
2321
rules: {
24-
'@stylistic/js/no-trailing-spaces': 'error',
25-
'@stylistic/ts/indent': ['error', 2],
26-
'@stylistic/ts/lines-between-class-members': [
22+
'@stylistic/comma-dangle': ['error', 'always-multiline'],
23+
'@stylistic/indent': ['error', 2],
24+
'@stylistic/lines-between-class-members': [
2725
'error',
2826
'always',
2927
{
3028
exceptAfterOverload: true,
3129
exceptAfterSingleLine: true,
3230
},
3331
],
34-
'@stylistic/ts/padding-line-between-statements': [
32+
'@stylistic/no-trailing-spaces': 'error',
33+
'@stylistic/object-curly-spacing': ['error', 'always'],
34+
'@stylistic/padding-line-between-statements': [
3535
'error',
3636
// Return statements
3737
{ blankLine: 'always', prev: '*', next: 'return' },
3838
// Import statements
3939
{ blankLine: 'always', prev: 'import', next: '*' },
4040
{ blankLine: 'any', prev: 'import', next: 'import' },
4141
],
42-
'@stylistic/ts/quotes': ['error', 'single'],
43-
'@stylistic/ts/semi': ['error', 'always'],
42+
'@stylistic/quotes': ['error', 'single'],
43+
'@stylistic/semi': ['error', 'always'],
4444
'@typescript-eslint/consistent-type-imports': [
4545
'error',
4646
{
@@ -49,14 +49,13 @@ export default defineConfig([
4949
},
5050
],
5151
'@typescript-eslint/no-empty-object-type': 'off',
52-
'@typescript-eslint/no-redundant-type-constituents': 'off', // todo fix it
53-
'@typescript-eslint/no-unnecessary-condition': 'error', // todo fix it
54-
'@typescript-eslint/no-unsafe-argument': 'off', // todo fix it
55-
'@typescript-eslint/no-unsafe-assignment': 'off', // todo fix it
56-
'@typescript-eslint/no-unsafe-call': 'off', // todo fix it
52+
'@typescript-eslint/no-redundant-type-constituents': 'off',
53+
'@typescript-eslint/no-unnecessary-condition': 'error',
54+
'@typescript-eslint/no-unsafe-argument': 'off',
55+
'@typescript-eslint/no-unsafe-assignment': 'off',
56+
'@typescript-eslint/no-unsafe-call': 'off',
5757
'@typescript-eslint/no-unsafe-member-access': 'off',
5858
'@typescript-eslint/prefer-optional-chain': 'error',
59-
'@stylistic/ts/object-curly-spacing': ["error", "always"]
6059
},
6160
},
6261
]);

package.json

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jira.js",
3-
"version": "5.2.0",
3+
"version": "5.2.1",
44
"description": "A comprehensive JavaScript/TypeScript library designed for both Node.JS and browsers, facilitating seamless interaction with the Atlassian Jira API.",
55
"repository": "https://github.com/MrRefactoring/jira.js.git",
66
"homepage": "https://mrrefactoring.github.io/jira.js",
@@ -13,33 +13,33 @@
1313
"exports": {
1414
".": {
1515
"types": "./dist/esm/types/index.d.ts",
16-
"import": "./dist/esm/index.mjs",
17-
"require": "./dist/cjs/index.cjs"
16+
"require": "./dist/cjs/index.cjs",
17+
"import": "./dist/esm/index.mjs"
1818
},
1919
"./*": {
2020
"types": "./dist/esm/types/*.d.ts",
21-
"import": "./dist/esm/*.mjs",
22-
"require": "./dist/cjs/*.cjs"
21+
"require": "./dist/cjs/*.cjs",
22+
"import": "./dist/esm/*.mjs"
2323
},
2424
"./agile": {
2525
"types": "./dist/esm/types/agile/index.d.ts",
26-
"import": "./dist/esm/agile/index.mjs",
27-
"require": "./dist/cjs/agile/index.cjs"
26+
"require": "./dist/cjs/agile/index.cjs",
27+
"import": "./dist/esm/agile/index.mjs"
28+
},
29+
"./serviceDesk": {
30+
"types": "./dist/esm/types/serviceDesk/index.d.ts",
31+
"require": "./dist/cjs/serviceDesk/index.cjs",
32+
"import": "./dist/esm/serviceDesk/index.mjs"
2833
},
2934
"./version2": {
3035
"types": "./dist/esm/types/version2/index.d.ts",
31-
"import": "./dist/esm/version2/index.mjs",
32-
"require": "./dist/cjs/version2/index.cjs"
36+
"require": "./dist/cjs/version2/index.cjs",
37+
"import": "./dist/esm/version2/index.mjs"
3338
},
3439
"./version3": {
3540
"types": "./dist/esm/types/version3/index.d.ts",
36-
"import": "./dist/esm/version3/index.mjs",
37-
"require": "./dist/cjs/version3/index.cjs"
38-
},
39-
"./serviceDesk": {
40-
"types": "./dist/esm/types/serviceDesk/index.d.ts",
41-
"import": "./dist/esm/serviceDesk/index.mjs",
42-
"require": "./dist/cjs/serviceDesk/index.cjs"
41+
"require": "./dist/cjs/version3/index.cjs",
42+
"import": "./dist/esm/version3/index.mjs"
4343
},
4444
"./package.json": "./package.json"
4545
},
@@ -118,32 +118,31 @@
118118
"dependencies": {
119119
"axios": "^1.9.0",
120120
"mime": "^4.0.7",
121-
"zod": "^3.24.4"
121+
"zod": "^3.25.63"
122122
},
123123
"devDependencies": {
124-
"@eslint/js": "^9.26.0",
124+
"@eslint/js": "^9.28.0",
125125
"@rollup/plugin-alias": "^5.1.1",
126126
"@rollup/plugin-commonjs": "^28.0.3",
127127
"@rollup/plugin-node-resolve": "^16.0.1",
128128
"@rollup/plugin-typescript": "^12.1.2",
129-
"@stylistic/eslint-plugin-js": "^4.2.0",
130-
"@stylistic/eslint-plugin-ts": "^4.2.0",
131-
"@types/node": "^20.17.47",
129+
"@stylistic/eslint-plugin": "^4.4.1",
130+
"@types/node": "^20.19.0",
132131
"@types/sinon": "^17.0.4",
133132
"dotenv": "^16.5.0",
134-
"eslint": "^9.26.0",
135-
"globals": "^16.1.0",
133+
"eslint": "^9.28.0",
134+
"globals": "^16.2.0",
136135
"jiti": "^2.4.2",
137136
"prettier": "^3.5.3",
138137
"prettier-plugin-jsdoc": "^1.3.2",
139-
"rollup": "^4.40.2",
140-
"rollup-plugin-esnext-to-nodenext": "^1.0.0",
138+
"rollup": "^4.43.0",
139+
"rollup-plugin-esnext-to-nodenext": "^1.0.1",
141140
"rollup-plugin-node-externals": "^8.0.0",
142141
"sinon": "^20.0.0",
143142
"tslib": "^2.8.1",
144-
"typedoc": "^0.28.4",
143+
"typedoc": "^0.28.5",
145144
"typescript": "^5.8.3",
146-
"typescript-eslint": "^8.32.1",
147-
"vitest": "^3.1.3"
145+
"typescript-eslint": "^8.34.0",
146+
"vitest": "^3.2.3"
148147
}
149148
}

0 commit comments

Comments
 (0)