Skip to content

Commit 48dfcfe

Browse files
committed
v6.0.0
1 parent 6f9b560 commit 48dfcfe

File tree

3,434 files changed

+951
-113056
lines changed

Some content is hidden

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

3,434 files changed

+951
-113056
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: 🛠️ CI
33
on:
44
push:
55
branches:
6-
- '**' # Runs on all branch pushes
6+
- '**'
77
tags-ignore:
8-
- '**' # Ignore all tag pushes
8+
- '**'
99
repository_dispatch:
1010
types: [ pr-approved ]
1111

@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
node-version: [20.x, 22.x]
18+
node-version: [22.x, 24.x]
1919
steps:
2020
- name: 🔄 Checkout sources
2121
uses: actions/checkout@v4
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
strategy:
3838
matrix:
39-
node-version: [20.x, 22.x]
39+
node-version: [22.x, 24.x]
4040
steps:
4141
- name: 🔄 Checkout sources
4242
uses: actions/checkout@v4
@@ -52,54 +52,3 @@ jobs:
5252
run: pnpm run lint
5353
env:
5454
CI: true
55-
56-
test_unit:
57-
name: 🧪 Unit Tests
58-
needs: build
59-
runs-on: ubuntu-latest
60-
strategy:
61-
matrix:
62-
node-version: [20.x, 22.x]
63-
steps:
64-
- name: 🔄 Checkout sources
65-
uses: actions/checkout@v4
66-
- name: ⚙️ Use Node.js ${{ matrix.node-version }}
67-
uses: actions/setup-node@v4
68-
with:
69-
node-version: ${{ matrix.node-version }}
70-
- name: 📦 Install pnpm
71-
uses: pnpm/action-setup@v4
72-
- name: 📌 Installing dependencies
73-
run: pnpm install --frozen-lockfile
74-
- name: 🚀 Running unit tests
75-
run: pnpm run test:unit
76-
77-
test_integration:
78-
name: 🧩 Integration Tests
79-
needs:
80-
- lint
81-
- test_unit
82-
runs-on: ubuntu-latest
83-
strategy:
84-
max-parallel: 1
85-
matrix:
86-
node-version: [20.x, 22.x]
87-
steps:
88-
- name: 🔄 Checkout sources
89-
uses: actions/checkout@v4
90-
- name: ⚙️ Use Node.js ${{ matrix.node-version }}
91-
uses: actions/setup-node@v4
92-
with:
93-
node-version: ${{ matrix.node-version }}
94-
- name: 📦 Install pnpm
95-
uses: pnpm/action-setup@v4
96-
- name: 📌 Installing dependencies
97-
run: pnpm install --frozen-lockfile
98-
- name: 📝 Creating `.env` file
99-
run: |
100-
touch .env
101-
echo HOST=${{ secrets.HOST }} >> .env
102-
echo EMAIL=${{ secrets.EMAIL }} >> .env
103-
echo API_TOKEN=${{ secrets.API_TOKEN }} >> .env
104-
- name: 🚀 Running integration tests
105-
run: pnpm run test:integration

.github/workflows/publish-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch
55

66
env:
7-
NODE_VERSION: '20.x'
7+
NODE_VERSION: '22.x'
88

99
permissions:
1010
contents: read

.github/workflows/publish.yml

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
- 'v*.*.*'
77

88
env:
9-
NODE_VERSION: '20.x'
9+
NODE_VERSION: '22.x'
1010

1111
permissions:
1212
contents: read
1313

1414
jobs:
1515
build-and-test:
16-
name: 🏗️ Build and Test
16+
name: 🏗️ Build and Lint
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: 🔄 Checkout repository
@@ -40,16 +40,6 @@ jobs:
4040
env:
4141
CI: true
4242

43-
- name: 🧪 Run unit tests
44-
run: pnpm run test:unit
45-
46-
- name: 🧩 Run integration tests
47-
run: pnpm run test:integration
48-
env:
49-
HOST: ${{ secrets.HOST }}
50-
EMAIL: ${{ secrets.EMAIL }}
51-
API_TOKEN: ${{ secrets.API_TOKEN }}
52-
5343
publish-package:
5444
name: 🚀 Publish Package
5545
needs: build-and-test
@@ -111,36 +101,3 @@ jobs:
111101
run: pnpm publish --no-git-checks
112102
env:
113103
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
114-
115-
deploy-documentation:
116-
name: 📚 Deploy Documentation
117-
needs: publish-package
118-
runs-on: ubuntu-latest
119-
steps:
120-
- name: 🔄 Checkout repository
121-
uses: actions/checkout@v4
122-
with:
123-
ref: master
124-
125-
- name: ⚙️ Setup Node.js ${{ env.NODE_VERSION }}
126-
uses: actions/setup-node@v4
127-
with:
128-
node-version: ${{ env.NODE_VERSION }}
129-
130-
- name: 📦 Install pnpm
131-
uses: pnpm/action-setup@v4
132-
133-
- name: 📌 Install dependencies
134-
run: pnpm install --frozen-lockfile
135-
136-
- name: 📝 Generate documentation
137-
run: pnpm run doc
138-
139-
- name: 🚀 Deploy to docs branch
140-
uses: JamesIves/github-pages-deploy-action@v4
141-
with:
142-
branch: docs
143-
folder: docs
144-
clean: true
145-
token: '${{ secrets.PAT }}'
146-
commit-message: "docs: Update documentation for v${{ needs.publish-package.outputs.version }} [skip ci]"

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<a href="https://github.com/MrRefactoring/jira.js" target="_blank" rel="noopener noreferrer"><img alt="build status" src="https://img.shields.io/github/actions/workflow/status/mrrefactoring/jira.js/.github/workflows/ci.yaml?branch=master&style=flat-square"></a>
77
<a href="https://github.com/mrrefactoring/jira.js/blob/develop/LICENSE" target="_blank" rel="noopener noreferrer"><img alt="license" src="https://img.shields.io/github/license/mrrefactoring/jira.js?color=green&style=flat-square"/></a>
88
<a href="https://www.typescriptlang.org/" target="_blank" rel="noopener noreferrer"><img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-Ready-blue?style=flat-square&logo=typescript" /></a>
9-
<a href="https://nodejs.org/" target="_blank" rel="noopener noreferrer"><img alt="Node.js" src="https://img.shields.io/badge/Node.js-20%2B-green?style=flat-square&logo=node.js" /></a>
9+
<a href="https://nodejs.org/" target="_blank" rel="noopener noreferrer"><img alt="Node.js" src="https://img.shields.io/badge/Node.js-22%2B-green?style=flat-square&logo=node.js" /></a>
1010

1111
<span>JavaScript / TypeScript library for Node.js and browsers to interact with Atlassian Jira APIs</span>
1212
</div>
@@ -23,7 +23,7 @@
2323

2424
-**Type-Safe**: Full TypeScript support with comprehensive type definitions and IntelliSense
2525
-**Tree-Shakable**: Optimize bundle size by importing only what you need (perfect for browser apps)
26-
-**Universal**: Works in Node.js (v20+) and modern browsers with full ESM/CJS support
26+
-**Universal**: Works in Node.js (v22+) and modern browsers with full ESM/CJS support
2727
-**Complete Coverage**: Nearly 100% of Jira Cloud REST API v2/v3, Agile, and Service Desk APIs
2828
-**Well Documented**: Extensive JSDoc, API reference, and code examples
2929
-**Modern Stack**: Built with TypeScript, supports ES Modules and CommonJS
@@ -52,7 +52,7 @@ Perfect for building Jira integrations, automation tools, webhooks, CI/CD pipeli
5252

5353
### Installation
5454

55-
Install the Jira.js npm package using your preferred package manager. **Requires Node.js 20.0.0 or newer.**
55+
Install the Jira.js npm package using your preferred package manager. **Requires Node.js 22.0.0 or newer.**
5656

5757
```bash
5858
# Using npm
@@ -159,7 +159,7 @@ const client = new Version3Client({
159159

160160
Errors are categorized as:
161161
- `HttpException`: Server responded with an error (includes parsed error details)
162-
- `AxiosError`: Network/configuration issues (e.g., timeouts)
162+
- `Error`: Network/configuration issues (e.g., timeouts)
163163

164164
**Example handling:**
165165

@@ -170,7 +170,7 @@ try {
170170
if (error instanceof HttpException) {
171171
console.error('Server error:', error.message);
172172
console.debug('Response headers:', error.cause.response?.headers);
173-
} else if (error instanceof AxiosError) {
173+
} else if (error instanceof Error) {
174174
console.error('Network error:', error.code);
175175
} else {
176176
console.error('Unexpected error:', error);

examples/.editorconfig

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

examples/.gitignore

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

examples/README.md

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

0 commit comments

Comments
 (0)