|
5 | 5 | '@twilio/runtime-handler': minor
|
6 | 6 | ---
|
7 | 7 |
|
8 |
| -feat: Upgrade Twilio SDK to v5 and use peer dependency |
| 8 | +feat: Upgrade Twilio SDK to v5.6.0 & peer dependency |
| 9 | + |
| 10 | +**IMPACT:** |
| 11 | +- `@twilio-labs/serverless-runtime-types`: Major (peer dependency) |
| 12 | +- `twilio-run`: Major (peer dependency) |
| 13 | +- `create-twilio-function`: Minor (default SDK version) |
| 14 | +- `@twilio/runtime-handler`: Minor (version upgrade) |
9 | 15 |
|
10 | 16 | **WHAT:**
|
11 |
| -- Upgraded the core `twilio` Node.js helper library to v5.5.2 across the toolkit. |
12 |
| -- Changed `@twilio-labs/serverless-runtime-types` and `@twilio-labs/twilio-run` to require `twilio` as a `peerDependency` instead of a direct dependency. |
13 |
| -- Updated type definitions (`ClientOpts`) for compatibility with `[email protected]`. |
14 |
| -- Updated default dependencies (`twilio`, `typescript`, `serverlessRuntimeTypes`) used by `@twilio-labs/create-twilio-function`. |
| 17 | +- Twilio SDK upgraded to v5.6.0. |
| 18 | +- `@twilio-labs/serverless-runtime-types` & `twilio-run` now require `twilio` as a `peerDependency`. |
| 19 | +- Type definitions updated for Twilio v5.x compatibility. |
| 20 | +- Default dependencies in `create-twilio-function` updated. |
15 | 21 |
|
16 | 22 | **WHY:**
|
17 |
| -- Aligns the toolkit with the latest Twilio SDK features, improvements, and security updates. |
18 |
| -- Resolves potential type conflicts (e.g., `TS2322`/`TS2352`) by ensuring a single `twilio` instance, managed by the user's project. |
| 23 | +- Latest Twilio SDK features and fixes. |
| 24 | +- Prevents type conflicts by centralizing `twilio` dependency in user projects. |
19 | 25 |
|
20 |
| -**HOW:** |
21 |
| -**BREAKING CHANGE:** Users of `@twilio-labs/twilio-run` or projects importing types from `@twilio-labs/serverless-runtime-types` **must** now add `twilio` as a direct dependency to their project: |
22 |
| -```bash |
23 |
| -npm install twilio@^5.5.2 |
24 |
| -# or |
25 |
| -yarn add twilio@^5.5.2 |
26 |
| -``` |
27 |
| -After updating toolkit packages and adding `twilio`, perform a clean install (delete `node_modules` and lock file, then run `npm install` or `yarn install`). |
| 26 | +**ACTION:** |
| 27 | +- **BREAKING:** Projects using `@twilio-labs/twilio-run` or `@twilio-labs/serverless-runtime-types` MUST add `twilio@^5.6.0` as a direct dependency (`npm install twilio@^5.6.0` or `yarn add twilio@^5.6.0`). |
| 28 | +- Clean install (`node_modules` deletion and lock file removal) is required after updating toolkit packages and adding `twilio`. |
0 commit comments