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

Diff

Changelog

Source

0.18.6 (2023-01-09)

Bug Fixes

  • Fix external anchor click unloading on external click
chrismccord
published 0.18.5 •

Changelog

Source

0.18.5 (2023-01-09)

Bug Fixes

  • Fix external anchor click unloading socket
chrismccord
published 0.18.4 •

Changelog

Source

0.18.4 (2023-01-05)

Enhancements

  • Support string upload name to support dynamically generated allow_upload's

Bug Fixes

  • Fix nested LiveView race condition on live patch causing nested child to skip updates in some cases
  • Fix browser history showing incorrect title when using live navigation with @page_title
  • Fix undefined _target param when using JS.push for form changes
  • Fix phx-no-feedback missing from inputs added after a form submit
  • Fix phx-disconnected events firing when navigating away or submitting external forms
chrismccord
published 0.18.3 •

Changelog

Source

0.18.3 (2022-10-26)

Enhancements

  • Add embed_templates to Phoenix.Component for embedding template files as function components
  • Raise on global slot attributes

Bug Fixes

  • Fix bug on slots when passing multiple slot entries with mix if/for syntax
chrismccord
published 0.18.2 •

Changelog

Source

0.18.2 (2022-10-04)

Bug Fixes

  • Fix match error when defining :values before :default
  • Allow tuples in external redirects
  • Fix race condition on dispatching click away when enter is pressed
  • Fix formatter breaking inline blocks when surrounded by text without whitespace

Enhancements

  • Add intersperse component for rendering a separator between an enumerable
chrismccord
published 0.18.1 •

Changelog

Source

0.18.1 (2022-09-28)

Bug Fixes

  • Fix phx-loading class being applied to dead views
  • Fix <.live_img_preview /> causing invalid attribute errors on uploads
  • Do not fire phx events when element is disabled

Enhancements

  • Support :include option to extend global attributes on a case-by-case basis
  • Warn when accessing a variable binding defined outside of ~H
chrismccord
published 0.18.0 •

Changelog

Source

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. You may also need to import Phoenix.Component where you also imported Phoenix.LiveView and some of its functions have been moved to Phoenix.Component.

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.Component
  • live_patch - deprecate in favor of new <.link patch={..}> component of Phoenix.Component
  • 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 referral 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
chrismccord
published 0.17.12 •

Changelog

Source

0.17.12 (2022-09-20)

Enhancements

  • Add support for upcoming Phoenix 1.7 flash interface
chrismccord
published 0.17.11 •

Changelog

Source

0.17.11 (2022-07-11)

Enhancements

  • Add replaceTransport to LiveSocket

Bug fixes

  • Cancel debounced events from firing after a live navigation event
  • Fix hash anchor failing to scroll to anchor element on live navigation
  • Do not debounce phx-blur events
chrismccord
published 0.17.10 •

Changelog

Source

0.17.10 (2022-05-25)

Bug fixes

  • [Formatter] Preserve single quote delimiter on attrs
  • [Formatter] Do not format inline elements surrounded by texts without whitespaces
  • [Formatter] Keep text and eex along when there isn't a whitespace
  • [Formatter] Fix intentional line breaks after eex expressions
  • [Formatter] Handle self close tags as inline
  • [Formatter] Do not format inline elements without whitespaces among them
  • [Formatter] Do not format when attr contenteditable is present

Enhancements

  • [Formatter] Introduce special attr phx-no-format to skip formatting
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