structura.js
eslint-plugin-functional
structura.js | eslint-plugin-functional | |
---|---|---|
4 | 5 | |
394 | 729 | |
- | 0.4% | |
7.6 | 9.2 | |
3 months ago | 11 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
structura.js
-
Focusing on optimization, surpassing immer, limu finally reaches the top of immutable data performance
Before 3.12, although the performance of limu was several times better than immer, it was far away from structura and mutative These new immutable data operation libraries still have many gaps, so they can only be debugged friendly and several times faster than immer as a promotional point. If you want to pursue the ultimate speed, it is recommended by default. mutative.
-
The sword refers to immer, the faster and stronger immutable data js tool limu stable version released!
But is immer really the ultimate answer? The performance problem of immer is more prominent in large arrays and deep-level object scenarios. See this issue description, many authors in the community began to try to make breakthroughs, and noticed that structura and mutative, I found that it is indeed many times faster than immer as they said, but it still fails to solve the problem of both fast speed and good development experience. I will analyze the two issues in detail below.
-
I made a typescript library similar to Immer but ~20 times faster and with zero-runtime freezing
Nice work! but please break down https://github.com/giusepperaso/structura.js/blob/master/src/index.ts into something more manageable (refactor through extraction and promotion)
eslint-plugin-functional
-
How to add a property to an object that doesn't exist in its type?
It recommend using https://github.com/eslint-functional/eslint-plugin-functional to force readonly on all properties.
-
CI checks not rerunning when a bot makes a commit to a PR
Here's one the PRs that this issue happens with: https://github.com/eslint-functional/eslint-plugin-functional/pull/397
-
[ESLint] Passes locally but fails in CI
Here's the CI log link.
-
What other ways to enforce immutability in Angular beside using Immutable.js?
Also add this no-mutation ESLint rule as extra protection https://github.com/jonaskello/eslint-plugin-functional/blob/master/docs/rules/immutable-data.md
-
Which is the best functional programming library for typescript?
I just use https://github.com/jonaskello/eslint-plugin-functional
What are some alternatives?
limu - High performance immutable lib alternative to immer with the same api, based on shallow copy on read and mark modified on write mechanism.
fp-ts - Functional programming in TypeScript
concent - A reactive atomic state engine for React like.
immutable-js - Immutable persistent data collections for Javascript which increase efficiency and simplicity.
umbrella - ⛱ Broadly scoped ecosystem & mono-repository of 192 TypeScript projects (and 157 examples) for general purpose, functional, data driven development
remeda - A utility library for JavaScript and TypeScript.
hel - A module federation SDK which is unrelated to tool chain for module consumer. 工具链无关的运行时模块联邦sdk.
eslint-plugin-total-functions - An ESLint plugin to enforce the use of total functions (and prevent the use of partial functions) in TypeScript.
pratica - 🥃 Functional Algebraic Data Types
FxTS - A functional programming library for TypeScript/JavaScript
typescript-eslint-demo - typescript eslint playground
effect - A fully-fledged functional effect system for TypeScript with a rich standard library