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

deleight

Package Overview
Dependencies
Maintainers
0
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deleight - npm Package Compare versions

Comparing version 5.3.2 to 5.3.3

2

package.json
{
"name": "deleight",
"version": "5.3.2",
"version": "5.3.3",
"description": "A library with 9 modules for writing more expressive web applications with traditional HTML, CSS and JavaScript.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -5,3 +5,3 @@ # Deleight

Deleight is a library now comprising 9 modules designed to improve expressiveness without compromising simplicity, performance, flexibility and sheer elegance of pure JavaScript. We achieve this by creating higher level functions, classes and objects which can get more done with less code than standard JavaScript primitives. These new utilities have been assembled into different modules based on functionality and dependency so that you can include only the parts you need in your projects. The whole architecture means you can benefit from more expressiveness without compromising the power and freedom of vanilla JavaScript.
Deleight is a JavaScript library now comprising 9 modules designed to improve expressiveness without compromising simplicity, performance, flexibility and sheer elegance of pure JavaScript. We achieve this by creating higher level functions, classes and objects which can get more done with less code than standard JavaScript primitives. These new utilities have been assembled into different modules based on functionality and dependency so that you can include only the parts you need in your projects. The whole architecture means you can write your apps in vanilla JavaScript and still reap the same benefits as when you use a framework.

@@ -25,3 +25,3 @@

Deleight has been written in TypeScript. Using TypeScript helps to provide more guarantees about runtime perfornce because of the type enforcements and other helpful things at compile time. Also most of the primitives are well tested and have been further enhanced from earlier versions of Deleight. Deleight was already among the best performing frameworks in the [Krausest frameworks benchmark](https://github.com/krausest/js-framework-benchmark) before major work to restructure and improve the whole ibrary for *Deleight 5*.
Deleight has been written in TypeScript. Using TypeScript helps to provide more guarantees about runtime perfornce because of the type enforcements and other helpful things at compile time. Also most of the primitives are well tested and have been further enhanced from earlier versions of Deleight. Deleight was already among the best performing frameworks in the [Krausest frameworks benchmark](https://github.com/krausest/js-framework-benchmark) before major work to restructure and improve the whole ibrary for V5.

@@ -31,3 +31,3 @@

Deleight has been compiled into ES modules and CommonJS so that many project structures can benefit from it. You can simply throw any deleight modules (or sub-modules) into your web page and they will load fast and work well. All of them are focused on particular tasks and have small file sizes, even unminified.
This is a dual module library with both ES modules and CommonJS packages so that many project structures can benefit from it. You can simply throw any deleight modules (or sub-modules) into your web page and they will load fast and work well. All of them are focused on particular tasks and have small file sizes, even unminified.

@@ -77,8 +77,15 @@ `npm install deleight`

Exports an `Action` class that converts every iterable into a callable, providing they contain one or more `Step` objects. A `Step` provides the interpretations for the values in the iterable after it, up to the next step with equal or lower priority.
Exports an `Action` class that converts every iterable into a callable, provided they contain one or more `Step` objects. A `Step` provides the interpretations for the values in the iterable after it, up to the next step with equal or lower priority.
Many simple steps have been implemented to do things like call functions with the same scope and arguments, chain functions, access properties on multiple objects, spread and compact values, etc.
Many simple steps have been implemented to do things like:
- calling functions with the same scope and arguments,
- chaining functions,
- accessing properties on multiple objects,
- spreading and compacting values,
- etc.
Think of an Action as a function whose lines are as items in an array. We can manipulate them however we want. We can also define the meaning of all the keywords. Action is meant for generating and modifying code on the fly without using Function constructor. We can use it to setup reactivity and for more general declarative programming.
Think of an Action as a function whose lines are like items in an array. We can manipulate them however we want. We can also define the meaning of all the keywords. It is meant for generating and modifying code on the fly without using `Function` constructor. We can use it for setting up reactivity and for more general declarative programming.
**Note**: This module has been renamed from **process** to avoid confusion with similarly named submodules in **deleight/object** and **deleight/dom**.
### [css](https://mksunny1.github.io/deleight-api-docs/main/modules/deleight.css.html)

@@ -95,3 +102,3 @@

Primitives for building and working with the DOM. Using **dom**, we can:
Primitives for building and working with the DOM. Using **dom**, yoe can:
- build elements from HTML text and files

@@ -102,3 +109,3 @@ - build elements (or their HTML text) from objects

Many standard components have been included for creating event handlers, setting attributes and setting and assigning properties (components).
Many standard components have been included for creating event handlers, setting attributes and setting and assigning properties, etc.

@@ -109,5 +116,5 @@ ### [function](https://mksunny1.github.io/deleight-api-docs/main/modules/deleight.function.html)

1. **function/cache**: functions to wrap a function to cache and return the first result. `cache#reset` method can be used for reset.
1. **function/cache**: functions to wrap a function to cache results.
2. **function/context**: a `setContext` function which wraps a function with another one to include the given `context` object in its scope. `setContext` can be called on multiple functions to effectively make them run mutually exclusively. This can be useful, for example, in event handlers that create network requests so they do not unnecessarily repeat the requests.
2. **function/context**: a `setContext` function called on multiple functions to effectively make them run mutually exclusively. This can be useful, for example, in event handlers that create network requests so they do not unnecessarily repeat the requests.

@@ -132,4 +139,6 @@ 3. **function/dynamic**: a `dyn` function to effectively create dynamic

Uing **shared**, you can add more structure and concision in your code by manipulating multiple objects with a single action. Using **deep**, you can trivially implement things like routing. Async deep member access can be used to access server data like other objects on the client.
Uing **shared** (and **sharedasync**), you can add more structure and concision in your code by manipulating multiple objects with a single action. **This is where reactivity is in Deleight**.
Using **deep**, you can trivially implement things like routing. Async deep member access can be used to access server data like other objects on the client.
```js

@@ -136,0 +145,0 @@ import { call } from 'deleight/object/deep'

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