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.20.0

Diff

Changelog

Source

0.20.0 (2023-09-22)

Deprecations

  • Deprecate the ~L sigil in favor of ~H
  • Deprecate preload/1 in LiveComponent in favor of update_many/1
  • Deprecate live_component/2-3 in favor of <.live_component />
  • Deprecate live_patch in favor of <.link patch={...} />
  • Deprecate live_redirect in favor of <.link navigate={...} />
  • Deprecate live_title_tag in favor of <.live_title />

Backwards incompatible changes

  • Remove previously deprecated render_block/2 in favor of render_slot/2
  • Remove previously deprecated live_img_preview/2 in favor of <.live_img_preview />
  • Remove previously deprecated live_file_input/2 in favor of <.live_file_input />

Bug fixes

  • Fix uploads with auto_upload: true failing to propagate errors when any individual entry is invalid
  • Fix uploads with auto_upload: true failing to auto upload valid entries errors when any individual entry is invalid
  • Fix error on form recovery with auto_upload: true
  • Fix issue on form recovery where hidden inputs would be selected by mistake
  • Fix form recovery when phx-change is a JS command
  • Fix stream reset on nested live components with nested streams
  • Fix window location resetting to null when using nested LiveView on connection error
  • Fix anchors within contenteditable causing LiveSocket disconnects

Enhancements

  • Add heex debug annotations via config :phoenix_live_view, debug_heex_annotations: true, which provides special HTML comments that wrap around rendered components to help you identify where markup in your HTML document is rendered within your function component tree
  • Add assign_async, start_async, <.async_result> and, AsyncResult for declaratively handling async operations in a LiveView or LiveComponent.
  • Supporting passing @myself for Phoenix.LiveView.send_update/3
  • Support change tracking on Access.get
  • Allow overriding id of <.live_img_preview>
chrismccord
published 0.19.5 •

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
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