Skip to content

Commit

Permalink
🚑️ Rename package name
Browse files Browse the repository at this point in the history
  • Loading branch information
sskmy1024y committed Aug 28, 2022
1 parent 489238d commit a06e4ae
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<div style="text-align: center;">
<h1>use-suspense-hook</h1>
<div align="center">
<h1>use-suspense-hooks</h1>
</div>

<div style="text-align: center;">
<a href="https://github.com/sskmy1024y/use-suspense-hook/releases/latest"><img src="https://img.shields.io/npm/v/use-suspense-hook" alt="Released package version"></a>
<a href="https://github.com/sskmy1024y/use-suspense-hook/blob/main/license"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License: MIT"></a>
<a href="https://github.com/sskmy1024y/use-suspense-hook/actions/workflows/test.yml"><img src="https://github.com/sskmy1024y/use-suspense-hook/actions/workflows/test.yml/badge.svg" alt="CI status" /></a>
<div align="center">
<a href="https://github.com/sskmy1024y/use-suspense-hooks/releases/latest"><img src="https://img.shields.io/npm/v/use-suspense-hooks" alt="Released package version"></a>
<a href="https://github.com/sskmy1024y/use-suspense-hooks/blob/main/license"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License: MIT"></a>
<a href="https://github.com/sskmy1024y/use-suspense-hooks/actions/workflows/test.yml"><img src="https://github.com/sskmy1024y/use-suspense-hooks/actions/workflows/test.yml/badge.svg" alt="CI status" /></a>
</div>

<br>

<div style="text-align: center;">
<div align="center">
<strong>Hooks that allow synchronous execution of Async functions via React.Suspension</strong>
</div>

## 📦 Install

```shell
$ npm install use-suspense-hook
$ npm install use-suspense-hooks
```


```shell
$ yarn add use-suspense-hook
$ yarn add use-suspense-hooks
```

## 📔 Usage
Expand Down Expand Up @@ -54,7 +54,7 @@ function MyComponent() {

## 🤝 Contributing

1. Fork it ( <https://github.com/sskmy1024y/use-suspense-hook/fork> )
1. Fork it ( <https://github.com/sskmy1024y/use-suspense-hooks/fork> )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"typescript": "^4.8.2",
"use-suspense-hook": "../artifacts/use-suspense-hook-1.0.0.tgz"
"use-suspense-hooks": "../artifacts/use-suspense-hooks-1.0.0.tgz"
},
"scripts": {
"start": "react-scripts start",
Expand Down
2 changes: 1 addition & 1 deletion example/src/ListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// package could be installed by `yarn artifact` in project root
import React from 'react'
import {useSuspenseState} from "use-suspense-hook";
import {useSuspenseState} from "use-suspense-hooks";

interface Props {
index: number
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "use-suspense-hook",
"version": "1.0.0",
"name": "use-suspense-hooks",
"version": "0.1.0",
"description": "Hooks that allow synchronous execution of Async functions via React.Suspension",
"author": "sho",
"main": "lib/cjs/index.js",
Expand All @@ -24,7 +24,7 @@
"lint:prettier": "prettier '**/*.{json,yml}' --check",
"test": "run-p 'typecheck:*' 'lint:*' 'test:*'",
"test:jest": "jest -c config/jest.config.ts",
"artifact": "yarn pack --filename artifacts/use-suspense-hook-$npm_package_version.tgz",
"artifact": "yarn pack --filename artifacts/use-suspense-hooks-$npm_package_version.tgz",
"clean": "rimraf lib 'artifacts/*.tgz'",
"prepack": "run-s clean build"
},
Expand Down Expand Up @@ -66,9 +66,9 @@
"typescript",
"type"
],
"bugs": "https://github.com/sskmy1024y/use-suspense-hook/issues",
"bugs": "https://github.com/sskmy1024y/use-suspense-hooks/issues",
"repository": {
"type": "git",
"url": "https://github.com/sskmy1024y/use-suspense-hook.git"
"url": "https://github.com/sskmy1024y/use-suspense-hooks.git"
}
}

0 comments on commit a06e4ae

Please sign in to comment.