Skip to content

v5.2.0 #386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI/CD Pipeline
name: 🚀 Publish to NPM

on:
push:
tags:
Expand Down Expand Up @@ -58,6 +59,8 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- name: 🔄 Checkout repository
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ coverage
.idea
examples

eslint.config.js
eslint.config.ts
.editorconfig
.DS_Store
pnpm-lock.yaml
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Jira.js changelog

## 5.2.0

### Build & Distribution Improvements
- Added `rollup-plugin-node-externals` to transform `ESNext` `import`/`export` syntax to `NodeNext` format
- Restructured `dist` files to preserve modules

### Documentation Updates
- Updated tree shaking description in `README.md`
- Redesigned `README.md` with a new "Getting Started" section

## 5.1.1

- Fixing CommonJS requiring. Thanks to solshark ([solshark](https://github.com/solshark)) for reporting this issue ([#381](https://github.com/MrRefactoring/jira.js/issues/381))
Expand Down
361 changes: 116 additions & 245 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion eslint.config.js → eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default defineConfig([
{
languageOptions: {
parserOptions: {
project: './tsconfig.lint.json',
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
Expand Down Expand Up @@ -57,6 +56,7 @@ export default defineConfig([
'@typescript-eslint/no-unsafe-call': 'off', // todo fix it
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/prefer-optional-chain': 'error',
'@stylistic/ts/object-curly-spacing': ["error", "always"]
},
},
]);
62 changes: 45 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,48 @@
{
"name": "jira.js",
"version": "5.1.1",
"version": "5.2.0",
"description": "A comprehensive JavaScript/TypeScript library designed for both Node.JS and browsers, facilitating seamless interaction with the Atlassian Jira API.",
"repository": "https://github.com/MrRefactoring/jira.js.git",
"homepage": "https://mrrefactoring.github.io/jira.js",
"author": "Vladislav Tupikin <vladislav.tupikin@icloud.com>",
"license": "MIT",
"type": "module",
"types": "./dist/esm/types/index.d.ts",
"module": "./dist/esm/index.mjs",
"main": "./dist/cjs/index.cjs",
"exports": {
".": {
"types": "./dist/esm/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
},
"./*": {
"types": "./dist/esm/types/*.d.ts",
"import": "./dist/esm/*.mjs",
"require": "./dist/cjs/*.cjs"
},
"./agile": {
"types": "./dist/esm/types/agile/index.d.ts",
"import": "./dist/esm/agile/index.mjs",
"require": "./dist/cjs/agile/index.cjs"
},
"./version2": {
"types": "./dist/esm/types/version2/index.d.ts",
"import": "./dist/esm/version2/index.mjs",
"require": "./dist/cjs/version2/index.cjs"
},
"./version3": {
"types": "./dist/esm/types/version3/index.d.ts",
"import": "./dist/esm/version3/index.mjs",
"require": "./dist/cjs/version3/index.cjs"
},
"./serviceDesk": {
"types": "./dist/esm/types/serviceDesk/index.d.ts",
"import": "./dist/esm/serviceDesk/index.mjs",
"require": "./dist/cjs/serviceDesk/index.cjs"
},
"./package.json": "./package.json"
},
"keywords": [
"jira",
"javascript",
Expand All @@ -31,21 +67,11 @@
"axios"
],
"engines": {
"node": ">=20.0.0"
},
"types": "./dist/index.d.ts",
"module": "./dist/index.mjs",
"main": "./dist/index.cjs",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
"node": ">=20"
},
"scripts": {
"build": "pnpm run build:src && pnpm run build:tests",
"build:src": "rollup -c rollup.config.ts --configPlugin typescript && ts-add-js-extension --dir=dist --showchanges=false",
"build:src": "rollup -c rollup.config.ts --configPlugin typescript",
"build:tests": "tsc --project tests/tsconfig.json",
"prettier": "prettier --write src",
"lint": "pnpm run lint:tests && pnpm run lint:src:agile && pnpm run lint:src:clients && pnpm run lint:src:services && pnpm run lint:src:version2 && pnpm run lint:src:version3 && pnpm run lint:src:files",
Expand Down Expand Up @@ -102,20 +128,22 @@
"@rollup/plugin-typescript": "^12.1.2",
"@stylistic/eslint-plugin-js": "^4.2.0",
"@stylistic/eslint-plugin-ts": "^4.2.0",
"@types/node": "^20.17.41",
"@types/node": "^20.17.47",
"@types/sinon": "^17.0.4",
"dotenv": "^16.5.0",
"eslint": "^9.26.0",
"globals": "^16.0.0",
"globals": "^16.1.0",
"jiti": "^2.4.2",
"prettier": "^3.5.3",
"prettier-plugin-jsdoc": "^1.3.2",
"rollup": "^4.40.2",
"rollup-plugin-esnext-to-nodenext": "^1.0.0",
"rollup-plugin-node-externals": "^8.0.0",
"sinon": "^20.0.0",
"ts-add-js-extension": "^1.6.5",
"tslib": "^2.8.1",
"typedoc": "^0.28.4",
"typescript": "^5.8.3",
"typescript-eslint": "^8.32.0",
"typescript-eslint": "^8.32.1",
"vitest": "^3.1.3"
}
}
Loading