Skip to content

Commit 69c37ad

Browse files
authored
Merge pull request #144 from imagekit-developer/release-please--branches--master--changes--next--components--nodejs
release: 7.6.0
2 parents 25d73e9 + 9bf0bf0 commit 69c37ad

31 files changed

Lines changed: 1580 additions & 1237 deletions

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2222
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2323
steps:
24-
- uses: actions/checkout@v6
24+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2525

2626
- name: Set up Node
27-
uses: actions/setup-node@v4
27+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2828
with:
2929
node-version: '22'
3030

@@ -43,10 +43,10 @@ jobs:
4343
contents: read
4444
id-token: write
4545
steps:
46-
- uses: actions/checkout@v6
46+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4747

4848
- name: Set up Node
49-
uses: actions/setup-node@v4
49+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
5050
with:
5151
node-version: '22'
5252

@@ -61,7 +61,7 @@ jobs:
6161
github.repository == 'stainless-sdks/imagekit-typescript' &&
6262
!startsWith(github.ref, 'refs/heads/stl/')
6363
id: github-oidc
64-
uses: actions/github-script@v8
64+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
6565
with:
6666
script: core.setOutput('github_token', await core.getIDToken());
6767

@@ -91,10 +91,10 @@ jobs:
9191
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
9292
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
9393
steps:
94-
- uses: actions/checkout@v6
94+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9595

9696
- name: Set up Node
97-
uses: actions/setup-node@v4
97+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
9898
with:
9999
node-version: '22'
100100

.github/workflows/publish-npm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
contents: write
2121

2222
steps:
23-
- uses: actions/checkout@v6
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2424

2525
- name: Set up Node
26-
uses: actions/setup-node@v3
26+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
2727
with:
2828
node-version: '20'
2929

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ jobs:
1212
if: github.repository == 'imagekit-developer/imagekit-nodejs' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
15-
- uses: actions/checkout@v6
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616

1717
- name: Check release environment
1818
run: |
1919
bash ./bin/check-release-environment
2020
env:
2121
NPM_TOKEN: ${{ secrets.IMAGE_KIT_NPM_TOKEN || secrets.NPM_TOKEN }}
22-

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ CHANGELOG.md
22
/ecosystem-tests/*/**
33
/node_modules
44
/deno
5+
/packages/mcp-server/manifest.json
6+
/packages/mcp-server/cloudflare-worker/worker-configuration.d.ts
57

68
# don't format tsc output, will break source maps
79
dist

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "7.5.0"
2+
".": "7.6.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 47
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-70c42eda2bee929830b2537f758400a58dded1f1ef5686a286e2469c35a041a0.yml
3-
openapi_spec_hash: cdaeed824e91657b45092765cf55eb42
4-
config_hash: e3c2679d25f6235381dfb11962fbf3d9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc/imagekit-ad6dd3b4acf289708568a12574b997503059a47c4a4ca5ffefe64f40f3d3dbf3.yml
3+
openapi_spec_hash: 7c103e2dff0edcbeea82057e62f58d4d
4+
config_hash: 94f48fd13b7d41b8b6a203a3a8cee9ed

CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
11
# Changelog
22

3+
## 7.6.0 (2026-05-13)
4+
5+
Full Changelog: [v7.5.0...v7.6.0](https://github.com/imagekit-developer/imagekit-nodejs/compare/v7.5.0...v7.6.0)
6+
7+
### Features
8+
9+
* **api:** add no-enlarge crop modes and colorize transformation ([f673e9b](https://github.com/imagekit-developer/imagekit-nodejs/commit/f673e9b18023ad4897bffebdddbd8d9e7a93f49e))
10+
* **api:** manual updates ([7c35871](https://github.com/imagekit-developer/imagekit-nodejs/commit/7c35871232cfa418c30c6145fe0da2ec8937bca2))
11+
* **api:** manual updates ([e6c68dd](https://github.com/imagekit-developer/imagekit-nodejs/commit/e6c68dd1183dc12376ac54ef11da3a0f20487893))
12+
* **api:** manual updates ([03a3952](https://github.com/imagekit-developer/imagekit-nodejs/commit/03a3952e171bec93bc9efcd6897f33b5af3e2243))
13+
* **api:** manual updates ([f4b748a](https://github.com/imagekit-developer/imagekit-nodejs/commit/f4b748aab3a25fed6f0a29c30ca9c6f49f992c94))
14+
* **api:** manual updates ([8ad5efd](https://github.com/imagekit-developer/imagekit-nodejs/commit/8ad5efdd55d6d24310c7d8155de4ae85071d9540))
15+
* support setting headers via env ([79b7da8](https://github.com/imagekit-developer/imagekit-nodejs/commit/79b7da8857f2f0e32de93d15b613721d69c59a5d))
16+
* **transformation:** add colorize transformation support in URL generation ([7390f2e](https://github.com/imagekit-developer/imagekit-nodejs/commit/7390f2ee4fdf3caae56709a6308e08c2d7a58a73))
17+
18+
19+
### Bug Fixes
20+
21+
* correct typo in webhook_secret description ([f6a558e](https://github.com/imagekit-developer/imagekit-nodejs/commit/f6a558ea1f426d5a1c6f9121d33afbe330595c4f))
22+
23+
24+
### Chores
25+
26+
* avoid formatting file that gets changed during releases ([8bdfaae](https://github.com/imagekit-developer/imagekit-nodejs/commit/8bdfaaec37bdf7c465880d999cee790d852efc1f))
27+
* configure new SDK language ([a3427fe](https://github.com/imagekit-developer/imagekit-nodejs/commit/a3427fef3d71bbe5e1717e362d4654d4942d8df9))
28+
* fix example snippet imports ([c424b94](https://github.com/imagekit-developer/imagekit-nodejs/commit/c424b949a56ff4b4486cd694c073615e5293bcc3))
29+
* **format:** run eslint and prettier separately ([c753924](https://github.com/imagekit-developer/imagekit-nodejs/commit/c75392491c141b2fc635481b75007bfb47101741))
30+
* **formatter:** run prettier and eslint separately ([d7c26d7](https://github.com/imagekit-developer/imagekit-nodejs/commit/d7c26d76741fb611fc131806719aad0ee3696c4e))
31+
* **internal:** codegen related update ([48e7a85](https://github.com/imagekit-developer/imagekit-nodejs/commit/48e7a85f9464d937a11967ed6255c1249ecd683b))
32+
* **internal:** codegen related update ([21fe6ee](https://github.com/imagekit-developer/imagekit-nodejs/commit/21fe6eeadfc0376dffb409f78dadc3c3b32194da))
33+
* **internal:** fix MCP cloudflare worker builds ([d7fcbd6](https://github.com/imagekit-developer/imagekit-nodejs/commit/d7fcbd65da4658fd1d55f97d20997cfca03ee64c))
34+
* **internal:** fix MCP cloudflare worker initialization ([d93bb2d](https://github.com/imagekit-developer/imagekit-nodejs/commit/d93bb2d88e29d44460cc453fcf21fb9dc28c8fdc))
35+
* **internal:** more robust bootstrap script ([853429c](https://github.com/imagekit-developer/imagekit-nodejs/commit/853429c552a32b3e46246bf9849dbebcc6e41e50))
36+
* **internal:** update docs ordering ([885c2ad](https://github.com/imagekit-developer/imagekit-nodejs/commit/885c2ad3123fb0be7f58a12576402a31eda9743d))
37+
* redact api-key headers in debug logs ([67dc9fd](https://github.com/imagekit-developer/imagekit-nodejs/commit/67dc9fd0584b80870b9428f7153ef937c78135bc))
38+
* remove webhook signature verification example from README ([352ec15](https://github.com/imagekit-developer/imagekit-nodejs/commit/352ec15b82f69fa56005e12eb53af84e6397d12e))
39+
* restructure docs search code ([8b9992f](https://github.com/imagekit-developer/imagekit-nodejs/commit/8b9992f6465052eb1b215bf3ed230dbfef5ad4f6))
40+
* update CLI documentation ([1967acf](https://github.com/imagekit-developer/imagekit-nodejs/commit/1967acf48ab8aae241680a623fc311da6c2cfd6a))
41+
* update SDK settings ([fab0b1e](https://github.com/imagekit-developer/imagekit-nodejs/commit/fab0b1e4659e232c59df2a1e1ebec09d0f8639da))
42+
43+
44+
### Documentation
45+
46+
* clarify forwards compat behavior ([1c4774d](https://github.com/imagekit-developer/imagekit-nodejs/commit/1c4774d5845ecc0839de1b259cc6e291ce5e543a))
47+
* update http mcp docs ([cb0cf04](https://github.com/imagekit-developer/imagekit-nodejs/commit/cb0cf049ff0138a42bce6c264f6a97f593093e52))
48+
* update logging docs ([e006926](https://github.com/imagekit-developer/imagekit-nodejs/commit/e006926de887ad3daa88692a91fe1b588946760a))
49+
* update with proxy auth info ([c7668e7](https://github.com/imagekit-developer/imagekit-nodejs/commit/c7668e7e446fcd2d5de84e76d4f14505d0314895))
50+
351
## 7.5.0 (2026-04-13)
452

553
Full Changelog: [v7.4.0...v7.5.0](https://github.com/imagekit-developer/imagekit-nodejs/compare/v7.4.0...v7.5.0)

README.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ If you are looking to integrate file uploads in browsers, use one of our [fronte
2727
- [Using Raw parameter for custom transformations](#using-raw-parameter-for-custom-transformations)
2828
- [Authentication parameters for client-side uploads](#authentication-parameters-for-client-side-uploads)
2929
- [Webhook verification](#webhook-verification)
30-
- [Verifying webhook signatures](#verifying-webhook-signatures)
3130
- [Handling errors](#handling-errors)
3231
- [Retries](#retries)
3332
- [Timeouts](#timeouts)
@@ -353,35 +352,6 @@ These authentication parameters can be used in client-side upload forms to secur
353352

354353
The ImageKit SDK provides utilities to verify webhook signatures for secure event handling. This ensures that webhook requests are actually coming from ImageKit and haven't been tampered with.
355354

356-
### Verifying webhook signatures
357-
358-
```ts
359-
import ImageKit from '@imagekit/nodejs';
360-
361-
const client = new ImageKit({
362-
privateKey: process.env['IMAGEKIT_PRIVATE_KEY'],
363-
webhookSecret: process.env['IMAGEKIT_WEBHOOK_SECRET'], // Required for webhook verification
364-
});
365-
366-
try {
367-
// Verify and unwrap webhook payload
368-
const event = client.webhooks.unwrap(
369-
webhookBody, // Raw webhook payload (string)
370-
{
371-
headers: webhookHeaders, // Request headers containing signature
372-
},
373-
);
374-
375-
console.log('Webhook signature is valid');
376-
console.log('Event type:', event.type);
377-
console.log('Event data:', event.data);
378-
// Process the webhook event
379-
} catch (error) {
380-
console.log('Invalid webhook signature or malformed payload');
381-
// Reject the request
382-
}
383-
```
384-
385355
For detailed information about webhook setup, signature verification, and handling different webhook events, refer to the [ImageKit webhook documentation](https://imagekit.io/docs/webhooks#verify-webhook-signature).
386356

387357
## Handling errors

eslint.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// @ts-check
22
import tseslint from 'typescript-eslint';
33
import unusedImports from 'eslint-plugin-unused-imports';
4-
import prettier from 'eslint-plugin-prettier';
54

65
export default tseslint.config(
76
{
@@ -14,11 +13,9 @@ export default tseslint.config(
1413
plugins: {
1514
'@typescript-eslint': tseslint.plugin,
1615
'unused-imports': unusedImports,
17-
prettier,
1816
},
1917
rules: {
2018
'no-unused-vars': 'off',
21-
'prettier/prettier': 'error',
2219
'unused-imports/no-unused-imports': 'error',
2320
'no-restricted-imports': [
2421
'error',

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@imagekit/nodejs",
3-
"version": "7.5.0",
3+
"version": "7.6.0",
44
"description": "Offical NodeJS SDK for ImageKit.io integration",
55
"author": "Image Kit <developer@imagekit.io>",
66
"types": "dist/index.d.ts",
@@ -38,7 +38,6 @@
3838
"@typescript-eslint/eslint-plugin": "8.31.1",
3939
"@typescript-eslint/parser": "8.31.1",
4040
"eslint": "^9.39.1",
41-
"eslint-plugin-prettier": "^5.4.1",
4241
"eslint-plugin-unused-imports": "^4.1.4",
4342
"iconv-lite": "^0.6.3",
4443
"jest": "^29.4.0",

0 commit comments

Comments
 (0)