Repository navigation
Releases: AgustinSRG/javascript-object-sanitizer
Releases · AgustinSRG/javascript-object-sanitizer
Release list
Version 1.1.0
Fix issue with previous version causing errors when extending optional schemas.
Patch version 1.0.1
Fix minor issue related to optional properties not allowing null.
Example:
const schema = ObjectSchema.create()
.withProperty("req", ObjectSchema.string().withDefaultValue(""))
.withProperty("opt", ObjectSchema.optional(ObjectSchema.string().withDefaultValue("")));
expect(schema.test({ req: "Example Required", opt: "Example Optional" })).to.be.true;
expect(schema.test({ req: "Example Required" })).to.be.true;
expect(schema.test({ req: "Example Required", opt: null})).to.be.true; // Before the fix, this was falseVersion 1.0.0
Bump version to 1.0.0 Also use explicit version numbers for devDependencies
Version 0.0.5
v0.0.5 Remove broken badges from README.md
First Version
v0.0.4 Setup CI workflow