Commit Graph

102 Commits

Author SHA1 Message Date
ad83b51ce1 JS SDK 0.10.0 (#64)
BREAKING CHANGES: PROTOCOL_NAME is changed, AquaVM is updated to a new minor version
0.10.0
2021-08-24 18:37:20 +03:00
5da230cb05 Switch to crdt interpreter (#62) 2021-08-24 17:37:03 +03:00
f67ca787a7 Update libp2p, multiaddr & peer-id libraries (#60) 0.9.55 2021-08-18 20:13:40 +03:00
0b91712964 Fix doc links (#58) 0.9.54 2021-08-06 00:57:10 +03:00
7959016ecb update avm to 0.10.5 (#57) 0.9.53 2021-06-10 17:32:15 +03:00
cabbe89845 Fixed issue when a variable passed to Request flow could be undefined (#55) 0.9.52 2021-06-09 20:39:04 +03:00
67a1f91961 Fix issue with avm logs not being displayed (#54) 0.9.51 2021-06-08 11:08:07 +03:00
2e016e9b7a fix "Op" service name case to "op" (#53) 0.9.50 2021-06-04 14:05:04 +03:00
53385c556a Implement handlers for built-in calls from avm (#52) 0.9.49 2021-06-03 20:11:09 +03:00
c01c6478b7 Update error handling when dialing libp2p connecion (#51) 0.9.48 2021-06-03 15:29:12 +03:00
b5bdc5d6e5 update (#50) 0.9.47 2021-06-01 19:05:40 +03:00
054a7bf094 Mass rename (#48)
* Update terminology and namings

* Use renamed to `avm` package
2021-05-18 09:53:12 +03:00
9aa077eb4b Update air (#47)
* Migrate to the new version of air-interpreter package

* Add pipeline with integration tests 

* Fix issues which prevented tests to finish normally
0.9.46
2021-05-12 00:01:44 +03:00
2d46fd47f1 fix error prototype (#45) 0.9.45 2021-04-27 17:50:53 +03:00
8c372cd0c8 Improvements (#44)
* Add more detailed information when the particle is sent to incorrect peers

* Throwing custom error in case of version incompatibility
0.9.44
2021-04-27 17:08:18 +03:00
d84d9fd7ea Opt out defaults (#43)
* Change the wat the withDefaults() words. Now it is "disable default injections" instead of "enable default injections"
0.9.43
2021-04-21 19:56:19 +03:00
f9d7a1c875 Update AIR interpreter to 0.8.2 (#42) 0.9.42 2021-04-21 12:42:42 +03:00
8ddccd3c60 Fix zero to empty object conversion error (#40) 0.9.41 2021-04-20 14:19:08 +03:00
f14baeb618 Fix variable injection (#39) 0.9.40 2021-04-15 15:42:18 +03:00
de0516f305 fixes (#38)
* Fix error message when an incorrect service has been called.

* Fix return type of the handler in registerServiceFunction
0.9.39
2021-04-13 17:04:36 +03:00
480c8aa850 Allow ws transport (#37) 0.9.38 2021-04-13 15:11:52 +03:00
15e645c2d5 Fixes (#35)
* Fix assignment in `withInjectedVariables` 

* Pin all dependencies to exact version

* Remove unused deps
0.9.37
2021-04-08 13:55:33 +03:00
5355eeb152 Extract defaults (#34)
* Extracted default request flow builder behavior out of the constructor

* Remove init_peer_id variable, which stands in the way when building apps with aquamarine
0.9.36
2021-03-29 23:52:46 +03:00
0ff10a25de update aqua version (#33)
* Bump aquamarine version

* Add connection options
0.9.35
2021-03-25 21:33:27 +03:00
f732a30eb8 Swapped secio with noise (#32)
Update libp2p-related packages and switch from secio to noise
0.9.34
2021-03-10 15:56:12 +03:00
6013f623d4 Tidy up api (#31)
Tidy up api
0.9.33
2021-03-05 17:50:52 +03:00
783913043e fix relative paths in import statement (#30)
* Fix relative paths in import statement
* Fix types in builtins for better compatibility
0.9.32
2021-03-05 16:21:41 +03:00
88d534e4a5 Checking if the particle is sent not to the relay which the client is connected to. If not an error is thrown 0.9.31 2021-03-04 14:51:49 +03:00
89d42476a2 remove processing queue, merge ParticleProcessor logic into fluence client 2021-03-04 14:51:49 +03:00
b0ed007399 Particle lifecycle (#21)
Complete rethinking and refactoring of the codebase.

The codebase basically consists these 5 moving parts now: 

1. Fluence client (and the Particle processor which might be merged with the client) - This part is responsible for initiating Request flows, managing existing requests flows (it keeps the queue of received particles), pulling right strings on request flows to update their state etc
2. Fluence connection - This part is responsible for connecting to network, sending\receiving particles
3. RequestFlow - This is where the state of particle execution process is kept. It is basically a state storage with some control levers to update the state. Each request flow contains some particle lifecycle methods and the AquaCallHandler where all callback logic is kept
4. RequestFlowBuilder - This is where requests are prepared by the user (the developer of the client application) before they are ready to be sent into the network.
5. AquaCallHandler - This is how interpreter callbacks are handled. It is very similar to express.js app and is made of middlewares. Aqua handler is the unified api for both callbacks for our Request flows and non-ours (i.e services that are expected to be called be other peers). See `AquaHandler.ts` for details
0.9.30
2021-03-03 22:01:05 +03:00
77ca5502b2 set ttl to 0 0.9.29 2021-03-03 17:31:41 +03:00
052a8a7f24 Do not use DataView (#28) 0.9.28 2021-03-03 17:27:00 +03:00
c65c0afbee Xor (#24)
* Wrapping scripts with xor

* Add function subscribeForErrors to handle errors
0.9.26
2021-02-25 18:36:10 +03:00
619c8a6d6a Update builtins to new version (#27)
* Update builtins to new version

* Running integration tests in docker container
0.9.25
2021-02-25 15:33:37 +03:00
d65153e6de Update interpreter (#26)
* Update interpreter version
0.9.24
2021-02-24 14:51:24 +03:00
3eacf708e6 handle errors on local particle call (#25) 0.9.23 2021-02-24 14:43:21 +03:00
c10cd1942a Check if connection is available on creating a client (#23)
Check if connection is available on creating a client
0.9.22
2021-02-19 16:32:02 +03:00
78ed8ab46c delete trust-graph (#22) 0.9.21 2021-02-19 12:21:13 +03:00
416221ea17 Improve tests (#18)
Replaced mocha with jest. 
Test are split into unit and integration categories.
Dropped ESM dependency. Code is now being compiled into CJS
0.9.20
2021-02-14 00:35:02 +03:00
399166efe8 Exporting wrapper for loglevel (#20)
* Exporting wrapper for loglevel

* prettier
0.9.19
2021-02-13 16:13:00 +03:00
ceca3e5692 Add ttl argument to some "builtin" functions (#17) 0.9.18 2021-02-12 18:27:21 +03:00
2fb5ffeb06 improve test 0.9.17 2021-02-04 18:59:38 +03:00
7d5f1ed41d update aqua (#16) 0.9.16 2021-02-04 13:40:19 +03:00
481a44b819 Add remove scripts, fix builtins (#15) 0.9.15 2021-02-03 21:18:27 +03:00
e4d3f688ed Immediate -> timeout (#14) 0.9.10 2021-02-02 14:13:52 +03:00
4276ea7c2e Add logging for particle receive events (#13)
* Add logging for particle receive events

* Better log levels
0.9.6
2021-01-29 18:54:54 +03:00
041b3acd8c Fix docs (#12) 0.9.5 2021-01-29 16:57:41 +03:00
92980379bd Returned built-in Aquamarine calls, updated docs (#11) 0.9.4 2021-01-29 16:48:27 +03:00
b9d146c653 Hide non latest packages (#9)
* publishing branch packages with beta tag to hide it from being latest

* Update package version
0.9.0
2021-01-19 17:15:59 +03:00
ba537c79b3 Big refactoring (#8)
Big codebase refactoring. 

* Multiple clients are allowed on the same browser instance
* Particle queue processing is split from particle handling logic
* Public AIP is completely rethought
* Updated project file structure. Clean exports for public api methods
* Additional unit tests
2021-01-19 15:47:49 +03:00