type-graphql 2.0.0-rc.2 → 2.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +19 -13
- package/build/cjs/decorators/Arg.js +1 -2
- package/build/cjs/decorators/Args.js +1 -2
- package/build/cjs/decorators/ArgsType.js +1 -2
- package/build/cjs/decorators/Authorized.js +1 -2
- package/build/cjs/decorators/Ctx.js +1 -2
- package/build/cjs/decorators/Directive.js +1 -2
- package/build/cjs/decorators/Extensions.js +1 -2
- package/build/cjs/decorators/Field.js +1 -2
- package/build/cjs/decorators/FieldResolver.js +1 -2
- package/build/cjs/decorators/Info.js +1 -2
- package/build/cjs/decorators/InputType.js +1 -2
- package/build/cjs/decorators/InterfaceType.js +1 -2
- package/build/cjs/decorators/Mutation.js +1 -2
- package/build/cjs/decorators/ObjectType.js +1 -2
- package/build/cjs/decorators/Query.js +1 -2
- package/build/cjs/decorators/Resolver.js +1 -2
- package/build/cjs/decorators/Root.js +1 -2
- package/build/cjs/decorators/Subscription.js +1 -2
- package/build/cjs/decorators/UseMiddleware.js +1 -2
- package/build/cjs/decorators/createMethodMiddlewareDecorator.js +1 -2
- package/build/cjs/decorators/createParameterDecorator.js +1 -2
- package/build/cjs/decorators/createResolverClassMiddlewareDecorator.js +1 -2
- package/build/cjs/decorators/enums.js +1 -2
- package/build/cjs/decorators/unions.js +1 -2
- package/build/cjs/helpers/auth-middleware.js +1 -2
- package/build/cjs/helpers/decorators.js +3 -4
- package/build/cjs/helpers/filesystem.js +2 -3
- package/build/cjs/helpers/findType.js +1 -2
- package/build/cjs/helpers/isThrowing.js +1 -2
- package/build/cjs/helpers/params.js +1 -2
- package/build/cjs/helpers/resolver-metadata.js +1 -2
- package/build/cjs/helpers/types.js +11 -6
- package/build/cjs/metadata/getMetadataStorage.js +1 -2
- package/build/cjs/metadata/metadata-storage.js +192 -28
- package/build/cjs/metadata/utils.js +4 -5
- package/build/cjs/resolvers/convert-args.js +2 -3
- package/build/cjs/resolvers/create.js +4 -5
- package/build/cjs/resolvers/helpers.js +3 -4
- package/build/cjs/resolvers/validate-arg.js +1 -2
- package/build/cjs/schema/definition-node.js +6 -7
- package/build/cjs/schema/schema-generator.js +51 -41
- package/build/cjs/schema/utils.js +2 -3
- package/build/cjs/shim.js +3 -3
- package/build/cjs/utils/buildSchema.js +2 -3
- package/build/cjs/utils/buildTypeDefsAndResolvers.js +2 -3
- package/build/cjs/utils/createResolversMap.js +1 -2
- package/build/cjs/utils/emitSchemaDefinitionFile.js +3 -3
- package/build/cjs/utils/graphql-version.js +3 -3
- package/build/cjs/utils/isPromiseLike.js +1 -2
- package/build/esm/helpers/types.js +7 -1
- package/build/esm/metadata/metadata-storage.js +192 -28
- package/build/esm/schema/schema-generator.js +51 -41
- package/build/esm/utils/graphql-version.js +1 -1
- package/build/typings/metadata/metadata-storage.d.ts +14 -0
- package/build/typings/schema/schema-generator.d.ts +5 -5
- package/build/typings/utils/graphql-version.d.ts +1 -1
- package/package.json +65 -65
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "type-graphql",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Create GraphQL schema and resolvers with TypeScript, using classes and decorators!",
|
|
6
6
|
"keywords": [
|
|
@@ -97,9 +97,9 @@
|
|
|
97
97
|
"prepare": "npx ts-patch install -s && npx husky install"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"class-validator": ">=0.14.
|
|
101
|
-
"graphql": "^16.
|
|
102
|
-
"graphql-scalars": "^1.
|
|
100
|
+
"class-validator": ">=0.14.3",
|
|
101
|
+
"graphql": "^16.12.0",
|
|
102
|
+
"graphql-scalars": "^1.25.0"
|
|
103
103
|
},
|
|
104
104
|
"peerDependenciesMeta": {
|
|
105
105
|
"class-validator": {
|
|
@@ -107,86 +107,86 @@
|
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|
|
110
|
-
"@graphql-yoga/subscription": "^5.0.
|
|
110
|
+
"@graphql-yoga/subscription": "^5.0.5",
|
|
111
111
|
"@types/node": "*",
|
|
112
|
-
"@types/semver": "^7.
|
|
113
|
-
"graphql-query-complexity": "^
|
|
114
|
-
"semver": "^7.
|
|
115
|
-
"tslib": "^2.
|
|
112
|
+
"@types/semver": "^7.7.1",
|
|
113
|
+
"graphql-query-complexity": "^1.1.0",
|
|
114
|
+
"semver": "^7.7.3",
|
|
115
|
+
"tslib": "^2.8.1"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
118
|
"@apollo/cache-control-types": "^1.0.3",
|
|
119
|
-
"@apollo/gateway": "^2.
|
|
120
|
-
"@apollo/server": "^
|
|
121
|
-
"@apollo/server-plugin-response-cache": "^
|
|
122
|
-
"@apollo/subgraph": "^2.
|
|
123
|
-
"@cspell/dict-node": "^
|
|
124
|
-
"@cspell/dict-npm": "^5.
|
|
125
|
-
"@cspell/dict-shell": "^1.
|
|
126
|
-
"@cspell/dict-typescript": "^3.
|
|
127
|
-
"@cspell/eslint-plugin": "^
|
|
128
|
-
"@graphql-tools/schema": "^10.0.
|
|
129
|
-
"@graphql-tools/utils": "^10.
|
|
130
|
-
"@graphql-yoga/redis-event-target": "^3.0.
|
|
131
|
-
"@mikro-orm/core": "^6.2
|
|
132
|
-
"@mikro-orm/postgresql": "^6.2
|
|
133
|
-
"@typegoose/typegoose": "^
|
|
134
|
-
"@types/jest": "^
|
|
119
|
+
"@apollo/gateway": "^2.12.2",
|
|
120
|
+
"@apollo/server": "^5.2.0",
|
|
121
|
+
"@apollo/server-plugin-response-cache": "^5.0.0",
|
|
122
|
+
"@apollo/subgraph": "^2.12.2",
|
|
123
|
+
"@cspell/dict-node": "^5.0.8",
|
|
124
|
+
"@cspell/dict-npm": "^5.2.27",
|
|
125
|
+
"@cspell/dict-shell": "^1.1.2",
|
|
126
|
+
"@cspell/dict-typescript": "^3.2.3",
|
|
127
|
+
"@cspell/eslint-plugin": "^9.4.0",
|
|
128
|
+
"@graphql-tools/schema": "^10.0.30",
|
|
129
|
+
"@graphql-tools/utils": "^10.11.0",
|
|
130
|
+
"@graphql-yoga/redis-event-target": "^3.0.3",
|
|
131
|
+
"@mikro-orm/core": "^6.6.2",
|
|
132
|
+
"@mikro-orm/postgresql": "^6.6.2",
|
|
133
|
+
"@typegoose/typegoose": "^13.0.0",
|
|
134
|
+
"@types/jest": "^30.0.0",
|
|
135
135
|
"@types/lodash.merge": "^4.6.9",
|
|
136
|
-
"@types/node": "^
|
|
137
|
-
"@types/shelljs": "^0.
|
|
138
|
-
"@types/yargs": "^17.0.
|
|
139
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
140
|
-
"@typescript-eslint/parser": "^
|
|
141
|
-
"class-validator": "^0.14.
|
|
142
|
-
"cspell": "^
|
|
143
|
-
"dotenv": "^
|
|
144
|
-
"eslint": "^8.
|
|
136
|
+
"@types/node": "^25.0.3",
|
|
137
|
+
"@types/shelljs": "^0.10.0",
|
|
138
|
+
"@types/yargs": "^17.0.35",
|
|
139
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
140
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
141
|
+
"class-validator": "^0.14.3",
|
|
142
|
+
"cspell": "^9.4.0",
|
|
143
|
+
"dotenv": "^17.2.3",
|
|
144
|
+
"eslint": "^8.57.0",
|
|
145
145
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
146
|
-
"eslint-config-airbnb-typescript": "^
|
|
146
|
+
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
147
147
|
"eslint-config-prettier": "^9.1.0",
|
|
148
148
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
149
149
|
"eslint-plugin-import": "^2.29.1",
|
|
150
|
-
"eslint-plugin-jest": "^
|
|
151
|
-
"eslint-plugin-tsdoc": "^0.
|
|
152
|
-
"expect": "^
|
|
153
|
-
"glob": "^
|
|
154
|
-
"graphql": "^16.
|
|
155
|
-
"graphql-scalars": "^1.
|
|
150
|
+
"eslint-plugin-jest": "^28.7.0",
|
|
151
|
+
"eslint-plugin-tsdoc": "^0.3.0",
|
|
152
|
+
"expect": "^30.2.0",
|
|
153
|
+
"glob": "^13.0.0",
|
|
154
|
+
"graphql": "^16.12.0",
|
|
155
|
+
"graphql-scalars": "^1.25.0",
|
|
156
156
|
"graphql-tag": "^2.12.6",
|
|
157
|
-
"graphql-yoga": "^5.
|
|
158
|
-
"husky": "^
|
|
159
|
-
"ioredis": "^5.
|
|
160
|
-
"jest": "^
|
|
157
|
+
"graphql-yoga": "^5.18.0",
|
|
158
|
+
"husky": "^9.1.7",
|
|
159
|
+
"ioredis": "^5.8.2",
|
|
160
|
+
"jest": "^30.2.0",
|
|
161
161
|
"joiful": "^3.0.2",
|
|
162
|
-
"lint-staged": "^
|
|
162
|
+
"lint-staged": "^16.2.7",
|
|
163
163
|
"lodash.merge": "^4.6.2",
|
|
164
|
-
"markdownlint": "^0.
|
|
165
|
-
"markdownlint-cli": "^0.
|
|
166
|
-
"mongoose": "^
|
|
164
|
+
"markdownlint": "^0.40.0",
|
|
165
|
+
"markdownlint-cli": "^0.47.0",
|
|
166
|
+
"mongoose": "^9.0.2",
|
|
167
167
|
"npm-run-all": "^4.1.5",
|
|
168
|
-
"pg": "^8.
|
|
169
|
-
"prettier": "^3.
|
|
170
|
-
"prettier-plugin-sh": "^0.
|
|
171
|
-
"reflect-metadata": "
|
|
172
|
-
"shellcheck": "^
|
|
173
|
-
"shelljs": "^0.
|
|
174
|
-
"shx": "^0.
|
|
175
|
-
"sponsorkit": "^0.
|
|
176
|
-
"ts-jest": "^29.
|
|
168
|
+
"pg": "^8.16.3",
|
|
169
|
+
"prettier": "^3.7.4",
|
|
170
|
+
"prettier-plugin-sh": "^0.18.0",
|
|
171
|
+
"reflect-metadata": "0.1.13",
|
|
172
|
+
"shellcheck": "^4.1.0",
|
|
173
|
+
"shelljs": "^0.10.0",
|
|
174
|
+
"shx": "^0.4.0",
|
|
175
|
+
"sponsorkit": "^17.0.0",
|
|
176
|
+
"ts-jest": "^29.4.6",
|
|
177
177
|
"ts-node": "^10.9.2",
|
|
178
|
-
"ts-patch": "^3.
|
|
178
|
+
"ts-patch": "^3.3.0",
|
|
179
179
|
"tsconfig-paths": "^4.2.0",
|
|
180
|
-
"tsyringe": "^4.
|
|
180
|
+
"tsyringe": "^4.10.0",
|
|
181
181
|
"typedi": "^0.10.0",
|
|
182
|
-
"typeorm": "^0.3.
|
|
183
|
-
"typescript": "^5.4
|
|
184
|
-
"typescript-transform-paths": "^3.
|
|
182
|
+
"typeorm": "^0.3.28",
|
|
183
|
+
"typescript": "^5.5.4",
|
|
184
|
+
"typescript-transform-paths": "^3.5.5",
|
|
185
185
|
"typescript-transformer-esm": "^1.1.0",
|
|
186
|
-
"yargs": "^
|
|
186
|
+
"yargs": "^18.0.0"
|
|
187
187
|
},
|
|
188
188
|
"engines": {
|
|
189
|
-
"node": ">=
|
|
189
|
+
"node": ">= 20.11.1"
|
|
190
190
|
},
|
|
191
191
|
"publishConfig": {
|
|
192
192
|
"access": "public",
|