Skip to content

Commit

Permalink
release v5.19.2
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed May 30, 2024
1 parent a82f4f1 commit 0a1f68c
Show file tree
Hide file tree
Showing 9 changed files with 1,216 additions and 1,201 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9.0.6
version: 9.1.3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9.0.6
version: 9.1.3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9.0.6
version: 9.1.3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change logs

## 2024.05.30 v5.19.2

1. upgrade `await-to-done`, fix types

## 2024.04.29 v5.19.1

1. remove default params of `arrayBufferToBase64`
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3955,6 +3955,19 @@ const [err, data] = await to([promise1, promise2])
```ts
declare function awaitTo<T, E = Error>(promise: Promise<T>): Promise<[E, undefined] | [null, T]>

declare function awaitTo<P extends readonly unknown[] | [], E = Error>(
promise: PromiseAll<P>
): Promise<[E, undefined] | [null, P]>

declare function awaitTo<T, P extends readonly unknown[] | [], E = Error>(
promise: Promise<T>,
...promises: PromiseAll<P>
): Promise<[E, undefined] | [null, [T, ...P]]>

export declare type PromiseAll<P extends readonly unknown[] | []> = {
-readonly [K in keyof P]: Promise<P[K]>
}
```
### Blob arrayBuffer base64 file blobUrl
Expand Down
2 changes: 1 addition & 1 deletion build/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function createEntry(config: Config) {
file: config.file,
format: config.format,
exports: 'auto',
extend: true,
// extend: true,
plugins: [],
globals: {}
},
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "js-cool",
"description": "Collection of common JavaScript / TypeScript utilities",
"version": "5.19.1",
"packageManager": "pnpm@9.0.6",
"version": "5.19.2",
"packageManager": "pnpm@9.1.3",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"browser": "dist/index.esm-browser.js",
Expand Down Expand Up @@ -48,7 +48,7 @@
"pub.bak": "git add . && git commit -m $npm_package_version && git pull && git push"
},
"dependencies": {
"await-to-done": "^1.0.2",
"await-to-done": "^1.1.1",
"load-source": "^1.2.0",
"mount-css": "^1.2.0",
"mount-image": "^1.2.0",
Expand All @@ -59,25 +59,25 @@
"use-downloads": "^1.5.1"
},
"devDependencies": {
"@babel/core": "^7.24.4",
"@babel/plugin-transform-runtime": "^7.24.3",
"@babel/preset-env": "^7.24.4",
"@babel/preset-typescript": "^7.24.1",
"@eslint-sets/eslint-config-ts": "^5.12.0",
"@microsoft/api-extractor": "^7.43.1",
"@babel/core": "^7.24.6",
"@babel/plugin-transform-runtime": "^7.24.6",
"@babel/preset-env": "^7.24.6",
"@babel/preset-typescript": "^7.24.6",
"@eslint-sets/eslint-config-ts": "^5.13.0",
"@microsoft/api-extractor": "^7.46.2",
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/activex-excel": "^14.0.10",
"@types/babel__core": "^7.20.5",
"@types/node": "^20.12.7",
"@types/node": "^20.12.13",
"babel-loader": "^9.1.3",
"core-js": "^3.37.0",
"core-js": "^3.37.1",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"fast-glob": "^3.3.2",
Expand All @@ -88,16 +88,16 @@
"prettier-config-common": "^1.4.0",
"reinstaller": "^3.0.2",
"rm-all": "^1.1.1",
"rollup": "^4.16.4",
"rollup": "^4.18.0",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-polyfill-node": "^0.13.0",
"rollup-plugin-visualizer": "^5.12.0",
"tsnd": "^1.1.0",
"typedoc": "^0.25.13",
"typedoc-plugin-markdown": "^3.17.1",
"typedoc-plugin-markdown": "^4.0.3",
"typescript": "^5.4.5",
"zx": "^8.0.2"
"zx": "^8.1.2"
},
"engines": {
"node": ">=12.20"
Expand Down
Loading

0 comments on commit 0a1f68c

Please sign in to comment.