Skip to content

Commit

Permalink
Add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Oct 21, 2024
1 parent 911e4ba commit 025b811
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

## Pre-Release

- Introduce `cgp-type` crate with various refactoring [#23](https://github.com/contextgeneric/cgp/pull/23)
- Component pattern improvements - [#24](https://github.com/contextgeneric/cgp/pull/24)
- Rename `DelegateTo` to `UseDelegate`.
- Implement `FieldGetter` for `UseContext`.
- Introduce `UseDelegatedType`.

- Introduce `cgp-type` crate with various refactoring - [#23](https://github.com/contextgeneric/cgp/pull/23)
- Introduce `cgp-type` crate, with the `HasType` component.
- Introduce `FieldGetter` as a manual provider trait for `HasField`.
- Introduce `HasFieldMut` trait to `cgp-field`, and auto derive it in `#[derive(HasField)]`.
Expand Down
4 changes: 3 additions & 1 deletion crates/cgp-type/src/impls/use_delegated_type.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
use core::marker::PhantomData;

use cgp_component::DelegateComponent;
use cgp_component::{DelegateComponent, WithProvider};

use crate::traits::ProvideType;

pub struct UseDelegatedType<Components>(pub PhantomData<Components>);

pub type WithDelegatedType<Components> = WithProvider<UseDelegatedType<Components>>;

impl<Context, Tag, Components, Type> ProvideType<Context, Tag> for UseDelegatedType<Components>
where
Components: DelegateComponent<Tag, Delegate = Type>,
Expand Down

0 comments on commit 025b811

Please sign in to comment.