Skip to content

Commit

Permalink
Merge pull request #201 from gaelj/improve-js-interop
Browse files Browse the repository at this point in the history
Improve js interop
  • Loading branch information
gaelj authored Nov 14, 2024
2 parents ee09a24 + 503128f commit 76b4df1
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 8 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 0.8.14 - 2024-11-14

### ⚡️ Improve performance

- Persist style tag created by CM6 after reloads, without needing any HeadOutlet in Blazor Server interactive (#187), as described in https://learn.microsoft.com/en-us/aspnet/core/blazor/javascript-interoperability/static-server-rendering?view=aspnetcore-8.0
- Dispose the JS object if the parent div does not exist ; robustify dispose method

### 🐛 Fix a bug

- Fix example 3 in server interactive mode
- Fix null refs

### 💥 Introduce breaking changes

- Make parameter IsWASM obsolete: it can be automatically inferred from `OperatingSystem.IsBrowser()`

### 📝 Add or update documentation

- Add missing example3 page

## 0.8.13 - 2024-11-13

### ✨ Introduce new features
Expand Down
4 changes: 2 additions & 2 deletions CodeMirror6/CodeMirror6.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AssemblyName>GaelJ.BlazorCodeMirror6</AssemblyName>
<IsPackable>true</IsPackable>
<PackageId>GaelJ.BlazorCodeMirror6</PackageId>
<Version>0.8.13</Version>
<Version>0.8.14</Version>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down Expand Up @@ -67,4 +67,4 @@
<None Include="..\icon.png" Pack="true" PackagePath="\" />
<None Include="..\codemirror.svg" Pack="true" PackagePath="\" />
</ItemGroup>
</Project>
</Project>
2 changes: 1 addition & 1 deletion Examples.BlazorServer/Examples.BlazorServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>0.8.13</Version>
<Version>0.8.14</Version>
</PropertyGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<Version>0.8.13</Version>
<Version>0.8.14</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Sentry.AspNetCore" Version="4.12.0" />
Expand Down
2 changes: 1 addition & 1 deletion Examples.BlazorWasm/Examples.BlazorWasm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<Version>0.8.13</Version>
<Version>0.8.14</Version>
</PropertyGroup>
<ItemGroup>
<SupportedPlatform Include="browser-wasm" />
Expand Down
2 changes: 1 addition & 1 deletion Examples.Common/Examples.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<Version>0.8.13</Version>
<Version>0.8.14</Version>
</PropertyGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
Expand Down
18 changes: 16 additions & 2 deletions NEW_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
### ✨ Introduce new features
### ⚡️ Improve performance

- Add new parameter `InsertDroppedFileContents`. If true, text files will have their content extracted and inserted in the editor. If false, all file types dropped into the editor will be passed to the upload callback. In case of multiple mixed-type files, they will all be uploaded
- Persist style tag created by CM6 after reloads, without needing any HeadOutlet in Blazor Server interactive (#187), as described in https://learn.microsoft.com/en-us/aspnet/core/blazor/javascript-interoperability/static-server-rendering?view=aspnetcore-8.0
- Dispose the JS object if the parent div does not exist ; robustify dispose method

### 🐛 Fix a bug

- Fix example 3 in server interactive mode
- Fix null refs

### 💥 Introduce breaking changes

- Make parameter IsWASM obsolete: it can be automatically inferred from `OperatingSystem.IsBrowser()`

### 📝 Add or update documentation

- Add missing example3 page

0 comments on commit 76b4df1

Please sign in to comment.