- added missing functions and
lengths
object to ssr dummy loop - made internal begin, update, draw and end functions private
- added
document
check inloop.svelte.js
- now checks for
window
and provides a no-op loop for ssr environments. Should work in SvelteKit now.
- added
AutoType.svelte
to Test-App - added
test-ssr
app for SvelteKit testing
- removed
@types/mainloop.js
from devDependencies
- attempt #1 to fix github npm badge caching
- moved isVisible boolean back to
ViewLoop
component from loop state - changed
ViewLoop
section style todisplay: contents
for easier styling
- fixed incorrect jsdoc type imports in
JoinLoop.svelte
- modernised and internalised
mainloop.js
- this was required in order to get the library to work on the Svelte REPL
- switched to es module export, removed old module exports
- updated variable declarations
- kept all original comments intact, added some jsdoc types
- added a note about noop vs conditional performance, no change functionally
- removed
mainloop.js
- Removed "log update functions" button from ViewLoop component
- Initial release of svelte-mainloop
JoinLoop
component for easy loop joining/leavingViewLoop
component for debugging- Full TypeScript support
- Automatic cleanup when components are removed
- Access to all mainloop.js stages (begin, update, draw, end)
- Requires Svelte 5.x (uses runes)
- Uses mainloop.js 1.0.4