New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

phoenix_live_view

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phoenix_live_view - npm Package Versions

1
12

0.17.9

Diff

Changelog

Source

0.17.9 (2022-04-07)

Bug fixes

  • Fix sticky LiveViews failing to be patched during live navigation
  • Do not raise on dynamic phx-update value
chrismccord
published 0.17.8 •

Changelog

Source

0.17.8 (2022-04-06)

Enhancements

  • Add HEEx formatter
  • Support phx-change on individual inputs
  • Dispatch MouseEvent on client
  • Add :bubbles option to JS.dispatch to control event bubbling
  • Expose underlying liveSocket instance on hooks
  • Enable client debug by default on localhost

Bug fixes

  • Fix hook and sticky LiveView issues caused by back-to-back live redirects from mount
  • Fix hook destroyed callback failing to be invoked for children of phx-remove in some cases
  • Do not failsafe reload the page on push timeout if disconnected
  • Do not bubble navigation click events to regular phx-click's
  • No longer generate csrf_token for forms without action, reducing the payload during phx-change/phx-submit events
chrismccord
published 0.17.7 •

Changelog

Source

0.17.7 (2022-02-07)

Enhancements

  • Optimize nested for comprehension diffs

Bug fixes

  • Fix error when live_redirect links are clicked when not connected in certain cases
chrismccord
published 0.17.6 •

Changelog

Source

0.17.6 (2022-01-18)

Enhancements

  • Add JS.set_attribute and JS.remove_attribute
  • Add sticky: true option to live_render to maintain a nested child on across live redirects
  • Dispatch phx:show-start, phx:show-end, phx:hide-start and phx:hide-end on JS.show|hide|toggle
  • Add get_connect_info/2 that also works on disconnected render
  • Add LiveSocket constructor options for configuration failsafe behavior via new maxReloads, reloadJitterMin, reloadJitterMax, failsafeJitter options

Bug fixes

  • Show form errors after submit even when no changes occur on server
  • Fix phx-disable-with failing to disable elements outside of forms
  • Fix phx ref tracking leaving elements in awaiting state when targeting an external LiveView
  • Fix diff on response failing to await for active transitions in certain cases
  • Fix phx-click-away not respecting phx-target
  • Fix "disconnect" broadcast failing to failsafe refresh the page
  • Fix JS.push with :target failing to send to correct component in certain cases

Deprecations

  • Deprecate Phoenix.LiveView.get_connect_info/1 in favor of get_connect_info/2
  • Deprecate Phoenix.LiveViewTest.put_connect_info/2 in favor of calling the relevant functions in Plug.Conn
  • Deprecate returning "raw" values from upload callbacks on Phoenix.LiveView.consume_uploaded_entry/3 and Phoenix.LiveView.consume_uploaded_entries/3. The callback must return either {:ok, value} or {:postpone, value}. Returning any other value will emit a warning.
chrismccord
published 0.17.5 •

Changelog

Source

0.17.5 (2021-11-02)

Bug fixes

  • Do not trigger phx-click-away if element is not visible
  • Fix phx-remove failing to tear down nested live children
chrismccord
published 0.17.4 •

Changelog

Source

0.17.4 (2021-11-01)

Bug fixes

  • Fix variable scoping issues causing various content block or duplication rendering bugs
chrismccord
published 0.17.3 •

Changelog

Source

0.17.3 (2021-10-28)

Enhancements

  • Support 3-tuple for JS class transitions to support staged animations where a transition class is applied with a starting and ending class
  • Allow JS commands to be executed on DOM nodes outside of the LiveView container

Optimization

  • Avoid duplicate statics inside comprehension. In previous versions, comprehensions were able to avoid duplication only in the content of their root. Now we recursively traverse all comprehension nodes and send the static only once for the whole comprehension. This should massively reduce the cost of sending comprehensions over the wire

Bug fixes

  • Fix HTML engine bug causing expressions to be duplicated or not rendered correctly
  • Fix HTML engine bug causing slots to not be re-rendered when they should have
  • Fix form recovery being sent to wrong target
chrismccord
published 0.17.2 •

Changelog

Source

0.17.2 (2021-10-22)

Bug fixes

  • Fix HTML engine bug causing attribute expressions to be incorrectly evaluated in certain cases
  • Fix show/hide/toggle custom display not being restored
  • Fix default to target for JS.show|hide|dispatch
  • Fix form input targeting
chrismccord
published 0.17.1 •

Changelog

Source

0.17.1 (2021-10-21)

Bug fixes

  • Fix SVG element support for phx binding interactions
chrismccord
published 0.17.0 •

Changelog

Source

0.17.0 (2021-10-21)

Breaking Changes

on_mount changes

The hook API introduced in LiveView 0.16 has been improved based on feedback. LiveView 0.17 removes the custom module-function callbacks for the Phoenix.LiveView.on_mount/1 macro and the :on_mount option for Phoenix.LiveView.Router.live_session/3 in favor of supporting a custom argument. For clarity, the module function to be invoked during the mount lifecycle stage will always be named on_mount/4.

For example, if you had invoked on_mount/1 like so:

on_mount MyAppWeb.MyHook
on_mount {MyAppWeb.MyHook, :assign_current_user}

and defined your callbacks as:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc