Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.0
* **Breaking:** removed the bundled CA certificate chain. TLS connections now use Node.js's default trust store, so custom roots should be supplied via `NODE_EXTRA_CA_CERTS` or `--use-system-ca`.
* Removed the `update-cacert.sh` script.

## 1.9.0
* Added `tinify.Format` constants for the media types `convert` accepts. `SupportedImageTypes` is now derived from them.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tinify",
"version": "1.9.0",
"version": "2.0.0",
"description": "Node.js client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.",
"keywords": [
"tinify",
Expand Down
5 changes: 0 additions & 5 deletions src/tinify/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { HttpsProxyAgent } from 'https-proxy-agent';

import {version} from "../../package.json"
import tinify from "../tinify"
import {CA_CERTS} from "./cacert"

interface ClientOptions extends https.RequestOptions {
rejectUnauthorized: boolean
Expand All @@ -33,9 +32,6 @@ export default class Client {
/** @internal */
private static USER_AGENT = `Tinify/${version} Node/${process.versions.node} (${process.platform})`

/** @internal */
private static CA_BUNDLE = CA_CERTS

/** @internal */
userAgent: string

Expand All @@ -49,7 +45,6 @@ export default class Client {
this.userAgent = [klass.USER_AGENT, appIdentifier].filter(Boolean).join(" ")

this.defaultOptions = {
ca: klass.CA_BUNDLE,
rejectUnauthorized: true,
auth: `api:${key}`,
}
Expand Down
Loading
Loading