vident-phlex 0.13.1 → 1.0.0.alpha2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4dc779e8e9af309227688c4b2d575c316105d1aa20f1b42fdf2eb2ee475fda53
4
- data.tar.gz: 1efba9e7cb073dd4524e4af42e18a59017fd9b798287ce23d8e7f6a0c17906fb
3
+ metadata.gz: cc97ececf338ced9e9cd73a395c80c804e0ea529b34afa31db131005d7b7fcf9
4
+ data.tar.gz: 6b40bb7b3618a0fdec455291107d0ef5d5ea62c44d1c12234a1b7f3d843fac82
5
5
  SHA512:
6
- metadata.gz: c168c00d8b8e82e74bfabdae026641059a11bc7e92b3726388cca6bcf0356f24a5426e1f095e5d71941e89f1a794a81732e91aa321bf0298593a73a9bbd0dedf
7
- data.tar.gz: d8adcea13c91ba2d185515df917ce10a2833a1fb1ab32237e073eb01aabc52732ad496ae31015637ff0fb2a18fc6bdf1a7fb4d4330572fe906b1ca4d7bb4fd33
6
+ metadata.gz: f3085a8b4c11321ba8ebf8130cbea930acfc4f49bfe4fa71f9bce52b88b2c62f3b0774c10349e88f7bb9d9729398b08fe49f6561a31da470ff1ec22b81e5b764
7
+ data.tar.gz: 9cea997b9f59aaf9abc40c812cce5b8f985b5dbe0a79fd56d36eb5cb4056b582ce1d635b6a88a316a5cc288ca3f5d126d4ae8fae8dc65bef43932255f37aa8fd
data/CHANGELOG.md CHANGED
@@ -6,6 +6,40 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
8
 
9
+ ## [1.0.0.alpha2] - 2025-07-08
10
+
11
+ ### Breaking
12
+ - `nil` values in Stimulus values are ok, but `nil` for an action/target/outlet makes no sense so is ignored.
13
+
14
+ ### Fixed
15
+
16
+ - `stimulus_scoped_event` must return a Symbol to work with `stimulus_action` and `stimulus_target` methods etc.
17
+
18
+ ## [1.0.0.alpha1] - 2025-07-08
19
+
20
+ This release is a major overhaul of the Vident library, and introduces a new API for defining components and Stimulus attributes. The new API is designed to be more consistent and easier to use.
21
+
22
+ ### Breaking
23
+
24
+ Basically, everything.
25
+
26
+ - The `Vident::RootComponent` class has been removed, and the `Vident::Component` class is now the base class for all components.
27
+ - `Vident::Component` now uses `Literal::Properties` to define attributes, and the vident typed attributes modules have been removed.
28
+ - Parameters for stimulus attributes now are named with `stimulus_` prefix, eg `stimulus_controllers`
29
+ - Components now render their root element using the `root_element` method which does not need to be `render`ed.
30
+ `render root_element do` -> `root_element do`
31
+ - The data attribute string creation methods `with_` now only exist on ViewComponent components and have been renamed to
32
+ prefix with `as_` to avoid confusion with the ViewComponents slots API.
33
+ - The methods used to define Stimulus attributes have been changed, and now provides a more consistent API for defining Stimulus attributes across all components. They also return instances of classes such as `StimulusAction` or `StimulusActionCollection`,
34
+ which can be used to generate the Stimulus data attributes. eg `data: {**stimulus_controllers('foo')}`
35
+
36
+ Also:
37
+
38
+ - Vident `view_component` components now required **version 4.0** or later.
39
+ - Vident `phlex` components now required **version 2.0** or later.
40
+ - The gems `vident-better_html` and `vident-typed-*` gems have been removed
41
+ - The gem `vident-tailwind` has been removed, and the `Vident::Tailwind` module is now part of the core `vident` gem.
42
+
9
43
  ## [0.13.0] - 2024-04-07
10
44
 
11
45
  ### Breaking