eyjs 8.0.1 → 8.1.1

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 CHANGED
@@ -1,193 +1,260 @@
1
- # Changelog
2
-
3
- ## [8.0.1] - 2025-12-02
4
- ### Added
5
- - separate `.delegate` method that perform event delegation specific events handling
6
- - new `.once` method to add single-time-executable events!
7
-
8
- ### Changed
9
- - `.on` third parameter now accepts handler properties now!
10
-
11
- ## [7.3.0] - 2025-11-18
12
- ### Added
13
- - introducing `.has` a cheap check for certain elements
14
-
15
- ### Fixed
16
- - Docs are enhanced for some methods
17
- - Anti `null` procedure to avoids extra errors
18
-
19
- ## [7.2.6] - 2025-11-16
20
- ### Added
21
- - `.trigger` now accepts either event name or actual Event Object!
22
- - `.getctx` for getting canvas context.
23
- - `.remove` can directly find and remove a sub element!
24
-
25
- ### Fixed
26
- - `.find` returning sometimes Array sometimes Element make no sense! so now it only returns an array or null!
27
- - `.click()` `.focus()` & `.blur()` and some other don't work! Fixed!
28
-
29
- ## [7.1.7] - 2025-11-06
30
- ### Added
31
- - `.after` and `.before` now either append or return the element lies after/next or before/previous.
32
-
33
- ## [7.1.4] - 2025-10-14
34
-
35
- ### Fixed
36
- - some properties inside `attr` are not being applied.
37
-
38
- ## [7.1.3] - 2025-10-07
39
-
40
- ### Fixed
41
- - `.childlen` attribute not working, fixed.
42
- - `.after` `.before` functions don't work with EyeElement, fixed.
43
-
44
- ## [7.1.1] - 2025-10-01
45
-
46
- ### Changed
47
- - `.append` function only affect first selected element, also fixed to accept multiple selected element using `e` function.
48
- - functions now only affect first selected element in general.
49
- - library had been re-structured better.
50
-
51
- ### Added
52
- - `e` our dear library now accepts arrays of elements like `e([HTMLDivElement, HTMLSpanElement, HTMLInputElement...])`
53
- - `.css` function may accept only numbers for properties such as `width` `height` `left` `top`...
54
-
55
- ## [7.0.0] - 2025-09-01
56
- ### Changed
57
- - the function now may return null for not found selectors, instead of empty eye element.
58
-
59
- ### Added
60
- - new param `clone` in `.parent` function that allows you to append a clone of the element!
61
-
62
- ## [6.2.0] - 2025-08-25
63
-
64
- ### Changed
65
- - `.each` function can be interrupted from inside by returning false in the function.
66
-
67
- ### Added
68
- - new `.eachChild` function to loop through selected elements children, also can be interupted by returning false.
69
-
70
- ## [6.1.2] - 2025-08-17
71
- ### Changed
72
- - added more delegation events `dblclick`, `pointerevents` & more `mouseevents`...
73
-
74
- ### Added
75
- - new `position` function, to find element position within parent element
76
-
77
- ## [6.0.2] - 2025-08-01
78
- ### Changed
79
- - Better documentation for `.find` function
80
-
81
- ### Fixed
82
- - when using `.class` to add simple classes the first character of each class get trimmed, Fixed.
83
-
84
- ## [6.0.1] - 2025-07-30
85
- ### Changed
86
- - `EyeElement` is also exported to help you better document your code using VSDocs
87
-
88
- ### Fixed
89
- - using `.class("class1/class2")` shows error undefined variable v1 or v2, Fixed!
90
-
91
- ## [6.0.0] - 2025-07-30
92
- ### Changed
93
- - Library name changed to `eyjs`
94
- - main function name changed to `e` instead of `eye`
95
- - `after` `before` function now accepts both HTMLElement & EyeElement
96
-
97
- ### Added
98
- - new `childlen` attribute to get children length
99
- - new `rAttr` function to remove attribute of an element
100
- - new `client` function to access client attributes such as "clientWidth" "clientLeft" ..
101
- - `.append` now also accepts new possible `pos` options `first`|`afterbegin` `last`|`beforeend`
102
-
103
- ### Fixed
104
- - fixed error when using `.animate` function
105
-
106
- ## [5.0.0] - 2025-07-21
107
- ### Changed
108
- - library now uses ES6 class definition.
109
- - `.find` function `multiple` parameter is removed, also it return an HTMLElement instead of EyeElement, and an array if many selectors were found.
110
- - cloning a new model will return EyeElement instead of HTMLDivElement.
111
-
112
- ## [4.0.4] - 2025-07-18
113
- ### Changed
114
-
115
- - 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.
116
- - library now uses ES6.
117
- - `.animate` function now can return a direct animation object if selection is single.
118
-
119
- ## [3.4.1] - 2025-07-16
120
- ### Changed
121
- - `.pointer` function only effect the first element of a collection
122
- - better commentation and params definition
123
-
124
- ## [3.4.0] - 2025-07-16
125
- ### Added
126
- - new `.after` function
127
- - new `.before` function
128
- - new `.animate` function
129
-
130
- ## [3.3.4] - 2025-07-11
131
- ### Fixed
132
- - error when using `.data`, fixed!
133
-
134
- ## [3.3.2] - 2025-07-10
135
- ### Fixed
136
-
137
- - fixed `.html` `.text` and `.val` to accept empty strings two!
138
-
139
- ## [3.3.0] - 2025-07-009
140
- ### Added
141
- - new `.redefine` function that redefine how to set/get or use `.text` and `.val` in general
142
-
143
- ### Fixed
144
- - Accessing children length is now possible using empty/parameterless call of `.child`
145
-
146
- ## [3.2.0] - 2025-07-08
147
- ### Added
148
- - new `.serialize` function for form elements, check out [READM.md](./readme.md) for tutorial
149
-
150
- ### Fixed
151
- - PROBLEM: `.append` function not accepting EyeElement as parameter(only accept pure HTMLElements), now accepts both.
152
- - PROBLEM: `.replaceWith` also accepts HTMLElements only, fixed to accept Eye elements too.
153
- - PROBLEM: `.is` only accepts HTMLElement, fixed to accept EyeElement too.
154
-
155
- ## [3.1.1] - 2025-07-07
156
- ### Added
157
- - function `val` added for supporting inputs manipulation
158
- - function `child` added for child selection
159
-
160
- ### Fixed
161
- - function `css` now accept empty string value to remove style!
162
-
163
- ## [3.0.1] - 2025-07-04
164
- ### Added
165
- - new `.append` function with flexible `pos` to expand wide range of opportunities
166
- - new `.replaceWith` function
167
- - new `.parent` set/get function
168
- - new `.is` to compare nodes with flexible `check`
169
- - new `.each` to run multi selected elements
170
- - new `.off` function to remove event listeners
171
- - new `.trigger` function to ease controlling events
172
- - new `.find` function to find sub elements with `multiple` wild card parameter
173
- - new `.clone` function to clone current node
174
- - new `.compute` function to get element computed style declaration or DOMRect box
175
- - new `.pointer` function to unleash the PointerLock API and pointerCapture features
176
-
177
- ### Changed
178
- - a better modern core wrapper.
179
- - library now support processing multiple selection at once.
180
- - `.on` function now support targeted callbacks for event delegation.
181
- - `.data` function no more use dataset, rather it uses RAM.
182
- - `.attr` support setting to dataset using data-...
183
- - main function `eye` now support multi selection with [optional] "!" at the end of the selector to perform first occurence only.
184
-
185
- ## [2.1.1] - 2025-07-01
186
- **Breaking News!**
187
-
188
- we've added a new feature in our little library!
189
-
190
- ### Added
191
- - 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).
192
-
193
- - `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" })`.
1
+ # Changelog
2
+
3
+ ## [8.1.1] - 2026-01-19
4
+
5
+ ### Fixed
6
+
7
+ - `attr` `html` `css` `text` return current EyeElement when attribute request is empty on the element, now it does returns null/undefined/""(empty string)
8
+
9
+ ### Changed
10
+
11
+ - `delegate` method signature has better scope over surrounding entities, calling `this` inside the callback will reference the clicked element HTMLElement, second parameter of the callback is reference to the EyeElement representation of the clicked element while the third of the element parent first initialized with.
12
+
13
+ ## [8.0.1] - 2025-12-02
14
+
15
+ ### Added
16
+
17
+ - separate `.delegate` method that perform event delegation specific events handling
18
+ - new `.once` method to add single-time-executable events!
19
+
20
+ ### Changed
21
+
22
+ - `.on` third parameter now accepts handler properties now!
23
+
24
+ ## [7.3.0] - 2025-11-18
25
+
26
+ ### Added
27
+
28
+ - introducing `.has` a cheap check for certain elements
29
+
30
+ ### Fixed
31
+
32
+ - Docs are enhanced for some methods
33
+ - Anti `null` procedure to avoids extra errors
34
+
35
+ ## [7.2.6] - 2025-11-16
36
+
37
+ ### Added
38
+
39
+ - `.trigger` now accepts either event name or actual Event Object!
40
+ - `.getctx` for getting canvas context.
41
+ - `.remove` can directly find and remove a sub element!
42
+
43
+ ### Fixed
44
+
45
+ - `.find` returning sometimes Array sometimes Element make no sense! so now it only returns an array or null!
46
+ - `.click()` `.focus()` & `.blur()` and some other don't work! Fixed!
47
+
48
+ ## [7.1.7] - 2025-11-06
49
+
50
+ ### Added
51
+
52
+ - `.after` and `.before` now either append or return the element lies after/next or before/previous.
53
+
54
+ ## [7.1.4] - 2025-10-14
55
+
56
+ ### Fixed
57
+
58
+ - some properties inside `attr` are not being applied.
59
+
60
+ ## [7.1.3] - 2025-10-07
61
+
62
+ ### Fixed
63
+
64
+ - `.childlen` attribute not working, fixed.
65
+ - `.after` `.before` functions don't work with EyeElement, fixed.
66
+
67
+ ## [7.1.1] - 2025-10-01
68
+
69
+ ### Changed
70
+
71
+ - `.append` function only affect first selected element, also fixed to accept multiple selected element using `e` function.
72
+ - functions now only affect first selected element in general.
73
+ - library had been re-structured better.
74
+
75
+ ### Added
76
+
77
+ - `e` our dear library now accepts arrays of elements like `e([HTMLDivElement, HTMLSpanElement, HTMLInputElement...])`
78
+ - `.css` function may accept only numbers for properties such as `width` `height` `left` `top`...
79
+
80
+ ## [7.0.0] - 2025-09-01
81
+
82
+ ### Changed
83
+
84
+ - the function now may return null for not found selectors, instead of empty eye element.
85
+
86
+ ### Added
87
+
88
+ - new param `clone` in `.parent` function that allows you to append a clone of the element!
89
+
90
+ ## [6.2.0] - 2025-08-25
91
+
92
+ ### Changed
93
+
94
+ - `.each` function can be interrupted from inside by returning false in the function.
95
+
96
+ ### Added
97
+
98
+ - new `.eachChild` function to loop through selected elements children, also can be interupted by returning false.
99
+
100
+ ## [6.1.2] - 2025-08-17
101
+
102
+ ### Changed
103
+
104
+ - added more delegation events `dblclick`, `pointerevents` & more `mouseevents`...
105
+
106
+ ### Added
107
+
108
+ - new `position` function, to find element position within parent element
109
+
110
+ ## [6.0.2] - 2025-08-01
111
+
112
+ ### Changed
113
+
114
+ - Better documentation for `.find` function
115
+
116
+ ### Fixed
117
+
118
+ - when using `.class` to add simple classes the first character of each class get trimmed, Fixed.
119
+
120
+ ## [6.0.1] - 2025-07-30
121
+
122
+ ### Changed
123
+
124
+ - `EyeElement` is also exported to help you better document your code using VSDocs
125
+
126
+ ### Fixed
127
+
128
+ - using `.class("class1/class2")` shows error undefined variable v1 or v2, Fixed!
129
+
130
+ ## [6.0.0] - 2025-07-30
131
+
132
+ ### Changed
133
+
134
+ - Library name changed to `eyjs`
135
+ - main function name changed to `e` instead of `eye`
136
+ - `after` `before` function now accepts both HTMLElement & EyeElement
137
+
138
+ ### Added
139
+
140
+ - new `childlen` attribute to get children length
141
+ - new `rAttr` function to remove attribute of an element
142
+ - new `client` function to access client attributes such as "clientWidth" "clientLeft" ..
143
+ - `.append` now also accepts new possible `pos` options `first`|`afterbegin` `last`|`beforeend`
144
+
145
+ ### Fixed
146
+
147
+ - fixed error when using `.animate` function
148
+
149
+ ## [5.0.0] - 2025-07-21
150
+
151
+ ### Changed
152
+
153
+ - library now uses ES6 class definition.
154
+ - `.find` function `multiple` parameter is removed, also it return an HTMLElement instead of EyeElement, and an array if many selectors were found.
155
+ - cloning a new model will return EyeElement instead of HTMLDivElement.
156
+
157
+ ## [4.0.4] - 2025-07-18
158
+
159
+ ### Changed
160
+
161
+ - 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.
162
+ - library now uses ES6.
163
+ - `.animate` function now can return a direct animation object if selection is single.
164
+
165
+ ## [3.4.1] - 2025-07-16
166
+
167
+ ### Changed
168
+
169
+ - `.pointer` function only effect the first element of a collection
170
+ - better commentation and params definition
171
+
172
+ ## [3.4.0] - 2025-07-16
173
+
174
+ ### Added
175
+
176
+ - new `.after` function
177
+ - new `.before` function
178
+ - new `.animate` function
179
+
180
+ ## [3.3.4] - 2025-07-11
181
+
182
+ ### Fixed
183
+
184
+ - error when using `.data`, fixed!
185
+
186
+ ## [3.3.2] - 2025-07-10
187
+
188
+ ### Fixed
189
+
190
+ - fixed `.html` `.text` and `.val` to accept empty strings two!
191
+
192
+ ## [3.3.0] - 2025-07-009
193
+
194
+ ### Added
195
+
196
+ - new `.redefine` function that redefine how to set/get or use `.text` and `.val` in general
197
+
198
+ ### Fixed
199
+
200
+ - Accessing children length is now possible using empty/parameterless call of `.child`
201
+
202
+ ## [3.2.0] - 2025-07-08
203
+
204
+ ### Added
205
+
206
+ - new `.serialize` function for form elements, check out [READM.md](./readme.md) for tutorial
207
+
208
+ ### Fixed
209
+
210
+ - PROBLEM: `.append` function not accepting EyeElement as parameter(only accept pure HTMLElements), now accepts both.
211
+ - PROBLEM: `.replaceWith` also accepts HTMLElements only, fixed to accept Eye elements too.
212
+ - PROBLEM: `.is` only accepts HTMLElement, fixed to accept EyeElement too.
213
+
214
+ ## [3.1.1] - 2025-07-07
215
+
216
+ ### Added
217
+
218
+ - function `val` added for supporting inputs manipulation
219
+ - function `child` added for child selection
220
+
221
+ ### Fixed
222
+
223
+ - function `css` now accept empty string value to remove style!
224
+
225
+ ## [3.0.1] - 2025-07-04
226
+
227
+ ### Added
228
+
229
+ - new `.append` function with flexible `pos` to expand wide range of opportunities
230
+ - new `.replaceWith` function
231
+ - new `.parent` set/get function
232
+ - new `.is` to compare nodes with flexible `check`
233
+ - new `.each` to run multi selected elements
234
+ - new `.off` function to remove event listeners
235
+ - new `.trigger` function to ease controlling events
236
+ - new `.find` function to find sub elements with `multiple` wild card parameter
237
+ - new `.clone` function to clone current node
238
+ - new `.compute` function to get element computed style declaration or DOMRect box
239
+ - new `.pointer` function to unleash the PointerLock API and pointerCapture features
240
+
241
+ ### Changed
242
+
243
+ - a better modern core wrapper.
244
+ - library now support processing multiple selection at once.
245
+ - `.on` function now support targeted callbacks for event delegation.
246
+ - `.data` function no more use dataset, rather it uses RAM.
247
+ - `.attr` support setting to dataset using data-...
248
+ - main function `eye` now support multi selection with [optional] "!" at the end of the selector to perform first occurence only.
249
+
250
+ ## [2.1.1] - 2025-07-01
251
+
252
+ **Breaking News!**
253
+
254
+ we've added a new feature in our little library!
255
+
256
+ ### Added
257
+
258
+ - 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).
259
+
260
+ - `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" })`.