Releases: Bitzone-lab/redity
Releases · Bitzone-lab/redity
v1.0.1
v1.0.0
Fixes and Optimization
- connect is now deprecated
- useLocal is now deprecated
- getProps removed
- Typing improvements
- Weight reduced from 31.5 kB to 22.8 kB
- dependencies were fixed
- Now render can receive more than one keyName
render(KEYNAME)
render([KEYNAME, KEYNAME2])
Render improvements
- Now it is possible to render a local render with useRender.
- Now it is possible to emit the renders to the specific indices.
- Fix to render method. It was not possible to generate a render by keyName when I had records by indices.
- Library weight reduced.
Capsule improvements
- Capsule improvements
from
import { Capsule } from 'redity'
export default function MyComponent(){
return (
<div>
<Capsule keyName='my_key'>
<div>...</div>
</Capsule>
</div>
)
}
to
import { Capsule } from 'redity'
export default function MyComponent(){
return (
<div>
<Capsule keyName='my_key'>
{() => <div>...<div/>}
</Capsule>
</div>
)
}
This is because Capsule could not generate render.
- Now capsule can receive props. Check the documentation
Migration to typescript and improvements in the concept.
- It was migrated to TypeScript.
- getCapsuleByKeyName removed.
- States removed, soon it will be a new library.
- createCapsule removed.
- getPayload removed.
- setTemplate removed.
- createTemplate removed.
- setProps removed.
New features:
- useRender, to register the component.
- useLocal, to render only the current component.
- index, sort records by indexes.
- renders, generate multiple renderings in parallel.
Upgrades:
- render
- connect
- Capsule
See the documentation.