dwyl / phoenix-ecto-encryption-example

🔐 A detailed example for how to encrypt data in an Elixir (Phoenix v1.7) App before inserting into a database using Ecto Types
274 stars 20 forks source link

Bump phoenix_live_view from 0.17.11 to 0.18.0 #64

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

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 and slot 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's link have been replaced by a unified Phoenix.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 must import Phoenix.Component where you previously imported Phoenix.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 of Phoenix.LiveView.Helpers
  • live_patch - deprecate in favor of new <.link patch={..}> component of Phoenix.LiveView.Helpers
  • push_redirect - deprecate in favor of new push_navigate function on Phoenix.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 support let 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, and pop_focus for accessibility
  • [Socket] Support sharing Phoenix.LiveView.Socket with regular channels via use Phoenix.LiveView.Socket
  • Add _live_referer connect param for handling push_navigate referal URL
  • Add new phx-connected and phx-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.0
  • 02f6687 Support :examples and :values for declarative attributes (#2198)
  • 6d4bbc7 Use the correct data attribute for auto upload on live_file_input/1 (#2201)
  • 32ae124 Remove at ray comma from code example (#2200)
  • c3b753d Prep for 1.7
  • 7230566 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: Add Phoenix.LiveView.JS @type (#2011)
  • 25d5127 Only forms with id attribute are recovered (#2101)
  • Additional commits viewable in compare view


Dependabot compatibility score

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)
codecov[bot] commented 2 years ago

Codecov Report

Merging #64 (c393b65) into main (0826edd) will not change coverage. The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #64   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        11           
  Lines           65        65           
=========================================
  Hits            65        65           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more