diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..997c74d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +name: build + +on: + pull_request: + branches: [master] + paths-ignore: + - '**.md' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set Node.js + uses: actions/setup-node@v1 + with: + node-version: 10.x + + - name: Install npm dependencies + run: | + npm ci + working-directory: src/Ljbc1994.Blazor.IntersectionObserver + + - name: Run tests + run: | + npm run test + working-directory: src/Ljbc1994.Blazor.IntersectionObserver + + - name: Setup Dotnet + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '5.0.x' + include-prerelease: true + + - name: Dotnet build + run: dotnet build --configuration Release + + - name: Dotnet pack + run: dotnet pack src/Ljbc1994.Blazor.IntersectionObserver/*.csproj --configuration Release --verbosity Detailed diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..51430a3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,47 @@ +name: release + +on: + push: + branches: [master] + paths-ignore: + - '**.md' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set Node.js + uses: actions/setup-node@v1 + with: + node-version: 10.x + + - name: Install npm dependencies + run: | + npm ci + working-directory: src/Ljbc1994.Blazor.IntersectionObserver + + - name: Run tests + run: | + npm run test + working-directory: src/Ljbc1994.Blazor.IntersectionObserver + + - name: Setup Dotnet + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '5.0.x' + include-prerelease: true + + - name: Dotnet build + run: dotnet build --configuration Release + + - name: Dotnet pack + run: dotnet pack src/Ljbc1994.Blazor.IntersectionObserver/*.csproj --configuration Release --verbosity Detailed + + - name: Dotnet publish to nuget + run: dotnet nuget push src/Ljbc1994.Blazor.IntersectionObserver/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json + env: + NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} + + \ No newline at end of file diff --git a/Blazor.IntersectionObserver.sln b/Blazor.IntersectionObserver.sln index 77f7bb6..22f1169 100644 --- a/Blazor.IntersectionObserver.sln +++ b/Blazor.IntersectionObserver.sln @@ -7,22 +7,18 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{06DF5E56-1E2 EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{5D04FCF1-FEF2-4F22-BF8A-5ACD34C364D7}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blazor.IntersectionObserver", "src\Blazor.IntersectionObserver\Blazor.IntersectionObserver.csproj", "{08BF0C04-9C65-4477-836A-B4DFF36D2C28}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blazor.IntersectionObserver.Client", "samples\Blazor.IntersectionObserver.Client\Blazor.IntersectionObserver.Client.csproj", "{F3CCFB30-6C8F-40A8-BF19-1E19A17DBF80}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Blazor.IntersectionObserver.Server", "samples\Blazor.IntersectionObserver.Server\Blazor.IntersectionObserver.Server.csproj", "{8F503EA1-622E-48C0-8BA4-51AE7D413697}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ljbc1994.Blazor.IntersectionObserver", "src\Ljbc1994.Blazor.IntersectionObserver\Ljbc1994.Blazor.IntersectionObserver.csproj", "{5EAE5F4C-24EF-45A4-B4BE-D5C24D5772ED}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {08BF0C04-9C65-4477-836A-B4DFF36D2C28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {08BF0C04-9C65-4477-836A-B4DFF36D2C28}.Debug|Any CPU.Build.0 = Debug|Any CPU - {08BF0C04-9C65-4477-836A-B4DFF36D2C28}.Release|Any CPU.ActiveCfg = Release|Any CPU - {08BF0C04-9C65-4477-836A-B4DFF36D2C28}.Release|Any CPU.Build.0 = Release|Any CPU {F3CCFB30-6C8F-40A8-BF19-1E19A17DBF80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F3CCFB30-6C8F-40A8-BF19-1E19A17DBF80}.Debug|Any CPU.Build.0 = Debug|Any CPU {F3CCFB30-6C8F-40A8-BF19-1E19A17DBF80}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -31,16 +27,20 @@ Global {8F503EA1-622E-48C0-8BA4-51AE7D413697}.Debug|Any CPU.Build.0 = Debug|Any CPU {8F503EA1-622E-48C0-8BA4-51AE7D413697}.Release|Any CPU.ActiveCfg = Release|Any CPU {8F503EA1-622E-48C0-8BA4-51AE7D413697}.Release|Any CPU.Build.0 = Release|Any CPU + {5EAE5F4C-24EF-45A4-B4BE-D5C24D5772ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5EAE5F4C-24EF-45A4-B4BE-D5C24D5772ED}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5EAE5F4C-24EF-45A4-B4BE-D5C24D5772ED}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5EAE5F4C-24EF-45A4-B4BE-D5C24D5772ED}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {08BF0C04-9C65-4477-836A-B4DFF36D2C28} = {06DF5E56-1E2C-4435-854E-0155228D42E6} {F3CCFB30-6C8F-40A8-BF19-1E19A17DBF80} = {5D04FCF1-FEF2-4F22-BF8A-5ACD34C364D7} {8F503EA1-622E-48C0-8BA4-51AE7D413697} = {5D04FCF1-FEF2-4F22-BF8A-5ACD34C364D7} + {5EAE5F4C-24EF-45A4-B4BE-D5C24D5772ED} = {06DF5E56-1E2C-4435-854E-0155228D42E6} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {2A1E800E-0698-42F3-8B5D-2788225893E5} + SolutionGuid = {2A1E800E-0698-42F3-8B5D-2788225893E5} EndGlobalSection EndGlobal diff --git a/Directory.Build.props b/Directory.Build.props index 9af82d2..c8f2786 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,9 +2,9 @@ Louie Colgan - Blazor.IntersectionObserver + Ljbc1994.Blazor.IntersectionObserver BlazorIntersectionObserver - Copyright © 2020 - Louie Colgan + Copyright © 2021 - Louie Colgan Intersection Observer API wrapper for Blazor https://github.com/ljbc1994/BlazorIntersectionObserver Microsoft ASP.NET Core Blazor Intersection Observer @@ -33,7 +33,7 @@ - 1.1.0 + 3.0.0 dev diff --git a/README.md b/README.md index 5bac999..e96b2ab 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ object which contains the observer entry! Easy! #### Component setup ```razor -@using Blazor.IntersectionObserver +@using Ljbc1994.Blazor.IntersectionObserver
@@ -73,7 +73,7 @@ object which contains the observer entry! Easy! To directly use the service, you just need to inject it and observe the element(s). ```razor -@using Blazor.IntersectionObserver +@using Ljbc1994.Blazor.IntersectionObserver @inject IIntersectionObserverService ObserverService @@ -182,7 +182,7 @@ observer.Disconnect(); This will remove all the observed elements from the observer, i.e. ```razor -@using Blazor.IntersectionObserver +@using Ljbc1994.Blazor.IntersectionObserver @implements IAsyncDisposable @inject IIntersectionObserverService ObserverService @@ -213,7 +213,7 @@ observer.Dispose(); This is a useful method to clean up observers when components are disposed of, i.e. ```razor -@using Blazor.IntersectionObserver +@using Ljbc1994.Blazor.IntersectionObserver @implements IAsyncDisposable @inject IIntersectionObserverService ObserverService diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 0579917..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,64 +0,0 @@ -# ASP.NET -# Build and test ASP.NET projects. -# Add steps that publish symbols, save build artifacts, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4 - -pool: - vmImage: 'windows-latest' - -variables: - buildConfiguration: 'Release' - variables: - Major: '2' - Minor: '0' - Patch: '0' - -steps: - - task: UseDotNet@2 - displayName: 'Install .NET Core SDK' - inputs: - packageType: 'sdk' - version: '5.0.x' - - - task: Npm@1 - inputs: - command: 'install' - workingDir: src/Blazor.IntersectionObserver - - - task: Npm@1 - inputs: - command: 'custom' - customCommand: run test - workingDir: src/Blazor.IntersectionObserver - - - task: PublishTestResults@2 - condition: succeededOrFailed() - inputs: - testRunner: JUnit - testResultsFiles: '**/junit.xml' - workingDir: src/Blazor.IntersectionObserver - - - task: PublishCodeCoverageResults@1 - inputs: - codeCoverageTool: Cobertura - summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/*coverage.xml' - reportDirectory: '$(System.DefaultWorkingDirectory)/**/coverage' - workingDir: src/Blazor.IntersectionObserver - - - task: DotNetCoreCLI@2 - inputs: - command: 'build' - projects: '**/*.csproj' - arguments: '--configuration $(buildConfiguration)' - - - task: DotNetCoreCLI@2 - inputs: - command: pack - packagesToPack: 'src/Blazor.IntersectionObserver/*.csproj' - configuration: '$(buildConfiguration)' - versioningScheme: byPrereleaseNumber - majorVersion: '$(Major)' - minorVersion: '$(Minor)' - patchVersion: '$(Patch)' - - diff --git a/samples/Blazor.IntersectionObserver.Client/Blazor.IntersectionObserver.Client.csproj b/samples/Blazor.IntersectionObserver.Client/Blazor.IntersectionObserver.Client.csproj index 620fb9c..45a6a4c 100644 --- a/samples/Blazor.IntersectionObserver.Client/Blazor.IntersectionObserver.Client.csproj +++ b/samples/Blazor.IntersectionObserver.Client/Blazor.IntersectionObserver.Client.csproj @@ -12,7 +12,8 @@ - + + + - diff --git a/samples/Blazor.IntersectionObserver.Client/Pages/Index.razor b/samples/Blazor.IntersectionObserver.Client/Pages/Index.razor index 8ae89c4..860bed5 100644 --- a/samples/Blazor.IntersectionObserver.Client/Pages/Index.razor +++ b/samples/Blazor.IntersectionObserver.Client/Pages/Index.razor @@ -1,7 +1,7 @@ @page "/" -@using Blazor.IntersectionObserver -@using Blazor.IntersectionObserver.API -@using Blazor.IntersectionObserver.Components +@using Ljbc1994.Blazor.IntersectionObserver +@using Ljbc1994.Blazor.IntersectionObserver.API +@using Ljbc1994.Blazor.IntersectionObserver.Components
diff --git a/samples/Blazor.IntersectionObserver.Client/Pages/LazyImages.razor b/samples/Blazor.IntersectionObserver.Client/Pages/LazyImages.razor index e49659e..b73ed29 100644 --- a/samples/Blazor.IntersectionObserver.Client/Pages/LazyImages.razor +++ b/samples/Blazor.IntersectionObserver.Client/Pages/LazyImages.razor @@ -1,6 +1,6 @@ @page "/lazy-images" -@using Blazor.IntersectionObserver.Components +@using Ljbc1994.Blazor.IntersectionObserver.Components
diff --git a/samples/Blazor.IntersectionObserver.Client/Program.cs b/samples/Blazor.IntersectionObserver.Client/Program.cs index 21f641e..d77c61d 100644 --- a/samples/Blazor.IntersectionObserver.Client/Program.cs +++ b/samples/Blazor.IntersectionObserver.Client/Program.cs @@ -7,6 +7,7 @@ using System.Net.Http; using System.Text; using System.Threading.Tasks; +using Ljbc1994.Blazor.IntersectionObserver; namespace Blazor.IntersectionObserver.Client { diff --git a/samples/Blazor.IntersectionObserver.Client/_Imports.razor b/samples/Blazor.IntersectionObserver.Client/_Imports.razor index 3e8f924..875dcd5 100644 --- a/samples/Blazor.IntersectionObserver.Client/_Imports.razor +++ b/samples/Blazor.IntersectionObserver.Client/_Imports.razor @@ -9,5 +9,5 @@ @using Blazor.IntersectionObserver.Client @using Blazor.IntersectionObserver.Client.Shared -@using Blazor.IntersectionObserver.API -@using Blazor.IntersectionObserver.Components \ No newline at end of file +@using Ljbc1994.Blazor.IntersectionObserver.API +@using Ljbc1994.Blazor.IntersectionObserver.Components \ No newline at end of file diff --git a/samples/Blazor.IntersectionObserver.Server/Blazor.IntersectionObserver.Server.csproj b/samples/Blazor.IntersectionObserver.Server/Blazor.IntersectionObserver.Server.csproj index 208d647..9be5a1f 100644 --- a/samples/Blazor.IntersectionObserver.Server/Blazor.IntersectionObserver.Server.csproj +++ b/samples/Blazor.IntersectionObserver.Server/Blazor.IntersectionObserver.Server.csproj @@ -6,7 +6,8 @@ - + + + - diff --git a/samples/Blazor.IntersectionObserver.Server/Pages/Index.razor b/samples/Blazor.IntersectionObserver.Server/Pages/Index.razor index 407f909..5f5c617 100644 --- a/samples/Blazor.IntersectionObserver.Server/Pages/Index.razor +++ b/samples/Blazor.IntersectionObserver.Server/Pages/Index.razor @@ -1,7 +1,7 @@ @page "/" -@using Blazor.IntersectionObserver -@using Blazor.IntersectionObserver.API -@using Blazor.IntersectionObserver.Components +@using Ljbc1994.Blazor.IntersectionObserver +@using Ljbc1994.Blazor.IntersectionObserver.API +@using Ljbc1994.Blazor.IntersectionObserver.Components
diff --git a/samples/Blazor.IntersectionObserver.Server/Pages/LazyImages.razor b/samples/Blazor.IntersectionObserver.Server/Pages/LazyImages.razor index 034c803..4b95ce9 100644 --- a/samples/Blazor.IntersectionObserver.Server/Pages/LazyImages.razor +++ b/samples/Blazor.IntersectionObserver.Server/Pages/LazyImages.razor @@ -1,6 +1,6 @@ @page "/lazy-images" -@using Blazor.IntersectionObserver.Components +@using Ljbc1994.Blazor.IntersectionObserver.Components
diff --git a/samples/Blazor.IntersectionObserver.Server/Startup.cs b/samples/Blazor.IntersectionObserver.Server/Startup.cs index 431c0bd..dbfeda8 100644 --- a/samples/Blazor.IntersectionObserver.Server/Startup.cs +++ b/samples/Blazor.IntersectionObserver.Server/Startup.cs @@ -10,6 +10,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Ljbc1994.Blazor.IntersectionObserver; namespace Blazor.IntersectionObserver.Server { diff --git a/samples/Blazor.IntersectionObserver.Server/_Imports.razor b/samples/Blazor.IntersectionObserver.Server/_Imports.razor index b9ef7d9..8f2e6b5 100644 --- a/samples/Blazor.IntersectionObserver.Server/_Imports.razor +++ b/samples/Blazor.IntersectionObserver.Server/_Imports.razor @@ -9,5 +9,5 @@ @using Blazor.IntersectionObserver.Server @using Blazor.IntersectionObserver.Server.Shared -@using Blazor.IntersectionObserver.API -@using Blazor.IntersectionObserver.Components \ No newline at end of file +@using Ljbc1994.Blazor.IntersectionObserver.API +@using Ljbc1994.Blazor.IntersectionObserver.Components \ No newline at end of file diff --git a/src/Blazor.IntersectionObserver/API/DOMRectReadOnly.cs b/src/Ljbc1994.Blazor.IntersectionObserver/API/DOMRectReadOnly.cs similarity index 96% rename from src/Blazor.IntersectionObserver/API/DOMRectReadOnly.cs rename to src/Ljbc1994.Blazor.IntersectionObserver/API/DOMRectReadOnly.cs index aba3da9..5d86cec 100644 --- a/src/Blazor.IntersectionObserver/API/DOMRectReadOnly.cs +++ b/src/Ljbc1994.Blazor.IntersectionObserver/API/DOMRectReadOnly.cs @@ -1,4 +1,4 @@ -namespace Blazor.IntersectionObserver.API +namespace Ljbc1994.Blazor.IntersectionObserver.API { public class DOMRectReadOnlyOptions { diff --git a/src/Blazor.IntersectionObserver/API/ForwardReference.cs b/src/Ljbc1994.Blazor.IntersectionObserver/API/ForwardReference.cs similarity index 87% rename from src/Blazor.IntersectionObserver/API/ForwardReference.cs rename to src/Ljbc1994.Blazor.IntersectionObserver/API/ForwardReference.cs index 5969fa7..cdc3466 100644 --- a/src/Blazor.IntersectionObserver/API/ForwardReference.cs +++ b/src/Ljbc1994.Blazor.IntersectionObserver/API/ForwardReference.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Components; -namespace Blazor.IntersectionObserver.API +namespace Ljbc1994.Blazor.IntersectionObserver.API { public class ForwardReference { diff --git a/src/Blazor.IntersectionObserver/API/IntersectionObserverEntry.cs b/src/Ljbc1994.Blazor.IntersectionObserver/API/IntersectionObserverEntry.cs similarity index 87% rename from src/Blazor.IntersectionObserver/API/IntersectionObserverEntry.cs rename to src/Ljbc1994.Blazor.IntersectionObserver/API/IntersectionObserverEntry.cs index 448f616..b7c0227 100644 --- a/src/Blazor.IntersectionObserver/API/IntersectionObserverEntry.cs +++ b/src/Ljbc1994.Blazor.IntersectionObserver/API/IntersectionObserverEntry.cs @@ -1,4 +1,4 @@ -namespace Blazor.IntersectionObserver.API +namespace Ljbc1994.Blazor.IntersectionObserver.API { public class IntersectionObserverEntry { diff --git a/src/Blazor.IntersectionObserver/Configuration/Constants.cs b/src/Ljbc1994.Blazor.IntersectionObserver/Configuration/Constants.cs similarity index 86% rename from src/Blazor.IntersectionObserver/Configuration/Constants.cs rename to src/Ljbc1994.Blazor.IntersectionObserver/Configuration/Constants.cs index 7f601fc..c83fcaf 100644 --- a/src/Blazor.IntersectionObserver/Configuration/Constants.cs +++ b/src/Ljbc1994.Blazor.IntersectionObserver/Configuration/Constants.cs @@ -1,4 +1,4 @@ -namespace Blazor.IntersectionObserver.Configuration +namespace Ljbc1994.Blazor.IntersectionObserver.Configuration { internal static class Constants { diff --git a/src/Blazor.IntersectionObserver/IIntersectionObserverService.cs b/src/Ljbc1994.Blazor.IntersectionObserver/IIntersectionObserverService.cs similarity index 87% rename from src/Blazor.IntersectionObserver/IIntersectionObserverService.cs rename to src/Ljbc1994.Blazor.IntersectionObserver/IIntersectionObserverService.cs index 9e95532..f9e0013 100644 --- a/src/Blazor.IntersectionObserver/IIntersectionObserverService.cs +++ b/src/Ljbc1994.Blazor.IntersectionObserver/IIntersectionObserverService.cs @@ -1,11 +1,11 @@ -using Blazor.IntersectionObserver.API; +using Ljbc1994.Blazor.IntersectionObserver.API; using Microsoft.AspNetCore.Components; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -namespace Blazor.IntersectionObserver +namespace Ljbc1994.Blazor.IntersectionObserver { public interface IIntersectionObserverService { diff --git a/src/Blazor.IntersectionObserver/IntersectionObserve.cs b/src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserve.cs similarity index 96% rename from src/Blazor.IntersectionObserver/IntersectionObserve.cs rename to src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserve.cs index e519f01..c62defe 100644 --- a/src/Blazor.IntersectionObserver/IntersectionObserve.cs +++ b/src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserve.cs @@ -1,4 +1,4 @@ -using Blazor.IntersectionObserver.API; +using Ljbc1994.Blazor.IntersectionObserver.API; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Rendering; using System; @@ -6,7 +6,7 @@ using System.Linq; using System.Threading.Tasks; -namespace Blazor.IntersectionObserver.Components +namespace Ljbc1994.Blazor.IntersectionObserver.Components { public class IntersectionObserve : ComponentBase, IAsyncDisposable { diff --git a/src/Blazor.IntersectionObserver/IntersectionObserver.cs b/src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserver.cs similarity index 97% rename from src/Blazor.IntersectionObserver/IntersectionObserver.cs rename to src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserver.cs index 0728634..3c2e045 100644 --- a/src/Blazor.IntersectionObserver/IntersectionObserver.cs +++ b/src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserver.cs @@ -1,4 +1,4 @@ -using Blazor.IntersectionObserver.API; +using Ljbc1994.Blazor.IntersectionObserver.API; using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; using System; @@ -6,7 +6,7 @@ using System.Linq; using System.Threading.Tasks; -namespace Blazor.IntersectionObserver +namespace Ljbc1994.Blazor.IntersectionObserver { public class IntersectionObserver { diff --git a/src/Blazor.IntersectionObserver/IntersectionObserverContext.cs b/src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserverContext.cs similarity index 74% rename from src/Blazor.IntersectionObserver/IntersectionObserverContext.cs rename to src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserverContext.cs index 83d47a2..3b2385c 100644 --- a/src/Blazor.IntersectionObserver/IntersectionObserverContext.cs +++ b/src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserverContext.cs @@ -1,6 +1,6 @@ -using Blazor.IntersectionObserver.API; +using Ljbc1994.Blazor.IntersectionObserver.API; -namespace Blazor.IntersectionObserver +namespace Ljbc1994.Blazor.IntersectionObserver { public class IntersectionObserverContext { diff --git a/src/Blazor.IntersectionObserver/IntersectionObserverExtensions.cs b/src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserverExtensions.cs similarity index 87% rename from src/Blazor.IntersectionObserver/IntersectionObserverExtensions.cs rename to src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserverExtensions.cs index 21ea44f..43cf8b6 100644 --- a/src/Blazor.IntersectionObserver/IntersectionObserverExtensions.cs +++ b/src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserverExtensions.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.DependencyInjection; -namespace Blazor.IntersectionObserver +namespace Ljbc1994.Blazor.IntersectionObserver { public static class IntersectionObserverExtensions { diff --git a/src/Blazor.IntersectionObserver/IntersectionObserverOptions.cs b/src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserverOptions.cs similarity index 88% rename from src/Blazor.IntersectionObserver/IntersectionObserverOptions.cs rename to src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserverOptions.cs index 07f6fc4..b8ba796 100644 --- a/src/Blazor.IntersectionObserver/IntersectionObserverOptions.cs +++ b/src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserverOptions.cs @@ -2,7 +2,7 @@ using Microsoft.JSInterop; using System.Collections.Generic; -namespace Blazor.IntersectionObserver +namespace Ljbc1994.Blazor.IntersectionObserver { public class IntersectionObserverOptions { diff --git a/src/Blazor.IntersectionObserver/IntersectionObserverService.cs b/src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserverService.cs similarity index 97% rename from src/Blazor.IntersectionObserver/IntersectionObserverService.cs rename to src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserverService.cs index 0c0b54d..15051d1 100644 --- a/src/Blazor.IntersectionObserver/IntersectionObserverService.cs +++ b/src/Ljbc1994.Blazor.IntersectionObserver/IntersectionObserverService.cs @@ -1,5 +1,5 @@ -using Blazor.IntersectionObserver.API; -using Blazor.IntersectionObserver.Configuration; +using Ljbc1994.Blazor.IntersectionObserver.API; +using Ljbc1994.Blazor.IntersectionObserver.Configuration; using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; using System; @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Threading.Tasks; -namespace Blazor.IntersectionObserver +namespace Ljbc1994.Blazor.IntersectionObserver { public class IntersectionObserverService: IIntersectionObserverService, IAsyncDisposable { diff --git a/src/Blazor.IntersectionObserver/Blazor.IntersectionObserver.csproj b/src/Ljbc1994.Blazor.IntersectionObserver/Ljbc1994.Blazor.IntersectionObserver.csproj similarity index 91% rename from src/Blazor.IntersectionObserver/Blazor.IntersectionObserver.csproj rename to src/Ljbc1994.Blazor.IntersectionObserver/Ljbc1994.Blazor.IntersectionObserver.csproj index 7cfb8ca..3231dd0 100644 --- a/src/Blazor.IntersectionObserver/Blazor.IntersectionObserver.csproj +++ b/src/Ljbc1994.Blazor.IntersectionObserver/Ljbc1994.Blazor.IntersectionObserver.csproj @@ -16,14 +16,19 @@ Blazor Intersection Observer Intersection Observer API for Blazor applications true - 2.0.3 + 3.0.0 BlazorIntersectionObserver + README.md -19/05/2021 +3.0.0 +- *BREAKING CHANGE* Namespace has been changed to `Ljbc1994.Blazor.IntersectionObserver` to avoid +namespace conflicts with Blazor libraries. + +2.0.1 - *BREAKING CHANGE* The IntersectionObserve component now requires a reference to the node it's observing. - The imported observer script is now minified. -06/12/2020 +1.0.0 - Updated project to use dotnet 5 LICENCE.txt Copyright © 2021 - Louie Colgan @@ -35,6 +40,7 @@ full + 4 true @@ -89,14 +95,12 @@ - Never - Never - Never + \ No newline at end of file diff --git a/src/Blazor.IntersectionObserver/Properties/launchSettings.json b/src/Ljbc1994.Blazor.IntersectionObserver/Properties/launchSettings.json similarity index 100% rename from src/Blazor.IntersectionObserver/Properties/launchSettings.json rename to src/Ljbc1994.Blazor.IntersectionObserver/Properties/launchSettings.json diff --git a/src/Blazor.IntersectionObserver/_Imports.razor b/src/Ljbc1994.Blazor.IntersectionObserver/_Imports.razor similarity index 100% rename from src/Blazor.IntersectionObserver/_Imports.razor rename to src/Ljbc1994.Blazor.IntersectionObserver/_Imports.razor diff --git a/src/Blazor.IntersectionObserver/__tests__/data/index.ts b/src/Ljbc1994.Blazor.IntersectionObserver/__tests__/data/index.ts similarity index 100% rename from src/Blazor.IntersectionObserver/__tests__/data/index.ts rename to src/Ljbc1994.Blazor.IntersectionObserver/__tests__/data/index.ts diff --git a/src/Blazor.IntersectionObserver/__tests__/index.test.ts b/src/Ljbc1994.Blazor.IntersectionObserver/__tests__/index.test.ts similarity index 100% rename from src/Blazor.IntersectionObserver/__tests__/index.test.ts rename to src/Ljbc1994.Blazor.IntersectionObserver/__tests__/index.test.ts diff --git a/src/Blazor.IntersectionObserver/__tests__/utils/config.ts b/src/Ljbc1994.Blazor.IntersectionObserver/__tests__/utils/config.ts similarity index 100% rename from src/Blazor.IntersectionObserver/__tests__/utils/config.ts rename to src/Ljbc1994.Blazor.IntersectionObserver/__tests__/utils/config.ts diff --git a/src/Blazor.IntersectionObserver/__tests__/utils/document.ts b/src/Ljbc1994.Blazor.IntersectionObserver/__tests__/utils/document.ts similarity index 100% rename from src/Blazor.IntersectionObserver/__tests__/utils/document.ts rename to src/Ljbc1994.Blazor.IntersectionObserver/__tests__/utils/document.ts diff --git a/src/Blazor.IntersectionObserver/__tests__/utils/iterable.ts b/src/Ljbc1994.Blazor.IntersectionObserver/__tests__/utils/iterable.ts similarity index 100% rename from src/Blazor.IntersectionObserver/__tests__/utils/iterable.ts rename to src/Ljbc1994.Blazor.IntersectionObserver/__tests__/utils/iterable.ts diff --git a/src/Blazor.IntersectionObserver/jest.config.js b/src/Ljbc1994.Blazor.IntersectionObserver/jest.config.js similarity index 100% rename from src/Blazor.IntersectionObserver/jest.config.js rename to src/Ljbc1994.Blazor.IntersectionObserver/jest.config.js diff --git a/src/Blazor.IntersectionObserver/package-lock.json b/src/Ljbc1994.Blazor.IntersectionObserver/package-lock.json similarity index 99% rename from src/Blazor.IntersectionObserver/package-lock.json rename to src/Ljbc1994.Blazor.IntersectionObserver/package-lock.json index 5427a09..da87778 100644 --- a/src/Blazor.IntersectionObserver/package-lock.json +++ b/src/Ljbc1994.Blazor.IntersectionObserver/package-lock.json @@ -3508,9 +3508,9 @@ "dev": true }, "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, "performance-now": { @@ -4892,9 +4892,9 @@ } }, "ws": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.0.tgz", - "integrity": "sha512-kyFwXuV/5ymf+IXhS6f0+eAFvydbaBW3zjpT6hUdAh/hbVjTIB5EHBGi0bPoCLSK2wcuz3BrEkB9LrYv1Nm4NQ==", + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.3.tgz", + "integrity": "sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==", "dev": true }, "xml": { diff --git a/src/Blazor.IntersectionObserver/package.json b/src/Ljbc1994.Blazor.IntersectionObserver/package.json similarity index 100% rename from src/Blazor.IntersectionObserver/package.json rename to src/Ljbc1994.Blazor.IntersectionObserver/package.json diff --git a/src/Blazor.IntersectionObserver/rollup.config.js b/src/Ljbc1994.Blazor.IntersectionObserver/rollup.config.js similarity index 100% rename from src/Blazor.IntersectionObserver/rollup.config.js rename to src/Ljbc1994.Blazor.IntersectionObserver/rollup.config.js diff --git a/src/Blazor.IntersectionObserver/src/index.ts b/src/Ljbc1994.Blazor.IntersectionObserver/src/index.ts similarity index 100% rename from src/Blazor.IntersectionObserver/src/index.ts rename to src/Ljbc1994.Blazor.IntersectionObserver/src/index.ts diff --git a/src/Blazor.IntersectionObserver/tsconfig.json b/src/Ljbc1994.Blazor.IntersectionObserver/tsconfig.json similarity index 100% rename from src/Blazor.IntersectionObserver/tsconfig.json rename to src/Ljbc1994.Blazor.IntersectionObserver/tsconfig.json diff --git a/src/Blazor.IntersectionObserver/wwwroot/blazor-intersection-observer.js b/src/Ljbc1994.Blazor.IntersectionObserver/wwwroot/blazor-intersection-observer.js similarity index 100% rename from src/Blazor.IntersectionObserver/wwwroot/blazor-intersection-observer.js rename to src/Ljbc1994.Blazor.IntersectionObserver/wwwroot/blazor-intersection-observer.js diff --git a/src/Blazor.IntersectionObserver/wwwroot/blazor-intersection-observer.min.js b/src/Ljbc1994.Blazor.IntersectionObserver/wwwroot/blazor-intersection-observer.min.js similarity index 100% rename from src/Blazor.IntersectionObserver/wwwroot/blazor-intersection-observer.min.js rename to src/Ljbc1994.Blazor.IntersectionObserver/wwwroot/blazor-intersection-observer.min.js