Releases: solidjs/solid
v0.7.0
v0.7.0 brings further improvements in tree shaking, Context API including Provide control flow, and suspense helpers for loading Async Components and Data. Introducing:
- lazy: use this to lazy import Components
- loadResource: use this to fetch any async source
- createContext: to register a Context type to be use with Provide and useContext
- useContext to use a context provided via the Provide control flow
- setDefaults: sets default props for your components
There is also performance improvements where the number extraneous placeholder DOM nodes has been reduced improving cloning and traversal time.
This is a breaking change as in order to support this version, Solid has forked S.js the underlying library and now ships with it built in. This means Solid will no longer be compatible other S.js libraries. It is a turning point but enables the powerful new features.
In terms of API there is also a breaking change, where if you wish to specify dependencies for an effect use createDependentEffect. createEffect now has the same signature as createMemo where the second argument is a default value.
v0.6.0
Solid is smaller than ever!
v0.6.0 brings a Tree Shakeable runtime. This means when Solid used with JSX the compiler can intelligently only include the code that is being used.
This is a breaking change in that:
- No longer need to import 'r' and selectWhen and selectEach directives have been moved to solid-js from solid-js/dom. You should not need to import from 'solid-js/dom' directly anymore as your compiled code will do it automatically.
- HyperScript and Lit imports have been made the default import now.. ex:
import html from 'solid-js/html'
- Tidied up the compiled template code. This should make it much nicer to debug when not minified.
v0.5.1
v0.5.0
Breaking Change h is no longer exposed from 'solid-js/dom'
Add support for multiple renderers (JSX, Tagged Template Literals, HyperScript). Added direct imports or 'solid-js/dom' alternatives 'solid-js/html' and 'solid-js/h'.
New Tagged Template Literal renderer compiles at runtime down to similar code to Babel JSX plugin.
v0.4.2
Several updates to the underlying renderer:
- Add fallbacks for control flow
- Add new Portal Control Flow - This allows nodes to be rendered outside of the component tree with support for satelite ShadowRoots.
- Add new Suspend Control Flow - This renders content to a isolated document and display fallback content in its place until ready. Good for nested Async Data Fetching.
- Default node placeholders to comments (improved text interpolation)
- Added events binding for irregular event names