effect
4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed
Your version
3.22.5 is the newest release of 3.x.
In short
1 new
Security
2 advisories affect 3.10.4; 3.22.1 fixes them
- HighEffect: ReDoS in Schema.TemplateLiteral compiled regexGHSA-7589-6fvf-x4pw · 19 Nov 2026Fixed in 3.22.1
- HighEffect `AsyncLocalStorage` context lost/contaminated inside Effect fibers under concurrent load with RPCGHSA-38f7-945m-qr2g · 20 Mar 2026Fixed in 3.20.0
Release note
Patch Changes
Add support for
Schema.OptionFromUndefinedOrin JSON Schema generation, closes #3839Before
import { JSONSchema, Schema } from "effect" const schema = Schema.Struct({ a: Schema.OptionFromUndefinedOr(Schema.Number) }) console.log(JSON.stringify(JSONSchema.make(schema), null, 2)) /* throws: Error: Missing annotation at path: ["a"] details: Generating a JSON Schema for this schema requires a "jsonSchema" annotation schema (UndefinedKeyword): undefined */After
import { JSONSchema, Schema } from "effect" const schema = Schema.Struct({ a: Schema.OptionFromUndefinedOr(Schema.Number) }) console.log(JSON.stringify(JSONSchema.make(schema), null, 2)) /* Output: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "required": [], "properties": { "a": { "type": "number" } }, "additionalProperties": false } */
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.