-
Notifications
You must be signed in to change notification settings - Fork 113
Esm packages #2415
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
Open
klocke-io
wants to merge
40
commits into
master
Choose a base branch
from
esmPackages
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Esm packages #2415
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
41ef13a
convert test-utils to esm
klocke-io ade2b3f
convert test-utils to esm
klocke-io 6c0aac6
convert packages/logger to esm
klocke-io de06c32
convert packages/logger to esm
klocke-io af7ff57
convert packages/monitor to esm
klocke-io 4005271
fix eslint for eslint config using esm in workspaces
klocke-io 4fca1d1
convert packages/polling-watcher to esm
klocke-io 1746267
fix .yarn cache for prom-client
klocke-io ee5e39e
convert packages/request to esm
klocke-io 9cf5a6f
update test-utils
klocke-io 8b8072b
convert packages/kube-config to esm
klocke-io 433f1b1
convert packages/kube-client to esm
klocke-io 8cecdfa
convert packages/monitor to esm: fix failing test
klocke-io eef852e
add transpilation step to cjs
klocke-io 37ebd5a
add jest esm utils packages
klocke-io 6fbf29c
Partial Revert of "Cjs to esm top down (#2313)" excluding dependency …
klocke-io 4d249c9
sanity commit, working test in backend
klocke-io aa1be23
centralise rollup.config.js
klocke-io ca73de9
add license to rollup.config.js
klocke-io 2e7b306
Merge branch 'master' into esmPackages
klocke-io 35d689f
Update packages/monitor/__tests__/metrics.test.js
klocke-io c5000d7
add missing jest import
klocke-io 7dc71fb
Update packages/kube-config/__tests__/kube-config.test.js to fix impo…
klocke-io 410c550
add rollup as a dev dependency for script execution to packages and m…
klocke-io 65f0475
remove legacy dependency
klocke-io 97ee704
consolidate eslint config
klocke-io 79ae315
fix lint command
klocke-io bb22b53
fix testcase
klocke-io 48dde31
fix eslint config
klocke-io a7e47d3
miscellaneous
klocke-io 51e8e02
fix dependency-cruiser
klocke-io 95fe3d1
add missing .yarn/cache files
klocke-io 1b42061
fix eslint warnings
klocke-io 898bbdb
Commit from GitHub Actions (dependency-diagrams.yml) [skip ci]
klocke-io 7f62afa
refactor loadGroup function to avoid repeated object creation.
klocke-io 2b48070
remove unnecessary extraction
klocke-io c784508
remove unnecessary extraction
klocke-io 50cbad9
Migrate packages to esm
klocke-io f6b0a7b
Merge branch 'master' into esmPackages
klocke-io dcba391
Commit from GitHub Actions (dependency-diagrams.yml) [skip ci]
klocke-io 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Binary file added
BIN
+185 KB
.yarn/cache/@rollup-plugin-commonjs-npm-28.0.3-30f5621a80-0dbc61a5a8.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+110 KB
.yarn/cache/@rollup-plugin-node-resolve-npm-16.0.1-2936474bab-54d3328232.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.11 MB
.yarn/cache/@rollup-rollup-darwin-arm64-npm-4.34.6-dd4643c533-10c0.zip
Binary file not shown.
Binary file added
BIN
+2.28 MB
.yarn/cache/@rollup-rollup-darwin-arm64-npm-4.40.1-e921da81dd-10c0.zip
Binary file not shown.
Binary file removed
BIN
-2.26 MB
.yarn/cache/@rollup-rollup-darwin-x64-npm-4.34.6-bb611f2be6-10c0.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.1 MB
.yarn/cache/@rollup-rollup-linux-arm64-gnu-npm-4.34.6-16388c222e-10c0.zip
Binary file not shown.
Binary file added
BIN
+2.22 MB
.yarn/cache/@rollup-rollup-linux-arm64-gnu-npm-4.40.1-6bc85ccfc9-10c0.zip
Binary file not shown.
Binary file removed
BIN
-2.01 MB
.yarn/cache/@rollup-rollup-linux-arm64-musl-npm-4.34.6-0414d3ae61-10c0.zip
Binary file not shown.
Binary file added
BIN
+2.12 MB
.yarn/cache/@rollup-rollup-linux-arm64-musl-npm-4.40.1-e4d4240abf-10c0.zip
Binary file not shown.
Binary file removed
BIN
-2.37 MB
.yarn/cache/@rollup-rollup-linux-x64-gnu-npm-4.34.6-c869f38311-10c0.zip
Binary file not shown.
Binary file added
BIN
+2.5 MB
.yarn/cache/@rollup-rollup-linux-x64-gnu-npm-4.40.1-7dde71b7d9-10c0.zip
Binary file not shown.
Binary file removed
BIN
-2.37 MB
.yarn/cache/@rollup-rollup-linux-x64-musl-npm-4.34.6-82057a1a40-10c0.zip
Binary file not shown.
Binary file added
BIN
+2.48 MB
.yarn/cache/@rollup-rollup-linux-x64-musl-npm-4.40.1-c6a460278d-10c0.zip
Binary file not shown.
Binary file renamed
BIN
+26.3 KB
...stree-npm-1.0.6-b5e23f2ea2-cdfd751f6f.zip → ...stree-npm-1.0.7-692605611f-be81525431.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+116 KB
...loose-npm-8.4.0-49c935542d-e62407bdc3.zip → ...loose-npm-8.5.0-120f06b2cc-221df4224c.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+694 KB
...ser-npm-16.10.0-6422144538-3deb5633b0.zip → ...ser-npm-16.10.1-bdb40e5eec-7e39f8c75d.zip
Binary file not shown.
Binary file added
BIN
+516 Bytes
.yarn/cache/eslint-import-resolver-pnp-npm-0.0.0-482afcbd66-429150fb08.zip
Binary file not shown.
Binary file added
BIN
+5.42 KB
.yarn/cache/eslint-plugin-require-node-import-prefix-npm-0.0.2-3cdcddbb37-b9c958019e.zip
Binary file not shown.
Binary file renamed
BIN
+51.7 KB
.../fdir-npm-6.4.3-938f734d57-d13c10120e.zip → .../fdir-npm-6.4.4-ac98cf8d06-6ccc33be16.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+62.7 KB
...gnore-npm-7.0.3-6ded2ddf1c-8e21637513.zip → ...gnore-npm-7.0.4-e6d7361b35-90e1f69ce3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+19 KB
...oize-npm-10.0.0-953b145644-1584351834.zip → ...oize-npm-10.1.0-0d27dbdaee-6cf71f673b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+2.57 MB
...llup-npm-4.34.6-b6bc3b6a7d-0d55e43754.zip → ...llup-npm-4.40.1-3f996d9e6d-11c44b5ef9.zip
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ yarn test | |
yarn test:coverage | ||
|
||
``` | ||
|
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// | ||
// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
'use strict' | ||
|
||
const express = require('express') | ||
const bodyParser = require('body-parser') | ||
const cookieParser = require('cookie-parser') | ||
const zlib = require('zlib') | ||
const compression = require('compression') | ||
const config = require('./config') | ||
const routes = require('./routes') | ||
const hooks = require('./hooks')() | ||
const { authenticate } = require('./security') | ||
const { createClient } = require('@gardener-dashboard/kube-client') | ||
const { notFound, sendError, requestLogger } = require('./middleware') | ||
const { monitorResponseTimes } = require('@gardener-dashboard/monitor') | ||
// configure router | ||
const router = express.Router() | ||
|
||
router.use(compression({ | ||
threshold: 8192, | ||
level: zlib.constants.Z_DEFAULT_COMPRESSION, | ||
})) | ||
router.use(requestLogger) | ||
router.use(monitorResponseTimes()) | ||
router.use(cookieParser()) | ||
router.use(bodyParser.json({ | ||
limit: config.maxRequestBodySize, | ||
})) | ||
router.use(authenticate({ createClient })) | ||
for (const [key, value] of Object.entries(routes)) { | ||
router.use(key, value) | ||
} | ||
router.use(notFound) | ||
router.use(sendError) | ||
|
||
// exports | ||
module.exports = { | ||
router, | ||
hooks, | ||
} |
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.
Check failure
Code scanning / CodeQL
Missing rate limiting High
Copilot Autofix
AI 4 days ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.