Skip to content

Commit 19debbd

Browse files
committed
feat: align @twilio/test-dep with twilio sdk v5.6
updated the @twilio/test-dep development dependency in package.json and packages/twilio-run/package.json to v5.6.0. this ensures consistent testing dependencies following the Twilio SDK upgrade.
1 parent 7b904fb commit 19debbd

File tree

7 files changed

+23
-22
lines changed

7 files changed

+23
-22
lines changed

.changeset/heavy-moose-appear.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,24 @@
55
'@twilio/runtime-handler': minor
66
---
77

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)
915

1016
**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.
1521

1622
**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.
1925

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`.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@changesets/cli": "^2.26.0",
2727
"@commitlint/cli": "^19.1.0",
2828
"@commitlint/config-conventional": "^19.1.0",
29-
"@twilio/test-dep": "npm:twilio@5.2.2",
29+
"@twilio/test-dep": "npm:twilio@5.6.0",
3030
"@types/jest": "^29.2.4",
3131
"all-contributors-cli": "^6.1.2",
3232
"commitizen": "^4.2.4",
@@ -46,7 +46,7 @@
4646
"typescript": "^5.3.3"
4747
},
4848
"peerDependencies": {
49-
"twilio": "^5.5.2"
49+
"twilio": "^5.6.0"
5050
},
5151
"lint-staged": {
5252
"*.{js,jsx,ts,tsx}": [

packages/create-twilio-function/src/create-twilio-function/versions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const pkgJson = require('../../package.json');
22

33
module.exports = {
4-
twilio: '5.5.2',
4+
twilio: '5.6.0',
55
twilioRuntimeHandler: pkgJson.devDependencies[
66
'@twilio/runtime-handler'
77
].replace(/[\^~]/, ''),

packages/runtime-handler/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Define the version of the `@twilio/runtime-handler` inside your `dependencies` s
77
```json
88
{
99
"dependencies": {
10-
"@twilio/runtime-handler": "1.1.0"
10+
"@twilio/runtime-handler": "2.1.0"
1111
}
1212
}
1313
```

packages/runtime-handler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"nocache": "^2.1.0",
7171
"normalize.css": "^8.0.1",
7272
"serialize-error": "^7.0.1",
73-
"twilio": "5.5.2"
73+
"twilio": "5.6.0"
7474
},
7575
"gitHead": "6db273648ed19474f4125042556b10c051529912"
7676
}

packages/serverless-runtime-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@types/qs": "^6.9.4"
3333
},
3434
"peerDependencies": {
35-
"twilio": "^5.5.2"
35+
"twilio": "^5.6.0"
3636
},
3737
"devDependencies": {
3838
"all-contributors-cli": "^6.7.0",

packages/twilio-run/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"nock": "^12.0.2",
116116
"supertest": "^3.1.0",
117117
"typescript": "^4.9.4",
118-
"@twilio/test-dep": "npm:twilio@5.5.2"
118+
"@twilio/test-dep": "npm:twilio@5.6.0"
119119
},
120120
"files": [
121121
"bin/",

0 commit comments

Comments
 (0)