Skip to content

Commit

Permalink
update organization
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Andreev committed Oct 24, 2024
1 parent 1fd025d commit c2a8c04
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# @umbrellio/observable
# @cadolabs/observable &middot; <a target="_blank" href="https://github.com/Cado-Labs"><img src="https://github.com/Cado-Labs/cado-labs-logos/raw/main/cado_labs_badge.svg" alt="Supported by Cado Labs" style="max-width: 100%; height: 20px"></a>

[![Coverage Status](https://coveralls.io/repos/github/umbrellio/observable/badge.svg?branch=master)](https://coveralls.io/github/umbrellio/observable?branch=master)
[![Build Status](https://github.com/umbrellio/observable/actions/workflows/ci.yml/badge.svg)](https://github.com/umbrellio/observable)
[![Coverage Status](https://coveralls.io/repos/github/cadolabs/observable/badge.svg?branch=master)](https://coveralls.io/github/cadolabs/observable?branch=master)
[![Build Status](https://github.com/cadolabs/observable/actions/workflows/ci.yml/badge.svg)](https://github.com/cadolabs/observable)

## Install

```sh
$ yarn add @umbrellio/observable
$ yarn add @cadolabs/observable
```

## Usage

The library contains of 4 parts - `observable`, `observer`, `multipleObserver` and `useStore`.

```js
import { observable, observer, multipleObserver, useStore } from "@umbrellio/observable"
import { observable, observer, multipleObserver, useStore } from "@cadolabs/observable"
```

### Structures
Expand Down Expand Up @@ -59,7 +59,7 @@ observable(initial: InitialObject): ObservableStore
```
```js
import { observable } from "@umbrellio/observable"
import { observable } from "@cadolabs/observable"

const listStore = observable({ list: [] })
```
Expand All @@ -82,7 +82,7 @@ observer(store: ObservableStore, options: ObserverOptions): ObserverFunction
```
```js
import { observer } from "@umbrellio/observable"
import { observer } from "@cadolabs/observable"

@observer(listStore, {
key: "categories",
Expand All @@ -106,7 +106,7 @@ multipleObserver(stores: MultipleObserverOptionItem[]): ObserverFunction
```
```js
import { multipleObserver } from "@umbrellio/observable"
import { multipleObserver } from "@cadolabs/observable"

@multipleObserver([
{ store: listStore, key: "categories", map: state => state.list },
Expand Down Expand Up @@ -135,7 +135,7 @@ useStore(store: ObservableStore, options: UseStoreOptions): State
```
```js
import { useStore } from "@umbrellio/observable"
import { useStore } from "@cadolabs/observable"

const List = () => {
const categories = useStore(listStore, { map: state => state.list })
Expand All @@ -146,7 +146,7 @@ const List = () => {
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/umbrellio/observable.
Bug reports and pull requests are welcome on GitHub at https://github.com/cadolabs/observable.
## License
Expand All @@ -157,6 +157,6 @@ Released under MIT License.
Created by [Aleksei Bespalov](https://github.com/nulldef),
inspired by idea of [Aleksandr Komarov](https://github.com/akxcv).
<a href="https://github.com/umbrellio/">
<img style="float: left;" src="https://umbrellio.github.io/Umbrellio/supported_by_umbrellio.svg" alt="Supported by Umbrellio" width="439" height="72">
<a href="https://github.com/Cado-Labs">
<img src="https://github.com/Cado-Labs/cado-labs-resources/blob/main/cado_labs_supporting_rounded.svg" alt="Supported by Cado Labs" />
</a>
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@umbrellio/observable",
"name": "@cadolabs/observable",
"version": "2.0.0",
"description": "Observable library",
"repository": "git@github.com:umbrellio/observable.git",
"repository": "https://github.com/Cado-Labs/observable",
"author": "Aleksei Bespalov <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/umbrellio/observable",
"homepage": "https://github.com/Cado-Labs/observable",
"main": "dist/observable.cjs.js",
"module": "dist/observable.es.js",
"unpkg": "dist/observable.iife.js",
Expand Down

0 comments on commit c2a8c04

Please sign in to comment.