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

Diff

Changelog

Source

0.20.9 (2024-02-19)

Bug fixes

  • Fix error in LiveViewTest when a phx-update="ignore" container is added dynamically to the DOM
chrismccord
published 0.20.8 •

Changelog

Source

0.20.8 (2024-02-19)

Bug fixes

  • Fix live uploader issue when a form contained more than one <.live_file_input>
  • Fix phx-remove on re-added stream items trigging the remove when it should not
  • Fix js error attempting to re-order an element that does not exist in the DOM

Enhancements

  • Align LiveViewTest with JavaScript DOM patching behavior for phx-update="ignore" when updating attributes in LiveViewTest
chrismccord
published 0.20.7 •

Changelog

Source

0.20.7 (2024-02-15)

Bug fixes

  • Fix phx-skip containers leaking into DOM on first patch in some cases (#3117)
  • Fix phx-feedback-for failing to be properly updated in some cases (#3122)
chrismccord
published 0.20.6 •

Changelog

Source

0.20.6 (2024-02-14)

Bug fixes

  • Fix stream items being excluded in LiveViewTest
  • Fix stream items failing to properly update nested streams or LiveComponents
  • Fix debounce/blur regression causing unexpected events to be sent
chrismccord
published 0.20.5 •

Changelog

Source

0.20.5 (2024-02-08)

Deprecations

  • Deprecate phx-feedback-group introduced in the previous release, the goal is to move feedback handling into Elixir and out of the DOM

Bug fixes

  • Fix blur event on phx-debounce being dispatched incorrectly
  • Fix open_browser not working on WSL for project under UNIX file systems
  • Match browser stream insert ordering behavior in LiveViewTest
  • Fix phx-click-away not working when element is partially hidden
  • Fix phx-feedback-for classes not being applied in some cases
  • Fix form submitter failing to be sent as key/value pair in some cases
  • Fix null form reference causing errors on some DOM patches
chrismccord
published 0.20.4 •

Changelog

Source

0.20.4 (2024-02-01)

Bug fixes

  • Fix phx-remove on sticky LiveViews
  • Fix phx-disabled-with not restoring button disabled state on empty diff acknowledgement
  • Fix stream reset not ordering items correctly
  • Send {:shutdown, :cancel} to handle_async/3 on cancel_async
  • Prevent events from child LiveViews from bubbling up to root LiveView when child is not mounted yet
  • Fix phx-mounted being called twice for stream items
  • Never move existing stream items if they already exist (use stream_delete and then stream_insert instead)
  • Fix live component rendering breaking when the server adds a component back that was pruned by the client (#3026)
  • Allow redirect from upload progress callback
  • Fix nested components getting skipped when resetting a stream
  • Fix nested components getting skipped in LiveComponents
  • Fix stream limits not being applied correctly when bulk inserting
  • Fix click-away being called incorrectly on form submits
  • Fix inconsistencies between LiveViewTest and browser stream implementations
  • Fix phx-feedback-for being reapplied when there are multiple inputs with the same name
  • Ensure phx-update="ignore" behaves consistently: updates from the server to the element's content and attributes are ignored, except for data attributes

Enhancements

  • Add JS.toggle_class
  • Add JS.toggle_attribute
  • Force update select options when the options changed from the server while a select has focus
  • Introduce phx-feedback-group for handling feedback for composite input groups
  • Add validate_attrs to slots
  • Support phx-viewport bindings in scrollable containers
  • Perform client redirect when trying to live nav from dead client to avoid extra round trip
  • Allow regular buttons with name/value attributes to send form events and adjusted dynamic form documentation to reflect this
  • Allow form attribute on live_file_input

Removal of previously deprecated functionality

  • live_component/2 and live_component/3 helpers (not the function component) have been removed
chrismccord
published 0.20.3 •

Changelog

Source

0.20.3 (2024-01-02)

Bug fixes

  • Fix phx-viewport bindings failing to fire after navigation
  • Preserve order of appended items in stream in LiveViewTest
  • Fix order of items on client when resetting a stream to existing set of items

Enhancements

  • Support JS.push from dead views
chrismccord
published 0.20.2 •

Changelog

Source

0.20.2 (2023-12-18)

Bug fixes

  • Fix JavaScript error when submitting a form that has in progress uploads
  • Fix JS command :target failing to work when used as phx-submit or phx-change with a selector-based target
  • Fix JS.focus() failing to focus negative tabindex
  • Fix LiveViewTest failing to remove items after stream reset
  • Fix phx-window-blur and phx-window-focus events not firing
  • Fix SVG anchor links throwing errors when clicked

Enhancements

  • Speed up DOM patching performance 3-30x 🔥
  • Support handle_async lifecycle callback
  • Extend visibility checks for phx-click-away to better handle whether an element is visible in the viewport or not
  • Allow JS.patch and JS.navigate to be tested with render_click
  • Support :supervisor option to assign_async and start_async

Deprecations

  • Deprecate phx-update="append" and phx-update="prepend" in favor of phx-update="stream"
chrismccord
published 0.20.1 •

Changelog

Source

0.20.1 (2023-10-09)

Bug fixes

  • Fix error with live uploads auto_upload: true when a file fails to preflight
  • Fix error with live uploads where an early exit can cause a map key error
  • Fix match error on live navigation when reconnecting from client

Enhancements

  • Support new meta() method on File/Blob subclasses on JavaScript client to allow the client to pass arbitrary metadata when using upload/uploadTo from hook. The %UploadEntry{}'s new client_meta field is populated from this information.
  • Improve void tagging and error messages
chrismccord
published 0.20.0 •

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