Skip to content
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

refactor: use ESM modules #426

Open
wants to merge 122 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
fece02f
chore(package.json): update commit-msg hook lib
kdhttps Jan 24, 2022
79ba1ef
feat(package.json): add esm module type
kdhttps Jan 24, 2022
78773ef
refactor(app-factory.test.js): add modules using esm import
kdhttps Jan 24, 2022
1e4af73
refactor(rate-limiter.js): add modules using esm import
kdhttps Jan 24, 2022
efb146a
fix(commit-check.yml): fix github action to use commonjs
kdhttps Jan 24, 2022
eb8a68b
refactor(session.js): add modules using esm import
kdhttps Jan 25, 2022
6d81cc3
refactor(session.js): add modules using esm import for misc
kdhttps Jan 25, 2022
56d98e5
refactor(misc.js): export modules
kdhttps Jan 25, 2022
695ba9d
refactor(default.js): export modules
kdhttps Jan 25, 2022
1350530
refactor(config): config file rename with .cjs
kdhttps Jan 26, 2022
7ddc936
refactor(misc.js): add modules using esm import
kdhttps Jan 26, 2022
cce4f0e
fix(session.js): memory store config
kdhttps Jan 26, 2022
2287ac8
refactor(app-factory.js): add modules using esm import
kdhttps Jan 31, 2022
7bc5379
refactor(logging.js): add modules using esm import
kdhttps Jan 31, 2022
7ce7117
refactor(routes.js): add modules using esm import
kdhttps Jan 31, 2022
b75f9fb
refactor(metrics.js): add modules using esm import
kdhttps Jan 31, 2022
9bbaa91
refactor(error-handler.js): add modules using esm import
kdhttps Jan 31, 2022
403116d
refactor(app-factory.js): fix imports
kdhttps Jan 31, 2022
38c3e10
refactor(logging.js): fix imports
kdhttps Jan 31, 2022
ec6f410
refactor(idp-initiated.js): add modules using esm import
kdhttps Jan 31, 2022
2d5f649
refactor(providers.js): add modules using esm import
kdhttps Jan 31, 2022
70f21f7
refactor(web-utils.js): add modules using esm import
kdhttps Jan 31, 2022
3ca3270
refactor(idp-initiated.js): fix imports
kdhttps Jan 31, 2022
29ff108
refactor(providers.js): fix imports
kdhttps Jan 31, 2022
72f5e4a
refactor(logging.js): fix imports
kdhttps Jan 31, 2022
feb6e78
refactor(cache-provider.js): add modules using esm import
kdhttps Jan 31, 2022
261f29c
refactor(openid-client-helper.js): add modules using esm import
kdhttps Jan 31, 2022
5932f0c
refactor(providers.js): fix imports
kdhttps Jan 31, 2022
aa2f236
refactor(providers.js): fix imports
kdhttps Jan 31, 2022
6d4a9b2
refactor(routes.js): fix imports
kdhttps Jan 31, 2022
79f8bdb
fix(logging.js): fix __dirname problem
kdhttps Feb 1, 2022
73a3459
refactor(sp-meta.js): add modules using esm import
kdhttps Feb 1, 2022
2d752b9
refactor(file-utils.js): add modules using esm import
kdhttps Feb 1, 2022
8e83c03
refactor(extra-passport-params.js): add modules using esm import
kdhttps Feb 1, 2022
5eecb35
refactor(http-global-proxy.js): add modules using esm import
kdhttps Feb 1, 2022
05552ef
refactor(cache-provider.test.js): add modules using esm import
kdhttps Feb 1, 2022
232d406
refactor(cache-provider.js): export utils
kdhttps Feb 1, 2022
4f5f663
refactor(routes.js): import express urlencoded
kdhttps Feb 1, 2022
e253f32
refactor(sp-meta.js): import express urlencoded
kdhttps Feb 2, 2022
97fcdc2
refactor(session.js): add modules using esm import
kdhttps Feb 2, 2022
7b76a7e
refactor(rate-limiter.js): add modules using esm import
kdhttps Feb 2, 2022
0ca5166
fix(providers.js): fix dynamic importd
kdhttps Feb 3, 2022
adfb739
refactor(openid-client.js): add modules using esm import
kdhttps Feb 3, 2022
25b8b35
refactor(helper.js): add modules using esm import
kdhttps Feb 3, 2022
ec2ed4f
refactor(providers.test.js): add modules using esm import
kdhttps Feb 3, 2022
26f4847
refactor(init-mock.js): add modules using esm import
kdhttps Feb 3, 2022
f5284b4
refactor(mappings.files): exports modules using esm export
kdhttps Feb 3, 2022
2ffacc1
refactor(openid-client-helper.js): add modules using esm import
kdhttps Feb 7, 2022
552e485
refactor(file-utils.js): add modules using esm import and mock using …
kdhttps Feb 8, 2022
e227c7f
chore(package.json): add esmock lib to mock esm modules
kdhttps Feb 8, 2022
53d7600
refactor(misc.test.js): add modules using esm import and mock using e…
kdhttps Feb 9, 2022
5299d73
chore(package.json): remove nyc and add c8 for esm file coverage
kdhttps Feb 9, 2022
62b71c1
refactor(metrics.js): add modules using esm import
kdhttps Feb 9, 2022
e4fa630
refactor(loggin.test.js): add modules using esm import
kdhttps Feb 10, 2022
f03eeed
refactor(idp-initiated.test.js): add modules using esm import
kdhttps Feb 10, 2022
6cfadaa
refactor(http-global-proxy.test.js): add modules using esm import
kdhttps Feb 10, 2022
cdce659
refactor(error-handler.test.js): add modules using esm import
kdhttps Feb 11, 2022
c76eba9
refactor(configDiscovery.js): add modules using esm import
kdhttps Feb 11, 2022
e9de775
refactor(uma.js): add modules using esm import
kdhttps Feb 11, 2022
69ab1b3
refactor(config.test.js): add modules using esm import
kdhttps Feb 11, 2022
672294f
refactor(cache-provider.test.js): add modules using esm import
kdhttps Feb 11, 2022
65fd800
refactor(app-factory.test.js): add modules using esm import
kdhttps Feb 14, 2022
4814c78
refactor(app.js): add modules using esm import
kdhttps Feb 14, 2022
fb24d36
chore(package.json): update got and esmock
kdhttps Feb 16, 2022
ec1d522
refactor(uma.js): esm import and update test cases
kdhttps Feb 16, 2022
9da046c
test(uma.test.js): fix ticket and token api test
kdhttps Feb 17, 2022
f73437b
test(uma.test.js): fix request api test
kdhttps Feb 17, 2022
f9068e2
test(uma.test.js): fix getClientAssertionJWTToken api test
kdhttps Feb 17, 2022
68313d5
test(openid-client.test.js): refactor test and mock jose
kdhttps Feb 18, 2022
02afdb6
test(openid-client.test.js): fix getIssuer api
kdhttps Feb 18, 2022
5a706ad
test(openid-client.test.js): refactor getClient test and mock jose
kdhttps Feb 21, 2022
331e08a
chore(package.json): add esmock loader
kdhttps Feb 21, 2022
856c648
refactor(app.js): fix esm imports and json read
kdhttps Feb 21, 2022
6e0874b
refactor(app.init.spec.js): fix esm imports and json read
kdhttps Feb 21, 2022
cf8bd9b
refactor(start-server-hook.js): fix esm imports and json read
kdhttps Feb 21, 2022
7b0c8ae
refactor(file-utils.spec.js): fix esm imports and json read
kdhttps Feb 22, 2022
6f79f09
refactor(http-global-proxy.spec.js): fix esm imports and json read
kdhttps Feb 22, 2022
5e77e54
refactor(loggin.spec.js): fix esm imports
kdhttps Feb 22, 2022
80bcd51
refactor(metrics.spec.js): fix esm imports
kdhttps Feb 22, 2022
8970393
refactor(openid-client-helper.spec.js): fix esm imports
kdhttps Feb 22, 2022
a3036d4
refactor(providers.spec.js): fix esm imports
kdhttps Feb 22, 2022
e498e6c
refactor(routes.spec.js): fix esm imports
kdhttps Feb 22, 2022
71bbc34
refactor(session.spec.js): fix esm imports
kdhttps Feb 22, 2022
3ee69a3
fix(*.spec.js): fix small errors on tests
kdhttps Feb 22, 2022
f2d6139
chore(package.json): upgrade cucumber-js for esm support
kdhttps Feb 23, 2022
885d5a7
chore(endpoint-metric-steps.js): update with esm
kdhttps Feb 23, 2022
ecf709a
chore(rate-limiting-steps.js): update with esm
kdhttps Feb 24, 2022
b93d507
refactor(app.js): remove module.exports
kdhttps Feb 24, 2022
c8bcebb
refactor(providers.js): remove debug logs
kdhttps Feb 24, 2022
50a57df
fix(routes.js): fix the user map problem
kdhttps Feb 24, 2022
36814c6
fix(uma.js): fix self-signed cert problem
kdhttps Feb 24, 2022
6b21f3f
refactor(routes.js): remove debug logs
kdhttps Feb 25, 2022
25e3544
chore(package.json): fic c8 code coverage command
kdhttps Feb 25, 2022
6afe16a
chore(.gitignore): add code coverage file
kdhttps Feb 28, 2022
f2e3364
test(web-utils.test.js): cover test cases
kdhttps Feb 28, 2022
f049d30
test(cache-provider.test.js): test retryStrategy
kdhttps Feb 28, 2022
b130b85
test(cache-provider.test.js): cover redis handler methods test cases
kdhttps Mar 1, 2022
d482954
test(cache-provider.test.js): cover memcache handler methods test cases
kdhttps Mar 1, 2022
23df435
Merge branch 'master' of github.com:GluuFederation/gluu-passport into…
kdhttps Mar 2, 2022
3e5a888
chore(package-lock.json): update lock file
kdhttps Mar 2, 2022
73bb010
chore(package.json): fix lint script
kdhttps Mar 2, 2022
35aca71
chore(package.json): update node engines
kdhttps Mar 2, 2022
f5ac07d
chore(codecov.yml): update node versions
kdhttps Mar 2, 2022
40de3fd
chore(lint.yml): update node versions
kdhttps Mar 2, 2022
499106a
test(uma.test.js): fix func expect 1 args bug
kdhttps Mar 2, 2022
e52ffbf
refactor(app-factory.test.js): remove redundant await
kdhttps Mar 2, 2022
45e64db
refactor(cache-provider.test.js): remove redundant await
kdhttps Mar 2, 2022
09d96a4
refactor(cache-provider.test.js): apply dry
kdhttps Mar 2, 2022
655abfd
refactor(config.test.js): remove extra comment
kdhttps Mar 2, 2022
b5e583a
refactor(configDiscovery.test.js): remove redundant await
kdhttps Mar 2, 2022
a55b7df
refactor(file-utils.test.js): remove redundant await
kdhttps Mar 2, 2022
49efa0d
refactor(init.test.js): delete file
kdhttps Mar 2, 2022
4f4ed72
refactor(logging.test.js): remove redundant await
kdhttps Mar 2, 2022
070857e
refactor(logging.test.js): remove redundant await
kdhttps Mar 2, 2022
ae54c9f
refactor(misc.test.js): apply dry
kdhttps Mar 2, 2022
5e60254
fix(openid-client-helper.test.js): fix unexpected empty func
kdhttps Mar 2, 2022
d6418b9
refactor(sp-meta.test.js): remove extra await
kdhttps Mar 2, 2022
532e7ac
refactor(uma.test.js): remove redundant await
kdhttps Mar 2, 2022
09b7ebd
refactor(uma.test.js): add https url
kdhttps Mar 2, 2022
f1f57af
refactor(app-factory.test.js): apply dry
kdhttps Mar 2, 2022
ca039a6
chore(package-lock.json): update package lock
kdhttps Mar 2, 2022
ba761f0
refactor(helper.js): replace http with https
kdhttps Mar 3, 2022
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
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# After coverage report gets generated a vulnerability scan runs and submits a sarif report directly to Security section in GitHub.

name: Test, Codecov
name: Test and Codecov

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand All @@ -23,7 +23,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [14.x, 16.x]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/commit-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
node-version: 14
- run: |
npm install --save-dev @commitlint/{config-conventional,cli}
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.cjs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a typo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, It is correct. node-config need it. more details


# If this workflow was triggered by a push then resolve the commit message from HEAD
- name: "[Push] Check Commit Standard"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ jspm_packages
.vscode
.idea
server/idp-metadata
server/jwks
server/jwks

#codecov
coverage.lcov
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading