Skip to content

Commit e3aa56a

Browse files
authored
Remove deprecated APIs (#49)
1 parent 5c66faf commit e3aa56a

File tree

16 files changed

+5
-423
lines changed

16 files changed

+5
-423
lines changed

.changeset/afraid-geckos-bow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"@graphql-ts/schema": major
33
---
44

5-
The following types are now deprecated and have replacements as follows:
5+
The following types have been replaced as follows:
66

77
- `ObjectType` -> `GObjectType`
88
- `EnumType` -> `GEnumType`

.changeset/purple-beers-mate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"@graphql-ts/schema": major
33
---
44

5-
The `g` export exported from `@graphql-ts/schema` directly is now deprecated. Using `gWithContext` is now the recommended way to use `@graphql-ts/schema` instead of the instance of `g` exported by `@graphql-ts/schema` or creating multiple files to setup `g` though using those is still possible.
5+
The `g` and `graphql` exports from `@graphql-ts/schema` have been removed. You should now use `gWithContext` to bind `g` to a specific context type.
66

77
```ts
88
import { GraphQLSchema } from "graphql";

packages/schema/api-with-context/package.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/schema/api-without-context/package.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/schema/package.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@
1010
"module": "./dist/graphql-ts-schema.esm.js",
1111
"default": "./dist/graphql-ts-schema.cjs.js"
1212
},
13-
"./api-with-context": {
14-
"types": "./api-with-context/dist/graphql-ts-schema-api-with-context.cjs.js",
15-
"module": "./api-with-context/dist/graphql-ts-schema-api-with-context.esm.js",
16-
"default": "./api-with-context/dist/graphql-ts-schema-api-with-context.cjs.js"
17-
},
18-
"./api-without-context": {
19-
"types": "./api-without-context/dist/graphql-ts-schema-api-without-context.cjs.js",
20-
"module": "./api-without-context/dist/graphql-ts-schema-api-without-context.esm.js",
21-
"default": "./api-without-context/dist/graphql-ts-schema-api-without-context.cjs.js"
22-
},
2313
"./package.json": "./package.json"
2414
},
2515
"files": [
@@ -36,12 +26,5 @@
3626
"devDependencies": {
3727
"graphql": "^16.3.0"
3828
},
39-
"repository": "https://github.com/Thinkmill/graphql-ts/tree/main/packages/schema",
40-
"preconstruct": {
41-
"entrypoints": [
42-
"index.ts",
43-
"api-with-context/index.ts",
44-
"api-without-context/index.ts"
45-
]
46-
}
29+
"repository": "https://github.com/Thinkmill/graphql-ts/tree/main/packages/schema"
4730
}

packages/schema/src/api-with-context/api-with-context.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/schema/src/api-with-context/api-with-context.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/schema/src/api-with-context/index.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/schema/src/api-without-context/api-without-context.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/schema/src/api-without-context/api-without-context.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)