phoenix_live_view
Advanced tools
Comparing version 0.15.1 to 0.15.2
# Changelog | ||
## 0.15.2 (2021-01-01) | ||
### Backwards incompatible changes | ||
- Remove `beforeDestroy` from phx-hook callbacks | ||
### Bug fixes | ||
- Fix form recovery failing to send input on first connection failure | ||
- Fix hooks not getting remounted after liveview reconnect | ||
- Fix hooks `reconnected` callback being fired with no prior disconnect | ||
## 0.15.1 (2020-12-20) | ||
@@ -4,0 +14,0 @@ |
{ | ||
"name": "phoenix_live_view", | ||
"version": "0.15.1", | ||
"version": "0.15.2", | ||
"description": "The Phoenix LiveView JavaScript client.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -15,2 +15,31 @@ # Phoenix LiveView | ||
## Features | ||
* Use a declarative model to render HTML on the server | ||
over WebSockets with optional LongPolling fallback | ||
* Smart templating and change tracking - after connected, | ||
LiveView sends only what changed to the client, skipping | ||
the template markup and reducing the payload | ||
* Live form validation with file upload support | ||
* A rich integration API with the client with `phx-click`, | ||
`phx-focus`, `phx-blur`, `phx-submit`, etc. `phx-hook` is | ||
included for the cases where you have to write JavaScript | ||
* Code reuse via components, which break templates, state, and | ||
event handling into reusable bits, which is essential in large | ||
applications | ||
* Live navigation to enrich links and redirects to only load the | ||
minimum amount of content as users navigate between pages | ||
* A latency simulator so you can emulate how slow clients will | ||
interact with your application | ||
* Testing tools that allow you to write a confident test suite | ||
without the complexity of running a whole browser alongside | ||
your tests | ||
## Official announcements | ||
@@ -26,8 +55,4 @@ | ||
See our existing comprehensive docs and examples to get up to speed: | ||
See our existing comprehensive [docs](https://hexdocs.pm/phoenix_live_view) and [guides](https://hexdocs.pm/phoenix_live_view/api-reference.html) for more information. | ||
* [Phoenix.LiveView docs for Elixir and JavaScript usage](https://hexdocs.pm/phoenix_live_view) | ||
* [Phoenix.LiveViewTest for testing docs](https://hexdocs.pm/phoenix_live_view/Phoenix.LiveViewTest.html) | ||
* [LiveView example repo](https://github.com/chrismccord/phoenix_live_view_example) with a handful of examples from Weather widgets, autocomplete search, and games like Snake or Pacman | ||
## Installation | ||
@@ -41,6 +66,2 @@ | ||
### Requirements | ||
Although LiveView supports Elixir 1.7, which is [compatible](https://hexdocs.pm/elixir/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp) with Erlang/OTP 19–22, [LiveView requires Erlang/OTP 21+](https://github.com/phoenixframework/phoenix_live_view/blob/7fbdcef6e46135fa111ea3fda29d5e91f9aa7b0e/lib/phoenix_live_view/application.ex#L11). | ||
## What makes LiveView unique? | ||
@@ -82,5 +103,6 @@ | ||
just connected? This is easily done without a single-line of | ||
custom JavaScript and with no extra external dependencies. | ||
custom JavaScript and with no extra external dependencies | ||
(no extra databases, no extra message queues, etc). | ||
* LiveView performs diff tracking: whenever you change a value on | ||
* LiveView performs change tracking: whenever you change a value on | ||
the server, LiveView will send to the client only the values that | ||
@@ -99,26 +121,2 @@ changed, drastically reducing the latency and the amount of data | ||
Finally, LiveView has been used by many developers and companies around | ||
the world, which helped us close the gaps in our feature set and make | ||
sure LiveView is ready for prime time. For example, you will find: | ||
* a latency simulator allows developers to simulate how their | ||
application behave under slow connections | ||
* `LiveComponent`s help developers compartmentalize their templates, | ||
state, and event handling into reusable bits, which is essential | ||
in large applications | ||
* Live navigation enriches links and redirects to only load the | ||
minimum amount of content as users navigate between pages | ||
* Fine-grained control for handling client events, DOM patching, | ||
rate limiting, and more | ||
* Testing tools that allow you to write a confident test suite | ||
without the complexity of running a whole browser alongside | ||
your tests | ||
In other words, LiveView provides a rich feature set for great | ||
developer and user experiences. | ||
## Browser Support | ||
@@ -125,0 +123,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
207401
2558
175