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

@rbxts/immut

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rbxts/immut - npm Package Compare versions

Comparing version 0.4.0-ts.0 to 0.4.0-ts.1

2

package.json
{
"name": "@rbxts/immut",
"version": "0.4.0-ts.0",
"version": "0.4.0-ts.1",
"description": "A draft-based immutable data library based on Immer",

@@ -5,0 +5,0 @@ "main": "src/init.lua",

@@ -10,8 +10,7 @@ # Immut

```ts
import Immut, { None, produce } from "@rbxts/immut";
import Immut, { produce } from "@rbxts/immut";
let oldState: Array<string> | undefined;
const oldState = ["foo"];
const newState = produce(oldState, (draft) => {
if (!draft) return [];
if (draft.includes("foo")) return None;

@@ -18,0 +17,0 @@ // draft.push(), draft.insert(), draft.unshift() NOT allowed as they compile to table.insert, which is not draft-safe

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