JavaScriptTitaniumTitaniumNode.jsPhoneGapReactReduxVueWebChangelog for Titanium V4 SDK


Added
  • Adds timetoken of file publish in the sendFile response.

Fixed
  • Fixes getFileUrl so that it includes auth and signature query params.

  • Fixes downloadFile method to generate correct signature.

Fixed
  • Fixes compatibility with @sentry/react-native library.

Added
  • Added support for managing permissions of objects v2 while applying PAM v2.

Fixed
  • Fix uncaught promise exception in subscription manager caused by error in user code inside of subscription handlers. Error will be handled and returned to status handler with PNUnknownCategory category where errorData can be examined.

Added
  • Add file download to Blob in React Native.

Added
  • Add support for file upload via file URI in React Native.

Fixed
  • Fix file download to ArrayBuffer in React Native.

Fixed
  • Fixes an artifact where ract-native entrypoint didnt use ssl.

Fixed
  • Fixes an issue with react-native entrypoint where interfaces to File and Crypto are not included in the build.

  • Fixes the ability to sendByPost in publish.

  • Fixes an issue where getFileUrl returned and URI without a protocol.

  • Fixes an issue where storeInHistory false would not include the param.

  • Removes mime types dependency since that will be handled by the server.

  • Adds userMetadata to file event listener.

Fixed
  • Move @babel/runtime to runtime dependency.

Fixed
  • Release 4.291.

Added
  • Allows to upload files to channels, download them with optional encryption support.

  • Allows to enable random IVs when encrypting messages.

Fixed
  • Fixes a bug with PAM and Objects v2.

Fixed
  • Fixes issue of high cpu usage when heartbeat interval is not set.

Fixed
    • getAllChannelMetadata no longer includes customFields by default, * removeChannelMetadata no longer hits wrong endpoint, * getMemberships and getChannelMembers now includes customFields by default, * getAllUUIDMetadata now includes totalCount by default, * getAllUUIDMetadata no longer includes limit by default, * all membership and channel members methods now accept a callback, * all objects v2 methods are properly typed now to include an optional callback, * getMemberships and getChannelMembers now include totalCount, prev, and next in the response.
Fixed
  • Fixes a bug in removeChannelMembers and removeMemberships.

Fixed
  • Ensure proper bytes padding in ArrayBuffer prepared for cbor-js library.

Added
  • Added Objects v2 API and deprecated Objects v1 API.

Added
  • Added support for delete permission in the grant method of accesses manager.

Fixed
  • Update READMEmd CDN links during deployment.

  • Fix pre-compiled scripts update.

Added
  • Add telemetry (latency) for all existing operation types.

Fixed
  • Replace cbor-sync module with cbor-js for client implementation for web to fix compatibility with Salesforce Lightning Web Components.

Modified
  • Support for APNS2 Push API

Fixed
  • Restore functionality to set heartbeat interval when presence timeout is set below the default

Fixed
  • disable presence heartbeats by default

Fixed
  • Make changes in fetch_messages endpoint to move message actions (if any) for message from 'data' to 'actions' property (old 'data' will be in place for few updates to not break existing clients).

Modified
  • fix PAMv3 tests mocked signature

  • fix lint warnings for tests and code

  • fix gulp build so that failures in test and lint will trigger failure in travis

Added
  • Add Message Actions API support which allow to: add, remove and fetch previously added actions

  • Add new arguments to fetch messages function which allow to fetch previously added actions and message metadata

  • Add new handler which can be used to track message actions addition / removal events

Fixed
  • Ensures history response is an array before iterating it

Fixed
  • Add support for auth tokens with Objects for Users, Spaces and Memberships

Fixed
  • Fix issue with subdomains ending in 'ps'

Fixed
  • Fix titanium build to support recent version

Modified
  • Add Objects support for Users, Spaces and Memberships

Fixed
  • Fix regression: 'PubNub is not a constructor' in Node.js

Modified
  • Add Signals support

Modified
  • Add minimum presence timeout

Modified
  • Added support to enable heartbeat requests while subscribe when heartbeat interval is provided

Modified
  • Added try catch block to handle exception for JSON.parse function

  • Updated default origin to ps.pndsn.com

Modified
  • Maintains the state when the presence heartbeat is explicitly disabled

Modified
  • Disables the presence heartbeat by default when a subscribe is called. Presence heartbeat can still be enabled explicitly.

Modified
  • The timetoken parameter is deprecated in the message-counts function. Use 'channelTimetokens' instead, pass one value in 'channelTimetokens' to achieve the same results.

Added
  • message counts

Modified
  • use null instead of '' for NativeScript networking module

Modified
  • update dependencies

  • fix flow process on nativescript

Fixed
  • fix POST for nativescript adapter over android

Modified
  • update dependencies

Modified
  • return error parameter into errorData when logVerbosity = true

Modified
  • update dependencies

Modified
  • add stringifiedTimeToken into the fetch endpoint

Fixed
  • avoid security vulnerability in growl < 1.10.0

Added
  • subscribe without using the heartbeat loop with flag withHeartbeats = false

Fixed
  • fix timetoken announces

Modified
  • categorize ETIMEDOUT errors as PNNetworkIssuesCategory

Fixed
  • fix signature to delete message

Modified
  • allow set ssl to false for nodejs

Added
  • add support for heartbeat sending without subscription via .presence()

  • add method setProxy for Nodejs

  • set ssl to true for nodejs by default

Added
  • add support for Native Script

Modified
  • add missing flow types

  • upgrade superagent to ^3.8.1

Modified
  • keepAlive is now initialized globally instead of per-call, allowing better connection reuse

Added
  • added sdkName configuration parameter which allow completely override pnsdk in request query

Modified
  • allow disabling of heartbeats by passing 0 during initialization.

Fixed
  • fix UUID library to work in browsers.

Fixed
  • fix incorrect packaging of lil-uuid and uuid

Added
  • support delete messages from history

Modified
  • swap uuid generator with support for IE9 and IE10

Modified
  • fix typo to enable http keep alive support

Modified
  • Support optional message deduping via the dedupeOnSubscribe config

  • Do not issue leave events if the channel mix is empty.

Modified
  • Allow disable of heartbeats by passing heartbeatInterval = 0

Modified
  • patch up 503 reporting

  • fix issue with where now and invalid server response

  • fix issue with here now and invalid server response

Modified
  • fix issue of net with android for titanium

Added
  • add additional hooks for connectivity

  • add auto network detection

Modified
  • fix issue of net with android for react-native

Added
  • metadata is now passed on message envelope

Added
  • add support custom encryption and decryption

Added
  • integrate fetch for react-native SDK

Modified
  • announce when subscription get reactivated

  • stop heartbeats for responses with status PNBadRequestCategory

Added
  • allow manual control over network state via listenToBrowserNetworkEvents

Added
  • add support for titanium SDK

Modified
  • fix support for react-native SDK

  • add validation for web distribution

Added
  • add support for presence deltas.

  • keep track of new and upcoming timetokens on status messages

Added
  • add optional support for keepAlive by passing the keepAlive config into the init logic

Modified
  • add guard to check for channel or channel group on state setting

  • add guard to check for publish, secret keys when performing a grant

Modified
  • downgrade superagent to v2; add new entry point for react native.

Modified
  • adjust compilation for webpack based compilations

Modified
  • proxy support for node

Modified
  • upgrade dependencies; fix up linting.

  • handle network outage cases for correct reporting.

Modified
  • bump version after v3 release.

Modified
  • removes bundling of package.json into the dist file

Modified
  • SDK now supports the restore config to allow message catch-up

Modified
  • bulk history exposed via pubnub.fetchMessages

  • publish supports custom ttl interval

  • v2 for audit and grant; no consumer facing changes.

  • fixes for param validation on usage of promises

Modified
  • SDK reports on the id of the publisher in the message

Modified
  • Detection of support of promises improved.

Modified
  • Fixes on encoding of apostraphes.

Modified
  • Add promise support on setState operation (@jskrzypek)

  • Add hooks to stop polling time when the number of subscriptions drops to 0 (@jasonpoe)

Modified
  • Encode signatures to avoid sending restricted characters

Modified
  • Add optional support for promises on all endpoints.

  • History always returns timetokens in the payloads.

  • Optionally, if queue size is set, send status on queue size threshold

Modified
  • Fix state setting for channels with reserved tags.

Modified
  • Reset timetoken when all unsubscribes happen

  • Sign requests when a a secret key is passed

Modified
  • Propogate status events to the status callback on subscribe operations.

Modified
  • affectedChannels and affectedChannelGroups are now populated on subscribe / unsubscribe events

Modified
  • Dependency upgrades

Modified
  • Expose decryption and encryption as a global

Modified
  • Channel / subscription items are populated in

  • Constants for operation and category are exposed on global object

Modified
  • Re-publish of v4.0.7

Modified
  • Dependency upgrades

  • Try..catch wrapped around localStorage for iframe compliance

Modified
  • Adjustment of reconnection policies for web distributions.

  • PNSDK support for partner identification

Modified
  • Stop exposing .babelrc which causes unpredictable behavior on react native.

Modified
  • Adjust handling of presence payloads for state settings.

  • Triggering disconnect, reconnect events on Web distributions.

  • React Native adjustments to package.json information.

Added
  • Exposing generateUUID method to create uuids.

Modified
  • Global Here Now parsing adjustments.

Modified
  • Adjustments to internet disconnects on node.

Fixed
  • Fixes to avoid double encoding on JSON payloads.

Added
  • New iteration of JS / Node SDK family