Skip to content

Commit

Permalink
release 5.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Apr 29, 2024
1 parent 7638750 commit a82f4f1
Show file tree
Hide file tree
Showing 5 changed files with 414 additions and 58 deletions.
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.04.29 v5.19.1

1. remove default params of `arrayBufferToBase64`

## 2024.04.27 v5.19.0

1. `getProperty` support defaultValue
Expand Down
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3963,14 +3963,16 @@ declare function awaitTo<T, E = Error>(promise: Promise<T>): Promise<[E, undefin

arrayBuffer to base64

> v5.19.1 remove default params of mime

- Since: `5.13.0`

- Arguments:

| Parameters | Description | Type | Optional | Required | Default |
| ---------- | ---------------- | ------------- | -------- | -------- | ----------- |
| input | arrayBuffer data | `ArrayBuffer` | - | `true` | - |
| mime | image mime | `String` | - | `false` | `image/png` |
| Parameters | Description | Type | Optional | Required | Default |
| ---------- | ---------------- | ------------- | -------- | -------- | ------- |
| input | arrayBuffer data | `ArrayBuffer` | - | `true` | - |
| mime | image mime | `String` | - | `false` | - |

- Returns: `String`

Expand All @@ -3979,6 +3981,9 @@ arrayBuffer to base64
```ts
arrayBufferToBase64(arrayBuffer, 'image/png')
// data:image/png;base64,xxxxxxxxxxxx
arrayBufferToBase64(arrayBuffer)
// xxxxxxxxxxxx
```

- Types:
Expand All @@ -4005,7 +4010,7 @@ arrayBuffer to blob
- Example:

```ts
arrayBufferToBase64(arrayBuffer, 'image/png')
arrayBufferToBlob(arrayBuffer, 'image/png')
// Blob
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "js-cool",
"description": "Collection of common JavaScript / TypeScript utilities",
"version": "5.19.0",
"version": "5.19.1",
"packageManager": "[email protected]",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
Expand Down
Loading

0 comments on commit a82f4f1

Please sign in to comment.