eyjs 6.0.0

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.
package/changelog.md ADDED
@@ -0,0 +1,133 @@
1
+ # Changelog
2
+
3
+ ## [6.0.0] - 2025-07-30
4
+
5
+ ### Changed
6
+
7
+ - Library name changed to `eyjs`
8
+ - main function name changed to `e` instead of `eye`
9
+ - `after` `before` function now accepts both HTMLElement & EyeElement
10
+
11
+ ### Added
12
+
13
+ - new `childlen` attribute to get children length
14
+ - new `rAttr` function to remove attribute of an element
15
+ - new `client` function to access client attributes such as "clientWidth" "clientLeft" ..
16
+ - `.append` now also accepts new possible `pos` options `first`|`afterbegin` `last`|`beforeend`
17
+
18
+ ### Fixed
19
+
20
+ - fixed error when using `.animate` function
21
+
22
+ ## [5.0.0] - 2025-07-21
23
+
24
+ ### Changed
25
+
26
+ - library now uses ES6 class definition.
27
+ - `.find` function `multiple` parameter is removed, also it return an HTMLElement instead of EyeElement, and an array if many selectors were found.
28
+ - cloning a new model will return EyeElement instead of HTMLDivElement.
29
+
30
+ ## [4.0.4] - 2025-07-18
31
+
32
+ ### Changed
33
+
34
+ - the libarary behavior changed now, instead of created element by directly puting them as `eye("div")`, now you do `eye("<div>")` instead for all elements ofc.
35
+ - library now uses ES6.
36
+ - `.animate` function now can return a direct animation object if selection is single.
37
+
38
+ ## [3.4.1] - 2025-07-16
39
+
40
+ ### Changed
41
+
42
+ - `.pointer` function only effect the first element of a collection
43
+ - better commentation and params definition
44
+
45
+ ## [3.4.0] - 2025-07-16
46
+
47
+ ### Added
48
+
49
+ - new `.after` function
50
+ - new `.before` function
51
+ - new `.animate` function
52
+
53
+ ## [3.3.4] - 2025-07-11
54
+
55
+ ### Fixed
56
+
57
+ - error when using `.data`, fixed!
58
+
59
+ ## [3.3.2] - 2025-07-10
60
+
61
+ ### Fixed
62
+
63
+ - fixed `.html` `.text` and `.val` to accept empty strings two!
64
+
65
+ ## [3.3.0] - 2025-07-009
66
+
67
+ ### Added
68
+
69
+ - new `.redefine` function that redefine how to set/get or use `.text` and `.val` in general
70
+
71
+ ### Fixed
72
+
73
+ - Accessing children length is now possible using empty/parameterless call of `.child`
74
+
75
+ ## [3.2.0] - 2025-07-08
76
+
77
+ ### Added
78
+
79
+ - new `.serialize` function for form elements, check out [READM.md](./readme.md) for tutorial
80
+
81
+ ### Fixed
82
+
83
+ - PROBLEM: `.append` function not accepting EyeElement as parameter(only accept pure HTMLElements), now accepts both.
84
+ - PROBLEM: `.replaceWith` also accepts HTMLElements only, fixed to accept Eye elements too.
85
+ - PROBLEM: `.is` only accepts HTMLElement, fixed to accept EyeElement too.
86
+
87
+ ## [3.1.1] - 2025-07-07
88
+
89
+ ### Added
90
+
91
+ - function `val` added for supporting inputs manipulation
92
+ - function `child` added for child selection
93
+
94
+ ### Fixed
95
+
96
+ - function `css` now accept empty string value to remove style!
97
+
98
+ ## [3.0.1] - 2025-07-04
99
+
100
+ ### Added
101
+
102
+ - new `.append` function with flexible `pos` to expand wide range of opportunities
103
+ - new `.replaceWith` function
104
+ - new `.parent` set/get function
105
+ - new `.is` to compare nodes with flexible `check`
106
+ - new `.each` to run multi selected elements
107
+ - new `.off` function to remove event listeners
108
+ - new `.trigger` function to ease controlling events
109
+ - new `.find` function to find sub elements with `multiple` wild card parameter
110
+ - new `.clone` function to clone current node
111
+ - new `.compute` function to get element computed style declaration or DOMRect box
112
+ - new `.pointer` function to unleash the PointerLock API and pointerCapture features
113
+
114
+ ### Changed
115
+
116
+ - a better modern core wrapper.
117
+ - library now support processing multiple selection at once.
118
+ - `.on` function now support targeted callbacks for event delegation.
119
+ - `.data` function no more use dataset, rather it uses RAM.
120
+ - `.attr` support setting to dataset using data-...
121
+ - main function `eye` now support multi selection with [optional] "!" at the end of the selector to perform first occurence only.
122
+
123
+ ## [2.1.1] - 2025-07-01
124
+
125
+ **Breaking News!**
126
+
127
+ we've added a new feature in our little library!
128
+
129
+ ### Added
130
+
131
+ - introducing a new feature `model`, where you can create models and use them multiple times around your code, without having to create the whole shit over and over, similar to react components but with less muli-files headache(check out readme.md to more tutorial of how to use).
132
+
133
+ - `class` attribute now can accept a string concatenation of classes beside an array of them, so instead of `eye("div",{ class: ["class1","class2"]})` you can do `eye("div",{ class: "class1 class2" })`.