Bump phoenix_live_view from 0.17.11 to 0.18.2
Bumps phoenix_live_view from 0.17.11 to 0.18.2.
Changelog
Sourced from phoenix_live_view's changelog.
0.18.2 (2022-10-04)
Bug Fixes
- Fix match error when defining
:values
before:default
- Allow tuples in external redirects
- Fix race condition on dispatching click away when enter is pressed
- Fix formatter breaking inline blocks when surrounded by text without whitespace
Enhancements
- Add
intersperse
component for rendering a separator between an enumerable0.18.1 (2022-09-28)
Bug Fixes
- Fix phx-loading class being applied to dead views
- Fix
<.live_img_preview />
causing invalid attribute errors on uploads- Do not fire phx events when element is disabled
Enhancements
- Support
:include
option to extend global attributes on a case-by-case basis- Warn when accessing a variable binding defined outside of
~H
0.18.0 (2022-09-20)
LiveView v0.18 includes a major new feature in the form of declarative assigns with new
attr
andslot
APIs for specifying which attributes a function component supports, the type, and default values. Attributes and slots are compile-time verified and emit warnings (requires Elixir v1.14.0+).v0.18 includes a number of new function components which replace their EEx expression counterparts
<%= ... %>
. For example,live_redirect
,live_patch
, and Phoenix.HTML'slink
have been replaced by a unifiedPhoenix.Component.link/1
function component:<.link href="https://myapp.com">my app</.link> <.link navigate={@path}>remount</.link> <.link patch={@path}>patch</.link>
Those new components live in the
Phoenix.Component
module.Phoenix.LiveView.Helpers
itself has been soft deprecated and all relevant functionality has been migrated. You mustimport Phoenix.Component
where you previously importedPhoenix.LiveView.Helpers
when upgrading. You may also need toimport Phoenix.Component
where you also importedPhoenix.LiveView
and some of its functions have been moved toPhoenix.Component
.Additionally, the special
let
attribute on function components have been deprecated by a:let
usage.Deprecations
live_redirect
- deprecate in favor of new<.link navigate={..}>
component ofPhoenix.Component
live_patch
- deprecate in favor of new<.link patch={..}>
component ofPhoenix.Component
push_redirect
- deprecate in favor of newpush_navigate
function onPhoenix.LiveView
Enhancements
... (truncated)
Commits
-
e9fc5fa
Release 0.18.2 -
d3e91b0
Allow tuples in external redirects, closes #2248 -
88fa120
Fix HEEx syntax -
2ec21f4
Only compute csrf mask if necessary -
7569a66
Formatter - Fix texts along with tag blocks w/ whitespaces (#2247) -
52206b7
Simply form method -
8fb5809
Bump build -
37a20e2
Fix race on dispatching click away -
8f3c9c8
Only pass method when not nil. Closes #2246 -
3470d3d
Fix documentation typos (#2245) - Additional commits viewable in compare view