superjson
mutative
superjson | mutative | |
---|---|---|
9 | 15 | |
3,702 | 1,466 | |
7.8% | - | |
7.6 | 8.8 | |
4 months ago | 4 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.
superjson
-
Deep Cloning Objects in JavaScript, the Modern Way
I wasn't aware of this, I would like to give a shout out to superjson (https://github.com/blitz-js/superjson) which I had been using to solve this problem. I will look at this solution for next time.
- Superjson – serialize JavaScript Dates, Maps, Sets to cross service boundaries
- GitHub - blitz-js/superjson: Safely serialize JavaScript expressions to a superset of JSON, which includes Dates, BigInts, and more.
- Superjson: Safely serialize JavaScript expressions to a superset of JSON
- Aplicativos da Web totalmente tipados
-
I've spent the whole day on this, but no luck, I wanna die :)
Here you go https://github.com/blitz-js/superjson
-
Rich on serialization
superjson has a plugin system and also supports ObjectId. https://github.com/blitz-js/superjson/pull/71
-
Prisma not working with next serversideprops
Hey Mahmoud from Prisma here 👋🏼 Next.js doesn't serialize the Date type. There are a couple of workarounds discussed in this GitHub discussion. Personally, I found that using superjson to be the simplest approach.
mutative
- Mutative: Efficient immutable updates, more than 10x faster than Immer
-
Mutative 1.0 – A New Era in Efficient Immutable Updates
The readme explains how Mutative achieves better performance over Immer: https://github.com/unadlib/mutative#readme
-
Immer VS mutative - a user suggested alternative
2 projects | 25 Jan 2024
Efficient immutable updates, 2-6x faster than naive handcrafted reducer, and more than 10x faster than Immer.
-
How to build high-performance front-end applications based on multi-processing
High Performance Based on Mutative: Mutative is faster than the naive handcrafted reducer and 10x faster than Immer. Updates to immutable data based on Mutative also maintain good performance. The patches obtained from the shared state update are used for state synchronization.
- Mutative – A 10x Faster Alternative to Immer
-
Deep Cloning Objects in JavaScript, the Modern Way
for those recommending Immer, check out Mutative or Limu instead (much faster)
https://github.com/unadlib/mutative
https://github.com/tnfe/limu
-
Limu, the fastest immutable data JavaScript lib was borned
![image](https://github.com/unadlib/mutative/assets/7334950/2520b8e9-...)
At the same time, the number of single test cases has increased to 500+, with a coverage rate of '95+' (the results can be viewed by executing NPM run tests in the root directory)
- Mutative: production-ready version coming soon, it provides the fastest immutable data updates.
- Mutative: Efficient immutable JavaScript updates, 10x faster than Immer
- GitHub - unadlib/mutative: Efficient immutable updates, 10x faster than Immer by default, even faster than naive handcrafted reducer.
What are some alternatives?
babel-plugin-superjson-next - Automatically transform your Next.js Pages to use SuperJSON
limu - High performance immutable lib alternative to immer with the same api, based on shallow copy on read and mark modified on write mechanism.
SurveyJS - Free Open-Source JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout that lets you load and run multiple web forms, or build your own self-hosted form management system, retaining all sensitive data on your servers. You have total freedom of choice as to the backend, because any server + database combination is fully compatible.
nstate - A simple but powerful react state management library with low mind burden
blitz-guard - Blitz Guard - The centralized permission based authorization for Blitz.js
redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development
monarch-map
cow-list - Copy-On-Write iterable list
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
riux - 📦 Fully typed and immutable store made on top of Immer with mutation, action, subscription and validation!
remix-routes - Typesafe routing for your Remix apps.
data-transport - A simple and responsible universal transport