Alpha 3
Pre-release
Pre-release
Release notes:
- Rename the
debug
config tolog
:
alloy("configure", { ... log: true ... });
- Pass an
alloy_log
query parameter in the URL to enable logging:
https://www.example.com?alloy_log=true
- Return the
request & response bodies
in theevent
command:
alloy("event", {...}).then( ({ requestBody, responseBody ? }) => {...} );
- Log
Sending request / Receiving response
in the console if logging is enabled:
[alloy] Sending network request: {events: Array(1), meta: {…}, identityMap: {…}}
...
[alloy] Received network response: {handle: Array(3), requestId: "6bb9cf07220a"}
-
If the
configure
call fails, don’t show any more errors until it's fixed. -
Support
Beacon
calls when possible:
https://developer.mozilla.org/en-US/docs/Web/API/Beacon_API/Using_the_Beacon_API
"The Beacon interface schedules an asynchronous and non-blocking request to a web server."