midarr-server
midarr-server copied to clipboard
build(deps): bump phoenix_live_view from 0.17.11 to 0.18.0
Bumps phoenix_live_view from 0.17.11 to 0.18.0.
Changelog
Sourced from phoenix_live_view's changelog.
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.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.LiveView.Helpers
live_patch
- deprecate in favor of new<.link patch={..}>
component ofPhoenix.LiveView.Helpers
push_redirect
- deprecate in favor of newpush_navigate
function onPhoenix.LiveView
Enhancements
- [Component] Add declarative assigns with compile-time verifications and warnings via
attr
/slot
- [Component] Add new attrs
:let
and:for
, and:if
with HTML tag, function component, and slot support. We still supportlet
but the formatter will convert it to:let
and soon it will be deprecated.- [Component] Add
dynamic_tag
function component- [Component] Add
link
function component- [Component] Add
focus_wrap
function component to wrap focus around content like modals and dialogs for accessibility- [Logger] Add new LiveView logger with telemetry instrumentation for lifecycle events
- [JS] Add new JS commands for
focus
,focus_first
,push_focus
, andpop_focus
for accessibility- [Socket] Support sharing
Phoenix.LiveView.Socket
with regular channels viause Phoenix.LiveView.Socket
- Add
_live_referer
connect param for handlingpush_navigate
referal URL- Add new
phx-connected
andphx-disconnected
bindings for reacting to lifecycle changes- Add dead view support for JS commands
- Add dead view support for hooks
Bug fixes
- Fix external upload issue where listeners are not cleaned up when an external failure happens on the client
- Do not debounce
phx-blur
Commits
c3917e3
Release 0.18.002f6687
Support:examples
and:values
for declarative attributes (#2198)6d4bbc7
Use the correct data attribute for auto upload onlive_file_input/1
(#2201)32ae124
Remove at ray comma from code example (#2200)c3b753d
Prep for 1.77230566
Handle phoenix flash changes and fix link navigation + phx-click JS command e...7ffe5a7
Fix lv:clear-flash tests on components (#1967)2a01e2d
improve error reporting (#2130)7d36e47
Feature Request: AddPhoenix.LiveView.JS
@type
(#2011)25d5127
Only forms withid
attribute are recovered (#2101)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)