-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from nabond251/feature/publish
chore(release): publish packages
- Loading branch information
Showing
25 changed files
with
797 additions
and
620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## 2023-07-09 | ||
|
||
### Changes | ||
|
||
--- | ||
|
||
Packages with breaking changes: | ||
|
||
- There are no breaking changes in this release. | ||
|
||
Packages with other changes: | ||
|
||
- [`rearch` - `v0.0.0-dev.1`](#rearch---v000-dev1) | ||
|
||
--- | ||
|
||
#### `rearch` - `v0.0.0-dev.1` | ||
|
||
- **FEAT**: add == check to skip some rebuilds. | ||
- **FEAT**: working mvp. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// <copyright file="CapsuleHandle.cs" company="SdgApps"> | ||
// Copyright (c) SdgApps. All rights reserved. | ||
// </copyright> | ||
|
||
namespace Rearch; | ||
|
||
/// <summary> | ||
/// Implementation of the handle given to a <see cref="Capsule{T}"/> to build its | ||
/// data. | ||
/// </summary> | ||
internal sealed class CapsuleHandle(UntypedCapsuleManager manager) : | ||
ICapsuleHandle | ||
{ | ||
/// <summary> | ||
/// Gets the capsule manager for this handle. | ||
/// </summary> | ||
public UntypedCapsuleManager Manager { get; } = manager; | ||
|
||
/// <summary> | ||
/// Gets index into manager's side effect data. | ||
/// </summary> | ||
public int SideEffectDataIndex { get; private set; } | ||
|
||
/// <inheritdoc/> | ||
public T Invoke<T>(Capsule<T> capsule) => | ||
this.Manager.Read(capsule); | ||
|
||
/// <inheritdoc/> | ||
public T Register<T>(SideEffect<T> sideEffect) | ||
{ | ||
if (this.SideEffectDataIndex == this.Manager.SideEffectData.Count) | ||
{ | ||
this.Manager.SideEffectData.Add(sideEffect(this.Manager)); | ||
} | ||
|
||
return (T)this.Manager.SideEffectData[this.SideEffectDataIndex++]!; | ||
} | ||
} |
Oops, something went wrong.