This package has been deprecated

Author message:

This module has been deprecated

@wessberg/syncdb-common
TypeScript icon, indicating that this package has built-in type declarations

1.0.30 • Public • Published

SyncDBCommon NPM version

Common modules and functionality for SyncDB.

Installation

Simply do: npm install @wessberg/syncdb-common.

Usage

This module is not intended for public consumption. Rather, it serves as a bridge between the SyncDB client and SyncDB server packages.

Changelog:

v1.0.30:

  • Updated signature of 'normalizeURL' to optionally take in a tlsKey and tlsCert.

v1.0.29:

  • Removed IWebSocketConnectionOptions from common repository.

v1.0.28:

  • Added a new function 'stringifyNormalizedURL' to get a string back.

v1.0.27:

  • Fixed a bug with computing paths.

v1.0.26:

  • Fixed a bug in 'normalizeURL'.

v1.0.25:

  • Fixed a bug in 'normalizeURL'.

v1.0.24:

  • Eased requirements to 'URLLike'.

v1.0.23:

  • Made "normalizeURL" take the constructor to use for constructing URLs as an argument.

v1.0.22:

  • Added 'tls' to IWebSocketAdapterConstructorOptions

v1.0.21:

  • Added more shared interfaces and logic.

v1.0.20:

  • Added a default connection port to the SyncDBEndpointConfig.

v1.0.19:

  • Bumped dependency on LocalDBCommon.

v1.0.18:

v1.0.16:

  • Refactoring.

v1.0.15:

  • Refactoring.

v1.0.14:

  • Pull requests now expect content newer than some given date. Pull responses now returns an array of SyncDBChangeContent (if accepted).

v1.0.13:

  • Constrained the ISyncDBStore interface to not allow auto-incrementing IDs and custom key paths.

v1.0.12:

  • Moved the 'SyncDBStore' declaration inside the common module. Made changes to the interfaces to reflect this change.

v1.0.12:

  • Added a 'changeKind' property to change contents to let the client know what kind of change operation has been performed or is requested to be performed.

v1.0.11:

  • Removed the 'stores' property from pull requests. All missing data should be returned at all times from a pull request.

v1.0.10:

  • Removed the 'NO_PEERS' enum property from push response reject reasons again. Reason: Push requests should be allowed if no other peers exist to reject it.

v1.0.8:

  • Added a 'NO_PEERS' enum property to push response reject reasons.

v1.0.7:

  • Added a 'originalRequest' property to push response messages.

v1.0.6:

  • Added optional 'requestUUID' properties to pull- and push request interfaces so the original requester can be traced.

v1.0.5:

  • Added a reject reason and status for pull responses.

v1.0.4:

  • Added a 'requestUUID' to the interface for pull responses.

v1.0.3:

  • Even more restructuring.

v1.0.2:

  • More restructuring.

v1.0.1:

  • Restructuring.

v1.0.0:

  • First release.

Package Sidebar

Install

npm i @wessberg/syncdb-common

Weekly Downloads

2

Version

1.0.30

License

MIT

Last publish

Collaborators

  • wessberg