Repository navigation
Tags
Tags
Docs snippets data sync (pubnub#514) * Add DataSync docs snippets Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Add DataSync docs snippets Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * type updates for grantToken requests, subscribe event types for dataSync * lib/dist updates * refine naming in type definitions for dataSync internal type unions * prettier * PubNub SDK v13.0.1 release. --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
data sync (pubnub#498) * pre-requisites for data_sync: handle error array during exceptional cases, include PUT type where needed. update body include cases when body present while making http requests. * data-sync: channel endpoint apis * data-sync:user endpoint apis * data-sync:membership endpoint apis * data-sync: entity endpoint apis * data-sync: entity-relationship endpoint apis * data-sync: apis domain object export, added operation constants, type definition, updated pubnub-common file to have datasync apis support * updated dist/lib and codeowner files. * fix lint * Fix CODEOWNERS syntax for jguz-pubnub * dataSync relationship api for getAll should have class and version input accepted * sync package.json with latest * fix type definition for getAllRelationships * datasync event handling, grantToken update for datasync permissions * remove `idempotencyKey` from datasync apis * lint fixes * handling user/channel/membership events in subscription * lib files * dist/lib updates * refactor: dataSync apis signature update to improve user experience by not typinf domain keywords during parameter property inputs, update method name conventions to align with existing methods. update parse token to parse dataSync related permissions and projection definitions details. added more patch operation variants which are supported. * lint fixes * DATA_SYNC_MODULE environment variable based module load for dataSync feature * dataSync updates: refined method naming convention consistent as per feature, support for `classLevel` grantToken update to allow users, channels resources and patterns for dataSync permissions class name support at Users and channels apis. * dist and lib files updates * parseToken to parse users permissions, fix stale test failures of grantToken * re-worked update methods added JSDoc for json pointer usage * JSDoc with more details on how to use patch (update) apis with json pointers * event listener: unknown event handling - not listener invoked when evet type is unknown, added unit tests mimicking the unknown event type and known event type behaviour. added support for `users` and `channels` projection for grantToken. dataSync GET operation pagination related fields updates as per new specification. * support for dataSync subscribable objects * build: bump undici version, to address potential vulnerabilities. * fix syntax error TS2527 for subscribable type * filter parameter renaming for dataSync get apis * description change for sort param in dataSync * TEST(dataSync): channels crud, projection tests added and test helpers. TEST SETUP- added secrets for dataSync tests. * refactor(retry-decision): moved status code based retry decision to shouldRetry function * dataSync error normalised with pubnub-api-error convention, instead creating new formatted error message. * PAM extension (refactor): unified permission extraction method at token_manager, additional validation to not allow spaces and uuid permission specification together * dataSync fixes - getUsers, getChannels, getEntities support class, classLevel parameters fix validation message for membership create and set apis * dataSync type definition update: expiresAt is mandatory field received in reponse * test(PAM): access manager test updates with additional validation * test(dataSync subscription): dataSync entity subscription based reference count tests * test(dataSync) update channels tests using mocked response to speed up tests, additional tests for patch or json pointers, tests for user, entity, membershi and relationship crud * .pubnub.yml updates for dataSync * update configuration as custom origin not needed for dataSync tests * test(fix) for membership error assertion, test fix for projection, configuration update for dataSync tests * test environment variable configuration update * test config, dataSync environment configuration * reverted run-tests workflow changes, added tests for dataSync events, fixes existing tests which were affected by nock setup. * dist/lib updates * dataSync parameter naming sync for get*s operation * dist/lib updates * update dataSync event type parsing for user, channel and membership opertaion events * dist/lib updates * dataSync eventType redundant definition cleanup * dist/lib updates * package-lock file * PubNub SDK v13.0.0 release. --------- Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
fix/unbound fetch (pubnub#505) * bind fetch to globalThis * lib/dist update * PubNub SDK v12.0.3 release. --------- Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
fix/webtransportation-getOriginalFetch (pubnub#504) * webTransport: updated getOriginalFetch() to return fetch for domless context like MV3 services, added checks before calling methods on windows for pagehide to prevent exceptions. * lib updates * resolve conflics of dist files. * PubNub SDK v12.0.2 release. --------- Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
fix: various fixes for log information, cryptomodule, deprecation war… …nings (pubnub#503) * fix: file name which can be a path value should be encoded. to avoid any potential path traversal attack. added tests for the same wherever the user can provide file id/name inputs * fix: omit crypto module configuration related sensitive key configurations from being logged, added deprection warning on LegacyCryptoModule to aware user of potential risk, additional recommanation for using aesCbcCryptor for cryptography. * lib/dist and pakcage-lock updates * lint fixes for max length * PubNub SDK v12.0.1 release. --------- Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
refactor/node-transport-undici (pubnub#500) * migrate to undici v6.x * pin undici 7.27.2 as v8 dispatcher is incompatible with the runtimes build in fetch and raise engines node to leat LTS 22 version single AbortSignal owns request timeout; disable undici internal headers/body/connect timeouts for parity restore node-fetch error categorisation UND_ERR_ TIMEOUT, AggregateError unwrap log ALPN-negotiated protocol via a custom connector match keepAlive false TCP-keepalive behaviour bump CI matrix to Node 22 and 24 * lib updates * bump code snippet run time node version to 22 * logger changes for printing http protocol details when available with node transport. * making `react-native-url-polyfill` as optional dependency because its required only for React Native target * upgrade undici to v7.28 * PubNub SDK v12.0.0 release. * chores: `README`, `CODEOWNERS` updates --------- Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
Fix/exponential retry policy (pubnub#499) * fix: exponential retry policy delay calculation should always respect minimum configured delay * dist/lib updates * PubNub SDK v11.0.2 release. --------- Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
upgarde transitive deps/ Synk reported potential vulnerability for ba… …sic-ftp transitive dependency (pubnub#497) * deps override, since upgrading proxy agent to v7 wont fix the potential vulnerability, v8 is esm only which requires some woraround for module compatibility. * update coderabbit configuration as per new schema validation rules at v2 * package-lock to have safe version of basic-ftp at get-uri * PubNub SDK v11.0.1 release. --------- Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
feat: enableEventEngine, restore set default (pubnub#495) * set enableEventEngine to true, restore flag to true by default, fix titanium test to equate expected operation type * update subscription_manager: to disable ee, because those tests are subscription_manager component specific, update subscribe tests to in corporate ee changes where EE discard `m` field for handshake, and make presence heartbeat whenever subscribe call made, additional mock request infering to EE http requests * test(time): when ee enabled, the network layer retry kick in with default retry policy, which delayes the failure and hits timeout for failure time call test using mock, unsubscribe.test.ts expects no leave call in certain scenario which is changed intentionally with event engine. * refactor: validation for retry-configuration does not cap maximum retry values * integrate codeRabbit * chore: coderabbit change to not add high level summary * dist/lib updates * mark diconnect and receive failure as subscribe operation type. * PubNub SDK v11.0.0 release. --------- Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
fix(types): add missing `listenToBrowserNetworkEvents` config option (p… …ubnub#493) * fix(types): add missing `listenToBrowserNetworkEvents` config option * PubNub SDK v10.2.9 release. --------- Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
PreviousNext