Skip to content

Commit 58f410e

Browse files
Un-deprecate GrantToken methods/properties (#162)
* undeprecate GrantToken methods/properties
1 parent 05f80bd commit 58f410e

File tree

9 files changed

+24
-29
lines changed

9 files changed

+24
-29
lines changed

.pubnub.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: c-sharp
2-
version: "6.13.0"
2+
version: "6.14.0"
33
schema: 1
44
scm: github.com/pubnub/c-sharp
55
changelog:
6+
- date: 2023-02-27
7+
version: v6.14.0
8+
changes:
9+
- type: improvement
10+
text: "Undeprecated GrantToken methods/properties."
611
- date: 2022-12-05
712
version: v6.13.0
813
changes:
@@ -701,7 +706,7 @@ features:
701706
- QUERY-PARAM
702707
supported-platforms:
703708
-
704-
version: Pubnub 'C#' 6.13.0
709+
version: Pubnub 'C#' 6.14.0
705710
platforms:
706711
- Windows 10 and up
707712
- Windows Server 2008 and up
@@ -711,7 +716,7 @@ supported-platforms:
711716
- .Net Framework 4.5
712717
- .Net Framework 4.6.1+
713718
-
714-
version: PubnubPCL 'C#' 6.13.0
719+
version: PubnubPCL 'C#' 6.14.0
715720
platforms:
716721
- Xamarin.Android
717722
- Xamarin.iOS
@@ -731,7 +736,7 @@ supported-platforms:
731736
- .Net Core
732737
- .Net 6.0
733738
-
734-
version: PubnubUWP 'C#' 6.13.0
739+
version: PubnubUWP 'C#' 6.14.0
735740
platforms:
736741
- Windows Phone 10
737742
- Universal Windows Apps
@@ -755,7 +760,7 @@ sdks:
755760
distribution-type: source
756761
distribution-repository: GitHub
757762
package-name: Pubnub
758-
location: https://github.com/pubnub/c-sharp/releases/tag/v6.13.0.0
763+
location: https://github.com/pubnub/c-sharp/releases/tag/v6.14.0.0
759764
requires:
760765
-
761766
name: ".Net"
@@ -1038,7 +1043,7 @@ sdks:
10381043
distribution-type: source
10391044
distribution-repository: GitHub
10401045
package-name: PubNubPCL
1041-
location: https://github.com/pubnub/c-sharp/releases/tag/v6.13.0.0
1046+
location: https://github.com/pubnub/c-sharp/releases/tag/v6.14.0.0
10421047
requires:
10431048
-
10441049
name: ".Net Core"
@@ -1397,7 +1402,7 @@ sdks:
13971402
distribution-type: source
13981403
distribution-repository: GitHub
13991404
package-name: PubnubUWP
1400-
location: https://github.com/pubnub/c-sharp/releases/tag/v6.13.0.0
1405+
location: https://github.com/pubnub/c-sharp/releases/tag/v6.14.0.0
14011406
requires:
14021407
-
14031408
name: "Universal Windows Platform Development"

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v6.14.0 - February 27 2023
2+
-----------------------------
3+
- Modified: undeprecated GrantToken methods/properties.
4+
15
v6.13.0 - December 05 2022
26
-----------------------------
37
- Fixed: added null check for PublishFileMessage PNStatus in SendFileOperation.

src/Api/PubnubApi/EndPoint/Access/GrantTokenOperation.cs

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public GrantTokenOperation(PNConfiguration pubnubConfig, IJsonPluggableLibrary j
5454
InitializeDefaultVariableObjectStates();
5555
}
5656

57-
[Obsolete("AuthorizedUuid is deprecated, please use AuthorizedUserId instead.")]
5857
public GrantTokenOperation AuthorizedUuid(string uuid)
5958
{
6059
if (!string.IsNullOrEmpty(pubnubAuthorizedUserId))

src/Api/PubnubApi/Model/Consumer/AccessManager/PNTokenPermissionMappingBase.cs

-6
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,9 @@ public class PNTokenPatterns : PNTokenPermissionMappingBase
1515
}
1616
public class PNTokenPermissionMappingBase
1717
{
18-
[Obsolete("Channels is deprecated, please use Spaces instead.")]
1918
public Dictionary<string, PNTokenAuthValues> Channels { get; set; }
20-
21-
[Obsolete("ChannelGroups is deprecated.")]
2219
public Dictionary<string, PNTokenAuthValues> ChannelGroups { get; set; }
23-
24-
[Obsolete("Uuids is deprecated, please use Users instead.")]
2520
public Dictionary<string, PNTokenAuthValues> Uuids { get; set; }
26-
2721
public Dictionary<string, PNTokenAuthValues> Users { get; set; }
2822
public Dictionary<string, PNTokenAuthValues> Spaces { get; set; }
2923

src/Api/PubnubApi/PNConfiguration.cs

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public int PresenceInterval
5252
public string AuthKey { get; set; }
5353

5454
[Obsolete("Uuid is deprecated, please use UserId instead.")]
55-
5655
public string Uuid
5756
{
5857
get

src/Api/PubnubApi/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
[assembly: AssemblyProduct("Pubnub C# SDK")]
1212
[assembly: AssemblyCopyright("Copyright © 2021")]
1313
[assembly: AssemblyTrademark("")]
14-
[assembly: AssemblyVersion("6.13.0.0")]
15-
[assembly: AssemblyFileVersion("6.13.0.0")]
14+
[assembly: AssemblyVersion("6.14.0.0")]
15+
[assembly: AssemblyFileVersion("6.14.0.0")]
1616
// Setting ComVisible to false makes the types in this assembly not visible
1717
// to COM components. If you need to access a type in this assembly from
1818
// COM, set the ComVisible attribute to true on that type.

src/Api/PubnubApi/PubnubApi.csproj

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@
1313

1414
<PropertyGroup>
1515
<PackageId>Pubnub</PackageId>
16-
<PackageVersion>6.13.0.0</PackageVersion>
16+
<PackageVersion>6.14.0.0</PackageVersion>
1717
<Title>PubNub C# .NET - Web Data Push API</Title>
1818
<Authors>Pandu Masabathula</Authors>
1919
<Owners>PubNub</Owners>
2020
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
2121
<PackageIconUrl>http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png</PackageIconUrl>
2222
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2323
<RepositoryUrl>https://github.com/pubnub/c-sharp/</RepositoryUrl>
24-
<PackageReleaseNotes>Added null check for PublishFileMessage PNStatus in SendFileOperation.
25-
Removed invalid Content-Type in ObjectsV2 request headers targeting .Net Frameworks.
26-
Added CultureInfo.InvariantCulture to string formatting.</PackageReleaseNotes>
24+
<PackageReleaseNotes>Undeprecated GrantToken methods/properties.</PackageReleaseNotes>
2725
<PackageTags>Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing</PackageTags>
2826
<!--<Summary>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</Summary>-->
2927
<Description>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</Description>

src/Api/PubnubApiPCL/PubnubApiPCL.csproj

+2-4
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@
1414

1515
<PropertyGroup>
1616
<PackageId>PubnubPCL</PackageId>
17-
<PackageVersion>6.13.0.0</PackageVersion>
17+
<PackageVersion>6.14.0.0</PackageVersion>
1818
<Title>PubNub C# .NET - Web Data Push API</Title>
1919
<Authors>Pandu Masabathula</Authors>
2020
<Owners>PubNub</Owners>
2121
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
2222
<PackageIconUrl>http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png</PackageIconUrl>
2323
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2424
<RepositoryUrl>https://github.com/pubnub/c-sharp/</RepositoryUrl>
25-
<PackageReleaseNotes>Added null check for PublishFileMessage PNStatus in SendFileOperation.
26-
Removed invalid Content-Type in ObjectsV2 request headers targeting .Net Frameworks.
27-
Added CultureInfo.InvariantCulture to string formatting.</PackageReleaseNotes>
25+
<PackageReleaseNotes>Undeprecated GrantToken methods/properties.</PackageReleaseNotes>
2826
<PackageTags>Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing</PackageTags>
2927
<!--<Summary>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</Summary>-->
3028
<Description>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</Description>

src/Api/PubnubApiUWP/PubnubApiUWP.csproj

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@
1515

1616
<PropertyGroup>
1717
<PackageId>PubnubUWP</PackageId>
18-
<PackageVersion>6.13.0.0</PackageVersion>
18+
<PackageVersion>6.14.0.0</PackageVersion>
1919
<Title>PubNub C# .NET - Web Data Push API</Title>
2020
<Authors>Pandu Masabathula</Authors>
2121
<Owners>PubNub</Owners>
2222
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
2323
<PackageIconUrl>http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png</PackageIconUrl>
2424
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2525
<RepositoryUrl>https://github.com/pubnub/c-sharp/</RepositoryUrl>
26-
<PackageReleaseNotes>Added null check for PublishFileMessage PNStatus in SendFileOperation.
27-
Removed invalid Content-Type in ObjectsV2 request headers targeting .Net Frameworks.
28-
Added CultureInfo.InvariantCulture to string formatting.</PackageReleaseNotes>
26+
<PackageReleaseNotes>Undeprecated GrantToken methods/properties.</PackageReleaseNotes>
2927
<PackageTags>Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing</PackageTags>
3028
<!--<Summary>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</Summary>-->
3129
<Description>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</Description>

0 commit comments

Comments
 (0)