You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support effectless components (#31)
Allow components to return supple nodes directly (JSX / string / etc.) instead of having to return a supple node effect.
It will still be possible to return an effect, but not mandatory.
When returning a node directly, developers must be aware that the component won't be wrapped in a render effect and thus, the returned JSX must not be tracking any signal.
Fix extensions in released package (#27)
Having no extension can cause issue (#26).
Extensions are generated via regex after TS compilation phase. Using bundler like TSUP would work as well but also mess the files generated and make it more difficult to debug.
Add package exports
Package exports allows to declare modules exported by this package, same as "main" but in a more modern way.
It also prevents library consumers from consuming exported elements from nested modules (lib/context.js)
v1.0.0 - MVP
New APIs to support error management:
- catchError<T>(tryFn: () => T, onError: ErrorHandler): T | undefined
- <ErrorBoundary fallback={(err: any, reset: (() => void)) => SuppleNode}>{children}</ErrorBoundary>
Add documentation to:
- render
- createRenderEffect
Misc:
- Provide return type to all API contract
- Bump ws to v8.17.1