forked from jeff-zucker/solid-file-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchanges.log
More file actions
24 lines (16 loc) · 712 Bytes
/
changes.log
File metadata and controls
24 lines (16 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
v0.2.0 - 2018-12-15
-------------------
Many changes introduced by the talented @linonetwo.
* SolidFileClient is no longer an object, so to invoke
DO THIS : const fc = SolidFileClient;
NOT THIS : const fc = new SolidFileClient()
* The readFile() method now passes back the body not an object with a value
fileClient.readFile(url).then( body => {
console.log(body) // DO THIS
console.log(body.value) // NOT THIS
});
* everything has been moved to promises, so you can error-trap like this:
fileClient.readFile(url).then( body => {
// ...
}, err => console.log(err) );
* updateFile() now takes an optional third parameter to specify content-type