Skip to content

Commit c7c6702

Browse files
authored
feat: update to bit 9.12.0 #57 (#58)
1 parent 98ae8ff commit c7c6702

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

videos/Bit.Besql/Bit.Besql.Sample.Client/Bit.Besql.Sample.Client.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Bit.Besql" Version="9.11.3" />
14-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.8" />
13+
<PackageReference Include="Bit.Besql" Version="9.12.0" />
14+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.9" />
1515
</ItemGroup>
1616

1717
</Project>

videos/Bit.Besql/Bit.Besql.Sample/Bit.Besql.Sample.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<ProjectReference Include="..\Bit.Besql.Sample.Client\Bit.Besql.Sample.Client.csproj" />
11-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.8" />
11+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.9" />
1212
</ItemGroup>
1313

1414
<ItemGroup>
@@ -19,11 +19,11 @@
1919
and open Nuget Package Manager Console, and select `Bit.Besql.Sample` project as default project
2020
Then run either Add-Migration MigrationName -OutputDir Data\Migrations or
2121
Optimize-DbContext -OutputDir Data/CompiledModel commands. -->
22-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.8">
22+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.9">
2323
<PrivateAssets>all</PrivateAssets>
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2525
</PackageReference>
26-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.8">
26+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.9">
2727
<PrivateAssets>all</PrivateAssets>
2828
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2929
</PackageReference>

videos/Bit.Bswup/Bit.Bswup.Sample.Client/Bit.Bswup.Sample.Client.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
</PropertyGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.8" />
19+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.9" />
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Bit.Bswup" Version="9.11.3" />
23+
<PackageReference Include="Bit.Bswup" Version="9.12.0" />
2424
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
2525
</ItemGroup>
2626

videos/Bit.Bswup/Bit.Bswup.Sample.Client/wwwroot/service-worker.published.js

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,25 @@ self.serverHandledUrls = [
2929
/\/sitemap_index.xml/
3030
];
3131

32-
self.prerenderMode = 'none'; // Demo: https://adminpanel.bitplatform.dev/ (No-Prerendering + Offline support)
32+
// self.mode = 'FullOffline'; // Traditional PWA app that **first** downloads all assets and **then** runs the app.
33+
// This ensures the app won't break if network connectivity is lost and the user navigates to a new page requiring lazy-loaded JS/WASM/image files.
34+
// Recommended if the app primarily uses PWA for offline support and has local/offline database such as IndexedeDB or SQLite (Checkout Bit.Besql)
35+
// Demo: https://todo-offline.bitplatform.cc/offline-database-demo
3336

34-
// On apps with Prerendering enabled, to have the best experience for the end user un-comment one of the following lines:
35-
// self.prerenderMode = 'always'; // Demo: https://sales.bitplatform.dev/ (Always show pre-render without offline support)
36-
// self.prerenderMode = 'initial'; // Demo: https://todo.bitplatform.dev/ (Pre-Render on first site visit + Offline support)
37+
self.mode = 'NoPrerender'; // Modern PWA app that **starts immediately** and lazy-loads assets as needed.
38+
// If network connectivity is lost and the user navigates to a new page requiring lazy-loaded JS/WASM/image files, the app might break.
39+
// Recommended if the app uses PWA for benefits other than offline support, such as installability, push notifications, etc.
40+
// Demo: https://adminpanel.bitplatform.dev/
41+
42+
// self.mode = 'InitialPrerender'; // If pre-rendering is enabled in the `Server.Web` configuration, this mode fetches the site's document only on the first load of the app.
43+
// Useful for SEO-friendly apps, and to display content on the initial visit while files download. Subsequent visits avoid server pressure from pre-rendering.
44+
// Demo: https://todo.bitplatform.dev/
45+
46+
// self.mode = 'AlwaysPrerender'; // If pre-rendering is enabled in the Server.Web configuration, this mode fetches the site's document on every load of the app.
47+
// The reason behind fetching the document on every app load is that Blazor WebAssembly's runtime might takes some time to kick in on low-end mobile devices,
48+
// so if the user refreshes the page or visits a new page, it shows the pre-rendered document while the Blazor WebAssembly runtime is loading.
49+
// Downside: Increases server load due to frequent pre-rendering.
50+
// Demo: https://sales.bitplatform.dev/
3751

3852
self.enableIntegrityCheck = false;
3953

videos/Bit.Bswup/Bit.Bswup.Sample/Bit.Bswup.Sample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<ProjectReference Include="..\Bit.Bswup.Sample.Client\Bit.Bswup.Sample.Client.csproj" />
11-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.8" />
11+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.9" />
1212
</ItemGroup>
1313

1414
</Project>

0 commit comments

Comments
 (0)