
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
@unsplash/sum-types
Advanced tools
Safe, ergonomic, non-generic sum types in TypeScript.
Documentation: unsplash.github.io/sum-types
Example:
import { Member, create } from "@unsplash/sum-types"
type Weather = Member<"Sun"> | Member<"Rain", number>
const {
mk: { Sun, Rain },
match,
} = create<Weather>()
const getRainfall = match({
Rain: n => `${n}mm`,
Sun: () => "none",
})
const todayWeather = Rain(5)
getRainfall(todayWeather) // '5mm'
The library is available on the npm registry: @unsplash/sum-types
Note that due to usage of Proxy and Symbol this library only supports ES2015+.
The following bindings are also available:
The library solves a number of problems we've experienced at Unsplash with alternative libraries in this space. Specifically:
The compromise we've made to achieve this is to not support generic sum types, as in our testing we've found that they introduce unsafety into pattern matching and complicate the API. We deem this acceptable as, in our experience, in an ecosystem which already contains the likes of fp-ts and remote-data-ts, non-generic sum types are good enough for almost all domain types written in real-world application code.
FAQs
Safe, ergonomic, non-generic sum types in TypeScript.
The npm package @unsplash/sum-types receives a total of 242 weekly downloads. As such, @unsplash/sum-types popularity was classified as not popular.
We found that @unsplash/sum-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.