Skip to content

Commit e69ef08

Browse files
committed
chore(twilio-run): align test-dep with sdk v5.6.0
Updates the @twilio/test-dep (npm alias for `twilio`) development dependency to v5.6.0 in packages/twilio-run/package.json and in the root package.json. This change ensures consistent versions of the Twilio SDK are used during testing, aligning with the broader upgrade to Twilio SDK v5.6.0 across the toolkit. This supports efforts to stabilize the test environment following the core SDK update. 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 e69ef08

File tree

9 files changed

+28
-27
lines changed

9 files changed

+28
-27
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/plugin-serverless/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dependencies": {
1111
"@oclif/core": "^1.14.2",
1212
"@twilio/cli-core": "^7.0.0",
13-
"create-twilio-function": "^3.4.5",
13+
"create-twilio-function": "^3.5.0",
1414
"lodash.camelcase": "^4.3.0",
1515
"lodash.kebabcase": "^4.1.1",
1616
"twilio-run": "^4.1.0"

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"clean": "rimraf ./dist"
4040
},
4141
"devDependencies": {
42-
"@twilio/test-dep": "npm:twilio@4.22.0",
42+
"@twilio/test-dep": "npm:twilio@5.6.0",
4343
"@types/common-tags": "^1.8.0",
4444
"@types/cookie-parser": "^1.4.2",
4545
"@types/debug": "^4.1.4",
@@ -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/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ npm install @twilio-labs/serverless-runtime-types
2424

2525
**Peer Dependency Requirement:**
2626

27-
This package requires the core `twilio` Node.js library as a **peer dependency** (version `^5.5.2` or compatible). This is necessary to ensure type consistency and prevent version conflicts within your project.
27+
This package requires the core `twilio` Node.js library as a **peer dependency** (version `^5.6.0` or compatible). This is necessary to ensure type consistency and prevent version conflicts within your project.
2828

2929
**You MUST explicitly install both `@twilio-labs/serverless-runtime-types` and a compatible version of `twilio` in your project.**
3030

3131
```bash
3232
# Using npm
33-
npm install @twilio-labs/serverless-runtime-types twilio@^5.5.2 --save-dev
33+
npm install @twilio-labs/serverless-runtime-types twilio@^5.6.0 --save-dev
3434
```
3535

3636
## Example

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"yargs": "^17.2.1"
8383
},
8484
"peerDependencies": {
85-
"twilio": "^5.5.2"
85+
"twilio": "^5.6.0"
8686
},
8787
"optionalDependencies": {
8888
"ngrok": "^3.3.0"
@@ -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)