Skip to content

Commit 485147f

Browse files
authored
Merge pull request #51 from node-oauth/release-4.1.0
release 4.1.0 -> master
2 parents b9aae53 + 002e380 commit 485147f

File tree

66 files changed

+3096
-564
lines changed

Some content is hidden

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

66 files changed

+3096
-564
lines changed

.eslintrc

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"extends": "eslint:recommended",
3+
"env": {
4+
"node": true,
5+
"mocha": true,
6+
"es6": true
7+
},
8+
"parserOptions": {
9+
"ecmaVersion": 9,
10+
"sourceType": "module",
11+
"ecmaFeatures" : {
12+
"globalReturn": false,
13+
"impliedStrict": true,
14+
"jsx": false
15+
}
16+
},
17+
"rules": {
18+
"indent": [
19+
"error",
20+
2
21+
],
22+
"linebreak-style": [
23+
"error",
24+
"unix"
25+
],
26+
"quotes": [
27+
"error",
28+
"single"
29+
],
30+
"semi": [
31+
"error",
32+
"always"
33+
],
34+
"no-console": [
35+
"error"
36+
],
37+
"no-unused-vars": [
38+
"error",
39+
{
40+
"vars": "all",
41+
"args": "none",
42+
"ignoreRestSiblings": false
43+
}
44+
]
45+
}
46+
}
47+

.github/FUNDING.yml

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!-- ---------------------------------------------------------------------------
2+
3+
🎉 THANK YOU FOR YOUR CONTRIBUTION! 🎉
4+
5+
We highly appreciate your time and effort to this project!
6+
7+
8+
⚠ PLEASE READ THIS FIRST ⚠
9+
10+
1. If this is a fix for a security vulnerability you discovered please don't
11+
just open this PR until we have privately discussed the vulnerability. Disclosing
12+
it without contacting us can lead to severe implications for many applications
13+
that run on this project.
14+
15+
2. Make sure you have read the contribution guidelines for this project in
16+
order to raise the chance of getting your PR accepted. This saves you valuable
17+
time and effort.
18+
19+
3. The following structure is a basic guideline. If a section does not apply you
20+
can remove it.
21+
---------------------------------------------------------------------------- -->
22+
23+
## Summary
24+
<!-- ---------------------------------------------------------------------------
25+
⚠ Provide one or two paragraphs
26+
---------------------------------------------------------------------------- -->
27+
28+
29+
30+
## Linked issue(s)
31+
<!-- ---------------------------------------------------------------------------
32+
⚠ If there is no issue for this PR we won't review it
33+
---------------------------------------------------------------------------- -->
34+
35+
36+
37+
## Involved parts of the project
38+
<!-- ---------------------------------------------------------------------------
39+
⚠ Which parts of the code is affected and which OAuth2 workflows are involved
40+
---------------------------------------------------------------------------- -->
41+
42+
43+
44+
## Added tests?
45+
<!-- ---------------------------------------------------------------------------
46+
⚠ Did you add tests that cover your changes?
47+
---------------------------------------------------------------------------- -->
48+
49+
50+
51+
## OAuth2 standard
52+
<!-- ---------------------------------------------------------------------------
53+
⚠ This section is important in order to review compliance with the standard(s).
54+
Please refer to the standard if your PR affects any functionality or is
55+
otherwise related to the standard(s) in any way
56+
---------------------------------------------------------------------------- -->
57+
58+
59+
60+
## Reproduction
61+
<!-- ---------------------------------------------------------------------------
62+
⚠ How can we reproduce your changes in an app? This is especially important
63+
when new features are added
64+
---------------------------------------------------------------------------- -->
65+

.github/dependabot.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
8-
ignore:
9-
- dependency-name: sinon
10-
versions:
11-
- 10.0.0
12-
- 9.2.4
13-
- dependency-name: mocha
14-
versions:
15-
- 8.2.1
16-
- 8.3.0
17-
- 8.3.1
18-
- dependency-name: lodash
19-
versions:
20-
- 4.17.20
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
ignore:
9+
- dependency-name: sinon
10+
versions:
11+
- 10.0.0
12+
- 9.2.4
13+
- dependency-name: mocha
14+
versions:
15+
- 8.2.1
16+
- 8.3.0
17+
- 8.3.1

.github/workflows/codeql-analysis.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL Semantic Analysis"
13+
14+
on:
15+
push: # all pushes
16+
pull_request: # all PR
17+
schedule:
18+
- cron: '0 2 * * *' # every night at 2am
19+
20+
jobs:
21+
analyze:
22+
name: Analyze
23+
runs-on: ubuntu-latest
24+
permissions:
25+
actions: read
26+
contents: read
27+
security-events: write
28+
29+
strategy:
30+
fail-fast: true
31+
matrix:
32+
language: [ 'javascript' ]
33+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
34+
# Learn more:
35+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
36+
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v2
40+
41+
# Initializes the CodeQL tools for scanning.
42+
- name: Initialize CodeQL
43+
uses: github/codeql-action/init@v1
44+
with:
45+
languages: ${{ matrix.language }}
46+
# If you wish to specify custom queries, you can do so here or in a config file.
47+
# By default, queries listed here will override any specified in a config file.
48+
# Prefix the list here with "+" to use these queries and those in the config file.
49+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
50+
51+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
52+
# If this step fails, then you should remove it and run the build manually (see below)
53+
# - name: Autobuild
54+
# uses: github/codeql-action/autobuild@v1
55+
56+
# ℹ️ Command-line programs to run using the OS shell.
57+
# 📚 https://git.io/JvXDl
58+
59+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
60+
# and modify them (or add more) to build your code if your project
61+
# uses a compiled language
62+
63+
#- run: |
64+
# make bootstrap
65+
# make release
66+
67+
- name: Perform CodeQL Analysis
68+
uses: github/codeql-action/analyze@v1

.github/workflows/tests.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Test suite
2+
3+
on:
4+
push:
5+
branches:
6+
- master # allthough master is push protected we still keep it
7+
- development
8+
pull_request: # runs on all PR
9+
10+
jobs:
11+
# ----------------------------------
12+
# uncomment when a linter is added
13+
# ----------------------------------
14+
15+
# lintjs:
16+
# name: Javascript lint
17+
# runs-on: ubuntu-latest
18+
# steps:
19+
# - name: checkout
20+
# uses: actions/checkout@v2
21+
#
22+
# - name: setup node
23+
# uses: actions/setup-node@v1
24+
# with:
25+
# node-version: '12.x'
26+
#
27+
# - name: cache dependencies
28+
# uses: actions/cache@v1
29+
# with:
30+
# path: ~/.npm
31+
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
32+
# restore-keys: |
33+
# ${{ runner.os }}-node-
34+
# - run: npm ci
35+
# - run: npm run lint
36+
37+
unittest:
38+
name: unit tests
39+
runs-on: ubuntu-latest
40+
# uncomment when a linter is added
41+
# needs: [lintjs]
42+
strategy:
43+
matrix:
44+
node: [12, 14, 16]
45+
steps:
46+
- name: Checkout ${{ matrix.node }}
47+
uses: actions/checkout@v2
48+
49+
- name: Setup node ${{ matrix.node }}
50+
uses: actions/setup-node@v1
51+
with:
52+
node-version: ${{ matrix.node }}
53+
54+
- name: Cache dependencies ${{ matrix.node }}
55+
uses: actions/cache@v1
56+
with:
57+
path: ~/.npm
58+
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
59+
restore-keys: |
60+
${{ runner.os }}-node-${{ matrix.node }}
61+
- run: npm ci
62+
- run: npm run test:coverage
63+
64+
# ----------------------------------
65+
# uncomment when a linter is added
66+
# ----------------------------------
67+
68+
# - name: check coverage
69+
# uses: devmasx/coverage-check-action@v1.2.0
70+
# with:
71+
# type: lcov
72+
# result_path: coverage/lcov.info
73+
# min_coverage: 90
74+
# token: ${{github.token}}
75+

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ npm-debug.log*~
3030
auto-save-list
3131
tramp
3232
.\#*
33+
.vscode
3334

3435
# Org-mode
3536
.org-id-locations
3637
*_archive
38+
39+
# coverage
40+
coverage
41+
.nyc_output

.jshintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.jshintrc

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

.mocharc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
recursive: true
2+
reporter: "spec"
3+
retries: 1
4+
slow: 20
5+
timeout: 2000
6+
ui: "bdd"
7+
require: test/assertions
8+
# for more options see here https://github.com/mochajs/mocha/blob/master/example/config/.mocharc.yml

.travis.yml

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

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
## Changelog
22

3+
## 4.1.0
4+
### Changed
5+
* Bump dev dependencies to resolve vulnerabilities
6+
* Replaced jshint with eslint along with should and chai
7+
* Use sha256 when generating tokens
8+
9+
### Added
10+
* Added markdown files to discuss coding rules, commit conventions, contributing guidelines, etc.
11+
12+
### Removed
13+
* Removed lodash dependency
14+
* Removed statuses package and use built in http.STATUS_CODES instead.
15+
316
### 4.0.0
417
* Bump jshint from 2.12.0 to 2.13.0
518
* Bump jshint from 2.12.0 to 2.13.0

0 commit comments

Comments
 (0)