Skip to content

Commit f9650ce

Browse files
authored
Merge branch 'main' into tte/update-migration-guide
2 parents 166a737 + aa80b4a commit f9650ce

File tree

5 files changed

+57
-10
lines changed

5 files changed

+57
-10
lines changed

SECURITY.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,23 @@
22

33
## Supported Versions
44

5-
We will provide security updates to the latest major version.
5+
We will provide bug fixes and updates to the latest major version.
66

77
| Version | Supported |
88
| ------- | ------------------ |
9-
| 12.x | :white_check_mark: |
10-
| < 12.0 | :x: |
9+
| 14.x | :white_check_mark: |
10+
| < 13.0 | :x: |
11+
12+
## Security Updates
13+
14+
We will provide security relevant fixes to the following versions:
15+
16+
| Version | Supported |
17+
| ------- | ------------------ |
18+
| 14.x | :white_check_mark: |
19+
| 13.x | :white_check_mark: |
20+
| 12.x | :white_check_mark: |
21+
| < 12.0 | :x: |
1122

1223
## Reporting a Vulnerability
1324

cspell.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
"*.drawio",
1717
"**/bin/",
1818
"**/obj/",
19-
"packages.lock.json",
20-
21-
// TODO: Remove
22-
"**/test/"
19+
"packages.lock.json"
2320
],
2421
"ignoreRegExpList": [
2522
"featuredVideoId:(.*)", // video hash

src/GreenDonut/src/Core/Predicates/DefaultPredicateBuilder.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33

44
namespace GreenDonut.Predicates;
55

6+
/// <summary>
7+
/// A default implementation of the <see cref="IPredicateBuilder"/>.
8+
/// </summary>
69
[Experimental(Experiments.Predicates)]
7-
internal sealed class DefaultPredicateBuilder : IPredicateBuilder
10+
public sealed class DefaultPredicateBuilder : IPredicateBuilder
811
{
912
private List<LambdaExpression>? _predicates;
1013

website/src/blog/2024-08-30-hot-chocolate-14/2024-08-30-hot-chocolate-14.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -878,15 +878,15 @@ Another change we made with Hot Chocolate 14 is around introspection. When we de
878878
```csharp
879879
builder
880880
.AddGraphQLServer()
881-
.ModifyRequestOptions(o => o.EnableIntrospection = true);
881+
.DisableIntrospection(false);
882882
```
883883

884884
Also the schema file can be disabled like the following.
885885

886886
```csharp
887887
builder
888888
.AddGraphQLServer()
889-
.ModifyRequestOptions(o => o.EnableSchemaFile = false);
889+
.ModifyRequestOptions(o => o.EnableSchemaFileSupport = false);
890890
```
891891

892892
# Fusion

website/src/docs/hotchocolate/v14/migrating/migrate-from-13-to-14.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,42 @@ Things that have been removed or had a change in behavior that may cause your co
4444
| @chillicream/bananacakepop-express-middleware | @chillicream/nitro-express-middleware | |
4545
| @chillicream/bananacakepop-graphql-ide | @chillicream/nitro-embedded | `mode: "self"` is now `mode: "embedded"` |
4646

47+
## Dependency injection changes
48+
49+
- It is no longer necessary to use the `[Service]` attribute unless you're using keyed services, in which case the attribute is used to specify the key.
50+
- Hot Chocolate will identify services automatically.
51+
- Support for the `[FromServices]` attribute has been removed.
52+
- As with the `[Service]` attribute above, this attribute is no longer necessary.
53+
- Since the `RegisterService` method is no longer required, it has been removed, along with the `ServiceKind` enum.
54+
- Scoped services injected into query resolvers are now resolver-scoped by default (not request scoped). For mutation resolvers, services are request-scoped by default.
55+
- The default scope can be changed in two ways:
56+
57+
1. Globally, using `ModifyOptions`:
58+
59+
```csharp
60+
builder.Services
61+
.AddGraphQLServer()
62+
.ModifyOptions(o =>
63+
{
64+
o.DefaultQueryDependencyInjectionScope =
65+
DependencyInjectionScope.Resolver;
66+
o.DefaultMutationDependencyInjectionScope =
67+
DependencyInjectionScope.Request;
68+
});
69+
```
70+
71+
2. On a per-resolver basis, with the `[UseRequestScope]` or `[UseResolverScope]` attribute.
72+
- Note: The `[UseServiceScope]` attribute has been removed.
73+
74+
For more information, see the [Dependency Injection](/docs/hotchocolate/v14/server/dependency-injection) documentation.
75+
76+
## Entity framework integration changes
77+
78+
- The `RegisterDbContext` method is no longer required, and has therefore been removed, along with the `DbContextKind` enum.
79+
- Use `RegisterDbContextFactory` to register a DbContext factory.
80+
81+
For more information, see the [Entity Framework integration](/docs/hotchocolate/v14/integrations/entity-framework) documentation.
82+
4783
## New GID format
4884

4985
This release introduces a more performant GID serializer, which also simplifies the underlying format of globally unique IDs.

0 commit comments

Comments
 (0)