Skip to content

Commit ae7db86

Browse files
committed
Rename RemoveItemAsync to DeleteAsync; update import path
- Updated import path in `BaseStore.cs` for browserStorage.js - Renamed `RemoveItemAsync` to `DeleteAsync` in `ILocalStore` and `ISessionStore` interfaces - Applied corresponding method name changes in `LocalStore` and `SessionStore` classes - Incremented version in `ManuHub.Blazor.Wasm.BrowserStorage.csproj` from `1.0.0` to `1.0.1`
1 parent 64c7503 commit ae7db86

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/ManuHub.Blazor.Wasm.BrowserStorage/BaseStore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public abstract class BaseStore : IAsyncDisposable
99
public BaseStore(IJSRuntime jsRuntime)
1010
{
1111
ModuleTask = new(() => jsRuntime.InvokeAsync<IJSObjectReference>(
12-
"import", "./_content/ManuHub.Blazor.Wasm.BrowserStorage/browserStorage.js").AsTask());
12+
"import", "./_content/BrowserStorage.Wasm/browserStorage.js").AsTask());
1313
}
1414
public async ValueTask DisposeAsync()
1515
{

src/ManuHub.Blazor.Wasm.BrowserStorage/ILocalStore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ public interface ILocalStore
66
ValueTask ClearAsync();
77
ValueTask<T?> GetAsync<T>(string key);
88
ValueTask<Dictionary<string, object>?> GetAllAsync();
9-
ValueTask RemoveItemAsync(string key);
9+
ValueTask DeleteAsync(string key);
1010
ValueTask SetAsync<T>(string key, T value);
1111
}

src/ManuHub.Blazor.Wasm.BrowserStorage/ISessionStore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ public interface ISessionStore
66
ValueTask ClearAsync();
77
ValueTask<Dictionary<string, object>?> GetAllAsync();
88
ValueTask<T?> GetAsync<T>(string key);
9-
ValueTask RemoveItemAsync(string key);
9+
ValueTask DeleteAsync(string key);
1010
ValueTask SetAsync<T>(string key, T value);
1111
}

src/ManuHub.Blazor.Wasm.BrowserStorage/LocalStore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public async ValueTask SetAsync<T>(string key, T value)
2828
return await module.InvokeAsync<Dictionary<string, object>>("getAllLocalItems");
2929
}
3030

31-
public async ValueTask RemoveItemAsync(string key)
31+
public async ValueTask DeleteAsync(string key)
3232
{
3333
if (string.IsNullOrEmpty(key))
3434
throw new ArgumentException($"'{nameof(key)}' cannot be null or empty.", nameof(key));

src/ManuHub.Blazor.Wasm.BrowserStorage/ManuHub.Blazor.Wasm.BrowserStorage.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
1818
<Icon>icon.png</Icon>
1919
<PackageIcon>icon.png</PackageIcon>
20-
<Version>1.0.0</Version>
20+
<Version>1.0.1</Version>
2121
<IsPackable>true</IsPackable>
2222
</PropertyGroup>
2323

src/ManuHub.Blazor.Wasm.BrowserStorage/SessionStore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public async ValueTask SetAsync<T>(string key, T value)
5353
return await module.InvokeAsync<Dictionary<string, object>>("getAllSessionItems");
5454
}
5555

56-
public async ValueTask RemoveItemAsync(string key)
56+
public async ValueTask DeleteAsync(string key)
5757
{
5858
if (string.IsNullOrEmpty(key))
5959
throw new ArgumentException($"'{nameof(key)}' cannot be null or empty.", nameof(key));

0 commit comments

Comments
 (0)