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

Bump oxipng from 6.0.0 -> 8.0.0 #9135

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
96 changes: 47 additions & 49 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion packages/optimizers/image/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ crate-type = ["cdylib"]
[dependencies]
napi = {version = "2.12.6", features = ["napi4", "compat-mode"]}
napi-derive = "2.12.5"
oxipng = "6.0.0"
oxipng = "8.0.0"
mozjpeg-sys = "1.0.0"
libc = "0.2"

Expand Down
3 changes: 1 addition & 2 deletions packages/optimizers/image/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use mozjpeg_sys::*;
use napi::bindgen_prelude::*;
use napi::{Env, Error, JsBuffer, Result};
use napi_derive::napi;
use oxipng::{optimize_from_memory, Deflaters, Headers, Options};
use oxipng::{optimize_from_memory, Headers, Options};
use std::mem;
use std::ptr;
use std::slice;
Expand All @@ -14,7 +14,6 @@ pub fn optimize(kind: String, buf: Buffer, env: Env) -> Result<JsBuffer> {
match kind.as_ref() {
"png" => {
let options = Options {
deflate: Deflaters::Libdeflater,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strip: Headers::Safe,
..Default::default()
};
Expand Down