Skip to content

Commit

Permalink
Release 1.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
webNeat committed Oct 22, 2022
1 parent 5de6af0 commit 7bf2735
Show file tree
Hide file tree
Showing 5 changed files with 1,817 additions and 4,247 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: 16
- run: yarn
- run: yarn build
- name: Publish to npm
uses: pascalgn/npm-publish-action@1.3.3
uses: pascalgn/npm-publish-action@1.3.9
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: 16
- run: yarn
- run: yarn build
- run: yarn test-coverage
Expand Down
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Amine Ben hammou",
"description": "An opinionated and simple way to use Redux",
"license": "MIT",
"version": "1.0.1-alpha",
"version": "1.0.0-beta.1",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/module.js",
Expand All @@ -12,7 +12,7 @@
"dist"
],
"engines": {
"node": ">=10"
"node": ">=16"
},
"scripts": {
"build": "parcel build",
Expand All @@ -23,17 +23,18 @@
"just-types": "^1.3.1"
},
"peerDependencies": {
"redux": "^4.1.2"
"redux": "^4.2.0"
},
"devDependencies": {
"@parcel/packager-ts": "^2.1.1",
"redux": "^4.1.2",
"@parcel/transformer-typescript-types": "^2.1.1",
"@types/jest": "^27.4.0",
"jest": "^27.4.7",
"parcel": "^2.1.1",
"ts-jest": "^27.1.2",
"tslib": "^2.3.1",
"typescript": "^4.5.4"
"@parcel/packager-ts": "^2.7.0",
"@parcel/transformer-typescript-types": "^2.7.0",
"@types/jest": "^29.2.0",
"jest": "^29.2.1",
"jest-environment-jsdom": "^29.2.1",
"parcel": "^2.7.0",
"redux": "^4.2.0",
"ts-jest": "^29.0.3",
"tslib": "^2.4.0",
"typescript": "<4.8"
}
}
4 changes: 2 additions & 2 deletions src/create.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {createStore} from 'redux'
import {legacy_createStore} from 'redux'
import {flattenHandlers} from './flattenHandlers'
import {makeActions} from './makeActions'
import {makeReducer} from './makeReducer'
import {Handlers} from './types'

export function create<State, Fns extends Handlers<State>>(initialState: State, fns: Fns) {
const store = createStore(
const store = legacy_createStore(
makeReducer(initialState, flattenHandlers(fns)),
(window as any).__REDUX_DEVTOOLS_EXTENSION__ && (window as any).__REDUX_DEVTOOLS_EXTENSION__()
)
Expand Down
Loading

0 comments on commit 7bf2735

Please sign in to comment.