This version, compared to the previous one only adds deprecation notices that can be fixed by slight modifications. Underlying implementations are not changed.
Changed
create (both as a named export and the default export) is marked as deprecated, and it has been renamed to atom. It will be removed in the further versions, and making the following change is recommended:
Before:
import create from 'xoid'
// or
import { create } from 'xoid'
After:
import { atom } from 'xoid'
inject and effect exports are now exported from the root. They used to be exported from the xoid/setup route.
Notes
Why is create being renamed? Because we're planning to add exports such as toAtom and toReactive (They're currently in the @xoid/reactive module), and we aim naming consistency.
Todo
[x] Rename create imports to atom in the docs/
[x] Rename create imports to atom in examples/
[ ] Rename create imports to atom in tests/
[x] Rename create imports in README.md
[x] Rename xoid/setup imports to xoid in all docs
[x] Remove xoid/setup from framework integration implementations
This version, compared to the previous one only adds deprecation notices that can be fixed by slight modifications. Underlying implementations are not changed.
Changed
create
(both as a named export and the default export) is marked as deprecated, and it has been renamed toatom
. It will be removed in the further versions, and making the following change is recommended:inject
andeffect
exports are now exported from the root. They used to be exported from thexoid/setup
route.Notes
create
being renamed? Because we're planning to add exports such astoAtom
andtoReactive
(They're currently in the@xoid/reactive
module), and we aim naming consistency.Todo
create
imports toatom
in thedocs/
create
imports toatom
inexamples/
create
imports toatom
intests/
create
imports in README.mdxoid/setup
imports toxoid
in all docsxoid/setup
from framework integration implementations