vident-phlex 0.13.0 → 1.0.0.alpha1

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: 7d2eb7fd9d6cba8eb697bc9130549cad5d556319d4a6508028acd427cc201e00
4
- data.tar.gz: 579a7b1f85faa6b7b454250597af08c94c98bd4bee60d175cd519da73fe341cd
3
+ metadata.gz: 54ed2508614f1ef6b15cc46ca5b7367ce13b7b391da9c2f36fb6605fa273e20e
4
+ data.tar.gz: 7f0f214d642cfa83cf4b0ef14e46a5a5c77aadacaa3280abbd821f2eb5ec7c2d
5
5
  SHA512:
6
- metadata.gz: cc7d27b86eb3aa73eb473de3a8c3e3f1f71320decf095e1d32db52e94bbbe07b5116e9a7db56b2a658e15408d8398e01d5c30fe9a5516eb0c891bccfdebde5b6
7
- data.tar.gz: cc9ec485603603263de00081bccddf52f1770e200dc7434b7ed4eabb70cbf1383bf10e5a2fd2b732b6fd109755a17112e9272788a0442f73bc2d6e72c75d1c46
6
+ metadata.gz: 122bd2aefffeb7fa508c765a25166360c503762043f47e1e33609f479b1fd41f50b9e7ab0e3290ae60ba522919333c2ec8ec1f3eed121e1965c38f432239018f
7
+ data.tar.gz: 490063b45c857b3155b0bc8631daba6d499ea6feab88aa6e35abc5e3be61de1b68e24a40988735392981930ee452b07b040e47b5d2d07159401f4cf2e7f51fe8
data/CHANGELOG.md CHANGED
@@ -5,8 +5,38 @@ All notable changes to this project will be documented in this file.
5
5
  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
+ ## [1.0.0.alpha1] - 2025-07-04
8
9
 
9
- ## [Unreleased]
10
+ 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.
11
+
12
+ ### Breaking
13
+
14
+ Basically, everything.
15
+
16
+ - The `Vident::RootComponent` class has been removed, and the `Vident::Component` class is now the base class for all components.
17
+ - `Vident::Component` now uses `Literal::Properties` to define attributes, and the vident typed attributes modules have been removed.
18
+ - Parameters for stimulus attributes now are named with `stimulus_` prefix, eg `stimulus_controllers`
19
+ - Components now render their root element using the `root_element` method which does not need to be `render`ed.
20
+ `render root_element do` -> `root_element do`
21
+ - The data attribute string creation methods `with_` now only exist on ViewComponent components and have been renamed to
22
+ prefix with `as_` to avoid confusion with the ViewComponents slots API.
23
+ - 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`,
24
+ which can be used to generate the Stimulus data attributes. eg `data: {**stimulus_controllers('foo')}`
25
+
26
+ Also:
27
+
28
+ - Vident `view_component` components now required **version 4.0** or later.
29
+ - Vident `phlex` components now required **version 2.0** or later.
30
+ - The gems `vident-better_html` and `vident-typed-*` gems have been removed
31
+ - The gem `vident-tailwind` has been removed, and the `Vident::Tailwind` module is now part of the core `vident` gem.
32
+
33
+ ## [0.13.0] - 2024-04-07
34
+
35
+ ### Breaking
36
+
37
+ - `data_maps` has been renamed to `values` and support has been added for the Stimulus 2+ Values API.
38
+ - `root`/`parent_element` no longer takes options, to define attributes for it, you can use `root_element_attributes` or the view component helper `root_component_attributes`. This change means
39
+ that root elements can be instantiated outside of `render` which is useful if you refer to the instance in the components body block
10
40
 
11
41
  ### Added
12
42