Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.6.0 #59

Merged
merged 29 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e33c9f6
wip
jokester Feb 16, 2024
299fc2e
useAsyncEffect: always preventDuplicatedRun
jokester Mar 23, 2024
f9f25d2
fix tests
jokester Mar 23, 2024
21cb42e
make lint happy
jokester Mar 23, 2024
9429ea8
Merge pull request #57 from jokester/fixes
jokester Mar 23, 2024
fcc25af
always run typecheck + lint + test
jokester Mar 23, 2024
de8d681
make tsc & lint angry
jokester Mar 23, 2024
8e84692
tune ci
jokester Mar 23, 2024
76a3557
Revert "make tsc & lint angry"
jokester Mar 23, 2024
8bdd6bb
Merge pull request #58 from jokester/ci-run-checks-to-last
jokester Mar 23, 2024
492a78b
rename field
jokester Mar 23, 2024
eabba86
cover more code
jokester Mar 23, 2024
f314428
fix workflow
jokester Mar 23, 2024
8351a28
Merge pull request #60 from jokester/better-res-pool
jokester Mar 23, 2024
7370508
update deps
jokester Apr 5, 2024
da27693
ci: upgrade codecov
jokester Apr 5, 2024
5981786
make linter happy
jokester Apr 5, 2024
db95a50
update
jokester Apr 5, 2024
c9dc06e
fix
jokester Apr 5, 2024
13713cd
Merge pull request #61 from jokester/upgrade-deps
jokester Apr 5, 2024
f96c3e0
wip
jokester Apr 5, 2024
40314d7
wip
jokester Apr 5, 2024
a2a0b85
fix: not using lease in testee code for now
jokester Apr 6, 2024
6b90fd6
polyfill jest-environment-node for Symbol.asyncDispose
jokester Apr 6, 2024
b8dacf1
rename lease.ts
jokester Apr 6, 2024
9139a3c
lazyThenable: revise comment & signerature
jokester Apr 6, 2024
f85760a
shorten code
jokester Apr 6, 2024
672d5ba
Merge pull request #62 from jokester/revise-concurrency
jokester Apr 6, 2024
97560f0
v0.6.0
jokester Apr 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/obsolete
node_modules
/lib
14 changes: 8 additions & 6 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Check
name: Check + Publish

on:
push:
branches:
- master
pull_request:
branches:
- master
- main
pull_request: {}

defaults:
run:
Expand All @@ -25,8 +23,12 @@ jobs:
- run: yarn
- run: yarn typecheck
- run: yarn lint
if: ${{ success() || failure() }}
- run: yarn test:coverage
- uses: codecov/codecov-action@v1
if: ${{ success() || failure() }}
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

publish:
needs: [check]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Common TypeScript code I used in multiple app.

![Check](https://github.com/jokester/ts-commonutil/workflows/Check/badge.svg)
[![codecov](https://codecov.io/gh/jokester/ts-commonutil/branch/master/graph/badge.svg)](https://codecov.io/gh/jokester/ts-commonutil)
[![codecov](https://codecov.io/gh/jokester/ts-commonutil/graph/badge.svg?token=95f53H027x)](https://codecov.io/gh/jokester/ts-commonutil)
[![npm version](https://badge.fury.io/js/%40jokester%2Fts-commonutil.svg)](https://badge.fury.io/js/%40jokester%2Fts-commonutil)

## How to Use
Expand Down
5 changes: 5 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
["@babel/plugin-syntax-jsx"]
]
}
18 changes: 12 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
module.exports = {
preset: 'ts-jest',
preset: 'ts-jest/presets/js-with-ts',
roots: ['src'],
transformIgnorePatterns: ['<rootDir>/node_modules/.*\\.js', '<rootDir>/build/.*\\.js'],
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: {
target: 'es2022',
},
},
],
},
testMatch: ['**/__test__/*\\.(ts|js|tsx|jsx)', '**/*\\.(spec|test)\\.(ts|js|tsx|jsx)'],
collectCoverageFrom: ['src/**/*.(ts|tsx)', '!build/', '!**/node_modules', '!/coverage'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
coverageReporters: ['json', 'lcov', 'text', 'html'],
globals: {
'ts-jest': {
isolatedModules: true,
},
},
setupFiles: ['core-js'],
};
File renamed without changes.
2 changes: 1 addition & 1 deletion src/puppeteer/watch-res.ts → obsolete/watch-res.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type * as puppeteer from 'puppeteer';
import { Deferred } from '../concurrency/deferred';
import { Deferred } from '../src/concurrency/deferred';

export async function waitRes(
p: puppeteer.Page,
Expand Down
Loading
Loading