Skip to content

Commit ae99edf

Browse files
dai-shiazmenak
andauthored
new API with useMutableSource (#48)
* implementation with useMutableSource * fix stale state with useTrackedState * run compile * slim eslintrc * export type only * better context.ts in examples * improve useTrackedState with scoped variables * Update README.md Co-Authored-By: Adam Zmenak <[email protected]> * update README * update package.json * apidoc with sorting by hand * run compile * 5.0.0-alpha.3 * update dependencies * remove dist * github actions instead of travis * update badges * fix test * v5.0.0-alpha.4 modern build * follow changes in react experimental * v5.0.0-alpha.5 * update proxy-compare v1.0.3 and simplify utils Co-authored-by: Adam Zmenak <[email protected]>
1 parent 991c55c commit ae99edf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+3922
-1899
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"react-hooks/exhaustive-deps": ["error", { "additionalHooks": "useIsomorphicLayoutEffect" }],
2424
"@typescript-eslint/explicit-function-return-type": "off",
2525
"@typescript-eslint/explicit-module-boundary-types": "off",
26+
"@typescript-eslint/no-explicit-any": "off",
2627
"@typescript-eslint/no-empty-interface": "off",
2728
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".tsx"] }],
2829
"react/prop-types": "off",
@@ -32,7 +33,7 @@
3233
"import/no-unresolved": ["error", { "ignore": ["reactive-react-redux"] }],
3334
"no-param-reassign": "off",
3435
"no-plusplus": "off",
35-
"prefer-object-spread": "off",
36+
"no-bitwise": "off",
3637
"default-case": "off"
3738
},
3839
"overrides": [{

.github/workflows/cd.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CD
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: '12.x'
18+
registry-url: 'https://registry.npmjs.org'
19+
20+
- name: Get yarn cache
21+
id: yarn-cache
22+
run: echo "::set-output name=dir::$(yarn cache dir)"
23+
24+
- name: Cache dependencies
25+
uses: actions/cache@v1
26+
with:
27+
path: ${{ steps.yarn-cache.outputs.dir }}
28+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
29+
restore-keys: |
30+
${{ runner.os }}-yarn-
31+
32+
- name: Install dependencies
33+
run: yarn install
34+
35+
- name: Test
36+
run: yarn test
37+
38+
- name: Compile
39+
run: yarn run compile
40+
41+
- name: Publish
42+
run: npm publish
43+
env:
44+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Setup Node
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: '12.x'
17+
18+
- name: Get yarn cache
19+
id: yarn-cache
20+
run: echo "::set-output name=dir::$(yarn cache dir)"
21+
22+
- name: Cache dependencies
23+
uses: actions/cache@v1
24+
with:
25+
path: ${{ steps.yarn-cache.outputs.dir }}
26+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-yarn-
29+
30+
- name: Install dependencies
31+
run: yarn install
32+
33+
- name: Test
34+
run: yarn test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*~
22
*.swp
33
node_modules
4+
/dist

.travis.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)