Skip to content

Commit 0f7760f

Browse files
authored
Version Packages (#9071)
1 parent 7d1e7c3 commit 0f7760f

16 files changed

+48
-56
lines changed

.changeset/add-number-id.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
----
1+
---
22
'@keystone-6/core': patch
3-
----
3+
---
44

5-
Use `idField` type of `{ kind: 'number', kind: 'Int' | 'BigInt' }` internally for singletons
5+
Use `db.idField` of `{ kind: 'number', kind: 'Int' }` internally for singletons
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
----
1+
---
22
'@keystone-6/core': patch
3-
----
3+
---
44

55
Fix static relationship resolution errors to conform to nominal error structure

.changeset/boolean-not-false-2.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
----
1+
---
22
'@keystone-6/core': patch
3-
----
3+
---
44

5-
Fix `config.server.cors` type blocking `false` values
5+
Fix `config.server.cors` type preventing value of `false`

.changeset/boolean-not-false.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
----
1+
---
22
'@keystone-6/core': patch
3-
----
3+
---
44

5-
Fix `defaultIsFilterable` and `defaultIsOrderable` types blocking `true` values
5+
Fix `defaultIsFilterable` and `defaultIsOrderable` types preventing value of `true`

.changeset/contributors.json

+3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
"DiesIrae",
88
"DustinWoods",
99
"Greenheart",
10+
"Grumaks",
1011
"JedWatson",
1112
"MadeByMike",
1213
"MarcelMalik",
1314
"Meetcpatel",
1415
"MohammadKurjieh",
1516
"MurzNN",
1617
"Noviny",
18+
"PaulAroo",
1719
"ScottAgirs",
1820
"SeanDoyleGit",
1921
"Skulek",
@@ -32,6 +34,7 @@
3234
"bladey",
3335
"borisno2",
3436
"ciruz",
37+
"dagrinchi",
3538
"dcousens",
3639
"dependabot",
3740
"dependabot[bot]",
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
----
1+
---
22
'@keystone-6/core': minor
3-
----
3+
---
44

55
Adds `{field}.hooks.validate.[create|update|delete]` hooks, deprecates `validateInput` and `validateDelete` (throws if incompatible)
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
----
1+
---
22
'@keystone-6/core': minor
3-
----
3+
---
44

55
Adds `{list}.hooks.validate.[create|update|delete]` hooks, deprecates `validateInput` and `validateDelete`

.changeset/error-if-wrong-type.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
----
1+
---
22
'@keystone-6/auth': patch
3-
----
3+
---
44

55
Fix `createInitial*` and `send*MagicAuthLink` to throw if the expected type from `sessionStrategy.start` is not a string

.changeset/fix-create-express-app.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
----
1+
---
22
'@keystone-6/core': patch
3-
----
3+
---
44

5-
Fixes `createExpressApp` to use `context.graphql.schema` rather than the GraphQLSchema argument, removing ambiguity in downstream usage
5+
Fixes `createExpressApp` to use `context.graphql.schema`, not the GraphQLSchema argument

.changeset/http-async.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@keystone-6/core': minor
33
---
44

5-
Add `async` to `extendHttpServer`, for `await` on startup
5+
Add `async` to `extendHttpServer`, to support `await` on startup

.changeset/less-extend-http-server.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
----
1+
---
22
'@keystone-6/core': patch
3-
----
3+
---
44

5-
Deprecates `extendHttpServer`'s `graphqlSchema` argument; use `context.graphql.schema` now
5+
Deprecates `extendHttpServer`'s `graphqlSchema` argument, use `context.graphql.schema` instead

.changeset/less-extend-type.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
'@keystone-6/core': Patch
2+
'@keystone-6/core': patch
33
---
44

55
Deprecates `ExtendGraphQLSchema` type, use type `(schema: GraphQLSchema) => GraphQLSchema` instead

.changeset/less-plimit.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
----
1+
---
22
'@keystone-6/core': patch
3-
----
3+
---
44

55
Fix global locking by dropping global `p-limit` on `context.query`/`context.db`

.changeset/same-field-order.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
----
1+
---
22
'@keystone-6/core': patch
3-
----
3+
---
44

55
Fix `image` field type to use consistent sub-field ordering

.changeset/text-null-default.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
----
1+
---
22
'@keystone-6/core': patch
3-
----
3+
---
44

55
Fixes the `text` field type to accept a `defaultValue` of `null`

docs/pages/docs/context/overview.md

+14-25
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,36 @@ The APIs provided by the `Context` object can be used to write the business logi
1111
The `Context` object has the following properties, which are documented below.
1212

1313
```typescript
14-
import type { Context } from '.keystone/types';
15-
16-
context = {
17-
// HTTP request object
18-
req,
19-
res,
14+
import type { Context } from '.keystone/types'
2015

16+
const context = {
2117
// Query API
2218
query,
2319

24-
// Internal DB object API
20+
// Database API
2521
db,
2622

23+
// HTTP request object
24+
req,
25+
res,
26+
27+
// Session API
28+
session,
29+
sessionStrategy
30+
2731
// GraphQL helpers
2832
graphql: {
2933
schema,
3034
run,
3135
raw,
3236
},
3337

34-
// Session API
35-
session,
36-
sessionStrategy
37-
3838
// New context creators
3939
sudo,
40-
exitSudo,
41-
withSession,
4240
withRequest,
41+
withSession,
4342

44-
// Database access
43+
// Raw Prisma access
4544
prisma,
4645

4746
// Images API
@@ -50,10 +49,7 @@ context = {
5049
getDataFromRef,
5150
getDataFromStream,
5251
},
53-
54-
// Deprecated
55-
gqlNames,
56-
};
52+
}
5753
```
5854

5955
### HTTP request object
@@ -137,13 +133,6 @@ type ImageData = {
137133

138134
`async images.getDataFromStream(stream)`: Given a readable data stream, returns an `ImageData` object. The `mode` will be taken from `config.images.mode`, and `id` will be a `uuid` value. The other values will be inferred from the data stream itself. The contents of the stream will be written to the filesystem at `config.images.local.storagePath`.
139135

140-
### Deprecated
141-
142-
The following properties are deprecated and should not be used.
143-
They will be removed in future releases.
144-
145-
`gqlNames`: A function which takes a `listKey` and returns an object containing the GraphQL query, mutation and type names related to that list.
146-
147136
## Related resources
148137

149138
{% related-content %}

0 commit comments

Comments
 (0)