From 94216d35d75e90f7dae8daf696412afa4e496216 Mon Sep 17 00:00:00 2001 From: Pandu Masabathula Date: Thu, 23 Feb 2023 17:58:01 +0530 Subject: [PATCH 1/2] undeprecate GrantToken methods/properties --- src/Api/PubnubApi/EndPoint/Access/GrantTokenOperation.cs | 1 - .../Consumer/AccessManager/PNTokenPermissionMappingBase.cs | 6 ------ src/Api/PubnubApi/PNConfiguration.cs | 1 - 3 files changed, 8 deletions(-) diff --git a/src/Api/PubnubApi/EndPoint/Access/GrantTokenOperation.cs b/src/Api/PubnubApi/EndPoint/Access/GrantTokenOperation.cs index 56ff2fc3f..c9dcbb9c3 100644 --- a/src/Api/PubnubApi/EndPoint/Access/GrantTokenOperation.cs +++ b/src/Api/PubnubApi/EndPoint/Access/GrantTokenOperation.cs @@ -54,7 +54,6 @@ public GrantTokenOperation(PNConfiguration pubnubConfig, IJsonPluggableLibrary j InitializeDefaultVariableObjectStates(); } - [Obsolete("AuthorizedUuid is deprecated, please use AuthorizedUserId instead.")] public GrantTokenOperation AuthorizedUuid(string uuid) { if (!string.IsNullOrEmpty(pubnubAuthorizedUserId)) diff --git a/src/Api/PubnubApi/Model/Consumer/AccessManager/PNTokenPermissionMappingBase.cs b/src/Api/PubnubApi/Model/Consumer/AccessManager/PNTokenPermissionMappingBase.cs index 8b79aa591..a62a626d3 100644 --- a/src/Api/PubnubApi/Model/Consumer/AccessManager/PNTokenPermissionMappingBase.cs +++ b/src/Api/PubnubApi/Model/Consumer/AccessManager/PNTokenPermissionMappingBase.cs @@ -15,15 +15,9 @@ public class PNTokenPatterns : PNTokenPermissionMappingBase } public class PNTokenPermissionMappingBase { - [Obsolete("Channels is deprecated, please use Spaces instead.")] public Dictionary Channels { get; set; } - - [Obsolete("ChannelGroups is deprecated.")] public Dictionary ChannelGroups { get; set; } - - [Obsolete("Uuids is deprecated, please use Users instead.")] public Dictionary Uuids { get; set; } - public Dictionary Users { get; set; } public Dictionary Spaces { get; set; } diff --git a/src/Api/PubnubApi/PNConfiguration.cs b/src/Api/PubnubApi/PNConfiguration.cs index c26245d2f..1f63be270 100644 --- a/src/Api/PubnubApi/PNConfiguration.cs +++ b/src/Api/PubnubApi/PNConfiguration.cs @@ -52,7 +52,6 @@ public int PresenceInterval public string AuthKey { get; set; } [Obsolete("Uuid is deprecated, please use UserId instead.")] - public string Uuid { get From 466bdad98532ff997980b8d8e865c26bc0182bb0 Mon Sep 17 00:00:00 2001 From: PubNub Release Bot <120067856+pubnub-release-bot@users.noreply.github.com> Date: Mon, 27 Feb 2023 10:01:07 +0000 Subject: [PATCH 2/2] PubNub SDK v6.14.0.0 release. --- .pubnub.yml | 19 ++++++++++++------- CHANGELOG | 4 ++++ src/Api/PubnubApi/Properties/AssemblyInfo.cs | 4 ++-- src/Api/PubnubApi/PubnubApi.csproj | 6 ++---- src/Api/PubnubApiPCL/PubnubApiPCL.csproj | 6 ++---- src/Api/PubnubApiUWP/PubnubApiUWP.csproj | 6 ++---- 6 files changed, 24 insertions(+), 21 deletions(-) diff --git a/.pubnub.yml b/.pubnub.yml index 6575b5a7a..f1758e58f 100644 --- a/.pubnub.yml +++ b/.pubnub.yml @@ -1,8 +1,13 @@ name: c-sharp -version: "6.13.0" +version: "6.14.0" schema: 1 scm: github.com/pubnub/c-sharp changelog: + - date: 2023-02-27 + version: v6.14.0 + changes: + - type: improvement + text: "Undeprecated GrantToken methods/properties." - date: 2022-12-05 version: v6.13.0 changes: @@ -701,7 +706,7 @@ features: - QUERY-PARAM supported-platforms: - - version: Pubnub 'C#' 6.13.0 + version: Pubnub 'C#' 6.14.0 platforms: - Windows 10 and up - Windows Server 2008 and up @@ -711,7 +716,7 @@ supported-platforms: - .Net Framework 4.5 - .Net Framework 4.6.1+ - - version: PubnubPCL 'C#' 6.13.0 + version: PubnubPCL 'C#' 6.14.0 platforms: - Xamarin.Android - Xamarin.iOS @@ -731,7 +736,7 @@ supported-platforms: - .Net Core - .Net 6.0 - - version: PubnubUWP 'C#' 6.13.0 + version: PubnubUWP 'C#' 6.14.0 platforms: - Windows Phone 10 - Universal Windows Apps @@ -755,7 +760,7 @@ sdks: distribution-type: source distribution-repository: GitHub package-name: Pubnub - location: https://github.com/pubnub/c-sharp/releases/tag/v6.13.0.0 + location: https://github.com/pubnub/c-sharp/releases/tag/v6.14.0.0 requires: - name: ".Net" @@ -1038,7 +1043,7 @@ sdks: distribution-type: source distribution-repository: GitHub package-name: PubNubPCL - location: https://github.com/pubnub/c-sharp/releases/tag/v6.13.0.0 + location: https://github.com/pubnub/c-sharp/releases/tag/v6.14.0.0 requires: - name: ".Net Core" @@ -1397,7 +1402,7 @@ sdks: distribution-type: source distribution-repository: GitHub package-name: PubnubUWP - location: https://github.com/pubnub/c-sharp/releases/tag/v6.13.0.0 + location: https://github.com/pubnub/c-sharp/releases/tag/v6.14.0.0 requires: - name: "Universal Windows Platform Development" diff --git a/CHANGELOG b/CHANGELOG index a90b233c4..9318e023d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +v6.14.0 - February 27 2023 +----------------------------- +- Modified: undeprecated GrantToken methods/properties. + v6.13.0 - December 05 2022 ----------------------------- - Fixed: added null check for PublishFileMessage PNStatus in SendFileOperation. diff --git a/src/Api/PubnubApi/Properties/AssemblyInfo.cs b/src/Api/PubnubApi/Properties/AssemblyInfo.cs index 0cd6ae3e7..fcd5627b7 100644 --- a/src/Api/PubnubApi/Properties/AssemblyInfo.cs +++ b/src/Api/PubnubApi/Properties/AssemblyInfo.cs @@ -11,8 +11,8 @@ [assembly: AssemblyProduct("Pubnub C# SDK")] [assembly: AssemblyCopyright("Copyright © 2021")] [assembly: AssemblyTrademark("")] -[assembly: AssemblyVersion("6.13.0.0")] -[assembly: AssemblyFileVersion("6.13.0.0")] +[assembly: AssemblyVersion("6.14.0.0")] +[assembly: AssemblyFileVersion("6.14.0.0")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. diff --git a/src/Api/PubnubApi/PubnubApi.csproj b/src/Api/PubnubApi/PubnubApi.csproj index 444873244..21ab79d48 100644 --- a/src/Api/PubnubApi/PubnubApi.csproj +++ b/src/Api/PubnubApi/PubnubApi.csproj @@ -13,7 +13,7 @@ Pubnub - 6.13.0.0 + 6.14.0.0 PubNub C# .NET - Web Data Push API Pandu Masabathula PubNub @@ -21,9 +21,7 @@ http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png true https://github.com/pubnub/c-sharp/ - Added null check for PublishFileMessage PNStatus in SendFileOperation. -Removed invalid Content-Type in ObjectsV2 request headers targeting .Net Frameworks. -Added CultureInfo.InvariantCulture to string formatting. + Undeprecated GrantToken methods/properties. Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing PubNub is a Massively Scalable Web Push Service for Web and Mobile Games. This is a cloud-based service for broadcasting messages to thousands of web and mobile clients simultaneously diff --git a/src/Api/PubnubApiPCL/PubnubApiPCL.csproj b/src/Api/PubnubApiPCL/PubnubApiPCL.csproj index ab7384c70..b004a70df 100644 --- a/src/Api/PubnubApiPCL/PubnubApiPCL.csproj +++ b/src/Api/PubnubApiPCL/PubnubApiPCL.csproj @@ -14,7 +14,7 @@ PubnubPCL - 6.13.0.0 + 6.14.0.0 PubNub C# .NET - Web Data Push API Pandu Masabathula PubNub @@ -22,9 +22,7 @@ http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png true https://github.com/pubnub/c-sharp/ - Added null check for PublishFileMessage PNStatus in SendFileOperation. -Removed invalid Content-Type in ObjectsV2 request headers targeting .Net Frameworks. -Added CultureInfo.InvariantCulture to string formatting. + Undeprecated GrantToken methods/properties. Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing PubNub is a Massively Scalable Web Push Service for Web and Mobile Games. This is a cloud-based service for broadcasting messages to thousands of web and mobile clients simultaneously diff --git a/src/Api/PubnubApiUWP/PubnubApiUWP.csproj b/src/Api/PubnubApiUWP/PubnubApiUWP.csproj index 4cc4af717..0a104da24 100644 --- a/src/Api/PubnubApiUWP/PubnubApiUWP.csproj +++ b/src/Api/PubnubApiUWP/PubnubApiUWP.csproj @@ -15,7 +15,7 @@ PubnubUWP - 6.13.0.0 + 6.14.0.0 PubNub C# .NET - Web Data Push API Pandu Masabathula PubNub @@ -23,9 +23,7 @@ http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png true https://github.com/pubnub/c-sharp/ - Added null check for PublishFileMessage PNStatus in SendFileOperation. -Removed invalid Content-Type in ObjectsV2 request headers targeting .Net Frameworks. -Added CultureInfo.InvariantCulture to string formatting. + Undeprecated GrantToken methods/properties. Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing PubNub is a Massively Scalable Web Push Service for Web and Mobile Games. This is a cloud-based service for broadcasting messages to thousands of web and mobile clients simultaneously