All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
0.11.1 (2019-04-10)
- weak: Weak refs via weak-napi. Remove 'weak' (2aee334)
- RDF method,
list
, renamed tocollection
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
- All RDF methods which take RDF
subject
,predicate
,object
arguments now also take a fourthprovenance
argument, to be consistent with rdflib.js - Documentation enhanced with improved JSDoc annotation and template
- Upgrade Node-FFI to v2.3.0 and Node.js to v10 for the CI
- Code examples for experimental API operations: RDF, WebId, WebInterface
- Code examples where previously missing
- Tests added to verify MutableData entries' keys are always stored as strings
- Any leading/trailing whitespaces are automatically trimmed from the authorisation URI by
loginFromUri
function - Added
getXorUrl
experimental function to the ImmutableData Reader which generates the XOR-URL of an already existing and fetched ImmutableData - Major enhancements made to the README documenting details of the codebase and how to contribute
- 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_app: v0.9.0
- system_uri: v0.4.0
- deps_downloader: v0.3.0
- Experimental function
addPublicNameToDirectory
was not adding a publicName to the directory if the_publicNames
had entries but none were RDF graphs
- safe_app: v0.9.0
- system_uri: v0.4.0
- deps_downloader: v0.3.0
- Experimental function
fetch
was not returning valueMD
inresourceType
when fetching a MutableData - Experimental
web
API now throw errors when attempting to use exposed web functionality as opposed to when attempting to accesssafeApp.web
- safe_app: v0.9.0
- system_uri: v0.4.0
- deps_downloader: v0.3.0
- 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 whenenableExperimentalApis
flag is set in the initialisation option - Constant
GET_NEXT_VERSION
added to automatically obtain correct file version for updates and deletes
- 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
toBuffer.from
- Rename
isMockBuild
function toappIsMock
to match the renaming insafe_app
native lib v0.9.0 - All experimental APIs are now being exposed behind the
--enableExperimentalApis
flag. See section below for more details
- Changed docs to reflect testing condition for
loginForTest
andsimulateNetworkDisconnect
functions - NFS write argument to match documentation annotation
- 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 asxorUrl
attribute in the returned object - The ImmutableData
close
function of theWriter
accepts an additionalgetXorUrl
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 theWriter
accepts themimeType
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_app: v0.9.0
- system_uri: v0.4.0
- deps_downloader: v0.3.0
- Error handling for malformed
appInfo
object passed toinitialiseApp
(issue #257)
- Error "invalid utf-8: corrupt contents" fixed by preventing allocated CString reference from being reassigned to a corrupted value (issue #258)
- safe_app: v0.8.0
- system_uri: v0.4.0
- deps_downloader: v0.2.0
- 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
ifNODE_ENV=mobile_prod
orNODE_ENV=mobile_dev
- 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
tofromAuthUri
- Changed
loginFromURI
tologinFromUri
- Uses
delete
instead ofremove
as entry mutation action - Changed
initializeApp
to use ans
instead ofz
- Network state callback invoked from
INIT
toCONNECTED
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 some tests which were giving false positive results
- Added missing error handling for
app_reconnect
to prevent false connection status
- safe_app: v0.8.0
- system_uri: v0.4.0
- deps_downloader: v0.2.0
- Using "files" field in
package.json
to whitelist what's intended for packaing rather than blacklisting with .npmignore
- Native libraries were not being ignored when packaging
- safe_app: v0.6.0
- system_uri: v0.4.0
- 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
- The size of the secret encryption keys in the corresponding FFI array was corrected
- safe_app: v0.6.0
- system_uri: v0.4.0
- Minor corrections to documentation snippet code and README
- Upgrade istanbul library to support async/await and remove errors when getting testing coverage
- 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_app: v0.5.0
- system_uri: v0.4.0
- 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_app: v0.5.0
- system_uri: v0.4.0
- Increase test coverage to 90%+ plus minor reorganisation of tests
- 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_app: v0.5.0
- system_uri: v0.3.0
- Fix webFetch to load URLs from root and sub directory
- Fix webFetch to load URLs from root and sub directory
- Upgrade safe_app version to
57f3afb
- Adapt to change in safe_app which adds app's ID in unreg auth requests
- 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
- 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
- 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
- Compatible with safe_app v0.4.0
- Minor fixes
- uses system_uri v0.2.2
- NFS API updates
- Freeing of safe_app handles
- Minor fixes