From a78a06ceb4e68606ccaa878a7c5fb384845e1093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Thu, 26 May 2022 14:49:25 +0200 Subject: [PATCH 1/4] improve readme wordings --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 42bf28b..89728bd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 🔀 React use bireducer [![tests](https://img.shields.io/github/workflow/status/soywod/react-use-bireducer/integration?label=tests&logo=github&style=flat-square)](https://github.com/soywod/react-use-bireducer/actions/workflows/test.yaml) [![codecov](https://img.shields.io/codecov/c/github/soywod/react-use-bireducer?logo=codecov&style=flat-square)](https://app.codecov.io/gh/soywod/react-use-bireducer) [![npm](https://img.shields.io/npm/v/react-use-bireducer?logo=npm&label=npm&color=success&style=flat-square)](https://www.npmjs.com/package/react-use-bireducer) -React hook for managing effects within reducers. +React hook for managing effects from reducers. ## Installation @@ -26,8 +26,8 @@ declare function effectReducer(effect: Effect): EffectCleanup | void; const [state, dispatch] = useBireducer(stateReducer, effectReducer, defaultState); ``` -See a complete [live example on -CodeSandbox](https://codesandbox.io/s/react-use-bireducer-example-20n30w?file=/src/App.tsx). +See a complete example on +[CodeSandbox](https://codesandbox.io/s/react-use-bireducer-example-20n30w?file=/src/App.tsx). ## Development From b8dfcef8be0893224b2a4f0000774fe8b4778c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Thu, 26 May 2022 16:46:14 +0200 Subject: [PATCH 2/4] fix export names --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index fa7efee..4dcf875 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,12 @@ "version": "1.0.2", "license": "MIT", "source": "src/index.ts", - "exports": "dist/index.mjs", - "main": "dist/index.js", - "module": "dist/index.esm.js", + "exports": { + "require": "dist/index.cjs", + "default": "dist/index.modern.js" + }, + "main": "dist/index.cjs", + "module": "dist/index.module.js", "unpkg": "dist/index.umd.js", "typings": "dist/index.d.ts", "files": [ From 8330ef9d106cb58919714438f28a00f95dd4570e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Thu, 26 May 2022 16:52:07 +0200 Subject: [PATCH 3/4] prepare v1.0.3 --- CHANGELOG.md | 18 +++++++++++++++++- package.json | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bbfb46e..a06069f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,4 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -[unreleased]: https://github.com/soywod/react-use-bireducer/compare/612cd4c159e3b488ec148053e64f8e951e630ff7...HEAD +## [1.0.3] - 2022-05-26 + +### Fix + +- Microbundle export names + +## [1.0.2] - 2022-05-26 + +## [1.0.1] - 2022-05-26 + +## [1.0.0] - 2022-05-26 + +[unreleased]: https://github.com/soywod/react-use-bireducer/compare/v1.0.3...HEAD +[1.0.3]: https://github.com/soywod/react-use-bireducer/compare/v1.0.2...v1.0.3 +[1.0.2]: https://github.com/soywod/react-use-bireducer/compare/v1.0.1...v1.0.2 +[1.0.1]: https://github.com/soywod/react-use-bireducer/compare/v1.0.0...v1.0.1 +[1.0.0]: https://github.com/soywod/react-use-bireducer/releases/tag/v1.0.0 diff --git a/package.json b/package.json index 4dcf875..678f7cb 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "react-use-bireducer", "author": "soywod ", "description": "React hook for managing effects from reducers.", - "version": "1.0.2", + "version": "1.0.3", "license": "MIT", "source": "src/index.ts", "exports": { From 5155528b8c172a2a5604343cd4a6d5abf6f25d64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Thu, 26 May 2022 16:57:41 +0200 Subject: [PATCH 4/4] create github release from github delivery action --- .github/workflows/delivery.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/delivery.yml b/.github/workflows/delivery.yml index 78a29b1..73a89da 100644 --- a/.github/workflows/delivery.yml +++ b/.github/workflows/delivery.yml @@ -27,5 +27,14 @@ jobs: run: yarn publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + draft: false + prerelease: false - name: Send coverage data uses: codecov/codecov-action@v2