You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP →

@lightningjs/blits

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningjs/blits - npm Package Compare versions

Comparing version

to
0.4.1

@@ -34,4 +34,4 @@ {

"dependencies": {
"@lightningjs/blits": "^0.4.0"
"@lightningjs/blits": "^0.4.1"
}
}
# Changelog
# v0.4.1
_13 nov 2023_
- Added support for using dynamic import of components in routes
- Added support for returning components in an async function / Promise in routes
## v0.4.0

@@ -4,0 +11,0 @@

{
"name": "@lightningjs/blits",
"version": "0.4.0",
"version": "0.4.1",
"description": "Blits: The Lightning 3 App Development Framework",

@@ -5,0 +5,0 @@ "bin": "bin/index.cjs",

@@ -23,6 +23,12 @@ ![Blits banner](https://raw.githubusercontent.com/lightning-js/blits/master/banner.png)

## Documentation
Check out the [documentation](https://lightning-js.github.io/blits) to learn more.
## Examples
Check out the open source [Demo/Example app](https://github.com/lightning-js/blits-example-app) to see what Blits and Lightning are capable of and learn how to use Blits by example.
## Changelog
The full Changelog can be found [here](./CHANGELOG.md)

@@ -71,3 +71,13 @@ /*

holder.set('h', '100%')
view = route.component(this[symbols.props], holder, this)
view = await route.component(this[symbols.props], holder, this)
if (view[Symbol.toStringTag] === 'Module') {
if (view.default && typeof view.default === 'function') {
view = view.default(this[symbols.props], holder, this)
} else {
Log.error("Dynamic import doesn't have a default export or default is not a function")
}
}
if (typeof view === 'function') {
view = view(this[symbols.props], holder, this)
}
} else {

@@ -74,0 +84,0 @@ holder = view.wrapper