Skip to content

Commit

Permalink
Updated Statiq Framework and reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
daveaglick committed Jan 10, 2021
1 parent ffd52f1 commit dba691b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<!-- The NuGet version of Statiq that should be referenced, or empty to use local references -->
<StatiqFrameworkVersion></StatiqFrameworkVersion>
<StatiqFrameworkVersion>1.0.0-beta.32</StatiqFrameworkVersion>
<StatiqFrameworkRoot>..\..\..\Statiq.Framework</StatiqFrameworkRoot>
</PropertyGroup>

Expand Down
3 changes: 2 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 1.0.0-beta.18

- Updated Statiq Framework to version [1.0.0-beta.32](https://github.com/statiqdev/Statiq.Framework/releases/tag/v1.0.0-beta.32).
- **Breaking change:** Updated Statiq Framework to version [1.0.0-beta.32](https://github.com/statiqdev/Statiq.Framework/releases/tag/v1.0.0-beta.32),
see the Statiq Framework release notes for details on breaking changes, mostly applicable to module authors.
- Added a `ResetCache()` method to the REPL to force a cache reset on the next execution (#936).

# 1.0.0-beta.17
Expand Down
2 changes: 1 addition & 1 deletion src/Statiq.Web.Aws/GenerateCloudSearchData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public GenerateCloudSearchData AddField(Config<string> fieldName, Config<object>
/// <inheritdoc />
protected override async Task<IEnumerable<IDocument>> ExecuteContextAsync(IExecutionContext context)
{
Stream contentStream = await context.GetContentStreamAsync();
Stream contentStream = context.GetContentStream();
using (TextWriter textWriter = new StreamWriter(contentStream))
{
using (JsonWriter writer = new JsonTextWriter(textWriter))
Expand Down
2 changes: 1 addition & 1 deletion src/Statiq.Web/Modules/ResolveXrefs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class ResolveXrefs : Module
// Return a new document with the replacements if we performed any
if (modifiedDocument)
{
using (Stream contentStream = await context.GetContentStreamAsync())
using (Stream contentStream = context.GetContentStream())
{
using (StreamWriter writer = contentStream.GetWriter())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public async Task ValidatesAbsoluteLink(bool success)
context.HttpResponseFunc = (_, __) => new HttpResponseMessage
{
StatusCode = success ? HttpStatusCode.OK : HttpStatusCode.NotFound,
Content = new StringContent(string.Empty)
Content = new System.Net.Http.StringContent(string.Empty)
};
ValidateAbsoluteLinks validateAbsoluteLinks = new ValidateAbsoluteLinks();

Expand Down Expand Up @@ -93,7 +93,7 @@ public async Task CanValidateRelativeLinkWithAbsoluteBaseUri()
return new HttpResponseMessage
{
StatusCode = HttpStatusCode.OK,
Content = new StringContent(string.Empty)
Content = new System.Net.Http.StringContent(string.Empty)
};
};
ValidateAbsoluteLinks validateAbsoluteLinks = new ValidateAbsoluteLinks();
Expand Down
6 changes: 3 additions & 3 deletions tests/Statiq.Web.Tests/Pipelines/AssetsFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public async Task ReturnsSingleDocument()
@"
int a = 1;
int b = 2;
return await Context.CreateDocumentAsync(
return Context.CreateDocument(
new MetadataItems
{
{ ""Foo"", ""Bar"" }
Expand Down Expand Up @@ -129,13 +129,13 @@ public async Task ReturnsMultipleDocuments()
int b = 2;
return new IDocument[]
{
await Context.CreateDocumentAsync(
Context.CreateDocument(
new MetadataItems
{
{ ""Foo"", ""Bar"" }
},
$""The number is {a}.""),
await Context.CreateDocumentAsync(
Context.CreateDocument(
new MetadataItems
{
{ ""Foo"", ""Baz"" }
Expand Down
3 changes: 3 additions & 0 deletions tests/Statiq.Web.Tests/Statiq.Web.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Statiq.Web\Statiq.Web.csproj" />
</ItemGroup>
Expand Down

0 comments on commit dba691b

Please sign in to comment.