Skip to content

Commit 835d12a

Browse files
author
A.P.A. Slaa
committed
feat: made library public
1 parent 5f521e5 commit 835d12a

14 files changed

Lines changed: 10890 additions & 0 deletions
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run tests and upload coverage
2+
3+
on:
4+
push
5+
6+
jobs:
7+
test:
8+
name: Run tests and collect coverage
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 2
15+
16+
- name: Set up Node
17+
uses: actions/setup-node@v4
18+
19+
- name: Install dependencies
20+
run: npm install
21+
22+
- name: Run tests
23+
run: npx vitest run --coverage
24+
25+
- name: Upload results to Codecov
26+
uses: codecov/codecov-action@v5
27+
with:
28+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/docs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches: [ main ] # or 'master', depending on your default branch
6+
workflow_dispatch: # allows manual trigger
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
deploy-docs:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
28+
cache: 'npm'
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Build documentation
34+
run: npm run docs:build
35+
36+
- name: Setup Pages
37+
uses: actions/configure-pages@v4
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: ./docs
43+
44+
- name: Deploy to GitHub Pages
45+
uses: actions/deploy-pages@v4

.github/workflows/publish-npm.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release to NPM
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
env:
10+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} //it's generated automatically
11+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
registry-url: "https://registry.npmjs.org/"
22+
- name: Install dependencies
23+
run: npm install
24+
- name: Run tests
25+
run: npm test
26+
- name: Build the package
27+
run: npm run build
28+
- name: Semantic Release
29+
run: npx semantic-release

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Testing
2+
on:
3+
push
4+
5+
jobs:
6+
test:
7+
name: Run tests
8+
runs-on: ubuntu-latest
9+
env:
10+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} //it's generated automatically
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 22
20+
registry-url: "https://registry.npmjs.org/"
21+
- name: Install dependencies
22+
run: npm install
23+
- name: Run tests
24+
run: npm test

.gitignore

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# Snowpack dependency directory (https://snowpack.dev/)
45+
web_modules/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Optional stylelint cache
57+
.stylelintcache
58+
59+
# Optional REPL history
60+
.node_repl_history
61+
62+
# Output of 'npm pack'
63+
*.tgz
64+
65+
# Yarn Integrity file
66+
.yarn-integrity
67+
68+
# dotenv environment variable files
69+
.env
70+
.env.*
71+
!.env.example
72+
73+
# parcel-bundler cache (https://parceljs.org/)
74+
.cache
75+
.parcel-cache
76+
77+
# Next.js build output
78+
.next
79+
out
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and not Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# vuepress v2.x temp and cache directory
95+
.temp
96+
97+
# Sveltekit cache directory
98+
.svelte-kit/
99+
100+
# vitepress build output
101+
**/.vitepress/dist
102+
103+
# vitepress cache directory
104+
**/.vitepress/cache
105+
106+
# Docusaurus cache and generated files
107+
.docusaurus
108+
109+
# Serverless directories
110+
.serverless/
111+
112+
# FuseBox cache
113+
.fusebox/
114+
115+
# DynamoDB Local files
116+
.dynamodb/
117+
118+
# Firebase cache directory
119+
.firebase/
120+
121+
# TernJS port file
122+
.tern-port
123+
124+
# Stores VSCode versions used for testing VSCode extensions
125+
.vscode-test
126+
127+
# yarn v3
128+
.pnp.*
129+
.yarn/*
130+
!.yarn/patches
131+
!.yarn/plugins
132+
!.yarn/releases
133+
!.yarn/sdks
134+
!.yarn/versions
135+
136+
# Vite logs files
137+
vite.config.js.timestamp-*
138+
vite.config.ts.timestamp-*
139+
140+
.idea
141+
.vscode
142+
docs

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# [1.2.0](https://github.com/SourceRegistry/node-jwt/compare/v1.1.0...v1.2.0) (2025-10-23)
2+
3+
4+
### Features
5+
6+
* added validation options and wider range of algorithms ([f5a2060](https://github.com/SourceRegistry/node-jwt/commit/f5a2060ddb4f2c4bc09d5d56ad311f52964f4fc3))
7+
8+
# [1.1.0](https://github.com/SourceRegistry/node-jwt/compare/v1.0.0...v1.1.0) (2025-10-13)
9+
10+
11+
### Features
12+
13+
* added promised based wrapper and updated README ([26c24e8](https://github.com/SourceRegistry/node-jwt/commit/26c24e87bd56ce14605eb166102032a0a7941bcb))
14+
15+
# 1.0.0 (2025-10-11)
16+
17+
18+
### Bug Fixes
19+
20+
* added [@semantic-release](https://github.com/semantic-release) dev packages ([dc83f4c](https://github.com/SourceRegistry/node-jwt/commit/dc83f4c90c4baae771b705d8244056270285e5a9))

0 commit comments

Comments
 (0)