Skip to content

Commit

Permalink
Renamed Banana Cake Pop to Nitro (#7553)
Browse files Browse the repository at this point in the history
  • Loading branch information
glen-84 authored Oct 8, 2024
1 parent a3df265 commit 82ee83d
Show file tree
Hide file tree
Showing 231 changed files with 1,958 additions and 1,994 deletions.
2 changes: 1 addition & 1 deletion .build/Build.Environment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ partial class Build
AbsolutePath EmptyAzf12Proj => RootDirectory / "templates" / "azure-function" / "HotChocolate.Template.AzureFunctions.csproj";
AbsolutePath Gateway13Proj => RootDirectory / "templates" / "gateway" / "HotChocolate.Template.Gateway.csproj";
AbsolutePath GatewayAspire13Proj => RootDirectory / "templates" / "gateway-aspire" / "HotChocolate.Template.Gateway.Aspire.csproj";
AbsolutePath GatewayManaged13Proj => RootDirectory / "templates" / "gateway-bcp" / "HotChocolate.Template.Gateway.Managed.csproj";
AbsolutePath GatewayManaged13Proj => RootDirectory / "templates" / "gateway-managed" / "HotChocolate.Template.Gateway.Managed.csproj";
AbsolutePath FSharpTypes => SourceDirectory/"HotChocolate" /"Core" / "src" / "Types.FSharp" / "HotChocolate.Types.FSharp.fsproj";
}
8 changes: 4 additions & 4 deletions .build/Build.BananaCakePop.cs → .build/Build.Nitro.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

partial class Build
{
Target UpdateBananaCakePop => _ => _
Target UpdateNitro => _ => _
.Executes(async () =>
{
var latestVersion = await GetLatestVersion("BananaCakePop.Middleware");
Log.Information($"Latest BCP Version: {latestVersion}");
var latestVersion = await GetLatestVersion("ChilliCream.Nitro.App");
Log.Information($"Latest Nitro Version: {latestVersion}");

var project = Project.FromFile(HotChocolateDirectoryBuildProps, new ProjectOptions());
project.SetProperty("BananaCakePopVersion", latestVersion);
project.SetProperty("NitroVersion", latestVersion);
project.Save();
});

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ body:
options:
- Hot Chocolate
- Strawberry Shake
- Banana Cake Pop
- Nitro
- Green Donut
validations:
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ body:
options:
- Hot Chocolate
- Strawberry Shake
- Banana Cake Pop
- Nitro
- Green Donut
validations:
required: true
Expand Down
4 changes: 2 additions & 2 deletions .github/issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
🌶️ strawberry shake:
- "### Product\n\nStrawberry Shake"

🌶️ banana cake pop:
- "### Product\n\nBanana Cake Pop"
🌶️ nitro:
- "### Product\n\nNitro"

🌶️ green donut:
- "### Product\n\nGreen Donut"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Hot Chocolate is the most efficient, feature-rich, open-source GraphQL server in

Nitro App is an awesome, performant, feature-rich GraphQL IDE / API Cockpit that helps developers and data scientists to explore, share, and test any GraphQL API.

Nitro App can be installed as [Desktop App](https://get-nitro.chillicream.com), used as [Web App](https://nitro.chillicream.com), which can be installed through your browser of choice as well, or used as Middleware on your GraphQL endpoint. Middlewares are available in [.NET](https://www.nuget.org/packages/HotChocolate.AspNetCore) and [NodeJS](https://www.npmjs.com/package/@chillicream/nitro-express-middleware). More middlewares will follow.
Nitro App can be installed as a [Desktop App](https://get-nitro.chillicream.com), used as a [Web App](https://nitro.chillicream.com), which can be installed through your browser of choice as well, or used as middleware on your GraphQL endpoint. Middlewares are available in [.NET](https://www.nuget.org/packages/HotChocolate.AspNetCore) and [NodeJS](https://www.npmjs.com/package/@chillicream/nitro-express-middleware). More middlewares will follow.

[Documentation](https://chillicream.com/docs/nitro/)

Expand Down
1 change: 0 additions & 1 deletion dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,5 @@ vsix
VXNlcjox
websockets
Wilhuff
winget
Wunder
xunit
2 changes: 1 addition & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<PackageVersion Include="Aspire.Hosting.RabbitMQ" Version="8.0.0" />
<PackageVersion Include="Aspire.Hosting.Redis" Version="8.0.0" />
<PackageVersion Include="AutoMapper" Version="10.1.1" />
<PackageVersion Include="BananaCakePop.Middleware" Version="$(BananaCakePopVersion)" />
<PackageVersion Include="Basic.Reference.Assemblies.Net80" Version="1.7.8" />
<PackageVersion Include="Basic.Reference.Assemblies.Net90" Version="1.7.8" />
<PackageVersion Include="ChilliCream.Nitro.App" Version="$(NitroVersion)" />
<PackageVersion Include="ChilliCream.Testing.Utilities" Version="0.2.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="DiffPlex" Version="1.7.2" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace HotChocolate.AspNetCore;

/// <summary>
/// The default HTTP fetch method for Banana Cake Pop.
/// The default HTTP fetch method for Nitro.
/// </summary>
public enum DefaultHttpMethod
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Diagnostics.CodeAnalysis;
using ChilliCream.Nitro.App;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;
using Microsoft.AspNetCore.Routing.Patterns;
using HotChocolate.AspNetCore;
using HotChocolate.AspNetCore.Extensions;
using BananaCakePop.Middleware;
using static HotChocolate.AspNetCore.MiddlewareRoutingType;
using static Microsoft.AspNetCore.Routing.Patterns.RoutePatternFactory;

Expand Down Expand Up @@ -124,7 +124,7 @@ public static IApplicationBuilder MapGraphQL(
.UseMiddleware<HttpMultipartMiddleware>(schemaName)
.UseMiddleware<HttpGetMiddleware>(schemaName)
.UseMiddleware<HttpGetSchemaMiddleware>(schemaName, path, Integrated)
.UseBananaCakePop(path)
.UseNitroApp(path)
.Use(
_ => context =>
{
Expand Down Expand Up @@ -374,13 +374,13 @@ public static IEndpointConventionBuilder MapGraphQLSchema(
}

/// <summary>
/// Adds a Banana Cake Pop endpoint to the endpoint configurations.
/// Adds a Nitro endpoint to the endpoint configurations.
/// </summary>
/// <param name="endpointRouteBuilder">
/// The <see cref="IEndpointConventionBuilder"/>.
/// </param>
/// <param name="toolPath">
/// The path to which Banana Cake Pop is mapped.
/// The path to which Nitro is mapped.
/// </param>
/// <param name="relativeRequestPath">
/// The relative path on which the server is listening for GraphQL requests.
Expand All @@ -389,20 +389,20 @@ public static IEndpointConventionBuilder MapGraphQLSchema(
/// Returns the <see cref="IEndpointConventionBuilder"/> so that
/// configuration can be chained.
/// </returns>
public static BananaCakePopEndpointConventionBuilder MapBananaCakePop(
public static NitroAppEndpointConventionBuilder MapNitroApp(
this IEndpointRouteBuilder endpointRouteBuilder,
string toolPath = _graphQLToolPath,
string? relativeRequestPath = _graphQLToolRelativeRequestPath)
=> MapBananaCakePop(endpointRouteBuilder, new PathString(toolPath), relativeRequestPath);
=> MapNitroApp(endpointRouteBuilder, new PathString(toolPath), relativeRequestPath);

/// <summary>
/// Adds a Banana Cake Pop endpoint to the endpoint configurations.
/// Adds a Nitro endpoint to the endpoint configurations.
/// </summary>
/// <param name="endpointRouteBuilder">
/// The <see cref="IEndpointConventionBuilder"/>.
/// </param>
/// <param name="toolPath">
/// The path to which Banana Cake Pop is mapped.
/// The path to which Nitro is mapped.
/// </param>
/// <param name="relativeRequestPath">
/// The relative path on which the server is listening for GraphQL requests.
Expand All @@ -411,7 +411,7 @@ public static BananaCakePopEndpointConventionBuilder MapBananaCakePop(
/// Returns the <see cref="IEndpointConventionBuilder"/> so that
/// configuration can be chained.
/// </returns>
public static BananaCakePopEndpointConventionBuilder MapBananaCakePop(
public static NitroAppEndpointConventionBuilder MapNitroApp(
this IEndpointRouteBuilder endpointRouteBuilder,
PathString toolPath,
string? relativeRequestPath = _graphQLToolRelativeRequestPath)
Expand All @@ -428,7 +428,7 @@ public static BananaCakePopEndpointConventionBuilder MapBananaCakePop(
var requestPipeline = endpointRouteBuilder.CreateApplicationBuilder();

requestPipeline
.UseBananaCakePop(toolPath)
.UseNitroApp(toolPath)
.Use(
_ => context =>
{
Expand All @@ -438,10 +438,10 @@ public static BananaCakePopEndpointConventionBuilder MapBananaCakePop(

var builder = endpointRouteBuilder
.Map(pattern, requestPipeline.Build())
.WithDisplayName("Banana Cake Pop Pipeline")
.WithMetadata(new BananaCakePopOptions { GraphQLEndpoint = relativeRequestPath, });
.WithDisplayName("Nitro Pipeline")
.WithMetadata(new NitroAppOptions { GraphQLEndpoint = relativeRequestPath, });

return new BananaCakePopEndpointConventionBuilder(builder);
return new NitroAppEndpointConventionBuilder(builder);
}

/// <summary>
Expand Down Expand Up @@ -518,7 +518,7 @@ public static GraphQLEndpointConventionBuilder WithOptions(
GraphQLServerOptions serverOptions)
=> builder
.WithMetadata(serverOptions)
.WithMetadata(serverOptions.Tool.ToBcpOptions());
.WithMetadata(serverOptions.Tool.ToNitroAppOptions());

/// <summary>
/// Specifies the GraphQL HTTP request options.
Expand All @@ -545,23 +545,23 @@ public static GraphQLHttpEndpointConventionBuilder WithOptions(
});

/// <summary>
/// Specifies the Banana Cake Pop tooling options.
/// Specifies the Nitro tooling options.
/// </summary>
/// <param name="builder">
/// The <see cref="BananaCakePopEndpointConventionBuilder"/>.
/// The <see cref="NitroAppEndpointConventionBuilder"/>.
/// </param>
/// <param name="toolOptions">
/// The Banana Cake Pop tooling options.
/// The Nitro tooling options.
/// </param>
/// <returns>
/// Returns the <see cref="BananaCakePopEndpointConventionBuilder"/> so that
/// Returns the <see cref="NitroAppEndpointConventionBuilder"/> so that
/// configuration can be chained.
/// </returns>
public static BananaCakePopEndpointConventionBuilder WithOptions(
this BananaCakePopEndpointConventionBuilder builder,
public static NitroAppEndpointConventionBuilder WithOptions(
this NitroAppEndpointConventionBuilder builder,
GraphQLToolOptions toolOptions)
{
builder.Add(c => c.Metadata.Add(toolOptions.ToBcpOptions()));
builder.Add(c => c.Metadata.Add(toolOptions.ToNitroAppOptions()));
return builder;
}

Expand Down Expand Up @@ -597,7 +597,7 @@ private static IApplicationBuilder UseCancellation(this IApplicationBuilder buil
}
});

internal static BananaCakePopOptions ToBcpOptions(this GraphQLToolOptions options)
internal static NitroAppOptions ToNitroAppOptions(this GraphQLToolOptions options)
=> new()
{
ServeMode = ServeMode.Version(options.ServeMode.Mode),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace HotChocolate.AspNetCore.Extensions;

/// <summary>
/// Represents the endpoint convention builder for Banana Cake Pop.
/// Represents the endpoint convention builder for Nitro.
/// </summary>
public sealed class BananaCakePopEndpointConventionBuilder : IEndpointConventionBuilder
public sealed class NitroAppEndpointConventionBuilder : IEndpointConventionBuilder
{
private readonly IEndpointConventionBuilder _builder;

internal BananaCakePopEndpointConventionBuilder(IEndpointConventionBuilder builder)
internal NitroAppEndpointConventionBuilder(IEndpointConventionBuilder builder)
{
_builder = builder;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace HotChocolate.AspNetCore;
public sealed class GraphQLServerOptions
{
/// <summary>
/// Gets the GraphQL tool options for Banana Cake Pop.
/// Gets the GraphQL tool options for Nitro.
/// </summary>
public GraphQLToolOptions Tool { get; internal set; } = new();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace HotChocolate.AspNetCore;

/// <summary>
/// Represents the GraphQL tool options for Banana Cake Pop.
/// Represents the GraphQL tool options for Nitro.
/// </summary>
public sealed class GraphQLToolOptions
{
Expand Down Expand Up @@ -38,7 +38,7 @@ public sealed class GraphQLToolOptions
public bool? IncludeCookies { get; set; }

/// <summary>
/// Gets or sets the default http headers for Banana Cake Pop.
/// Gets or sets the default http headers for Nitro.
/// </summary>
public IHeaderDictionary? HttpHeaders { get; set; }

Expand All @@ -48,12 +48,12 @@ public sealed class GraphQLToolOptions
public DefaultHttpMethod? HttpMethod { get; set; }

/// <summary>
/// Defines if Banana Cake Pop is enabled.
/// Defines if Nitro is enabled.
/// </summary>
public bool Enable { get; set; } = true;

/// <summary>
/// Specifies the Google analytics tracking ID for Banana Cake Pop.
/// Specifies the Google analytics tracking ID for Nitro.
/// </summary>
public string? GaTrackingId { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using BananaCakePop.Middleware;
using ChilliCream.Nitro.App;

namespace HotChocolate.AspNetCore;

/// <summary>
/// Represents the different modes of serving the Banana Cake Pop GraphQL tool. This class enables
/// Represents the different modes of serving the Nitro GraphQL tool. This class enables
/// serving the tool in a variety of predefined ways:
/// <list type="bullet">
/// <item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<PackageId>HotChocolate.AspNetCore</PackageId>
<AssemblyName>HotChocolate.AspNetCore</AssemblyName>
<RootNamespace>HotChocolate.AspNetCore</RootNamespace>
<Description>This package contains the GraphQL ASP.NET Core middleware for Hot Chocolate. Moreover, this package includes the Banana Cake Pop middleware, which provides you with our beloved GraphQL IDE middleware.</Description>
<Description>This package contains the GraphQL ASP.NET Core middleware for Hot Chocolate. Moreover, this package includes the Nitro middleware, which provides you with our beloved GraphQL IDE middleware.</Description>
</PropertyGroup>

<ItemGroup>
Expand All @@ -23,7 +23,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BananaCakePop.Middleware" />
<PackageReference Include="ChilliCream.Nitro.App" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit 82ee83d

Please sign in to comment.