Skip to content

Commit

Permalink
fix(deps): update all non-major dependencies (#4509)
Browse files Browse the repository at this point in the history
* fix(deps): update all non-major dependencies

* chore(dependencies): updated changesets for modified dependencies

* Go

* chore(dependencies): updated changesets for modified dependencies

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
  • Loading branch information
3 people committed Sep 17, 2022
1 parent a6834ca commit 7254e96
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 54 deletions.
8 changes: 8 additions & 0 deletions .changeset/@graphql-mesh_cli-4509-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@graphql-mesh/cli": patch
---

dependencies updates:

- Updated dependency [`graphql-ws@5.11.1` ↗︎](https://www.npmjs.com/package/graphql-ws/v/5.11.1) (from `5.10.2`, in `dependencies`)
- Removed dependency [`graphql-yoga@3.0.0-alpha-20220905163021-e923bb34` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/3.0.0-alpha-20220905163021-e923bb34) (from `dependencies`)
8 changes: 8 additions & 0 deletions .changeset/@graphql-mesh_http-4509-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@graphql-mesh/http": patch
---

dependencies updates:

- Updated dependency [`@whatwg-node/server@0.4.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.4.0) (from `0.3.0`, in `dependencies`)
- Updated dependency [`graphql-yoga@3.0.0-alpha-20220917000718-4285245d` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/3.0.0-alpha-20220917000718-4285245d) (from `3.0.0-alpha-20220905163021-e923bb34`, in `dependencies`)
2 changes: 1 addition & 1 deletion examples/federation-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"devDependencies": {
"concurrently": "5.3.0",
"delay-cli": "2.0.0",
"nodemon": "2.0.19"
"nodemon": "2.0.20"
},
"workspaces": [
"gateway",
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@
"@graphql-mesh/types": "0.84.0",
"@graphql-mesh/http": "0.1.13",
"@graphql-tools/utils": "8.12.0",
"graphql-yoga": "3.0.0-alpha-20220905163021-e923bb34",
"dotenv": "16.0.2",
"dnscache": "1.0.2",
"graphql-import-node": "0.0.5",
"graphql-ws": "5.10.2",
"graphql-ws": "5.11.1",
"change-case": "4.1.2",
"json-bigint-patch": "0.0.8",
"json5": "2.2.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
}
},
"dependencies": {
"@whatwg-node/server": "0.3.0",
"@whatwg-node/server": "0.4.0",
"@whatwg-node/fetch": "^0.4.3",
"@graphql-mesh/cross-helpers": "0.2.6",
"@graphql-mesh/runtime": "0.44.9",
"@graphql-mesh/utils": "0.41.11",
"@graphql-mesh/types": "0.84.0",
"graphql-yoga": "3.0.0-alpha-20220905163021-e923bb34",
"graphql-yoga": "3.0.0-alpha-20220917000718-4285245d",
"itty-router": "2.6.1",
"itty-router-extras": "0.4.2",
"tslib": "^2.4.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/http/src/graphqlHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ export const graphqlHandler = (
);
return async (request: Request, ...args: any[]) => {
const yoga = await yoga$;
return yoga.handleRequest(request, ...args);
return yoga.handle(request, ...args);
};
};
21 changes: 8 additions & 13 deletions packages/http/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,29 +36,24 @@ export function createMeshHTTPHandler<TServerContext>({
// trustProxy = 'loopback',
} = rawServeConfig;

const router = Router();
const serverAdapter = createServerAdapter(Router());

const requestHandler = createServerAdapter({
handleRequest: router.handle,
baseObject: router,
});

router.all(
serverAdapter.all(
'/healthcheck',
() =>
new Response(null, {
status: readyFlag ? 204 : 503,
})
);
router.all(
serverAdapter.all(
'/readiness',
() =>
new Response(null, {
status: readyFlag ? 204 : 503,
})
);

router.post('*', async (request: Request) => {
serverAdapter.post('*', async (request: Request) => {
if (readyFlag) {
const { pubsub } = await mesh$;
for (const eventName of pubsub.getEventNames()) {
Expand All @@ -82,7 +77,7 @@ export function createMeshHTTPHandler<TServerContext>({

if (staticFiles) {
const indexPath = path.join(baseDir, staticFiles, 'index.html');
router.get('*', async request => {
serverAdapter.get('*', async request => {
const url = new URL(request.url);
if (url.pathname === '/' && (await pathExists(indexPath))) {
const indexFile = await fs.promises.readFile(indexPath);
Expand All @@ -103,7 +98,7 @@ export function createMeshHTTPHandler<TServerContext>({
return undefined;
});
} else {
router.get(
serverAdapter.get(
'/',
() =>
new Response(null, {
Expand All @@ -115,11 +110,11 @@ export function createMeshHTTPHandler<TServerContext>({
);
}

router.all(
serverAdapter.all(
graphqlPath,
withCookies,
graphqlHandler(mesh$, playgroundTitle, playgroundEnabled, graphqlPath, corsConfig)
);

return requestHandler;
return serverAdapter;
}
62 changes: 27 additions & 35 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2064,7 +2064,7 @@
jwks-rsa "^2.0.1"
tslib "^2.4.0"

"@envelop/core@2.6.0", "@envelop/core@^2.3.2", "@envelop/core@^2.4.1", "@envelop/core@^2.5.0":
"@envelop/core@2.6.0", "@envelop/core@^2.3.2", "@envelop/core@^2.5.0":
version "2.6.0"
resolved "https://registry.yarnpkg.com/@envelop/core/-/core-2.6.0.tgz#1b7a346a37040c217f0f9b60c3358efc6c3b1b94"
integrity sha512-yTptKinJN//i6m1kXUbnLBl/FobzddI4ehURAMS08eRUOQwAuXqJU9r8VdTav8nIZLb4t6cuDWFb3n331LiwLw==
Expand Down Expand Up @@ -2106,7 +2106,7 @@
"@envelop/extended-validation" "^1.9.0"
tslib "^2.4.0"

"@envelop/parser-cache@^4.4.0", "@envelop/parser-cache@^4.6.0":
"@envelop/parser-cache@^4.6.0":
version "4.7.0"
resolved "https://registry.yarnpkg.com/@envelop/parser-cache/-/parser-cache-4.7.0.tgz#fc438d8ed390c88fa24bf56da3e4da36f088e3fc"
integrity sha512-63NfXDcW/vGn4U6NFxaZ0JbYWAcJb9A6jhTvghsSz1ZS+Dny/ci8bVSgVmM1q+N56hPyGsVPuyI+rIc71mPU5g==
Expand Down Expand Up @@ -2145,7 +2145,7 @@
dependencies:
tslib "^2.4.0"

"@envelop/validation-cache@^4.4.0", "@envelop/validation-cache@^4.6.0":
"@envelop/validation-cache@^4.6.0":
version "4.7.0"
resolved "https://registry.yarnpkg.com/@envelop/validation-cache/-/validation-cache-4.7.0.tgz#6871116c5387cd7c310b9ae9187d29c2793ae33f"
integrity sha512-PzL+GfWJRT+JjsJqZAIxHKEkvkM3hxkeytS5O0QLXT8kURNBV28r+Kdnn2RCF5+6ILhyGpiDb60vaquBi7g4lw==
Expand Down Expand Up @@ -5487,7 +5487,7 @@
"@webassemblyjs/ast" "1.11.1"
"@xtuc/long" "4.2.2"

"@whatwg-node/fetch@0.4.3", "@whatwg-node/fetch@^0.4.0", "@whatwg-node/fetch@^0.4.3":
"@whatwg-node/fetch@0.4.3", "@whatwg-node/fetch@^0.4.0", "@whatwg-node/fetch@^0.4.2", "@whatwg-node/fetch@^0.4.3":
version "0.4.3"
resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.4.3.tgz#6c95c039f0912bbcb1af8e5c496104bbeab242d2"
integrity sha512-+NzflVRaWl48Jdjq7FOxkmb8wLpSWtk6XKAEMfr/yDOqJS7HWxA+Rc5rTVqh2IRi6QZJyKGoaGKjOAqrGq07nA==
Expand All @@ -5502,7 +5502,7 @@
undici "^5.8.0"
web-streams-polyfill "^3.2.0"

"@whatwg-node/fetch@^0.3.0", "@whatwg-node/fetch@^0.3.2":
"@whatwg-node/fetch@^0.3.0":
version "0.3.2"
resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.3.2.tgz#da4323795c26c135563ba01d49dc16037bec4287"
integrity sha512-Bs5zAWQs0tXsLa4mRmLw7Psps1EN78vPtgcLpw3qPY8s6UYPUM67zFZ9cy+7tZ64PXhfwzxJn+m7RH2Lq48RNQ==
Expand All @@ -5517,22 +5517,14 @@
undici "^5.8.0"
web-streams-polyfill "^3.2.0"

"@whatwg-node/server@0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@whatwg-node/server/-/server-0.3.0.tgz#d5112d1a4b8b7990b6cc5b652b533869e811d29e"
integrity sha512-21mXZ/ExF5UESNFJMho39Psvfp6F0qVL2wXBq194kDqe/7nLFQ4NIM1BmzPZmNcnXyKs1kXUJLn+OpwyqRCSDQ==
"@whatwg-node/server@0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@whatwg-node/server/-/server-0.4.0.tgz#5b0b089326017da2c6922091b4b98c1fbe705097"
integrity sha512-FM2TJN/FvDs/Ggn0oVFSVqc8+vcH1IuUH4vg1XoQrgBtWAFzOAIacEhxPZaq+akhwo/IyRFVWLqFFHLJqibyAw==
dependencies:
"@whatwg-node/fetch" "^0.4.0"
tslib "^2.3.1"

"@whatwg-node/server@^0.1.0":
version "0.1.2"
resolved "https://registry.yarnpkg.com/@whatwg-node/server/-/server-0.1.2.tgz#512d23381991a389ab7c274974864b71c38b46ed"
integrity sha512-DUzxx9oAMwGjLyBlMJkkJVWdflBatYV3haeGcTYKqF9HVX8DTdRrqMA/KFdsiVyfaNkPgaL5RnGE4KngGFSF6Q==
dependencies:
"@whatwg-node/fetch" "^0.3.0"
tslib "^2.3.1"

"@wry/context@^0.6.0":
version "0.6.1"
resolved "https://registry.yarnpkg.com/@wry/context/-/context-0.6.1.tgz#c3c29c0ad622adb00f6a53303c4f965ee06ebeb2"
Expand Down Expand Up @@ -10941,27 +10933,27 @@ graphql-type-json@0.3.2:
resolved "https://registry.yarnpkg.com/graphql-type-json/-/graphql-type-json-0.3.2.tgz#f53a851dbfe07bd1c8157d24150064baab41e115"
integrity sha512-J+vjof74oMlCWXSvt0DOf2APEdZOCdubEvGDUAlqH//VBYcOYsGgRW7Xzorr44LvkjiuvecWc8fChxuZZbChtg==

graphql-ws@5.10.2, graphql-ws@^5.4.1, graphql-ws@^5.6.2:
version "5.10.2"
resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.10.2.tgz#1aeb38eb31b7351113c9dc3dbab719a0967000c0"
integrity sha512-QnLz0hbpTkmp/ATKAA3Tsg9LFZjWtgrLMgxc3W9G+3+rxUtzcYLwQh4YbXELYcpCqo8zdQxmERAtIQSgq75LTw==
graphql-ws@5.11.1, graphql-ws@^5.4.1, graphql-ws@^5.6.2:
version "5.11.1"
resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.11.1.tgz#f9c8b7c64986d1d921f2a820dc68a393853c94e8"
integrity sha512-AlOO/Gt0fXuSHXe/Weo6o3rIQVnH5MW7ophzeYzL+vYNlkf0NbWRJ6IIFgtSLcv9JpTlQdxSpB3t0SnM47/BHA==

graphql-yoga@3.0.0-alpha-20220905163021-e923bb34:
version "3.0.0-alpha-20220905163021-e923bb34"
resolved "https://registry.yarnpkg.com/graphql-yoga/-/graphql-yoga-3.0.0-alpha-20220905163021-e923bb34.tgz#cb435055675d7f606723613b55ab3beeb510cf59"
integrity sha512-LIeEq1Wg+7etYppd8eOIrPCLbfJKMvWRDXOYNRsO5O8sPwU+6qLwkrOenEN2nzZMcq4MMJ7F5b3IH9f6aH/lAg==
graphql-yoga@3.0.0-alpha-20220917000718-4285245d:
version "3.0.0-alpha-20220917000718-4285245d"
resolved "https://registry.yarnpkg.com/graphql-yoga/-/graphql-yoga-3.0.0-alpha-20220917000718-4285245d.tgz#1a6d6e89b1aa80840be39f51c6e9b0b93a30631f"
integrity sha512-vp1pyI8yT666WdCeDUFNZLKyK41bkcX+qcHdU6XuSlNezAbywPZQk1u9eQe2whe3jZh31oYY4C58B6PSQ+C/dA==
dependencies:
"@envelop/core" "^2.4.1"
"@envelop/parser-cache" "^4.4.0"
"@envelop/validation-cache" "^4.4.0"
"@envelop/core" "^2.5.0"
"@envelop/parser-cache" "^4.6.0"
"@envelop/validation-cache" "^4.6.0"
"@graphql-tools/code-file-loader" "^7.3.0"
"@graphql-tools/mock" "^8.7.0"
"@graphql-tools/schema" "^9.0.0"
"@graphql-tools/utils" "^8.8.0"
"@graphql-typed-document-node/core" "^3.1.1"
"@graphql-yoga/subscription" "^2.2.2"
"@whatwg-node/fetch" "^0.3.2"
"@whatwg-node/server" "^0.1.0"
"@whatwg-node/fetch" "^0.4.2"
"@whatwg-node/server" "0.4.0"
dset "^3.1.1"
graphql-config "^4.1.0"
tslib "^2.3.1"
Expand Down Expand Up @@ -15118,15 +15110,15 @@ node-releases@^2.0.6:
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.6.tgz#8a7088c63a55e493845683ebf3c828d8c51c5503"
integrity sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==

nodemon@2.0.19:
version "2.0.19"
resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-2.0.19.tgz#cac175f74b9cb8b57e770d47841995eebe4488bd"
integrity sha512-4pv1f2bMDj0Eeg/MhGqxrtveeQ5/G/UVe9iO6uTZzjnRluSA4PVWf8CW99LUPwGB3eNIA7zUFoP77YuI7hOc0A==
nodemon@2.0.20:
version "2.0.20"
resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-2.0.20.tgz#e3537de768a492e8d74da5c5813cb0c7486fc701"
integrity sha512-Km2mWHKKY5GzRg6i1j5OxOHQtuvVsgskLfigG25yTtbyfRGn/GNvIbRyOf1PSCKJ2aT/58TiuUsuOU5UToVViw==
dependencies:
chokidar "^3.5.2"
debug "^3.2.7"
ignore-by-default "^1.0.1"
minimatch "^3.0.4"
minimatch "^3.1.2"
pstree.remy "^1.1.8"
semver "^5.7.1"
simple-update-notifier "^1.0.7"
Expand Down

0 comments on commit 7254e96

Please sign in to comment.