Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

phoenix_live_view

Package Overview
Dependencies
Maintainers
2
Versions
115
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.19.5

Diff

Changelog

Source

0.19.5 (2023-07-19)

Backwards incompatible changes

  • The close/1 callback of Phoenix.LiveView.UploadWriter is now close/2 with the close reason passed as the second argument.
  • The write_chunk callback of Phoenix.LiveView.UploadWriter must now return the updated writer state when an error occurs. Instead of {:error, reason}, return {:error, reason, new_state}.

Enhancements

  • Pass close reason to Phoenix.LiveView.UploadWriter close.
  • Dispatch phx:navigate window events when LiveView changes the history state

Bug fixes

  • Call Phoenix.LiveView.UploadWriter close callback when LiveView goes down or connection is lost
  • Fix JS.patch to a Phoenix router scope with :host causing errors
  • Fix immediate navigation after patch not updating URL
  • Fix stream reset on nested streams inside live components causing nested stream children to be removed
chrismccord
published 0.19.4 •

Changelog

Source

0.19.4 (2023-07-10)

Enhancements

  • Introduce Phoenix.LiveView.UploadWriter
chrismccord
published 0.19.3 •

Changelog

Source

0.19.3 (2023-06-21)

Bug fixes

  • Fix push_event inside component update not being sent in some cases
  • Bring back accidentally deprecated upload_errors/1
chrismccord
published 0.19.2 •

Changelog

Source

0.19.2 (2023-06-12)

Bug fixes

  • Fix issue when <input name="value" /> is used
chrismccord
published 0.19.1 •

Changelog

Source

0.19.1 (2023-06-06)

Enhancements

  • Allow accept attribute on <.live_file_input> to override default values

Bug fixes

  • Fix issue causing anchor clicks to disconnect LV when they were already handled via preventDefault() by other scripts
chrismccord
published 0.19.0 •

Changelog

Source

0.19.0 (2023-05-29)

Backwards incompatible changes

  • Drop support for passing an id to the phx-feedback-for attribute. An input name must be passed instead.
  • Remove previously deprecated let attribute. Use :let instead
  • Remove previously deprecated <%= live_img_preview(entry) %>. Use <.live_img_preview entry={entry} /> instead
  • Remove previously deprecated <%= live_file_input(upload) %>. Use <.live_file_input upload={upload} /> instead
  • Remove previously deprecated <%= live_component(Component) %>. Use <.live_component module={Component} id=\"hello\" /> instead
  • Don't convert underscores to dashes automatically when rendering HTML attributes. Use dashes or underscores where appropriate instead.

Enhancements

  • Support stream resets with bulk insert operations
  • Support ordered inputs within inputs_for, to pair with Ecto's new sort_param and drop_param casting
  • Send form phx-value's on form events

Deprecations

  • Deprecate passing :dom_id to stream/4 in favor of stream_configure/3
  • Deprecate render_block/2 in favor of render_slot/2
  • Deprecate <%= live_img_preview(entry, opts) %>. Use <.live_img_preview entry={entry} {opts} />
  • Deprecate <%= live_file_input(upload, opts) %>. Use <.live_file_input upload={upload} {opts} />
  • Deprecate stateless LiveComponent in favor of function components or in favor of <.live_component id={...} /> (note the id is required)

Bug fixes

  • Fix LiveView disconnects when clicking a download link
  • Fix stream deletes not being sent on nested for comprehensions
  • Fix phx-disconnected bindings not firing on mount failures
  • Support form recovery on forms with only hidden inputs
chrismccord
published 0.18.18 •

Changelog

Source

0.18.18 (2023-03-16)

Bug fixes

  • Allow :live_action to be assigned in a component
  • Only filter internal function component attributes in assigns_to_attributes
  • Only include submitter with name

Enhancements

  • Add JS.exec command for executing commands defined on other element attributes
chrismccord
published 0.18.17 •

Changelog

Source

0.18.17 (2023-03-09)

Bug Fixes

  • Fix callbacks like handle_info failing to be invoked in development after a code change with the Phoenix code reloader

Enhancements

  • Support submitter on form submit events.
  • Avoid compile-time dependency for attr when referencing structs
  • Validate reserved assigns. Attempting to assign :uploads, :streams, :live_action, :socket, :myself will now raise in LiveView and LiveComponent
chrismccord
published 0.18.16 •

Changelog

Source

0.18.16 (2023-02-23)

Enhancements

  • Support streams in Live Components
  • Optimize plug error translation when a Plug.Exception is raised over connected LiveView

Bug Fixes

  • Fix formatter issues when there are multiple HTML comments
chrismccord
published 0.18.15 •

Changelog

Source

0.18.15 (2023-02-16)

Bug Fixes

  • Fix JS.transition applying incorrect classes

Enhancements

  • Reset phx-feedback-for errors on type="reset" inputs and buttons
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