Skip to content

Commit

Permalink
v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mnasyrov committed Oct 26, 2022
1 parent 5242c3e commit 6d35152
Show file tree
Hide file tree
Showing 10 changed files with 131 additions and 163 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.7.0](https://github.com/mnasyrov/rx-effects/compare/v0.6.0...v0.7.0) (2022-10-26)

### Bug Fixes

- Fixed usage of Effect's options by `handleAction()` and `scope.createEffect()` ([#7](https://github.com/mnasyrov/rx-effects/issues/7)) ([e44bd23](https://github.com/mnasyrov/rx-effects/commit/e44bd23b563f7a61ea1ecfa291b311f52d55e577))

### Features

- New scope's methods: `handleQuery()` and `subscribe()` ([#8](https://github.com/mnasyrov/rx-effects/issues/8)) ([5242c3e](https://github.com/mnasyrov/rx-effects/commit/5242c3e91b042b5eb060a0d1899a018c4b29294a))

# [0.6.0](https://github.com/mnasyrov/rx-effects/compare/v0.5.2...v0.6.0) (2022-08-28)

### Features
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
@@ -1,5 +1,5 @@
{
"version": "0.6.0",
"version": "0.7.0",
"hoist": "**",
"forceLocal": true,
"command": {
Expand Down
4 changes: 4 additions & 0 deletions packages/examples/CHANGELOG.md
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.7.0](https://github.com/mnasyrov/rx-effects/compare/v0.6.0...v0.7.0) (2022-10-26)

**Note:** Version bump only for package rx-effects-examples

# [0.6.0](https://github.com/mnasyrov/rx-effects/compare/v0.5.2...v0.6.0) (2022-08-28)

### Features
Expand Down
6 changes: 3 additions & 3 deletions packages/examples/package.json
@@ -1,12 +1,12 @@
{
"private": true,
"name": "rx-effects-examples",
"version": "0.6.0",
"version": "0.7.0",
"type": "module",
"sideEffects": false,
"dependencies": {
"rx-effects": "0.6.0",
"rx-effects-react": "0.6.0"
"rx-effects": "0.7.0",
"rx-effects-react": "0.7.0"
},
"peerDependencies": {
"react": ">=17.0.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/rx-effects-react/CHANGELOG.md
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.7.0](https://github.com/mnasyrov/rx-effects/compare/v0.6.0...v0.7.0) (2022-10-26)

**Note:** Version bump only for package rx-effects-react

# [0.6.0](https://github.com/mnasyrov/rx-effects/compare/v0.5.2...v0.6.0) (2022-08-28)

### Features
Expand Down
42 changes: 8 additions & 34 deletions packages/rx-effects-react/docs/README.md
Expand Up @@ -40,10 +40,6 @@ If the factory is provided, it is called only once.

`T`

#### Defined in

[rx-effects-react/src/useConst.ts:12](https://github.com/mnasyrov/rx-effects/blob/718c5a2/packages/rx-effects-react/src/useConst.ts#L12)

---

### useController
Expand Down Expand Up @@ -73,10 +69,6 @@ included explicitly when it is needed.

`T`

#### Defined in

[rx-effects-react/src/useController.ts:18](https://github.com/mnasyrov/rx-effects/blob/718c5a2/packages/rx-effects-react/src/useController.ts#L18)

---

### useObservable
Expand All @@ -88,7 +80,7 @@ Returns a value provided by `source$`.
The hook returns the initial value and subscribes on the `source$`. After
that, the hook returns values which are provided by the source.

**`example`**
**`Example`**

```ts
const value = useObservable<string>(source$, undefined);
Expand All @@ -112,10 +104,6 @@ const value = useObservable<string>(source$, undefined);

`T`

#### Defined in

[rx-effects-react/src/useObservable.ts:19](https://github.com/mnasyrov/rx-effects/blob/718c5a2/packages/rx-effects-react/src/useObservable.ts#L19)

---

### useObserver
Expand All @@ -126,7 +114,7 @@ Subscribes the provided observer or `next` handler on `source$` observable.

This hook allows to do fine handling of the source observable.

**`example`**
**`Example`**

```ts
const observer = useCallback((nextValue) => {
Expand All @@ -152,10 +140,6 @@ useObserver(source$, observer);

`Subscription`

#### Defined in

[rx-effects-react/src/useObserver.ts:21](https://github.com/mnasyrov/rx-effects/blob/718c5a2/packages/rx-effects-react/src/useObserver.ts#L21)

---

### useQuery
Expand All @@ -174,16 +158,12 @@ Returns a value which is provided by the query.

| Name | Type | Description |
| :------ | :--------------------------------------------------------------- | :-------------------- |
| `query` | `Readonly`<{ `value$`: `Observable`<`T`\> ; `get`: () => `T` }\> | – a query for a value |
| `query` | `Readonly`<{ `get`: () => `T` ; `value$`: `Observable`<`T`\> }\> | – a query for a value |

#### Returns

`T`

#### Defined in

[rx-effects-react/src/useQuery.ts:9](https://github.com/mnasyrov/rx-effects/blob/718c5a2/packages/rx-effects-react/src/useQuery.ts#L9)

---

### useSelector
Expand All @@ -195,7 +175,7 @@ Returns a value provided by `source$`.
The hook returns the initial value and subscribes on the `source$`. After
that, the hook returns values which are provided by the source.

**`example`**
**`Example`**

```ts
const value = useSelector<{ data: Record<string, string> }>(
Expand Down Expand Up @@ -226,10 +206,6 @@ const value = useSelector<{ data: Record<string, string> }>(

`R`

#### Defined in

[rx-effects-react/src/useSelector.ts:27](https://github.com/mnasyrov/rx-effects/blob/718c5a2/packages/rx-effects-react/src/useSelector.ts#L27)

---

### useStateQuery
Expand All @@ -238,7 +214,9 @@ const value = useSelector<{ data: Record<string, string> }>(

Returns a value which is provided by the query.

**`deprecated`** Use `useQuery()`.
**`Deprecated`**

Use `useQuery()`.

#### Type parameters

Expand All @@ -250,12 +228,8 @@ Returns a value which is provided by the query.

| Name | Type | Description |
| :------ | :--------------------------------------------------------------- | :-------------------- |
| `query` | `Readonly`<{ `value$`: `Observable`<`T`\> ; `get`: () => `T` }\> | – a query for a value |
| `query` | `Readonly`<{ `get`: () => `T` ; `value$`: `Observable`<`T`\> }\> | – a query for a value |

#### Returns

`T`

#### Defined in

[rx-effects-react/src/useQuery.ts:30](https://github.com/mnasyrov/rx-effects/blob/718c5a2/packages/rx-effects-react/src/useQuery.ts#L30)
4 changes: 2 additions & 2 deletions packages/rx-effects-react/package.json
@@ -1,6 +1,6 @@
{
"name": "rx-effects-react",
"version": "0.6.0",
"version": "0.7.0",
"description": "Reactive state and effects management. Tooling for React.js",
"license": "MIT",
"author": "Mikhail Nasyrov (https://github.com/mnasyrov)",
Expand Down Expand Up @@ -45,7 +45,7 @@
"build:esm": "tsc -p tsconfig.build.json --outDir dist/esm --module es2015"
},
"dependencies": {
"rx-effects": "0.6.0"
"rx-effects": "0.7.0"
},
"peerDependencies": {
"react": ">=17.0.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/rx-effects/CHANGELOG.md
Expand Up @@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.7.0](https://github.com/mnasyrov/rx-effects/compare/v0.6.0...v0.7.0) (2022-10-26)

### Bug Fixes

- Fixed usage of Effect's options by `handleAction()` and `scope.createEffect()` ([#7](https://github.com/mnasyrov/rx-effects/issues/7)) ([e44bd23](https://github.com/mnasyrov/rx-effects/commit/e44bd23b563f7a61ea1ecfa291b311f52d55e577))

### Features

- New scope's methods: `handleQuery()` and `subscribe()` ([#8](https://github.com/mnasyrov/rx-effects/issues/8)) ([5242c3e](https://github.com/mnasyrov/rx-effects/commit/5242c3e91b042b5eb060a0d1899a018c4b29294a))

# [0.6.0](https://github.com/mnasyrov/rx-effects/compare/v0.5.2...v0.6.0) (2022-08-28)

### Features
Expand Down

0 comments on commit 6d35152

Please sign in to comment.