Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
242 lines (189 sloc) 10.2 KB

safe_app nodejs Change Log

[Unreleased]

Fixed

  • RDF method, list, renamed to collection and calls correct rdflib.js function
  • RDF method, bnode calls correct rdflib.js function, blankNode
  • RDF method, literal is passed 2 arguments instead of 3

Changed

  • All RDF methods which take RDF subject, predicate, object arguments now also take a fourth provenance argument, to be consistent with rdflib.js
  • Documentation enhanced with improved JSDoc annotation and template

Added

  • Code examples for experimental API operations: RDF, WebId, WebInterface
  • Code examples where previously missing

[0.10.3] - 13-12-2018

Fixed

  • Experimental RDF emulation function nowOrWhenFetched was failing when decrypting an entry from _publicNames container which was removed by a revocation process (see comments in PR #328 for more details)

SAFE libraries Dependencies

  • safe_app: v0.9.0
  • system_uri: v0.4.0
  • deps_downloader: v0.3.0

[0.10.2] - 10-12-2018

Fixed

  • Experimental function addPublicNameToDirectory was not adding a publicName to the directory if the _publicNames had entries but none were RDF graphs

SAFE libraries Dependencies

  • safe_app: v0.9.0
  • system_uri: v0.4.0
  • deps_downloader: v0.3.0

[0.10.1] - 5-12-2018

Fixed

  • Experimental function fetch was not returning value MD in resourceType when fetching a MutableData
  • Experimental web API now throw errors when attempting to use exposed web functionality as opposed to when attempting to access safeApp.web

SAFE libraries Dependencies

  • safe_app: v0.9.0
  • system_uri: v0.4.0
  • deps_downloader: v0.3.0

[0.10.0] - 26-11-2018

Added

  • Add instructions to the README for how to generate API docs locally
  • Support for exposing experimental APIs when --enable-experimental-apis argument is passed, or when enableExperimentalApis flag is set in the initialisation option
  • Constant GET_NEXT_VERSION added to automatically obtain correct file version for updates and deletes

Changed

  • Dependency downloader configuration to download both mock and prod libs without NODE_ENV=dev
  • Upgrades deps_downloader to v0.3.0
  • Code refactoring in the browsing tests cases
  • Upgrade safe_app native library to v0.9.0
  • Re-factor instances of deprecated new Buffer to Buffer.from
  • Rename isMockBuild function to appIsMock to match the renaming in safe_app native lib v0.9.0
  • All experimental APIs are now being exposed behind the --enableExperimentalApis flag. See section below for more details

Fixed

  • Changed docs to reflect testing condition for loginForTest and simulateNetworkDisconnect functions
  • NFS write argument to match documentation annotation

Experimental APIs/features (enabled with --enable-experimental-apis)

  • Experimental function fetch which can fetch a network resource from a URL, returning the target network object (content), the type of the resource fetched (resourceType), and the parsed path from the provided URL (parsedPath)
  • Experimental RDF emulation layer which provides an abstraction to generate and manipulate RDF data on the SAFE network
  • Experimental WebID emulation layer which provides an abstraction to generate and manipulate WebID profile documents on the SAFE network
  • Experimental Web API which provides utilities to manage publicNames and subNames, get the list of owned WebIDs, get the list of owned Public Names, etc.
  • The webFetch function supports XOR-URLs as an experimental feature
  • The MutableData getNameAndTag function returns the XOR-URL as xorUrl attribute in the returned object
  • The ImmutableData close function of the Writer accepts an additional getXorUrl boolean argument to request the XOR-URL which is returned along with the XOR name in an object: { name: <xor addr>, xorUrl: <XOR-URL> }
  • The ImmutableData close function of the Writer accepts the mimeType additional argument to be used as the content-type encoded in the XOR-URL being generated
  • RDF emulation now encrypts also the entries' values (issue #281)
  • RDF emulation now can decrypt data fetched from a private MutableData (issue #283)
  • Resolved issue #282, populate _publicNames correctly when creating multiple WebIDs
  • WebID now is fully compliant with linked-data standard using URLs for links (i.e. image/avatar and posts inbox links)

SAFE libraries Dependencies

  • safe_app: v0.9.0
  • system_uri: v0.4.0
  • deps_downloader: v0.3.0

[0.9.1] - 27-8-2018

Added

  • Error handling for malformed appInfo object passed to initialiseApp (issue #257)

Fixed

  • Error "invalid utf-8: corrupt contents" fixed by preventing allocated CString reference from being reassigned to a corrupted value (issue #258)

SAFE libraries Dependencies

  • safe_app: v0.8.0
  • system_uri: v0.4.0
  • deps_downloader: v0.2.0

[0.9.0] - 27-7-2018

Added

  • New binding simulateNetworkDisconnect() function to simulate a network disconnection event useful for applications testing purposes.
  • Support for forcing the use of mock by providing forceUseMock boolean to the initialisation options of each safeApp instance, i.e. each safeApp instance can either use mock or prod libs independently.
  • Ability to pass user metadata when inserting and updating file in MutableData
  • Prevents download of system_uri if NODE_ENV=mobile_prod or NODE_ENV=mobile_dev

Changed

  • Upgrade safe_app native library to v0.8.0
  • Removing forEach binding function from the MutableData entries API as it was removed from safe_app lib
  • Adding listEntries binding function to the MutableData entries API which returns an array with all entries
  • Moves asynchronous app initialisation operations out of SAFEApp constructor and into class method
  • The initializeApp function is now asynchronous
  • webFetch can now receive multipart range requests
  • Changed fromAuthURI to fromAuthUri
  • Changed loginFromURI to loginFromUri
  • Uses delete instead of remove as entry mutation action
  • Changed initializeApp to use an s instead of z
  • Network state callback invoked from INIT to CONNECTED states
  • Simplified test helper functions
  • Upgraded deps_downloader to v0.2.0
  • Isolated webFetch helper functions for testing
  • Unregistered client connection event triggers network status update

Fixed

  • Fixed some tests which were giving false positive results
  • Added missing error handling for app_reconnect to prevent false connection status

SAFE libraries Dependencies

  • safe_app: v0.8.0
  • system_uri: v0.4.0
  • deps_downloader: v0.2.0

[0.8.1] - 9-3-2018

Changed

  • Using "files" field in package.json to whitelist what's intended for packaing rather than blacklisting with .npmignore

Fixed

  • Native libraries were not being ignored when packaging

SAFE libraries Dependencies

  • safe_app: v0.6.0
  • system_uri: v0.4.0

[0.8.0] - 2-3-2018

Added

  • Tests for API modules
  • Informative error codes and messages for cases not handled by native safe_app library
  • Adapt code to upgrade safe_app lib to v0.6.0
  • Download safe_app lib for both live & mock routing when installing in development mode
  • Additional tests for verifying the size of keys generated from raw bytes
  • New binding getOwnContainerName() function to retrieve the app's own container name
  • New binding readGrantedPermissions() function to read the list of granted containers permissions from an auth URI without the need to connect beforehand

Fixed

  • The size of the secret encryption keys in the corresponding FFI array was corrected

SAFE libraries Dependencies

  • safe_app: v0.6.0
  • system_uri: v0.4.0

[0.7.0] - 29-1-2018

Fixed

  • Minor corrections to documentation snippet code and README
  • Upgrade istanbul library to support async/await and remove errors when getting testing coverage

Added

  • Support for webFetch-ing partial content by providing the range of bytes to retrieve
  • New tests were added as well as some enhancements to increase test coverage

SAFE libraries Dependencies

  • safe_app: v0.5.0
  • system_uri: v0.4.0

[0.6.1] - 18-1-2018

Changed

  • Recommend Node ^8.0.0 for building from source
  • Upgrade CI scripts to test Node 8.0.0
  • Pass the system URI's execution path as an array of arguments to support white spaces in it
  • Adapt to changes in system_uri library API which now returns results as a pointer to FfiResult struct
  • Upgrade system_uri library to v0.4.0

SAFE libraries Dependencies

  • safe_app: v0.5.0
  • system_uri: v0.4.0

[0.6.0] - 20-12-2017

Added

  • Increase test coverage to 90%+ plus minor reorganisation of tests

Fixed

  • Remove '/' characters added by some OS to auth URI before decoding it
  • Fix issue in webFetch with URL's ending with '/' to correctly treat it as ending with a folder path

SAFE libraries Dependencies

  • safe_app: v0.5.0
  • system_uri: v0.3.0

0.5.3

  • Fix webFetch to load URLs from root and sub directory

0.5.2

  • Fix webFetch to load URLs from root and sub directory

0.5.1

  • Upgrade safe_app version to 57f3afb
  • Adapt to change in safe_app which adds app's ID in unreg auth requests

0.5.0

  • Add function to retrieve account information
  • Adapt to API changes from safe_client_libs to upgrade to latest version
  • Add functions to verify network connection state
  • Add API to manage signing keys (sign/verify functions included)
  • Automate npm publish process triggered upon tag push
  • Upgrade system_uri to v0.3.0

0.4.1

  • Expose Constants which can be used by Apps
  • Rely on the safe-core network observer callbacks upon a reconnection
  • Uses e9080ac commit version from alpha-2 branch

0.4.0

  • Compatible with safe_app v0.4.0
  • New set of standalone API Examples Using Mock Routing
  • Automatically remove white spaces from appInfo vendor and name to create the .desktop files when registering the URI scheme
  • Add an option to allow registration of additional custom protocols in the system URI scheme.
  • Support for passing the bundle id in the appInfo object upon initialisation needed for OSX system URI registration
  • Upgrade system_uri to v0.2.3

0.3.0

  • Compatible with safe_app v0.4.0
  • Minor fixes
  • uses system_uri v0.2.2

0.1.0-dev.1

  • NFS API updates
  • Freeing of safe_app handles
  • Minor fixes