Skip to content

Commit

Permalink
Merge branch 'main' into tte/update-migration-guide
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib authored Oct 23, 2024
2 parents 166a737 + aa80b4a commit f9650ce
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 10 deletions.
17 changes: 14 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@

## Supported Versions

We will provide security updates to the latest major version.
We will provide bug fixes and updates to the latest major version.

| Version | Supported |
| ------- | ------------------ |
| 12.x | :white_check_mark: |
| < 12.0 | :x: |
| 14.x | :white_check_mark: |
| < 13.0 | :x: |

## Security Updates

We will provide security relevant fixes to the following versions:

| Version | Supported |
| ------- | ------------------ |
| 14.x | :white_check_mark: |
| 13.x | :white_check_mark: |
| 12.x | :white_check_mark: |
| < 12.0 | :x: |

## Reporting a Vulnerability

Expand Down
5 changes: 1 addition & 4 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
"*.drawio",
"**/bin/",
"**/obj/",
"packages.lock.json",

// TODO: Remove
"**/test/"
"packages.lock.json"
],
"ignoreRegExpList": [
"featuredVideoId:(.*)", // video hash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@

namespace GreenDonut.Predicates;

/// <summary>
/// A default implementation of the <see cref="IPredicateBuilder"/>.
/// </summary>
[Experimental(Experiments.Predicates)]
internal sealed class DefaultPredicateBuilder : IPredicateBuilder
public sealed class DefaultPredicateBuilder : IPredicateBuilder
{
private List<LambdaExpression>? _predicates;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -878,15 +878,15 @@ Another change we made with Hot Chocolate 14 is around introspection. When we de
```csharp
builder
.AddGraphQLServer()
.ModifyRequestOptions(o => o.EnableIntrospection = true);
.DisableIntrospection(false);
```

Also the schema file can be disabled like the following.

```csharp
builder
.AddGraphQLServer()
.ModifyRequestOptions(o => o.EnableSchemaFile = false);
.ModifyRequestOptions(o => o.EnableSchemaFileSupport = false);
```

# Fusion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,42 @@ Things that have been removed or had a change in behavior that may cause your co
| @chillicream/bananacakepop-express-middleware | @chillicream/nitro-express-middleware | |
| @chillicream/bananacakepop-graphql-ide | @chillicream/nitro-embedded | `mode: "self"` is now `mode: "embedded"` |

## Dependency injection changes

- 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.
- Hot Chocolate will identify services automatically.
- Support for the `[FromServices]` attribute has been removed.
- As with the `[Service]` attribute above, this attribute is no longer necessary.
- Since the `RegisterService` method is no longer required, it has been removed, along with the `ServiceKind` enum.
- Scoped services injected into query resolvers are now resolver-scoped by default (not request scoped). For mutation resolvers, services are request-scoped by default.
- The default scope can be changed in two ways:

1. Globally, using `ModifyOptions`:

```csharp
builder.Services
.AddGraphQLServer()
.ModifyOptions(o =>
{
o.DefaultQueryDependencyInjectionScope =
DependencyInjectionScope.Resolver;
o.DefaultMutationDependencyInjectionScope =
DependencyInjectionScope.Request;
});
```

2. On a per-resolver basis, with the `[UseRequestScope]` or `[UseResolverScope]` attribute.
- Note: The `[UseServiceScope]` attribute has been removed.

For more information, see the [Dependency Injection](/docs/hotchocolate/v14/server/dependency-injection) documentation.

## Entity framework integration changes

- The `RegisterDbContext` method is no longer required, and has therefore been removed, along with the `DbContextKind` enum.
- Use `RegisterDbContextFactory` to register a DbContext factory.

For more information, see the [Entity Framework integration](/docs/hotchocolate/v14/integrations/entity-framework) documentation.

## New GID format

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

0 comments on commit f9650ce

Please sign in to comment.