@unsetsoft/ryunixjs 0.5.3-nightly.9 → 0.5.5

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/README.md CHANGED
@@ -1,19 +1,19 @@
1
- # RyunixJS
1
+ <img src="https://raw.githubusercontent.com/UnSetSoft/Ryunixjs/dev/extensions/ryunix/logo-dark.svg" width="200" height="200" style="
2
+ display: block;
3
+ margin: 0 auto;" />
2
4
 
3
- [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FUnSetSoft%2FRyunixjs%2Ftree%2Fmaster%2Fvercel%2Fryunix-jsx&project-name=ryunix-jsx-project&repository-name=ryunix-jsx-project)
5
+ ## RyunixJS [![npm version](https://img.shields.io/npm/v/@unsetsoft/ryunixjs.svg?style=flat)](https://www.npmjs.com/package/@unsetsoft/ryunixjs)[![npm version](https://img.shields.io/npm/v/@unsetsoft/ryunixjs/nightly.svg?style=flat)](https://www.npmjs.com/package/@unsetsoft/ryunixjs/v/nightly)
4
6
 
5
- ## What is RyunixJS?
7
+ ### What is RyunixJS?
6
8
 
7
- Is a ReactJS Clone! Even lighter, however, at a very early stage for production use.
9
+ Like React, NextJS, Preact, Vite. Ryunix allows you to build static websites from JavaScript in a similar way to the aforementioned frameworks. However, Ryunix is planned to be completely standalone, i.e. without including React internally. This way allowing it to be more manageable and moldable for each developer. The reactivity of Ryunix is similar to Preact, however, it does not pretend to follow any standard of React or any similar Framework, but to allow to generate an SPA in its own way.
8
10
 
9
- ## Usage
11
+ ### Usage
10
12
 
11
13
  `npx @unsetsoft/cra@latest`
12
14
 
13
- ## Bugs?
14
-
15
- You can create an issue on GitHub.
16
-
17
- ## Do you want to contribute?
15
+ ### Do you want to contribute?
18
16
 
19
17
  Fork a send a pull request!
18
+
19
+ [![Invitame un café en cafecito.app](https://cdn.cafecito.app/imgs/buttons/button_3.svg)](https://cafecito.app/neyunse) [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/A1314KEV)
package/dist/Ryunix.js CHANGED
@@ -44,7 +44,7 @@
44
44
  DELETION: Symbol(),
45
45
  });
46
46
 
47
- const Fragments = (props) => {
47
+ const Fragment = (props) => {
48
48
  return props.children
49
49
  };
50
50
 
@@ -135,6 +135,7 @@
135
135
  const init = (root) => {
136
136
  const rootElement = root || '__ryunix';
137
137
  vars.containerRoot = document.getElementById(rootElement);
138
+ return undefined
138
139
  };
139
140
 
140
141
  /**
@@ -686,7 +687,7 @@
686
687
  createElement,
687
688
  render,
688
689
  init,
689
- Fragments,
690
+ Fragment,
690
691
  Dom,
691
692
  Workers,
692
693
  Reconciler,
@@ -696,7 +697,7 @@
696
697
 
697
698
  window.Ryunix = Ryunix;
698
699
 
699
- exports.Fragments = Fragments;
700
+ exports.Fragment = Fragment;
700
701
  exports.default = Ryunix;
701
702
  exports.useCallback = useCallback;
702
703
  exports.useEffect = useEffect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsetsoft/ryunixjs",
3
- "version": "0.5.3-nightly.9",
3
+ "version": "0.5.5",
4
4
  "license": "MIT",
5
5
  "main": "./dist/Ryunix.js",
6
6
  "types": "./dist/Ryunix.d.ts",
@@ -1,6 +1,6 @@
1
1
  import { RYUNIX_TYPES, STRINGS } from '../utils/index'
2
2
 
3
- const Fragments = (props) => {
3
+ const Fragment = (props) => {
4
4
  return props.children
5
5
  }
6
6
 
@@ -75,4 +75,4 @@ const createTextElement = (text) => {
75
75
  }
76
76
  }
77
77
 
78
- export { createElement, createTextElement, Fragments, cloneElement }
78
+ export { createElement, createTextElement, Fragment, cloneElement }
package/src/lib/hooks.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { RYUNIX_TYPES, STRINGS, vars } from '../utils/index'
2
2
  import { isEqual } from 'lodash'
3
+ import { Fragment, createElement, cloneElement } from './createElement'
3
4
  /**
4
5
  * @description The function creates a state.
5
6
  * @param initial - The initial value of the state for the hook.
package/src/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createElement, cloneElement, Fragments } from './createElement'
1
+ import { createElement, cloneElement, Fragment } from './createElement'
2
2
  import { render, init } from './render'
3
3
  import {
4
4
  useStore,
@@ -14,21 +14,13 @@ import * as Reconciler from './reconciler'
14
14
  import * as Components from './components'
15
15
  import * as Commits from './commits'
16
16
 
17
- export {
18
- useStore,
19
- useEffect,
20
- useQuery,
21
- useRef,
22
- useMemo,
23
- useCallback,
24
- Fragments,
25
- }
17
+ export { useStore, useEffect, useQuery, useRef, useMemo, useCallback, Fragment }
26
18
 
27
19
  export default {
28
20
  createElement,
29
21
  render,
30
22
  init,
31
- Fragments,
23
+ Fragment,
32
24
  Dom,
33
25
  Workers,
34
26
  Reconciler,
package/src/lib/render.js CHANGED
@@ -28,6 +28,7 @@ const render = (element, container) => {
28
28
  const init = (root) => {
29
29
  const rootElement = root || '__ryunix'
30
30
  vars.containerRoot = document.getElementById(rootElement)
31
+ return this
31
32
  }
32
33
 
33
34
  export { render, init }
package/src/main.js CHANGED
@@ -6,7 +6,7 @@ export {
6
6
  useRef,
7
7
  useMemo,
8
8
  useCallback,
9
- Fragments,
9
+ Fragment,
10
10
  } from './lib/index.js'
11
11
 
12
12
  window.Ryunix = Ryunix