You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,17 @@
1
+
# Web3API 0.0.1-prealpha.7
2
+
## Features
3
+
* Console Log Web3API
4
+
* Calls log on logger plugin at uri w3://w3/logger. Default logger logs to console, but can be overridden with redirect to custom logger web3api implementation.
5
+
* Log levels: Debug, Info, Warn, Error
6
+
*`createWeb3ApiClient(...)` helper for easily setting up a Web3API Client with all needed plugins (ex: ethereum, ipfs, etc) in one function call.
7
+
* Additional support for plugins can be added in the future, without bloating the `@web3api/client-js` package thanks to dynamic imports!
8
+
* When using the Web3ApiClient, specify Web3API URIs without having to create a new URI class (`new Uri("...")`). Simply provide a string instead.
Calls log on logger plugin at uri `w3://w3/logger`. Default logger logs to console, but can be overridden with redirect to custom logger web3api implementation.
4
+
5
+
### Log levels
6
+
7
+
- DEBUG
8
+
- INFO
9
+
- WARN
10
+
- ERROR
11
+
12
+
## Example
13
+
14
+
### Usage
15
+
16
+
In schema:
17
+
```graph
18
+
#import { Query } into Console from "w3://ens/console.eth"
19
+
20
+
type Query {
21
+
customMethod(): Boolean!
22
+
}
23
+
```
24
+
25
+
In code:
26
+
27
+
```ts
28
+
import { Console_Query } from"./w3";
29
+
30
+
function customMethod():bool {
31
+
Console_Query.info("some useful info about my API");
0 commit comments