From e07c01ad11ba6714b9984206432ca99da1a9d8d9 Mon Sep 17 00:00:00 2001 From: Manisha Singh Date: Thu, 6 Mar 2025 22:45:44 +0530 Subject: [PATCH] feat!: MVR Release Preparation (#839) * feat!: MVR Release Preparation --- README.md | 2 +- UPGRADE.md | 14 +++++++++++++- src/main/java/com/twilio/Twilio.java | 6 +++--- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b91657b869..6e028a911e 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Use the following dependency in your project to grab via Maven: com.twilio.sdk twilio - 10.X.X + 11.X.X compile ``` diff --git a/UPGRADE.md b/UPGRADE.md index 8e7fe12cfb..d8d9193140 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -2,7 +2,19 @@ _`MAJOR` version bumps will have upgrade notes posted here._ +[2024-03-07] 10.x.x to 11.x.x +----------------------------- +### Overview + +##### Twilio Java Helper Library’s major version 11.0.0 is now available. We ensured that you can upgrade to Java helper Library 11.0.0 version without any breaking changes of existing apis + +Behind the scenes Java Helper is now auto-generated via OpenAPI with this release. This enables us to rapidly add new features and enhance consistency across versions and languages. +With the release of 11.0.0, we are deprecating [TwilioOrgsTokenAuth.java](https://github.com/twilio/twilio-java/blob/main/src/main/java/com/twilio/TwilioOrgsTokenAuth.java), Use cautiously. + +Twiml Attribute speechModel is now of type string. + [2024-02-08] 9.x.x to 10.x.x +----------------------------- ### Overview ##### Twilio Java Helper Library’s major version 10.0.0 is now available. We ensured that you can upgrade to Java helper Library 10.0.0 version without any breaking changes of existing apis @@ -703,4 +715,4 @@ Task.reader("WS123").setAssignmentStatus(Lists.newArrayList( Task.Status.ASSIGNED.toString(), Task.Status.CANCELED.toString() )).read(); -``` \ No newline at end of file +``` diff --git a/src/main/java/com/twilio/Twilio.java b/src/main/java/com/twilio/Twilio.java index 43c5d2504c..7f89986d3c 100644 --- a/src/main/java/com/twilio/Twilio.java +++ b/src/main/java/com/twilio/Twilio.java @@ -37,7 +37,7 @@ public class Twilio { private static String edge = System.getenv("TWILIO_EDGE"); private static volatile TwilioRestClient restClient; private static volatile ExecutorService executorService; - + private static CredentialProvider credentialProvider; private Twilio() { @@ -85,7 +85,7 @@ private static void setCredentialProvider(final CredentialProvider credentialPro if (credentialProvider == null) { throw new AuthenticationException("Credential Provider can not be null"); } - + if (!credentialProvider.equals(Twilio.credentialProvider)) { Twilio.invalidate(); } @@ -315,7 +315,7 @@ private static void invalidate() { private static void invalidateOAuthCreds() { Twilio.credentialProvider = null; } - + private static void invalidateBasicCreds() { Twilio.username = null; Twilio.password = null;