Skip to content

Commit

Permalink
v6.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nkast committed Oct 5, 2023
1 parent fd0fb1d commit d878af4
Show file tree
Hide file tree
Showing 18 changed files with 53 additions and 57 deletions.
6 changes: 3 additions & 3 deletions Samples/Boids/Boids.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.11" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.11" PrivateAssets="all" />
<PackageReference Include="nkast.Wasm.Canvas" Version="6.0.3" />
<PackageReference Include="nkast.Wasm.XHR" Version="6.0.3" />
<PackageReference Include="nkast.Wasm.Dom" Version="6.0.3" />
<PackageReference Include="nkast.Wasm.Canvas" Version="6.0.4" />
<PackageReference Include="nkast.Wasm.XHR" Version="6.0.4" />
<PackageReference Include="nkast.Wasm.Dom" Version="6.0.4" />
<PackageReference Include="Aether.Physics2D" Version="1.6.1.1-alpha" />
</ItemGroup>

Expand Down
38 changes: 18 additions & 20 deletions Samples/Boids/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,40 +27,39 @@
<script type="module">
import { BrotliDecode } from './js/decode.min.js';
Blazor.start({
loadBootResource: function (type, name, defaultUri, integrity)
{
if (type !== 'dotnetjs' && location.hostname !== 'localhost')
{
return (async function()
{
loadBootResource: function (type, name, defaultUri, integrity) {
if (type !== 'dotnetjs' && location.hostname !== 'localhost') {
return (async function () {
const response = await fetch(defaultUri + '.br', { cache: 'no-cache' });
if (!response.ok)
throw new Error(response.statusText);
const originalResponseBuffer = await response.arrayBuffer();
const originalResponseArray = new Int8Array(originalResponseBuffer);
const decompressedResponseArray = BrotliDecode(originalResponseArray);
const contentType = type === 'dotnetwasm'
? 'application/wasm'
: 'application/octet-stream';
? 'application/wasm'
: 'application/octet-stream';
return new Response(decompressedResponseArray,
{ headers: { 'content-type': contentType }
});
{
headers: { 'content-type': contentType }
});
})();
}
}
});
</script>

<script src="_content/nkast.Wasm.Dom/js/JSObject.6.0.2.js"></script>
<script src="_content/nkast.Wasm.Dom/js/Window.6.0.2.js"></script>
<script src="_content/nkast.Wasm.Dom/js/Document.6.0.2.js"></script>
<script src="_content/nkast.Wasm.XHR/js/XHR.6.0.2.js"></script>
<script src="_content/nkast.Wasm.Canvas/js/Canvas.6.0.2.js"></script>
<script src="_content/nkast.Wasm.Canvas/js/Canvas2dContext.6.0.2.js"></script>
<script src="_content/nkast.Wasm.Dom/js/JSObject.6.0.4.js"></script>
<script src="_content/nkast.Wasm.Dom/js/Window.6.0.4.js"></script>
<script src="_content/nkast.Wasm.Dom/js/Document.6.0.4.js"></script>
<script src="_content/nkast.Wasm.Dom/js/Media.6.0.4.js"></script>
<script src="_content/nkast.Wasm.XHR/js/XHR.6.0.4.js"></script>
<script src="_content/nkast.Wasm.Audio/js/Audio.6.0.4.js"></script>
<script src="_content/nkast.Wasm.Canvas/js/Canvas.6.0.4.js"></script>
<script src="_content/nkast.Wasm.Canvas/js/Canvas2dContext.6.0.4.js"></script>

<script>
function tickJS()
{
function tickJS() {
// resize the canvas to fit its parent
var canvas = document.getElementById('theCanvas');

Expand All @@ -72,8 +71,7 @@
window.requestAnimationFrame(tickJS);
}

window.initRenderJS = (instance) =>
{
window.initRenderJS = (instance) => {
window.theInstance = instance;

// begin game loop
Expand Down
6 changes: 3 additions & 3 deletions Samples/CanvasGL/CanvasGL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.11" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.11" PrivateAssets="all" />
<PackageReference Include="nkast.Wasm.Canvas" Version="6.0.3" />
<PackageReference Include="nkast.Wasm.XHR" Version="6.0.3" />
<PackageReference Include="nkast.Wasm.Dom" Version="6.0.3" />
<PackageReference Include="nkast.Wasm.Canvas" Version="6.0.4" />
<PackageReference Include="nkast.Wasm.XHR" Version="6.0.4" />
<PackageReference Include="nkast.Wasm.Dom" Version="6.0.4" />
</ItemGroup>

</Project>
38 changes: 18 additions & 20 deletions Samples/CanvasGL/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,40 +27,39 @@
<script type="module">
import { BrotliDecode } from './js/decode.min.js';
Blazor.start({
loadBootResource: function (type, name, defaultUri, integrity)
{
if (type !== 'dotnetjs' && location.hostname !== 'localhost')
{
return (async function()
{
loadBootResource: function (type, name, defaultUri, integrity) {
if (type !== 'dotnetjs' && location.hostname !== 'localhost') {
return (async function () {
const response = await fetch(defaultUri + '.br', { cache: 'no-cache' });
if (!response.ok)
throw new Error(response.statusText);
const originalResponseBuffer = await response.arrayBuffer();
const originalResponseArray = new Int8Array(originalResponseBuffer);
const decompressedResponseArray = BrotliDecode(originalResponseArray);
const contentType = type === 'dotnetwasm'
? 'application/wasm'
: 'application/octet-stream';
? 'application/wasm'
: 'application/octet-stream';
return new Response(decompressedResponseArray,
{ headers: { 'content-type': contentType }
});
{
headers: { 'content-type': contentType }
});
})();
}
}
});
</script>

<script src="_content/nkast.Wasm.Dom/js/JSObject.6.0.2.js"></script>
<script src="_content/nkast.Wasm.Dom/js/Window.6.0.2.js"></script>
<script src="_content/nkast.Wasm.Dom/js/Document.6.0.2.js"></script>
<script src="_content/nkast.Wasm.XHR/js/XHR.6.0.2.js"></script>
<script src="_content/nkast.Wasm.Canvas/js/Canvas.6.0.2.js"></script>
<script src="_content/nkast.Wasm.Canvas/js/CanvasGLContext.6.0.2.js"></script>
<script src="_content/nkast.Wasm.Dom/js/JSObject.6.0.4.js"></script>
<script src="_content/nkast.Wasm.Dom/js/Window.6.0.4.js"></script>
<script src="_content/nkast.Wasm.Dom/js/Document.6.0.4.js"></script>
<script src="_content/nkast.Wasm.Dom/js/Media.6.0.4.js"></script>
<script src="_content/nkast.Wasm.XHR/js/XHR.6.0.4.js"></script>
<script src="_content/nkast.Wasm.Audio/js/Audio.6.0.4.js"></script>
<script src="_content/nkast.Wasm.Canvas/js/Canvas.6.0.4.js"></script>
<script src="_content/nkast.Wasm.Canvas/js/CanvasGLContext.6.0.4.js"></script>

<script>
function tickJS()
{
function tickJS() {
// resize the canvas to fit its parent
var canvas = document.getElementById('theCanvas');

Expand All @@ -72,8 +71,7 @@
window.requestAnimationFrame(tickJS);
}

window.initRenderJS = (instance) =>
{
window.initRenderJS = (instance) => {
window.theInstance = instance;

// begin game loop
Expand Down
4 changes: 2 additions & 2 deletions Wasm.Audio/Wasm.Audio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<PropertyGroup>
<PackageId>nkast.Wasm.Audio</PackageId>
<PackageVersion>6.0.3</PackageVersion>
<PackageVersion>6.0.4</PackageVersion>
<Authors>Nick Kastellanos</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/nkast/Wasm/</RepositoryUrl>
Expand All @@ -20,7 +20,7 @@
<PackageReference Include="Microsoft.JSInterop.WebAssembly" Version="6.0.22" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.22" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.22" />
<PackageReference Include="nkast.Wasm.Dom" Version="6.0.3" />
<PackageReference Include="nkast.Wasm.Dom" Version="6.0.4" />
</ItemGroup>

</Project>
File renamed without changes.
4 changes: 2 additions & 2 deletions Wasm.Canvas/Wasm.Canvas.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<PropertyGroup>
<PackageId>nkast.Wasm.Canvas</PackageId>
<PackageVersion>6.0.3</PackageVersion>
<PackageVersion>6.0.4</PackageVersion>
<Authors>Nick Kastellanos</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/nkast/Wasm/</RepositoryUrl>
Expand All @@ -20,7 +20,7 @@
<PackageReference Include="Microsoft.JSInterop.WebAssembly" Version="6.0.22" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.22" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.22" />
<PackageReference Include="nkast.Wasm.Dom" Version="6.0.3" />
<PackageReference Include="nkast.Wasm.Dom" Version="6.0.4" />
</ItemGroup>

</Project>
File renamed without changes.
2 changes: 1 addition & 1 deletion Wasm.Dom/Wasm.Dom.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<PropertyGroup>
<PackageId>nkast.Wasm.Dom</PackageId>
<PackageVersion>6.0.3</PackageVersion>
<PackageVersion>6.0.4</PackageVersion>
<Authors>Nick Kastellanos</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/nkast/Wasm/</RepositoryUrl>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Wasm.XHR/Wasm.XHR.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<PropertyGroup>
<PackageId>nkast.Wasm.XHR</PackageId>
<PackageVersion>6.0.3</PackageVersion>
<PackageVersion>6.0.4</PackageVersion>
<Authors>Nick Kastellanos</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/nkast/Wasm/</RepositoryUrl>
Expand All @@ -20,7 +20,7 @@
<PackageReference Include="Microsoft.JSInterop.WebAssembly" Version="6.0.22" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.22" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.22" />
<PackageReference Include="nkast.Wasm.Dom" Version="6.0.3" />
<PackageReference Include="nkast.Wasm.Dom" Version="6.0.4" />
</ItemGroup>

</Project>
File renamed without changes.
8 changes: 4 additions & 4 deletions pack.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dotnet pack Wasm.XHR\Wasm.XHR.csproj /p:Configuration=Release -o bin\publish
dotnet pack Wasm.Canvas\Wasm.Canvas.csproj /p:Configuration=Release -o bin\publish
dotnet pack Wasm.Audio\Wasm.Audio.csproj /p:Configuration=Release -o bin\publish

"C:\Program Files (x86)\nuget\nuget.exe" add bin\publish\nkast.Wasm.Dom.6.0.3.nupkg -Source "C:\Users\usename\.nuget\localPackages"
"C:\Program Files (x86)\nuget\nuget.exe" add bin\publish\nkast.Wasm.XHR.6.0.3.nupkg -Source "C:\Users\usename\.nuget\localPackages"
"C:\Program Files (x86)\nuget\nuget.exe" add bin\publish\nkast.Wasm.Canvas.6.0.3.nupkg -Source "C:\Users\usename\.nuget\localPackages"
"C:\Program Files (x86)\nuget\nuget.exe" add bin\publish\nkast.Wasm.Audio.6.0.3.nupkg -Source "C:\Users\usename\.nuget\localPackages"
"C:\Program Files (x86)\nuget\nuget.exe" add bin\publish\nkast.Wasm.Dom.6.0.4.nupkg -Source "C:\Users\usename\.nuget\localPackages"
"C:\Program Files (x86)\nuget\nuget.exe" add bin\publish\nkast.Wasm.XHR.6.0.4.nupkg -Source "C:\Users\usename\.nuget\localPackages"
"C:\Program Files (x86)\nuget\nuget.exe" add bin\publish\nkast.Wasm.Canvas.6.0.4.nupkg -Source "C:\Users\usename\.nuget\localPackages"
"C:\Program Files (x86)\nuget\nuget.exe" add bin\publish\nkast.Wasm.Audio.6.0.4.nupkg -Source "C:\Users\usename\.nuget\localPackages"

0 comments on commit d878af4

Please sign in to comment.