-
-
Notifications
You must be signed in to change notification settings - Fork 51
Release 4.2.0 #135
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
Release 4.2.0 #135
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
d3b335f
ci: ignore test.yml workflow on release-* branches PRs #36
jankapunkt 8c080ff
ci: add tests-release.yml workflow to test release-integrity
jankapunkt c6459b8
ci: add release.yml to release a new version to registries
jankapunkt f4fc33b
ci(tests): make coverage generate lcov.info file
jankapunkt 02e0a4d
ci(tests): make coverage generate lcov.info file as well as html #36
jankapunkt ac7bb86
ci(tests): fix spelling in coverage test script #36
jankapunkt 3821ef6
Updated doc for extension grants
4ca8032
fix(handlers): skip varcheck for state when allowEmptyState
jankapunkt 52ee11d
Merge pull request #88 from node-oauth/release-4.1.1
HappyZombies b56afcd
fixes issue 89, point 18, original pr 646
3df52fd
supported custom validateRedirectUri
91f27f8
Supported state in case of denial
5824f79
feature(): Supported state in case of denialMerge pull request #99 fr…
jankapunkt aca48ce
fix(handlers): skip varcheck for state when allowEmptyState #89 #93
jankapunkt 88ef515
added test for `validateRedirectUri`
jorenvandeweyer 0a86e69
updated documentation
jorenvandeweyer 98a9d19
better implementation of validateRedirectUri
jorenvandeweyer 8719d83
Bearer regular expression matching in authenticate handler
ff9a5d2
fixed misssing return statement in doc (#98)
FStefanni 292774e
build(deps-dev): bump eslint from 8.2.0 to 8.4.1 (#102)
dependabot[bot] 4ff1f07
added @node-oauth/formats module, removed is.js tests
jwerre 10fe55d
feature(core): extract is.js into standalone package @node-oauth/form…
jankapunkt 10bca68
Bump sinon from 11.1.2 to 12.0.1 (#74)
dependabot[bot] 643e091
build(deps-dev): bump eslint from 8.2.0 to 8.4.1 (#106)
dependabot[bot] 92bea82
Integration test password grant (#100)
jorenvandeweyer 3a1e433
added warning in docs, added extra tests that actually use parameters
jorenvandeweyer 29e081b
Merge branch 'development' into issue_89_4_482
jorenvandeweyer 9fab017
feature(authorize): allow custom implementations of validateRedirectU…
jankapunkt 4921a1c
fix(handler): deny access when body.allowed is 'false' (#94)
jankapunkt d1ba63c
fix(request): set WWW-Authenticate header for invalid requests oauthj…
jankapunkt 7174693
Merge branch 'development' into ci-release-package
jankapunkt 13aacce
feature(ci): release workflow only runs on non-draft pull requests
jankapunkt edd8160
fix(ci): use actions v2 for setting up node
jankapunkt 69a3043
fix(ci): use code-ql only on non-draft releases
jankapunkt 36e13eb
fix(ci): fix audit job syntax error
jankapunkt 4188547
fix(ci): fix publish jobs syntax error
jankapunkt ecb072e
fix(ci): fix publish jobs syntax error
jankapunkt 510546b
fix(ci): fix check coverage
jankapunkt 88a7bfe
fix(ci): run workflows also only on push for non-draft PR
jankapunkt d6ec7d8
fix(ci): fix tets.yml semantic error
jankapunkt e556def
fix(ci): release-workflow trigger on push to PR
jankapunkt 465b786
fix(ci): add lcov reporter to test:coverage
jankapunkt b7867e7
fix(ci): use oauthjs/express-oauth-server for integration testing
jankapunkt 3167a8e
fix(ci): fix path for integration test
jankapunkt c99001c
fix(ci): fix path for integration test
jankapunkt fd9ead8
fix(ci): fix path for integration test
jankapunkt aee6d92
fix(ci): fix path for integration test
jankapunkt 916c613
fix(ci): fix path for integration test
jankapunkt a47e867
fix(ci): use node-oauth/express-oauth-server for integration test
jankapunkt 8073105
fix(ci): fix path for integration test
jankapunkt 06e6b4c
fix(ci): fix path for integration test
jankapunkt 099d063
fix(ci): fix path for integration test
jankapunkt f4bfae8
fix(ci): exclude node 16 to get running
jankapunkt 9c70236
build(ci): add --access-public flag to npm publish
jankapunkt 458e3f8
build(deps-dev): bump chai from 4.3.4 to 4.3.6
dependabot[bot] c97d0e3
ci: disable release workflow until decision is made pro automated rel…
jankapunkt 72538a3
fix(core): Bearer regular expression matching in authenticate handler…
jankapunkt fff992d
Update package-lock.json
FStefanni 937f229
Update package.json
FStefanni 6d2f653
Update CHANGELOG.md
FStefanni f4caeb6
feature(ci): release workflow added #117
jankapunkt 08d4cd3
refactor(ci): remove unused ci workflow
jankapunkt 3e514df
Merge pull request #124 from node-oauth/dependabot/npm_and_yarn/chai-…
jankapunkt ac68291
Merge pull request #134 from node-oauth/remove-release-workflow
Uzlopak 274a54d
Update docs/misc/extension-grants.rst
FStefanni 1269719
docs: Update extension-grants.rst with example #92
jankapunkt 34bbd0f
remove package-lock.json and set .npmrc to not create package-lock.js…
Uzlopak d0a14d7
use npm i instad of npm ci in workflows
Uzlopak f0254db
add yarn.lock to .gitignore and .npmingnore
Uzlopak 19c8ced
RefreshTokenGrant: update error messages
chrisfranko de3f039
Merge pull request #143 from chrisfranko/development
HappyZombies 802d28f
update changelog
jankapunkt 62f3c4d
update dev-dependencies
jankapunkt 9ae7f1e
fix(docs): re-add accidentally removed changelog for release 4.1.1
jankapunkt 7050a91
Merge pull request #141 from Uzlopak/remove-package-lock-json
jankapunkt ccf836e
Merge branch 'development' into release-4.2.0
jankapunkt 7ef6ec0
fix(ci): run npm install befire npm audit to provide temporary packag…
jankapunkt 98da6bc
fix(ci): run npm install befire npm audit to provide temporary packag…
jankapunkt 4ac0430
Merge branch 'master' into release-4.2.0
jankapunkt 5c3d361
update(build): set package version to 4.2.0
jankapunkt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
name: Tests for Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- release-* # all release-<version> branches | ||
pull_request: | ||
# only non-draft PR and when there are "pushes" to the open PR | ||
types: [review_requested, ready_for_review, synchronize] | ||
branches: | ||
- release-* # all release-<version> branches | ||
|
||
|
||
jobs: | ||
# STEP 1 - NPM Audit | ||
|
||
# Before we even test a thing we want to have a clean audit! Since this is | ||
# sufficient to be done using the lowest node version, we can easily use | ||
# a fixed one: | ||
|
||
audit: | ||
name: NPM Audit | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
# install to create local package-lock.json but don't cache the files | ||
# also: no audit for dev dependencies | ||
- run: npm i --package-lock-only && npm audit --production | ||
|
||
# STEP 2 - basic unit tests | ||
|
||
# This is the standard unit tests as we do in the basic tests for every PR | ||
unittest: | ||
name: Basic unit tests | ||
runs-on: ubuntu-latest | ||
needs: [audit] | ||
strategy: | ||
matrix: | ||
node: [12, 14, 16] | ||
steps: | ||
- name: Checkout ${{ matrix.node }} | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node ${{ matrix.node }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Cache dependencies ${{ matrix.node }} | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node-${{ matrix.node }} | ||
|
||
# for this workflow we also require npm audit to pass | ||
- run: npm i | ||
- run: npm run test:coverage | ||
|
||
# with the following action we enforce PRs to have a high coverage | ||
# and ensure, changes are tested well enough so that coverage won't fail | ||
- name: check coverage | ||
uses: VeryGoodOpenSource/very_good_coverage@v1.2.0 | ||
with: | ||
path: './coverage/lcov.info' | ||
min_coverage: 95 | ||
|
||
# STEP 3 - Integration tests | ||
|
||
# Since our release may affect several packages that depend on it we need to | ||
# cover the closest ones, like adapters and examples. | ||
|
||
integrationtests: | ||
name: Extended integration tests | ||
runs-on: ubuntu-latest | ||
needs: [unittest] | ||
strategy: | ||
matrix: | ||
node: [12, 14] # TODO get running for node 16 | ||
steps: | ||
# checkout this repo | ||
- name: Checkout ${{ matrix.node }} | ||
uses: actions/checkout@v2 | ||
|
||
# checkout express-adapter repo | ||
- name: Checkout express-adapter ${{ matrix.node }} | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: node-oauth/express-oauth-server | ||
path: github/testing/express | ||
|
||
- name: Setup node ${{ matrix.node }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Cache dependencies ${{ matrix.node }} | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ matrix.node }}-node-oauth/express-oauth-server-${{ hashFiles('github/testing/express/**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node-${{ matrix.node }}-node-oauth/express-oauth-server | ||
|
||
# in order to test the adapter we need to use the current checkout | ||
# and install it as local dependency | ||
# we just cloned and install it as local dependency | ||
- run: | | ||
cd github/testing/express | ||
npm i | ||
npm install ../../../ | ||
npm run test | ||
|
||
# todo repeat with other adapters | ||
|
||
publish-npm-dry: | ||
runs-on: ubuntu-latest | ||
needs: [integrationtests] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm i | ||
- run: npm publish --dry-run | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
|
||
publish-github-dry: | ||
needs: [integrationtests] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
# we always publish targeting the lowest supported node version | ||
node-version: 12 | ||
registry-url: $registry-url(npm) | ||
- run: npm i | ||
- run: npm publish --dry-run | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,6 @@ tramp | |
# coverage | ||
coverage | ||
.nyc_output | ||
|
||
package-lock.json | ||
yarn.lock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
test/ | ||
package-lock.json | ||
yarn.lock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.