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
9 changes: 8 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,11 @@ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
dotnet_style_qualification_for_field = false:silent
dotnet_style_qualification_for_property = false:silent
dotnet_style_qualification_for_method = false:silent
dotnet_style_qualification_for_event = false:silent
dotnet_style_qualification_for_event = false:silent

#### API Analyzer ####

dotnet_diagnostic.CA1065.severity = none
dotnet_diagnostic.RS0016.severity = warning
dotnet_diagnostic.RS0017.severity = warning
dotnet_public_api_analyzer.require_new_in_unshipped = true
11 changes: 8 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
url: https://www.nuget.org/packages/Agash.YTLiveChat
permissions:
contents: read
id-token: write
steps:
- name: Download NuGet Packages Artifact
uses: actions/download-artifact@v4
Expand All @@ -95,11 +96,15 @@ jobs:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4

- name: NuGet login
id: login
uses: NuGet/login@v1
with:
user: Agash

- name: Publish NuGet Packages
env:
NUGET_API_KEY: ${{ secrets.NUGET_APIKEY }}
run: |
Get-ChildItem "${{ env.NuGetDirectory }}" -Filter *.nupkg | ForEach-Object {
Write-Host "Pushing $($_.FullName)..."
dotnet nuget push $_.FullName --api-key "$env:NUGET_API_KEY" --source https://api.nuget.org/v3/index.json --skip-duplicate
dotnet nuget push $_.FullName --api-key "${{ steps.login.outputs.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<PropertyGroup>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
</Project>
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ Continuous livestream monitor mode is currently **BETA/UNSUPPORTED** and can cha
- `YTLiveChatOptions.LiveCheckFrequency`
- `IYTLiveChat.LivestreamStarted`
- `IYTLiveChat.LivestreamEnded`
- `IYTLiveChat.LivestreamInaccessible`

These members intentionally emit compiler warnings via `[Obsolete]` to signal unstable API status.

Monitor note: channel/watch page resolution is fetched via stateless (no-cookie) requests inside the library to reduce consent-interstitial loops during long-running monitor sessions.

## Quick Start (DI)

```csharp
Expand Down
4 changes: 4 additions & 0 deletions YTLiveChat.DependencyInjection/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#nullable enable
static YTLiveChat.DependencyInjection.ServiceCollectionExtensions.AddYTLiveChat(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, Microsoft.Extensions.Configuration.IConfiguration? configuration = null) -> Microsoft.Extensions.DependencyInjection.IServiceCollection!
static YTLiveChat.DependencyInjection.ServiceCollectionExtensions.AddYTLiveChat(this Microsoft.Extensions.Hosting.IHostApplicationBuilder! builder) -> Microsoft.Extensions.Hosting.IHostApplicationBuilder!
YTLiveChat.DependencyInjection.ServiceCollectionExtensions
1 change: 1 addition & 0 deletions YTLiveChat.DependencyInjection/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageId>Agash.YTLiveChat.DependencyInjection</PackageId>
<TargetFrameworks>net10.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net10.0;net9.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down Expand Up @@ -37,6 +37,10 @@
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.3" />
<PackageReference Include="Microsoft.Extensions.Options" Version="10.0.3" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="10.0.3" />
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<None Include="..\LICENSE.txt" Pack="true" PackagePath="" />
Expand Down
Loading
Loading