Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ardatan/graphql-tools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @graphql-tools/load-files@6.5.4
Choose a base ref
...
head repository: ardatan/graphql-tools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @graphql-tools/load-files@6.6.0
Choose a head ref

Commits on Jun 8, 2022

  1. fix(deps): update all non-major dependencies (#4515)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jun 8, 2022
    Copy the full SHA
    39f20b6 View commit details
  2. chore(deps): update dependency lint-staged to v13 (#4500)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jun 8, 2022
    Copy the full SHA
    9dcddf9 View commit details

Commits on Jun 9, 2022

  1. chore(deps): update all non-major dependencies (#4517)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jun 9, 2022
    Copy the full SHA
    df4b850 View commit details
  2. Copy the full SHA
    ceab824 View commit details
  3. chore(release): update monorepo packages versions (#4518)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Jun 9, 2022
    Copy the full SHA
    dc688a9 View commit details

Commits on Jun 10, 2022

  1. chore(deps): update all non-major dependencies (#4519)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jun 10, 2022
    Copy the full SHA
    3d374ad View commit details
  2. chore(deps): update dependency @changesets/apply-release-plan to v6 (#…

    …4342)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jun 10, 2022
    Copy the full SHA
    678e1f6 View commit details

Commits on Jun 11, 2022

  1. chore(deps): update dependency @apollo/client to v3.6.7 (#4520)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jun 11, 2022
    Copy the full SHA
    f5cc823 View commit details

Commits on Jun 12, 2022

  1. fix(deps): update all non-major dependencies to v11.9.3 (#4523)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jun 12, 2022
    Copy the full SHA
    96500af View commit details

Commits on Jun 13, 2022

  1. chore(deps): update all non-major dependencies (#4524)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jun 13, 2022
    Copy the full SHA
    049db67 View commit details
  2. chore(deps): update dependency puppeteer to v14.4.0 (#4525)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jun 13, 2022
    Copy the full SHA
    d02faec View commit details

Commits on Jun 14, 2022

  1. chore(deps): update dependency graphql-upload to v15 (#4490)

    * chore(deps): update dependency graphql-upload to v15
    
    * Fix  imports
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
    3 people authored Jun 14, 2022
    Copy the full SHA
    5233256 View commit details

Commits on Jun 17, 2022

  1. Copy the full SHA
    05218bf View commit details
  2. chore(deps): update all non-major dependencies (#4526)

    * chore(deps): update all non-major dependencies
    
    * Fix
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
    renovate[bot] and ardatan authored Jun 17, 2022
    Copy the full SHA
    31e1726 View commit details
  3. chore(release): update monorepo packages versions (#4527)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Jun 17, 2022
    Copy the full SHA
    8f472f3 View commit details

Commits on Jun 20, 2022

  1. fix(deps): update all non-major dependencies (#4528)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 20, 2022
    Copy the full SHA
    f388354 View commit details
  2. chore(deps): update dependency typescript to v4.7.4 (#4530)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 20, 2022
    Copy the full SHA
    b9ccc63 View commit details

Commits on Jun 23, 2022

  1. chore(deps): update all non-major dependencies (#4531)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 23, 2022
    Copy the full SHA
    a84952f View commit details
  2. Copy the full SHA
    6df204d View commit details
  3. Introduce 'batch' flag, improve loadSchema and merge wrapped schemas …

    …properly (#4535)
    
    * Introduce 'batch' flag, improve loadSchema and merge wrapped schemas properly
    
    * Update description and param name
    
    * Go
    ardatan authored Jun 23, 2022
    Copy the full SHA
    4914970 View commit details
  4. chore(release): update monorepo packages versions (#4534)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Jun 23, 2022
    Copy the full SHA
    d8558da View commit details
  5. chore(deps): bump dset from 3.1.1 to 3.1.2 (#4536)

    Bumps [dset](https://github.com/lukeed/dset) from 3.1.1 to 3.1.2.
    - [Release notes](https://github.com/lukeed/dset/releases)
    - [Commits](lukeed/dset@v3.1.1...v3.1.2)
    
    ---
    updated-dependencies:
    - dependency-name: dset
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 23, 2022
    Copy the full SHA
    923605c View commit details

Commits on Jun 24, 2022

  1. Copy the full SHA
    a0abbbc View commit details
  2. fix(deps): update all non-major dependencies (#4540)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 24, 2022
    Copy the full SHA
    eea6437 View commit details
  3. chore(deps): update dependency puppeteer to v15 (#4538)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 24, 2022
    Copy the full SHA
    c0c7235 View commit details

Commits on Jun 26, 2022

  1. chore(deps): update dependency puppeteer to v15.1.1 (#4543)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 26, 2022
    Copy the full SHA
    f6dfa93 View commit details

Commits on Jun 27, 2022

  1. feat: support TypeScript esm + esm and cjs import tests on CI (#4539)

    * feat: support TypeScript esm + esm and cjs import tests on CI
    
    * chore: workaround broken apollo-client import mess
    
    * chore: adjust webpack path
    
    * chore: add changeset
    
    * chore: upgrade bob
    
    * chore: upgrade bob version
    
    * chore: change wording
    n1ru4l authored Jun 27, 2022
    Copy the full SHA
    d76a299 View commit details
  2. chore(deps): update dependency svelte2tsx to v0.5.11 (#4544)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 27, 2022
    Copy the full SHA
    c43c0e4 View commit details
  3. chore(release): update monorepo packages versions (#4542)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Jun 27, 2022
    Copy the full SHA
    b9b8dd7 View commit details
Showing 344 changed files with 3,872 additions and 2,411 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -185,8 +185,8 @@ jobs:
run: yarn install --ignore-engines && git checkout yarn.lock
- name: Build Packages
run: yarn build
- name: Test ESM
run: node scripts/test-esm.mjs
- name: Test ESM and CJS integrity
run: yarn bob check
test_browser:
name: Browser Test
runs-on: ubuntu-latest
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ packages/loaders/git/tests/test-files/type-defs-invalid.graphql
packages/loaders/json-file/tests/test-files/failing/malformed.json
website/.next
website/out
.bob
CHANGELOG.md

# temporarly ignore follow files because prettier-ignore comments don't work in mdx2
15 changes: 15 additions & 0 deletions benchmark/federation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# federation-benchmark

## 0.0.41

### Patch Changes

- Updated dependencies [d76a299c]
- @graphql-tools/stitch@8.7.0
- @graphql-tools/stitching-directives@2.3.0

## 0.0.40

### Patch Changes

- @graphql-tools/stitch@8.6.14
- @graphql-tools/stitching-directives@2.2.19

## 0.0.39

### Patch Changes
3 changes: 1 addition & 2 deletions benchmark/federation/index.js
Original file line number Diff line number Diff line change
@@ -2,8 +2,7 @@ const express = require('express');
const runStitchingGateway = require('./stitching');
const runApolloGateway = require('./federation');
const makeMonolithSchema = require('./monolith');
const { parse } = require('graphql');
const { execute } = require('graphql-executor');
const { parse, execute } = require('graphql');

function memoize1(fn) {
const memoize1cache = new Map();
9 changes: 4 additions & 5 deletions benchmark/federation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "federation-benchmark",
"version": "0.0.39",
"version": "0.0.41",
"private": true,
"scripts": {
"start": "cross-env NODE_ENV=production node index.js",
@@ -9,13 +9,12 @@
"loadtest:monolith": "k6 -e ENDPOINT=monolith run k6.js"
},
"dependencies": {
"@apollo/gateway": "2.0.4",
"@apollo/gateway": "2.0.5",
"@apollo/federation": "0.36.1",
"@graphql-tools/stitch": "8.6.13",
"@graphql-tools/stitching-directives": "2.2.18",
"@graphql-tools/stitch": "8.7.0",
"@graphql-tools/stitching-directives": "2.3.0",
"express": "4.18.1",
"graphql": "16.5.0",
"graphql-executor": "0.0.23",
"graphql-tag": "2.12.6",
"wait-on": "6.0.1",
"cross-env": "7.0.3"
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -11,9 +11,10 @@ module.exports = {
rootDir: ROOT_DIR,
restoreMocks: true,
reporters: ['default'],
modulePathIgnorePatterns: ['dist', 'test-assets', 'test-files', 'fixtures'],
modulePathIgnorePatterns: ['dist', 'test-assets', 'test-files', 'fixtures', '.bob'],
moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths, { prefix: `${ROOT_DIR}/` }),
collectCoverage: false,
cacheDirectory: resolve(ROOT_DIR, `${CI ? '' : 'node_modules/'}.cache/jest`),
transformIgnorePatterns: ['node_modules/(?!graphql)'],
resolver: 'bob-the-bundler/jest-resolver.js',
};
51 changes: 24 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -7,9 +7,8 @@
"predeploy:website": "yarn build:api-docs",
"deploy:website": "cd website && yarn deploy",
"ts:check": "tsc --noEmit",
"ts:transpile": "tsc --project tsconfig.build.json",
"clean-dist": "rimraf \"packages/**/dist\" && rimraf \".bob\"",
"build": "yarn ts:transpile && bob build",
"build": "bob build",
"build:api-docs": "ts-node --compiler-options='{\"module\":\"commonjs\"}' scripts/build-api-docs",
"lint": "eslint --ext .ts .",
"prettier": "prettier --ignore-path .prettierignore --write --list-different .",
@@ -39,62 +38,60 @@
},
"homepage": "https://github.com/ardatan/graphql-tools#readme",
"devDependencies": {
"@babel/core": "7.18.2",
"@babel/core": "7.18.5",
"@babel/plugin-proposal-class-properties": "7.17.12",
"@babel/preset-env": "7.18.2",
"@babel/preset-typescript": "7.17.12",
"@changesets/cli": "2.21.1",
"@types/debug": "4.1.7",
"@types/jest": "28.1.1",
"@types/node": "16.11.38",
"@typescript-eslint/eslint-plugin": "5.27.1",
"@typescript-eslint/parser": "5.27.1",
"babel-jest": "28.1.0",
"bob-the-bundler": "1.7.3",
"@types/jest": "28.1.3",
"@types/node": "16.11.41",
"@typescript-eslint/eslint-plugin": "5.29.0",
"@typescript-eslint/parser": "5.29.0",
"babel-jest": "28.1.1",
"bob-the-bundler": "2.0.0",
"chalk": "4.1.2",
"concurrently": "7.2.1",
"eslint": "8.17.0",
"concurrently": "7.2.2",
"eslint": "8.18.0",
"eslint-config-prettier": "8.5.0",
"eslint-config-standard": "17.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-n": "15.2.1",
"eslint-plugin-n": "15.2.3",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-standard": "5.0.0",
"globby": "11.1.0",
"graphql": "16.5.0",
"graphql-subscriptions": "2.0.0",
"husky": "8.0.1",
"jest": "28.1.0",
"lint-staged": "12.5.0",
"jest": "28.1.1",
"lint-staged": "13.0.3",
"patch-package": "6.4.7",
"prettier": "2.6.2",
"ts-jest": "28.0.4",
"prettier": "2.7.1",
"ts-jest": "28.0.5",
"ts-node": "10.8.1",
"typedoc": "0.22.15",
"typedoc-plugin-markdown": "3.11.14",
"typescript": "4.7.3",
"typescript": "4.7.4",
"weak-napi": "2.0.2"
},
"lint-staged": {
"packages/**/src/**/*.{ts,tsx}": [
"eslint --fix"
],
"**/*.{ts,tsx,graphql,yml}": [
"**/*.{ts,tsx,graphql,yml,md,mdx,json}": [
"prettier --write"
]
},
"workspaces": {
"packages": [
"./packages/*",
"./packages/loaders/*",
"./website",
"./benchmark/*"
]
},
"workspaces": [
"./packages/*",
"./packages/loaders/*",
"./website",
"./benchmark/*"
],
"resolutions": {
"graphql": "16.5.0",
"esbuild": "^0.14.0",
"@changesets/apply-release-plan": "5.0.5"
"@changesets/apply-release-plan": "6.0.0"
},
"yarn": {
"args": [
22 changes: 22 additions & 0 deletions packages/batch-delegate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @graphql-tools/batch-delegate

## 8.3.0

### Minor Changes

- d76a299c: Support TypeScript module resolution.

### Patch Changes

- Updated dependencies [a0abbbcd]
- Updated dependencies [d76a299c]
- @graphql-tools/utils@8.8.0
- @graphql-tools/delegate@8.8.0

## 8.2.21

### Patch Changes

- Updated dependencies [6df204de]
- Updated dependencies [4914970b]
- @graphql-tools/delegate@8.7.12
- @graphql-tools/utils@8.7.0

## 8.2.20

### Patch Changes
56 changes: 39 additions & 17 deletions packages/batch-delegate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/batch-delegate",
"version": "8.2.20",
"version": "8.3.0",
"description": "A set of utils for faster development of GraphQL tools",
"repository": {
"type": "git",
@@ -9,21 +9,42 @@
},
"license": "MIT",
"sideEffects": false,
"main": "dist/index.js",
"module": "dist/index.mjs",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"require": {
"types": "./dist/typings/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/typings/index.d.ts",
"default": "./dist/esm/index.js"
},
"default": {
"types": "./dist/typings/index.d.ts",
"default": "./dist/esm/index.js"
}
},
"./*": {
"require": "./dist/*.js",
"import": "./dist/*.mjs"
}
"require": {
"types": "./dist/typings/*.d.ts",
"default": "./dist/cjs/*.js"
},
"import": {
"types": "./dist/typings/*.d.ts",
"default": "./dist/esm/*.js"
},
"default": {
"types": "./dist/typings/*.d.ts",
"default": "./dist/esm/*.js"
}
},
"./package.json": "./package.json"
},
"typings": "dist/index.d.ts",
"typings": "dist/typings/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
"definition": "dist/typings/index.d.ts"
},
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
@@ -32,17 +53,18 @@
"input": "./src/index.ts"
},
"dependencies": {
"@graphql-tools/delegate": "8.7.11",
"@graphql-tools/utils": "8.6.13",
"@graphql-tools/delegate": "8.8.0",
"@graphql-tools/utils": "8.8.0",
"dataloader": "2.1.0",
"tslib": "^2.4.0"
},
"devDependencies": {
"@graphql-tools/schema": "8.3.14",
"@graphql-tools/stitch": "8.6.13"
"@graphql-tools/schema": "8.5.0",
"@graphql-tools/stitch": "8.7.0"
},
"publishConfig": {
"access": "public",
"directory": "dist"
}
"directory": "dist",
"access": "public"
},
"type": "module"
}
4 changes: 2 additions & 2 deletions packages/batch-delegate/src/batchDelegateToSchema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BatchDelegateOptions } from './types';
import { BatchDelegateOptions } from './types.js';

import { getLoader } from './getLoader';
import { getLoader } from './getLoader.js';

export function batchDelegateToSchema<TContext = any>(options: BatchDelegateOptions<TContext>): any {
const key = options.key;
4 changes: 2 additions & 2 deletions packages/batch-delegate/src/createBatchDelegateFn.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import DataLoader from 'dataloader';

import { CreateBatchDelegateFnOptions, BatchDelegateOptionsFn, BatchDelegateFn } from './types';
import { CreateBatchDelegateFnOptions, BatchDelegateOptionsFn, BatchDelegateFn } from './types.js';

import { getLoader } from './getLoader';
import { getLoader } from './getLoader.js';

export function createBatchDelegateFn<K = any, V = any, C = K>(
optionsOrArgsFromKeys: CreateBatchDelegateFnOptions | ((keys: ReadonlyArray<K>) => Record<string, any>),
2 changes: 1 addition & 1 deletion packages/batch-delegate/src/getLoader.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import DataLoader from 'dataloader';
import { delegateToSchema, SubschemaConfig } from '@graphql-tools/delegate';
import { memoize3, relocatedError } from '@graphql-tools/utils';

import { BatchDelegateOptions } from './types';
import { BatchDelegateOptions } from './types.js';

function createBatchFn<K = any>(options: BatchDelegateOptions) {
const argsFromKeys = options.argsFromKeys ?? ((keys: ReadonlyArray<K>) => ({ ids: keys }));
6 changes: 3 additions & 3 deletions packages/batch-delegate/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './batchDelegateToSchema';
export * from './createBatchDelegateFn';
export * from './batchDelegateToSchema.js';
export * from './createBatchDelegateFn.js';

export * from './types';
export * from './types.js';
19 changes: 19 additions & 0 deletions packages/batch-execute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @graphql-tools/batch-execute

## 8.5.0

### Minor Changes

- d76a299c: Support TypeScript module resolution.

### Patch Changes

- Updated dependencies [a0abbbcd]
- Updated dependencies [d76a299c]
- @graphql-tools/utils@8.8.0

## 8.4.11

### Patch Changes

- Updated dependencies [4914970b]
- @graphql-tools/utils@8.7.0

## 8.4.10

### Patch Changes
Loading