Bump phlex from 1.9.1 to 1.10.2 in /gem
Bumps phlex from 1.9.1 to 1.10.2.
Release notes
Sourced from phlex's releases.
1.10.2
Includes security fixes for https://github.com/phlex-ruby/phlex/security/advisories/GHSA-9p57-h987-4vgx
1.10.1
Includes important security fixes https://github.com/phlex-ruby/phlex/security/advisories/GHSA-g7xq-xv8c-h98c
1.10.0
Highlights
[Experimental] Selective Rendering
When rendering
Phlex::HTMLorPhlex::SVGcomponents, you can now pass a list of ids to be rendered and Phlex will skip past everything else.This is incredibly useful for Turbo/HTMX-style “HTML-Over-The-Wire” responses. It allows you to render just the parts you need so you don’t need to set up special endpoints for those fragments.
This feature will become more useful in 2.0, which will ship with an optional frontend package, Phlex.js, an alternative to Turbo as well as Morphlex, our DOM morphing library, an alternative to Idiomorph.
To use selective rendering, pass an array of IDs as the
fragments:keyword argument when callingcall.[Experimental] Component Kits (limited to Ruby 3.2 and up)
Kits allow you to render components in your templates without using the
rendermethod or calling.new.For this to work, the components need to be in a “Kit”. A Kit is a special Ruby module that contains components. In your app, you might just call this module
Components. But you could call it anything and UI kits can ship gems with Phlex Kits in them. The module should extendPhlex::Kitlike this:module Components extend Phlex::Kit endNow you can define a component in that Kit like this:
class Components::Card < Phlex::HTML def initialize(title) @title = title enddef view_template(&) article(class: "card") { h1(class: "card-title") {
@title} yield } end endWhen this component class is defined, a method will automatically be defined on the containing kit (
Components) with the same name as the component, in this case, the methodCardwill be defined onComponents.
... (truncated)
Changelog
Sourced from phlex's changelog.
Changelog
All notable changes to this project will be documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[1.10.0] 2024-04-05
- [Added] new
Phlex::CSVclass for streaming CSV views- [Added] new (experimental)
Phlex::Kitfor collections of components- [Added] support for selective rendering
- [Changed]
mixdoes a better job when mixing different types of attributes- [Changed] Phlex will now try to call
to_son attribute values- [Changed] No runtime dependencies
- [Deprecated]
Phlex::HTML#param, (<param>) tags have been deprecated- [Deprecated] Defining the
templatemethod is now deprecated. You should defineview_templateinstead. In Phlex 2.0, thetemplatemethod will render a\<template>tag.
Commits
7052ee81.10.261c03031.10.1941eacfRestoremixfunctionality when the mixed values are nil (#705)215dec3Hot fixb5d58b1Selective capture blocks (#702)544b32dUpdate CHANGELOG.md3a44739Test custom object method call precedence (#700)45b105eTest await and flush (#697)a68bb2dUpdate sgml.rb54226c6improve warnings- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.