Comparing version 1.5.3 to 1.5.4
@@ -506,2 +506,12 @@ /** | ||
/** | ||
* Sends a message `event` to phoenix with the payload `payload`. | ||
* Phoenix receives this in the `handle_in(event, payload, socket)` | ||
* function. if phoenix replies or it times out (default 10000ms), | ||
* then optionally the reply can be received. | ||
* | ||
* @example | ||
* channel.push("event") | ||
* .receive("ok", payload => console.log("phoenix replied:", payload)) | ||
* .receive("error", err => console.log("phoenix errored", err)) | ||
* .receive("timeout", () => console.log("timed out pushing")) | ||
* @param {string} event | ||
@@ -534,3 +544,3 @@ * @param {Object} payload | ||
* | ||
* To receive leave acknowledgements, use the a `receive` | ||
* To receive leave acknowledgements, use the `receive` | ||
* hook to bind to the server ack, ie: | ||
@@ -537,0 +547,0 @@ * |
{ | ||
"name": "phoenix", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "The official JavaScript client for the Phoenix web framework.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -15,2 +15,13 @@ # Changelog for v1.5 | ||
### 1.5.4 (2020-07-21) | ||
### Enhancements | ||
* [Phoenix.Endpoint] Include `:conn` in `[:phoenix, :error_rendered]` event | ||
* [Phoenix.Endpoint] Warn if the `url.host` provided for the endpoint is invalid | ||
* [Phoenix.Router] Log when router plugs halt | ||
* Fix warnings on Elixir v1.11 | ||
### Bug fixes | ||
* [Phoenix.Router] Rename the `[:phoenix, :router_dispatch, :exception]` metadata from `:error` to `:reason` to match the documentation and the telemetry specification (`:error` is still emitted for compatibility but it will be fully removed on v1.6) | ||
## 1.5.3 (2020-05-21) | ||
@@ -17,0 +28,0 @@ |
{ | ||
"name": "phoenix", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "The official JavaScript client for the Phoenix web framework.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78477
1383