Skip to content

Commit

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

* chore(dependencies): updated changesets for modified dependencies

* Go

* Seperate integrity check and integration test

* Bette rname

* Go

* Go

---------

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 <[email protected]>
  • Loading branch information
3 people authored Feb 27, 2023
1 parent 0347394 commit ab08c2a
Show file tree
Hide file tree
Showing 38 changed files with 534 additions and 367 deletions.
5 changes: 5 additions & 0 deletions .changeset/@graphql-mesh_config-5167-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-mesh/config": patch
---
dependencies updates:
- Updated dependency [`@envelop/[email protected]` ↗︎](https://www.npmjs.com/package/@envelop/core/v/3.0.6) (from `3.0.5`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-mesh_http-5167-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-mesh/http": patch
---
dependencies updates:
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/3.7.0) (from `3.6.0`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-mesh/plugin-http-details-extensions": patch
---
dependencies updates:
- Updated dependency [`@envelop/[email protected]` ↗︎](https://www.npmjs.com/package/@envelop/core/v/3.0.6) (from `3.0.5`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-mesh/plugin-live-query": patch
---
dependencies updates:
- Updated dependency [`@envelop/[email protected]` ↗︎](https://www.npmjs.com/package/@envelop/live-query/v/5.0.6) (from `5.0.5`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-mesh_plugin-newrelic-5167-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-mesh/plugin-newrelic": patch
---
dependencies updates:
- Updated dependency [`@envelop/[email protected]` ↗︎](https://www.npmjs.com/package/@envelop/newrelic/v/5.0.6) (from `5.0.5`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-mesh/plugin-operation-field-permissions": patch
---
dependencies updates:
- Updated dependency [`@envelop/[email protected]` ↗︎](https://www.npmjs.com/package/@envelop/operation-field-permissions/v/4.0.6) (from `4.0.5`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphql-mesh/plugin-prometheus": patch
---
dependencies updates:
- Updated dependency [`@graphql-yoga/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-prometheus/v/1.7.0) (from `1.6.1`, in `dependencies`)
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/3.7.0) (from `3.6.0`, in `peerDependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-mesh/plugin-response-cache": patch
---
dependencies updates:
- Updated dependency [`@graphql-yoga/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-response-cache/v/1.7.0) (from `1.6.1`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-mesh_plugin-statsd-5167-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-mesh/plugin-statsd": patch
---
dependencies updates:
- Updated dependency [`@envelop/[email protected]` ↗︎](https://www.npmjs.com/package/@envelop/statsd/v/3.0.6) (from `3.0.5`, in `dependencies`)
6 changes: 6 additions & 0 deletions .changeset/@graphql-mesh_runtime-5167-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphql-mesh/runtime": patch
---
dependencies updates:
- Updated dependency [`@envelop/[email protected]` ↗︎](https://www.npmjs.com/package/@envelop/core/v/3.0.6) (from `3.0.5`, in `dependencies`)
- Updated dependency [`@envelop/[email protected]` ↗︎](https://www.npmjs.com/package/@envelop/extended-validation/v/2.0.6) (from `2.0.5`, in `dependencies`)
38 changes: 27 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ jobs:
githubToken: ${{ secrets.GITHUB_TOKEN }}

unit:
name: unit / ${{matrix.os}} / node ${{matrix.node-version}}
name: unit / node ${{matrix.node-version}}
timeout-minutes: 60
runs-on: ${{matrix.os}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [14, 18]

steps:
Expand All @@ -51,13 +50,12 @@ jobs:
run: yarn test

integration:
name: integration / ${{matrix.os}} / node ${{matrix.node-version}}
name: integration / node ${{matrix.node-version}}
timeout-minutes: 60
runs-on: ${{matrix.os}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [14, 18]
# Service containers to run with `runner-job`
services:
Expand Down Expand Up @@ -114,21 +112,18 @@ jobs:
backup_file: '/tmp/backup.sql'
- name: Build
run: yarn build
- name: Node.js integrity check
run: yarn bob check
- name: Build Test Artifacts
run: yarn build-test-artifacts
- name: Test
run: yarn test:integration

integration-leak:
name: integration / leak / ${{matrix.os}} / node ${{matrix.node-version}}
name: integration / leak / node ${{matrix.node-version}}
timeout-minutes: 60
runs-on: ${{matrix.os}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [14, 18]
# Service containers to run with `runner-job`
services:
Expand Down Expand Up @@ -194,3 +189,24 @@ jobs:
timeout_minutes: 10
max_attempts: 3
command: yarn test:integration:leak

integrity-check:
name: integrity-check / node ${{matrix.node-version}}
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [14, 18]
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: the-guild-org/shared-config/setup@main
name: setup env
with:
nodeVersion: ${{matrix.node-version}}
- name: Build
run: yarn build
- name: Node.js integrity check
run: yarn bob check
2 changes: 1 addition & 1 deletion examples/auth0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test": "jest"
},
"dependencies": {
"@envelop/auth0": "4.0.5",
"@envelop/auth0": "4.0.6",
"@graphql-mesh/cli": "0.82.23",
"@graphql-mesh/json-schema": "0.37.15",
"@graphql-mesh/plugin-operation-field-permissions": "0.1.13",
Expand Down
2 changes: 1 addition & 1 deletion examples/graphql-file-upload-example/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "react-scripts test"
},
"dependencies": {
"@apollo/client": "3.7.8",
"@apollo/client": "3.7.9",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "14.0.0",
"@testing-library/user-event": "14.4.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/graphql-file-upload-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@graphql-mesh/graphql": "0.34.6",
"concurrently": "7.6.0",
"graphql": "16.6.0",
"graphql-yoga": "3.6.0",
"graphql-yoga": "3.7.0",
"sharp": "0.31.3"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions examples/json-schema-file-upload/files/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a test file
34 changes: 0 additions & 34 deletions examples/openapi-location-weather/tests/location-weather.test.js

This file was deleted.

49 changes: 49 additions & 0 deletions examples/openapi-location-weather/tests/location-weather.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import { join } from 'path';
import { readFile } from 'fs-extra';
import { lexicographicSortSchema, printSchema } from 'graphql';
import { findAndParseConfig } from '@graphql-mesh/cli';
import { createMeshHTTPHandler, MeshHTTPHandler } from '@graphql-mesh/http';
import { getMesh, MeshInstance } from '@graphql-mesh/runtime';

describe('Location Weather', () => {
jest.setTimeout(30000);
let mesh: MeshInstance;
let meshHTTP: MeshHTTPHandler<any>;
beforeAll(async () => {
const baseDir = join(__dirname, '..');
const config = await findAndParseConfig({
dir: baseDir,
});
mesh = await getMesh(config);
meshHTTP = createMeshHTTPHandler({
baseDir,
getBuiltMesh: async () => mesh,
});
});
it('should generate correct schema', async () => {
expect(printSchema(lexicographicSortSchema(mesh.schema))).toMatchSnapshot(
'location-weather-schema',
);
});
it('should give correct response for todayForecast', async () => {
const todayForecastQuery = await readFile(join(__dirname, '../example-query.graphql'), 'utf8');
const response = await meshHTTP.fetch('http://localhost:4000/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
query: todayForecastQuery,
}),
});
const result = await response.json();
expect(result?.data?.findCitiesUsingGET?.data?.length).toBeGreaterThan(0);
const found = result.data.findCitiesUsingGET.data[0];
expect(found.name).toBe('Istanbul');
// expect(typeof found.todayForecast?.maxTemp).toBe('number');
// expect(typeof found.todayForecast?.minTemp).toBe('number');
});
afterAll(() => {
mesh.destroy();
});
});
2 changes: 1 addition & 1 deletion examples/openapi-react-weatherbit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/react-dom": "18.0.11",
"@vitejs/plugin-react": "3.1.0",
"typescript": "4.9.5",
"vite": "4.1.2"
"vite": "4.1.3"
},
"browserslist": {
"production": [
Expand Down
33 changes: 16 additions & 17 deletions examples/openapi-subscriptions/tests/openapi-subscriptions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ describe('OpenAPI Subscriptions', () => {
appWrapper.dispose();
});
it('should work', async () => {
expect.assertions(2);
const startWebhookMutation = await readFile(
join(__dirname, '..', 'example-queries', 'startWebhook.mutation.graphql'),
'utf8',
Expand Down Expand Up @@ -88,22 +89,20 @@ describe('OpenAPI Subscriptions', () => {
}),
});

const listenWebhookResult = listenWebhookResponse.body!;

const iterator: AsyncIterator<Uint8Array> = listenWebhookResult[Symbol.asyncIterator]();

const readerResult = await iterator.next();
const chunkStr = Buffer.from(readerResult.value!).toString('utf8');
expect(chunkStr.trim()).toBe(
`data: ${JSON.stringify({
data: {
onData: {
userData: 'RANDOM_DATA',
},
},
})}`,
);

await iterator.return?.();
for await (const chunk of listenWebhookResponse.body!) {
const chunkStr = Buffer.from(chunk).toString('utf8').trim();
if (chunkStr.includes('data: ')) {
expect(chunkStr).toContain(
`data: ${JSON.stringify({
data: {
onData: {
userData: 'RANDOM_DATA',
},
},
})}`,
);
break;
}
}
});
});
2 changes: 1 addition & 1 deletion examples/spacex-cfw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.106",
"private": true,
"dependencies": {
"@envelop/depth-limit": "2.0.5",
"@envelop/depth-limit": "2.0.6",
"@graphql-mesh/cache-cfw-kv": "0.1.13",
"@graphql-mesh/cli": "0.82.23",
"@graphql-mesh/graphql": "0.34.6",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"devDependencies": {
"@ardatan/graphql-to-config-schema": "0.1.25",
"@babel/core": "7.20.12",
"@babel/core": "7.21.0",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/preset-env": "7.20.2",
"@babel/preset-typescript": "7.21.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"tslib": "^2.4.0"
},
"devDependencies": {
"@apollo/client": "3.7.8"
"@apollo/client": "3.7.9"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"graphql": "*"
},
"dependencies": {
"@envelop/core": "3.0.5",
"@envelop/core": "3.0.6",
"@graphql-mesh/cache-localforage": "0.7.13",
"@graphql-mesh/cross-helpers": "0.3.3",
"@graphql-mesh/merger-bare": "0.16.15",
Expand Down
2 changes: 1 addition & 1 deletion packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@graphql-mesh/types": "0.91.5",
"@graphql-mesh/utils": "0.43.13",
"@whatwg-node/router": "0.2.7",
"graphql-yoga": "3.6.0",
"graphql-yoga": "3.7.0",
"tslib": "^2.4.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"devDependencies": {
"@graphql-tools/utils": "9.2.1",
"@whatwg-node/router": "0.2.7",
"graphql-yoga": "3.6.0",
"graphql-yoga": "3.7.0",
"json-bigint-patch": "0.0.8"
},
"publishConfig": {
Expand Down
24 changes: 13 additions & 11 deletions packages/loaders/openapi/tests/example_api7.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,20 @@ describe('OpenAPI Loader: example_api7', () => {
});

for await (const chunk of response.body) {
const data = Buffer.from(chunk).toString('utf-8');
expect(data.trim()).toBe(
`data: ${JSON.stringify({
data: {
devicesEventListener: {
name: deviceName,
status: false,
const data = Buffer.from(chunk).toString('utf-8').trim();
if (data.includes('data: ')) {
expect(data).toContain(
`data: ${JSON.stringify({
data: {
devicesEventListener: {
name: deviceName,
status: false,
},
},
},
})}`,
);
break;
})}`,
);
break;
}
}
});
});
Loading

0 comments on commit ab08c2a

Please sign in to comment.