Skip to content

Commit

Permalink
chore(dependencies): updated changesets for modified dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and ardatan committed Jan 21, 2025
1 parent bd77e13 commit 7f64f39
Show file tree
Hide file tree
Showing 18 changed files with 272 additions and 33 deletions.
5 changes: 5 additions & 0 deletions .changeset/graphql-modules-2479-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'graphql-modules': patch
---
dependencies updates:
- Updated dependency [`ramda@^0.30.0` ↗︎](https://www.npmjs.com/package/ramda/v/0.30.0) (from `^0.29.0`, in `dependencies`)
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
with:
npmTag: alpha
buildScript: build
nodeVersion: 18
nodeVersion: 23
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NODE_AUTH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main
with:
releaseScript: release
nodeVersion: 18
nodeVersion: 23
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NODE_AUTH_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18
nodeVersion: 23
- name: Use GraphQL v${{matrix.graphql_version}}
run: node ./scripts/match-graphql.js ${{matrix.graphql_version}}
- name: Type Check
Expand All @@ -39,7 +39,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest] # remove windows to speed up the tests
node-version: [12, 16, 18]
node-version: [18, 20, 22, 23]
graphql_version:
- 15
- 16
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18
nodeVersion: 23
- name: Use GraphQL v${{matrix.graphql_version}}
run: node ./scripts/match-graphql.js ${{matrix.graphql_version}}
- name: Cache Jest
Expand All @@ -72,7 +72,7 @@ jobs:
- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18
nodeVersion: 23
- name: Build Packages
run: yarn build
- name: Test ESM
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: the-guild-org/shared-config/setup@main
name: setup env
with:
nodeVersion: 18
nodeVersion: 23
packageManager: yarn

- uses: the-guild-org/shared-config/website-cf@main
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
save-exact=true
ignore-engines=true
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ website/src/pages/docs/advanced/middlewares.mdx
website/src/pages/docs/advanced/subscriptions.mdx
website/src/pages/docs/di/providers.mdx
website/src/pages/docs/recipes/migration.mdx
website/out
3 changes: 1 addition & 2 deletions jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const { pathsToModuleNameMapper } = require('ts-jest');

const ROOT_DIR = __dirname;
const TSCONFIG_PATH = resolve(ROOT_DIR, 'tsconfig.json');
const TSCONFIG_TEST_PATH = resolve(ROOT_DIR, 'tsconfig.test.json');
const tsconfig = require(TSCONFIG_PATH);
const CI = !!process.env.CI;

Expand All @@ -12,7 +11,7 @@ module.exports = (dir) => {
testEnvironment: 'node',
rootDir: dir,
reporters: ['default'],
modulePathIgnorePatterns: ['dist'],
modulePathIgnorePatterns: ['dist', '.bob'],
moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths, {
prefix: `${ROOT_DIR}/`,
}),
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"prepare": "husky install",
"postinstall": "patch-package",
"ts:check": "tsc --project tsconfig.json --noEmit",
"ci:lint": "eslint \"packages/**/*.{js,jsx,ts,tsx}\" --output-file eslint_report.json --format json",
"ci:lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint \"packages/**/*.{js,jsx,ts,tsx}\" --output-file eslint_report.json --format json",
"build": "tsc --project tsconfig.json && bob build",
"test": "jest --config jest.config.base.js",
"prerelease": "yarn build",
"release": "changeset publish",
"format": "prettier --cache --ignore-path .gitignore --ignore-path .prettierignore --check --write \"{packages,website}/**/*.{js,jsx,json,css,md,mdx,ts,tsx}\"",
"pr": "changeset",
"lint": "eslint \"packages/**/*.{js,jsx,ts,tsx}\"",
"lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint \"packages/**/*.{js,jsx,ts,tsx}\"",
"benchmark:basic": "NODE_ENV=production ts-node --project tsconfig.app.json benchmark/basic.case.ts",
"deploy-website": "cd website && yarn && yarn build && mkdir graphql-modules && mv build/* graphql-modules && mv graphql-modules build"
},
Expand Down Expand Up @@ -53,6 +53,7 @@
"babel-jest": "29.7.0",
"bob-the-bundler": "1.7.3",
"chalk": "4.1.2",
"cross-env": "7.0.3",
"dataloader": "2.2.3",
"eslint": "9.18.0",
"express": "4.21.2",
Expand Down Expand Up @@ -88,7 +89,7 @@
]
},
"lint-staged": {
"*.ts": "eslint",
"*.ts": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint",
"*{js,json,css,md,ts,tsx}": "prettier --write"
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
Expand Down
13 changes: 8 additions & 5 deletions packages/graphql-modules/src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function isAsyncIterable(obj: any): obj is AsyncIterableIterator<any> {
}

export function tapAsyncIterator<T>(
iterable: AsyncIterable<T>,
iterable: AsyncGenerator<T>,
doneCallback: () => void
): AsyncGenerator<T> {
const iteratorMethod = iterable[Symbol.asyncIterator];
Expand All @@ -53,23 +53,26 @@ export function tapAsyncIterator<T>(
throw error;
}
},
async return() {
async return(value: any) {
try {
const result = await iterator.return!();
const result = await iterator.return(value);

return mapResult(result);
} catch (error) {
doneCallback();
throw error;
}
},
async throw(error) {
throw(error) {
doneCallback();
return iterator.throw!(error);
return iterator.throw(error);
},
[Symbol.asyncIterator]() {
return this;
},
[Symbol.asyncDispose]() {
return iterator[Symbol.asyncDispose]();
},
};
}

Expand Down
3 changes: 2 additions & 1 deletion website/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
public/sitemap.xml
public/_redirects
public/_redirects
out
2 changes: 1 addition & 1 deletion website/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
3 changes: 3 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"@types/node": "22.10.7",
"@types/react": "18.3.18",
"cross-env": "7.0.3",
"postcss-import": "16.1.0",
"postcss-lightningcss": "1.0.1",
"tailwindcss": "3.4.17",
"typescript": "5.7.3"
}
}
1 change: 0 additions & 1 deletion website/postcss.config.cjs

This file was deleted.

1 change: 1 addition & 0 deletions website/postcss.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@theguild/tailwind-config/postcss.config';
6 changes: 3 additions & 3 deletions website/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"compilerOptions": {
"target": "es2019",
"module": "commonjs",
"target": "ESNext",
"module": "ESNext",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"noEmit": true,
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
Expand Down
Loading

0 comments on commit 7f64f39

Please sign in to comment.