Skip to content

v0.6.0

Compare
Choose a tag to compare
@lxsmnsyc lxsmnsyc released this 20 Sep 12:07
· 215 commits to main since this release

New features

CTFs

Adds the following CTFs:

  • $lazy = lazy: Arrow function and auto import is automatically injected.
  • $createContext = createContext: auto import.
  • $useContext = useContext: auto import.
  • $effect = createEffect: auto import
  • $uid = createUniqueId: auto import
  • $mapArray = mapArray: auto-import, auto-arrow for source. Auto-memo variable.
  • $indexArray = indexArray: auto-import, auto-arrow for source. Auto-memo variable.
  • $selector = createSelector: auto-import, auto-arrow for source.
  • $children = children: auto-import, auto-arrow. Auto-memo variable
  • $observable = observable: auto-import, auto-arrow. Requires Observable interface declaration for global definition.
  • $from = from: auto-import. memo variable.
  • $root = createRoot: auto import.
  • $computed = createComputed: auto import.
  • $renderEffect = createRenderEffect: auto import.
  • $on = on: auto import, auto arrow.
  • $deferred = createDeferred: auto import and arrow function is automatically injected.

In addition:

  • $signal can now accept zero inputs or 2 inputs (for the options).
  • $memo can now accept up to 3 inputs which includes the initial value and options.

Check out the docs for compile-time functions

Labels

  • Adds deferred and children variable labels.
  • Adds transition block label.

Check out the docs for labels

Comments

  • Adds @deferred and @children variable comment.
  • Adds @transition block comment.

Check out the docs for comments

Other updates

  • Some major core improvements
  • Fixes all memo variants to output options value to the 3rd argument of createMemo.
  • Adds solid-js as peer dependency.