Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
branches: [ main, develop ]

env:
DOTNET_VERSION: '7.0.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true

Expand All @@ -20,15 +19,21 @@ jobs:
- name: πŸ“₯ Checkout
uses: actions/checkout@v4

- name: βš™οΈ Setup .NET
- name: βš™οΈ Setup .NET SDKs
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-version: |
6.0.x
7.0.x
8.0.x
9.0.x
10.0.x
dotnet-quality: 'preview'

- name: πŸ“¦ Restore dependencies
run: dotnet restore JsonViewer.Blazor.sln

- name: πŸ—οΈ Build Component
- name: πŸ—οΈ Build Component (Multi-target)
run: dotnet build src/Component/Component.csproj --no-restore --configuration Release

- name: πŸ—οΈ Build Demo
Expand All @@ -38,6 +43,13 @@ jobs:
run: |
echo "## πŸ—οΈ Build Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Targets Built" >> $GITHUB_STEP_SUMMARY
echo "- βœ… net6.0" >> $GITHUB_STEP_SUMMARY
echo "- βœ… net7.0" >> $GITHUB_STEP_SUMMARY
echo "- βœ… net8.0" >> $GITHUB_STEP_SUMMARY
echo "- βœ… net9.0" >> $GITHUB_STEP_SUMMARY
echo "- βœ… net10.0 (Preview)" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Projects" >> $GITHUB_STEP_SUMMARY
echo "- **Component**: βœ… Built successfully" >> $GITHUB_STEP_SUMMARY
echo "- **Demo**: βœ… Built successfully" >> $GITHUB_STEP_SUMMARY
echo "- **.NET Version**: ${{ env.DOTNET_VERSION }}" >> $GITHUB_STEP_SUMMARY
10 changes: 8 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,16 @@ jobs:
- name: πŸ“₯ Checkout repository
uses: actions/checkout@v4

- name: πŸ”§ Setup .NET
- name: πŸ”§ Setup .NET SDKs
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
dotnet-version: |
6.0.x
7.0.x
8.0.x
9.0.x
10.0.x
dotnet-quality: 'preview'

- name: βš™οΈ Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:
cancel-in-progress: false

env:
DOTNET_VERSION: '7.0.x'
DOTNET_VERSION: '9.0.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true

Expand All @@ -31,10 +31,13 @@ jobs:
- name: πŸ“₯ Checkout
uses: actions/checkout@v4

- name: βš™οΈ Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: βš™οΈ Setup .NET SDKs
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
dotnet-quality: 'ga'

- name: πŸ“¦ Restore dependencies
run: dotnet restore JsonViewer.Blazor.sln
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
default: '0.0.3-beta'

env:
DOTNET_VERSION: '7.0.x'
DOTNET_VERSION: '9.0.x'
PROJECT_PATH: 'src/Component/Component.csproj'

jobs:
Expand All @@ -29,10 +29,16 @@ jobs:
with:
fetch-depth: 0

- name: βš™οΈ Setup .NET
- name: βš™οΈ Setup .NET SDKs
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-version: |
6.0.x
7.0.x
8.0.x
9.0.x
10.0.x
dotnet-quality: 'preview'

- name: πŸ” Determine Version
id: version
Expand Down
23 changes: 22 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- Future changes go here -->

## [0.0.4-beta] - 2025-12-03

### ✨ Added
- **Multi-framework support**: Now supports .NET 6, .NET 7, .NET 8, .NET 9, and .NET 10!
- Wider compatibility for all Blazor applications

### πŸ”§ Changed
- Updated SDK to .NET 9
- Demo application upgraded to .NET 8 (LTS)
- Conditional dependencies for each target framework

### πŸ“¦ Supported Frameworks
| Framework | Status |
|-----------|--------|
| .NET 6.0 | βœ… Supported |
| .NET 7.0 | βœ… Supported |
| .NET 8.0 | βœ… Supported (LTS) |
| .NET 9.0 | βœ… Supported |
| .NET 10.0 | βœ… Supported (Preview) |

## [0.0.3-beta] - 2025-12-03

### ✨ Added
Expand Down Expand Up @@ -150,7 +170,8 @@ See [CONTRIBUTING.md](../.github/CONTRIBUTING.md) for details on how to contribu
- πŸ”’ Security - Security fixes
- πŸ“š Documentation - Documentation changes

[Unreleased]: https://github.com/JsonViewer-Component/Blazor/compare/v0.0.3-beta...HEAD
[Unreleased]: https://github.com/JsonViewer-Component/Blazor/compare/v0.0.4-beta...HEAD
[0.0.4-beta]: https://github.com/JsonViewer-Component/Blazor/compare/v0.0.3-beta...v0.0.4-beta
[0.0.3-beta]: https://github.com/JsonViewer-Component/Blazor/compare/v0.0.2-beta...v0.0.3-beta
[0.0.2-beta]: https://github.com/JsonViewer-Component/Blazor/compare/v0.0.1-beta...v0.0.2-beta
[0.0.1-beta]: https://github.com/JsonViewer-Component/Blazor/releases/tag/v0.0.1-beta
11 changes: 4 additions & 7 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"sdk": {
"version": "7.0.0",
"rollForward": "latestFeature",
"allowPrerelease": false
},
"msbuild-sdks": {
"Microsoft.Build.NoTargets": "3.7.134"
"version": "9.0.100",
"rollForward": "latestMajor",
"allowPrerelease": true
}
}
}
25 changes: 12 additions & 13 deletions src/Blazor.Demo/Blazor.Demo.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.20" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.20" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Component\Component.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.11" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.11" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Component\Component.csproj" />
</ItemGroup>

</Project>
59 changes: 40 additions & 19 deletions src/Component/Component.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<!-- ═══════════════════════════════════════════════════════════════ -->
<!-- 🎯 Multi-Target Frameworks -->
<!-- ═══════════════════════════════════════════════════════════════ -->
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0;net10.0</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
Expand All @@ -13,7 +16,7 @@
<PropertyGroup>
<!-- Basic Info -->
<PackageId>JsonViewer.Blazor</PackageId>
<Version>0.0.3-beta</Version>
<Version>0.0.4-beta</Version>
<Title>JSON Viewer for Blazor</Title>
<Authors>Parsa Panahpoor</Authors>
<Company>JsonViewer-Component</Company>
Expand All @@ -37,33 +40,26 @@
β€’ Fully responsive design
β€’ High performance - handles large JSON files

πŸ“¦ Easy to install and use in Blazor WebAssembly and Blazor Server applications.
πŸ“¦ Supports .NET 6, .NET 7, .NET 8, .NET 9, and .NET 10!
</Description>

<!-- Summary for package manager UI -->
<Summary>A powerful JSON viewer component for Blazor with search, statistics, themes, and editing capabilities.</Summary>

<!-- Tags - Help users find your package -->
<PackageTags>blazor;json;viewer;component;wasm;webassembly;dotnet;csharp;razor;asp.net;json-viewer;syntax-highlighting;dark-theme;light-theme;search;export;copy;statistics;tree-view;collapsible;expandable;editor;formatter;beautifier</PackageTags>
<PackageTags>blazor;json;viewer;component;wasm;webassembly;dotnet;csharp;razor;asp.net;json-viewer;syntax-highlighting;dark-theme;light-theme;search;export;copy;statistics;tree-view;collapsible;expandable;editor;formatter;beautifier;net6;net7;net8;net9;net10</PackageTags>

<!-- Release Notes - Shows in NuGet "Release Notes" tab -->
<PackageReleaseNotes>
## πŸŽ‰ Version 0.0.3-beta
## πŸŽ‰ Version 0.0.4-beta

### ✨ New Features
- Improved repository structure
- Enhanced documentation
- Better CI/CD pipeline
- Multi-framework support: .NET 6, .NET 7, .NET 8, .NET 9, .NET 10
- Wider compatibility for all Blazor applications

### πŸ› Bug Fixes
- Fixed Persian comments translated to English
- Fixed workflow issues
- Improved code quality

### πŸ“š Documentation
- Reorganized project structure
- Updated all documentation to English
- Added comprehensive CHANGELOG
### πŸ”§ Changes
- Updated to support multiple .NET versions
- Optimized dependencies for each framework

For full changelog, visit: https://github.com/JsonViewer-Component/Blazor/blob/main/docs/CHANGELOG.md
</PackageReleaseNotes>
Expand Down Expand Up @@ -107,14 +103,39 @@ For full changelog, visit: https://github.com/JsonViewer-Component/Blazor/blob/m
</PropertyGroup>

<!-- ═══════════════════════════════════════════════════════════════ -->
<!-- πŸ“š Dependencies -->
<!-- πŸ“š Dependencies - Conditional per Framework -->
<!-- ═══════════════════════════════════════════════════════════════ -->
<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>

<ItemGroup>
<!-- .NET 6 -->
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.36" />
</ItemGroup>

<!-- .NET 7 -->
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.20" />
</ItemGroup>

<!-- .NET 8 -->
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.11" />
</ItemGroup>

<!-- .NET 9 -->
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.0" />
</ItemGroup>

<!-- .NET 10 (Preview) -->
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="10.0.0-preview.4.25258.110" />
</ItemGroup>

<!-- Shared Dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

Expand Down
Loading