Skip to content

Commit

Permalink
Preserve buffer in ImageLayout if format: true is passed (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderBelokon authored May 24, 2023
1 parent 74b5de1 commit bc18246
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 8.0.3
#### 2023-05-24
* Preserve `buffer` in `ImageLayout` if `format: true` is passed

## 8.0.2
#### 2022-09-12
* Updates `svgo` dependency to 2.8.0
Expand Down
1 change: 1 addition & 0 deletions lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ function generateLayoutInternal(options, callback) {
...img,
width: image.width(),
height: image.height(),
buffer: image,
...metadataProps
});
});
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mapbox/spritezero",
"version": "8.0.2",
"version": "8.0.3",
"main": "./index.js",
"description": "small opinionated sprites",
"author": "Tom MacWright",
Expand Down

0 comments on commit bc18246

Please sign in to comment.