Skip to content

Releases: AgustinSRG/javascript-object-sanitizer

Version 1.1.0

Choose a tag to compare

@AgustinSRG AgustinSRG released this 24 Oct 12:56
8a3112b

Fix issue with previous version causing errors when extending optional schemas.

Patch version 1.0.1

Choose a tag to compare

@AgustinSRG AgustinSRG released this 24 Oct 11:59
ee959cb

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 false

Version 1.0.0

Choose a tag to compare

@AgustinSRG AgustinSRG released this 18 Mar 13:22
Bump version to 1.0.0

Also use explicit version numbers for devDependencies

Version 0.0.5

Choose a tag to compare

@AgustinSRG AgustinSRG released this 19 Feb 13:15
v0.0.5

Remove broken badges from README.md

First Version

First Version Pre-release
Pre-release

Choose a tag to compare

@AgustinSRG AgustinSRG released this 28 Jul 10:54
7613b7f
v0.0.4

Setup CI workflow