Skip to content

Releases: sapphiredev/shapeshift

v4.0.0

20 May 14:55
3f771ac
Compare
Choose a tag to compare

4.0.0 - (2024-05-20)

🚀 Features

  • Add custom message options to all shapes, validators and constraints (#231) (44a5cea)
    • 💥 BREAKING CHANGE: Most shapes and validators that were previously getters are now functions to allow for custom options. The following list should show all of the changes, but if we have forgot any and you get an error saying something should be a function where you have provided a constant it is safe to assume you simply need to add () to your code for it to work again.
    • 💥 BREAKING CHANGE: PickDefined utility type has been removed.
    • 💥 BREAKING CHANGE: PickUndefinedMakeOptional utility type has been removed.
    • 💥 BREAKING CHANGE: NonNullObject utility type has been removed.
    • 💥 BREAKING CHANGE: s.any is now s.any() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.array(T).lengthEqual is now s.array(T).lengthEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.array(T).lengthGreaterThan is now s.array(T).lengthGreaterThan() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.array(T).lengthGreaterThanOrEqual is now s.array(T).lengthGreaterThanOrEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.array(T).lengthLessThan is now s.array(T).lengthLessThan() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.array(T).lengthLessThanOrEqual is now s.array(T).lengthLessThanOrEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.array(T).lengthNotEqual is now s.array(T).lengthNotEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.array(T).lengthRange is now s.array(T).lengthRange() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.array(T).lengthRangeExclusive is now s.array(T).lengthRangeExclusive() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.array(T).lengthRangeInclusive is now s.array(T).lengthRangeInclusive() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.array(T).unique is now s.array(T).unique() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.array is now s.array() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.bigint.divisibleBy is now s.bigint().divisibleBy() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.bigint.equal is now s.bigint().equal() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.bigint.greaterThan is now s.bigint().greaterThan() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.bigint.greaterThanOrEqual is now s.bigint().greaterThanOrEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.bigint.lessThan is now s.bigint().lessThan() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.bigint.lessThanOrEqual is now s.bigint().lessThanOrEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.bigint.notEqual is now s.bigint().notEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.bigint().abs is now s.bigint().abs() to allow for custom options as second argument.
    • 💥 BREAKING CHANGE: s.bigint().negative is now s.bigint().negative() to allow for custom options as second argument.
    • 💥 BREAKING CHANGE: s.bigint().positive is now s.bigint().positive() to allow for custom options as second argument.
    • 💥 BREAKING CHANGE: s.bigint is now s.bigint() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.bigInt64Array is now s.bigInt64Array() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.bigUint64Array is now s.bigUint64Array() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.boolean.false is now s.boolean().false() to allow for custom options as second argument.
    • 💥 BREAKING CHANGE: s.boolean.true is now s.boolean().true() to allow for custom options as second argument.
    • 💥 BREAKING CHANGE: s.boolean is now s.boolean() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.default(...) now gets a second parameter to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.default(...).default(...) now gets a second parameter to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.date.equal is now s.date().equal() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.date.greaterThan is now s.date().greaterThan() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.date.greaterThanOrEqual is now s.date().greaterThanOrEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.date.invalid is now s.date().invalid() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.date.lessThan is now s.date().lessThan() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.date.lessThanOrEqual is now s.date().lessThanOrEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.date.notEqual is now s.date().notEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.date.valid is now s.date().valid() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.date is now s.date() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.enum(1, 2, 3) is now s.enum([1, 2, 3]) to allow for custom options as second argument.
    • 💥 BREAKING CHANGE: s.float32Array is now s.float32Array() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.float64Array is now s.float64Array() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.int16Array is now s.int16Array() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.int32Array is now s.int32Array() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.int8Array is now s.int8Array() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.never is now s.never() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.null is now s.null() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.nullable is now s.nullable() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.nullish is now s.nullish() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.nullish is now s.nullish() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.abs is now s.number().abs() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.ceil is now s.number().ceil() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.divisibleBy is now s.number().divisibleBy() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.equal is now s.number().equal() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.finite is now s.number().finite() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.floor is now s.number().floor() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.fround is now s.number().fround() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.greaterThan is now s.number().greaterThan() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.greaterThanOrEqual is now s.number().greaterThanOrEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.int is now s.number().int() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.lessThan is now s.number().lessThan() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.lessThanOrEqual is now s.number().lessThanOrEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.negative is now s.number().negative() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.notEqual is now s.number().notEqual() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.positive is now s.number().positive() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.round is now s.number().round() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.safeInt is now s.number().safeInt() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.sign is now s.number().sign() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number.trunc is now s.number().trunc() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.number is now s.number() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.object.ignore is now s.object().ignore() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.object.partial is now s.object().partial() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.object.passthrough is now s.object().passthrough() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.object.required is now s.object().required() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.object.strict is now s.object().strict() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.optional is now s.optional() to allow for custom options as argument.
    • 💥 BREAKING CHANGE: s.required(...) now gets a second pa...
Read more

v3.9.7

31 Mar 17:47
360507c
Compare
Choose a tag to compare

3.9.7 - (2024-03-31)

🐛 Bug Fixes

  • Allow engines.node >= 16 (a4d8c8d)

v3.9.6

19 Jan 21:00
7ec702f
Compare
Choose a tag to compare

3.9.6 - (2024-01-19)

🐛 Bug Fixes

  • Fixed commonjs typings export mapping (#341) (a5518aa)

v3.9.5

15 Dec 20:30
bfbd68e
Compare
Choose a tag to compare

3.9.5 - (2023-12-15)

🐛 Bug Fixes

  • Properly publish all dist files (8e925fa)

v3.9.4

04 Dec 22:07
05277c0
Compare
Choose a tag to compare

3.9.4 - (2023-12-04)

🐛 Bug Fixes

  • Properly split CJS and ESM (9bb1ff9)

🧪 Testing

  • Update path to global file (d03b19f)

v3.9.3

05 Nov 10:53
d1b48f7
Compare
Choose a tag to compare

3.9.3 - (2023-10-13)

🏠 Refactor

v3.9.2

04 Jun 11:03
83a6840
Compare
Choose a tag to compare

3.9.2 - (2023-06-04)

🐛 Bug Fixes

  • arrayvalidator: Fixed runaway type instantiation with TypeScript >=5.1 (#275) (f59d901)

v3.9.1

02 Jun 20:08
06ac013
Compare
Choose a tag to compare

3.9.1 - (2023-06-02)

🐛 Bug Fixes

  • types: Move the types condition to the front (#273) (5a3e202)

v3.9.0

09 May 20:51
Compare
Choose a tag to compare

3.9.0 - (2023-05-09)

🐛 Bug Fixes

🚀 Features

v3.8.2

09 May 20:51
Compare
Choose a tag to compare

3.8.2 - (2023-04-02)

🐛 Bug Fixes