
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
Cow List provides a Copy-On-Write iterable list that supports logarithmic searches. It provides also a mutable iterable List with versioning capabilities.
Cow List naively supports lengthy values (objects with a length property). This makes Cow List a perfect fit to implement a rope.
Cow List provides immutable lists and mutable lists. Immutable lists are well-suited for projects that embrace immutability and purity. They use a copy-on-write strategy to achieve better performances. Mutable lists have versioning capabilities that enable to fork a the list into two independent mutable lists. They are well-suited for projects that implements their own copy-on-write data structures.
Cow List implements a close to minimum set of features. This makes Cow List lightweight (2kB minified and gziped). These features are carefully chosen for enabling the design of advanced data structures. For instance, Cow List enables to implement sorted lists and ropes.
Cow List is aware of lengthy values (objects with a length property). When you iterate over a list, you have access to the cumulated length (summary) of the traversed values. This enables to efficiently implement a rope.
The main way to traverse a list is to get an iterator. Cow List enables to logarithmically chooses where to start the iteration.
Install cow-list as a dependency:
npm install cow-list
import { CowList } from "cow-list"
let l = CowList.empty<string>()
l = l.inserted(0, "ab")
l = l.inserted(1, "c")
l = l.inserted(2, "d")
l = l.deleted(1)
l = l.replaced(1, "de")
for (const v of l) {
console.log(v)
// ab
// de
}
import { MutList } from "cow-list"
let l = MutList.empty<string>()
l.insert(0, "ab")
l.insert(1, "c")
l.insert(2, "d")
l.delet(1)
l.replac(1, "de")
for (const v of l) {
console.log(v)
// ab
// de
}
Please take a look to the provided examples.
I wished to have a generic building block to implement Dotted LogootSplit. Dotted LogootSplit is a new replicated data structure designed for collaborative editing. The data structure combines a search tree and a rope.
For now, Cow List uses a partially persistent AVL tree. This could change in the future in order to achieve better performances.
FAQs
Copy-on-write iterable list
We found that cow-list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.