Skip to content

Commit 683d0b8

Browse files
authored
Fix optional dependencies on TS SDK (#3825)
1 parent bb8419e commit 683d0b8

3 files changed

Lines changed: 542 additions & 1790 deletions

File tree

sdks/typescript/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to Hatchet's TypeScript SDK will be documented in this chang
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.22.1] - 2026-05-05
9+
10+
### Fixed
11+
12+
Moved optional dependencies from `optionalDependencies` to `peerDependencies`.
13+
814
## [1.22.0] - 2026-04-28
915

1016
### Added

sdks/typescript/package.json

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hatchet-dev/typescript-sdk",
3-
"version": "1.22.0",
3+
"version": "1.22.1",
44
"description": "Background task orchestration & visibility for developers",
55
"types": "dist/index.d.ts",
66
"files": [
@@ -85,9 +85,7 @@
8585
"zod-to-json-schema": "^3.24.2"
8686
},
8787
"peerDependencies": {
88-
"zod": "^3.25.0 || ^4.0.0"
89-
},
90-
"optionalDependencies": {
88+
"zod": "^3.25.0 || ^4.0.0",
9189
"@anthropic-ai/claude-agent-sdk": "^0.2.87",
9290
"@grpc/grpc-js": "^1.14.3",
9391
"@modelcontextprotocol/sdk": "^1.29.0",
@@ -99,6 +97,41 @@
9997
"@opentelemetry/sdk-trace-base": "^2.0.0",
10098
"prom-client": "^15.1.3"
10199
},
100+
"peerDependenciesMeta": {
101+
"zod": {
102+
"optional": false
103+
},
104+
"@anthropic-ai/claude-agent-sdk": {
105+
"optional": true
106+
},
107+
"@grpc/grpc-js": {
108+
"optional": true
109+
},
110+
"@modelcontextprotocol/sdk": {
111+
"optional": true
112+
},
113+
"@openai/agents": {
114+
"optional": true
115+
},
116+
"@opentelemetry/api": {
117+
"optional": true
118+
},
119+
"@opentelemetry/core": {
120+
"optional": true
121+
},
122+
"@opentelemetry/exporter-trace-otlp-grpc": {
123+
"optional": true
124+
},
125+
"@opentelemetry/instrumentation": {
126+
"optional": true
127+
},
128+
"@opentelemetry/sdk-trace-base": {
129+
"optional": true
130+
},
131+
"prom-client": {
132+
"optional": true
133+
}
134+
},
102135
"packageManager": "pnpm@10.16.1",
103136
"pnpm": {
104137
"overrides": {

0 commit comments

Comments
 (0)