Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lightningjs/blits

Package Overview
Dependencies
Maintainers
0
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningjs/blits - npm Package Compare versions

Comparing version 1.8.2 to 1.8.3

10

CHANGELOG.md
# Changelog
## v1.8.3
_31 oct 2024_
- Exported TS interfaces and improved return type of before route hook
- Fixed test cases for codegenerator
## v1.8.2

@@ -7,3 +15,3 @@

- Fixed edgecase issue with array based props not triggering reactivity
- Fixed edge case issue with array based props not triggering reactivity

@@ -10,0 +18,0 @@

46

index.d.ts

@@ -22,3 +22,3 @@ /*

interface Hooks {
export interface Hooks {
/**

@@ -81,3 +81,3 @@ * Fires when the Component is being instantiated

interface Input {
export interface Input {
[key: string]: (event: KeyboardEvent) => void | undefined,

@@ -93,3 +93,3 @@ /**

interface Log {
export interface Log {
/**

@@ -115,3 +115,3 @@ * Log an info message

interface RouteData {
export interface RouteData {
[key: string]: any

@@ -121,7 +121,7 @@ }

// todo: specify valid route options
interface RouteOptions {
export interface RouteOptions {
[key: string]: any
}
interface Router {
export interface Router {
/**

@@ -156,3 +156,3 @@ * Navigate to a different location

type ComponentBase = {
export type ComponentBase = {
/**

@@ -255,3 +255,3 @@ * Listen to events emitted by other components

*/
type PropObject = {
export type PropObject = {
/**

@@ -284,3 +284,3 @@ * Name of the prop

// Props Array
type Props = (string | PropObject)[];
export type Props = (string | PropObject)[];

@@ -293,7 +293,7 @@ // Extract the prop names from the props array

// Update the PropsDefinition to handle props as strings or objects
type PropsDefinition<P extends Props> = ExtractPropNames<P>;
export type PropsDefinition<P extends Props> = ExtractPropNames<P>;
type ComponentContext<P extends Props, S, M, C> = ThisType<PropsDefinition<P> & S & M & C & ComponentBase>
export type ComponentContext<P extends Props, S, M, C> = ThisType<PropsDefinition<P> & S & M & C & ComponentBase>
interface ComponentConfig<P extends Props, S, M, C, W> {
export interface ComponentConfig<P extends Props, S, M, C, W> {
components?: {

@@ -377,3 +377,3 @@ [key: string]: ComponentFactory,

interface ApplicationConfig<P extends Props, S, M, C, W> extends ComponentConfig<P, S, M, C, W> {
export interface ApplicationConfig<P extends Props, S, M, C, W> extends ComponentConfig<P, S, M, C, W> {
/**

@@ -396,3 +396,3 @@ * Routes definition

interface Transition {
export interface Transition {
/**

@@ -420,3 +420,3 @@ * Name of the prop to transition (i.e. 'x', 'y', 'alpha', 'color')

interface Before {
export interface Before {
/**

@@ -432,3 +432,3 @@ * Name of the prop to set before the transition starts

interface RouteTransition {
export interface RouteTransition {
/**

@@ -448,5 +448,5 @@ * Setting or Array of Settings before new view enters into the router view

type RouteTransitionFunction = (previousRoute: Route, currentRoute: Route) => RequireAtLeastOne<RouteTransition>
export type RouteTransitionFunction = (previousRoute: Route, currentRoute: Route) => RequireAtLeastOne<RouteTransition>
interface RouteAnnounce {
export interface RouteAnnounce {
/**

@@ -464,11 +464,11 @@ * Message to be announced

type RequireAtLeastOne<T> = {
export type RequireAtLeastOne<T> = {
[K in keyof T]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<keyof T, K>>>
}[keyof T]
interface RouteHooks {
before?: (to: Route, from: Route) => string | Route;
export interface RouteHooks {
before?: (to: Route, from: Route) => string | Route | Promise<string | Route>;
}
type Route = {
export type Route = {
/**

@@ -593,3 +593,3 @@ * URI path for the route

*/
interface Settings {
export interface Settings {
/**

@@ -596,0 +596,0 @@ * Width of the Application

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

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

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc