@stiviar/modeled-react 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # @stiviar/react
1
+ # @stiviar/modeled-react
2
2
 
3
- React bindings for [stiviar](https://github.com/szlkeve/stiviar) — a declarative, type-safe API layer.
3
+ React bindings for [modeled](https://github.com/szlkeve/stiviar) — a declarative, type-safe API layer.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm i @stiviar/react
8
+ npm i @stiviar/modeled-react
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -14,7 +14,7 @@ Define your models once:
14
14
 
15
15
  ```ts
16
16
  // api.ts
17
- import { register } from "@stiviar/core";
17
+ import { register } from "@stiviar/modeled-react";
18
18
  import { Todos, TodosSchema, Users, UsersSchema } from "./types";
19
19
 
20
20
  export const api = register<{
@@ -70,4 +70,4 @@ export const api = register<TypeModel>(apiModel, {
70
70
 
71
71
  ## License
72
72
 
73
- MIT
73
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stiviar/modeled-react",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Declarative, type-safe API layer for frontend apps. Register your API once, get validated data, caching, and testable contracts everywhere",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",