Skip to content

Commit cdf9e3a

Browse files
Fix to prevent sync.services deprecation notice (#487)
* Fix to prevent sync.services deprecation notice * fix(@twilio/runtime-handler): add changeset fix(twilio-run): add changeset --------- Co-authored-by: Victor A <[email protected]>
1 parent 6cb12dd commit cdf9e3a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.changeset/calm-hairs-impress.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@twilio/runtime-handler': patch
3+
'twilio-run': patch
4+
---
5+
6+
Fix sync.services deprecation warning

packages/runtime-handler/src/dev-runtime/internal/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function create({
8282
env.AUTH_TOKEN,
8383
options
8484
);
85-
const service = client.sync.services(
85+
const service = client.sync.v1.services(
8686
serviceName || 'default'
8787
) as RuntimeSyncServiceContext;
8888

packages/twilio-run/src/runtime/internal/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function create({ env }: StartCliConfig): RuntimeInstance {
7272
.join(',')})`,
7373
});
7474
const client = twilio(env.ACCOUNT_SID, env.AUTH_TOKEN, options);
75-
const service = (client.sync.services(
75+
const service = (client.sync.v1.services(
7676
serviceName || 'default'
7777
) as unknown) as RuntimeSyncServiceContext;
7878

0 commit comments

Comments
 (0)