@unsetsoft/ryunixjs 0.2.8-nightly.4 → 0.2.8

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.
Files changed (2) hide show
  1. package/lib/dom.js +5 -4
  2. package/package.json +1 -1
package/lib/dom.js CHANGED
@@ -231,7 +231,8 @@ let containerRoot = null;
231
231
 
232
232
  /**
233
233
  * @deprecated use Ryunix.init(root) instead.
234
- * The function creates a root container for a web application.
234
+ *
235
+ * @description The function creates a root container for a web application.
235
236
  * @example Ryunix.createRoot(document.getElementById("root")) -> <div id="root" />
236
237
  * @param root - The parameter `root` is likely referring to an HTML element that will serve as the
237
238
  * root or container for a web application or component. The `createRoot` function takes this element
@@ -245,7 +246,7 @@ function createRoot(root) {
245
246
 
246
247
 
247
248
  /**
248
- * The function creates a reference to a DOM element with the specified ID. This will be used to initialize the app.
249
+ * @description The function creates a reference to a DOM element with the specified ID. This will be used to initialize the app.
249
250
  * @example Ryunix.init("root") -> <div id="root" />
250
251
  * @param root - The parameter "root" is the id of the HTML element that will serve as the container
251
252
  * for the root element.
@@ -427,7 +428,7 @@ function reconcileChildren(wipFiber, elements) {
427
428
  // Hooks
428
429
 
429
430
  /**
430
- * The function creates a state hook for a Ryunix-like framework.
431
+ * @description The function creates a state.
431
432
  * @param initial - The initial value of the state for the hook.
432
433
  * @returns The `useStore` function returns an array with two elements: the current state value and a
433
434
  * `setState` function that can be used to update the state.
@@ -485,7 +486,7 @@ const hasDepsChanged = (prevDeps, nextDeps) =>
485
486
  prevDeps.some((dep, index) => dep !== nextDeps[index]);
486
487
 
487
488
  /**
488
- * This is a function that creates a hook for managing side effects in React components.
489
+ * This is a function that creates a hook for managing side effects in Ryunix components.
489
490
  * @param effect - The effect function that will be executed after the component has rendered or when
490
491
  * the dependencies have changed. It can perform side effects such as fetching data, updating the DOM,
491
492
  * or subscribing to events.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsetsoft/ryunixjs",
3
- "version": "0.2.8-nightly.4",
3
+ "version": "0.2.8",
4
4
  "license": "MIT",
5
5
  "main": "./dist/Ryunix.js",
6
6
  "private": false,