All Versions
89
Latest Version
Avg Release Cycle
37 days
Latest Release
587 days ago

Changelog History
Page 1

  • v1.0.0-beta.7

    August 20, 2022
  • v1.0.0-beta.6 Changes

    August 20, 2022

    ๐Ÿ› Bug Fixes

    • ๐Ÿ”„ change mixed generic to unknown from any (5e8e8ef)
    • count stripping unknown fields as changes for object casts (2b4773c), closes #1620
    • types: export more types (433a452)
  • v1.0.0-beta.5 Changes

    August 19, 2022

    ๐Ÿ› Bug Fixes

    ๐Ÿ”‹ Features

    • โž• add cast nullability migration path. (#1749) (2bb099e)
    • ๐Ÿ‘ better Lazy types and deepPartial fixes (#1748) (e4ae6ed)

    ๐Ÿ’ฅ BREAKING CHANGES

    • The types for Lazy have changes a bit, it's unlikely that this affects anyone but it is technically a breaking change.
  • v1.0.0-beta.4 Changes

    April 10, 2022

    ๐Ÿ› Bug Fixes

    • boolean: calling optional made it non-optional (4ba02a1), closes #1627
  • v1.0.0-beta.3 Changes

    March 09, 2022

    ๐Ÿ› Bug Fixes

    ๐Ÿ’ฅ BREAKING CHANGES

    • โœ… 'required' no longer adds a test for most schema, to determine if a schema is required, check it's spec.optional and spec.nullable values, also accessible via describe()
  • v1.0.0-beta.2 Changes

    January 21, 2022

    ๐Ÿ› Bug Fixes

    ๐Ÿ”‹ Features

    ๐Ÿ’ฅ BREAKING CHANGES

    • The function version of when() has been changed to make it easier to type. values are always passed as an array and schema, and options always the second and third argument. this is no longer set to the schema instance. and all functions must return a schema to be type safe
     string()
    -   .when('other', function (other) => {
    -      if (other) return this.required()
    +   .when('other', ([other], schema) => {
    +     return other ? schema.required() : schema
      })
    
    • ๐Ÿ— concat works shallowly now. Previously concat functioned like a deep merge for object, which produced confusing behavior with incompatible concat'ed schema. Now concat for objects works similar to how it works for other types, the provided schema is applied on top of the existing schema, producing a new schema that is the same as calling each builder method in order

    • ๐Ÿ“„ docs: update readme

    • โšก๏ธ chore: update to readonly arrays and test string type narrowing

    • โœ… test: add boolean tests

    • ๐Ÿ“„ docs: more docs

    • feat: allow mixed schema to specify type check

    • mixed schema are no longer treated as the base class for other schema types. It hasn't been for a while, but we've done some nasty prototype slinging to make it behave like it was. Now typescript types should be 1 to 1 with the actual classes yup exposes.

    In general this should not affect anything unless you are extending (via addMethod or otherwise) mixed prototype.

    import {
    -  mixed,
    +  Schema,
    } from 'yup';
    
    - addMethod(mixed, 'method', impl)
    + addMethod(Schema, 'method', impl)
    
    • chore: prep work for toggling coercion

    • Publish v1.0.0-alpha.4

    • ๐Ÿ“„ chore: docs

    • ๐Ÿšš feat!: add json() method and remove default object/array coercion

    • 0๏ธโƒฃ object and array schema no longer parse JSON strings by default, nor do they return null for invalid casts.

    object().json().cast('{}')
    array().json().cast('[]')
    

    to mimic the previous behavior

    • feat: Make Array generic consistent with others
    • types only, ArraySchema initial generic is the array type not the type of the array element. array<T>() is still the inner type.

    • Publish v1.0.0-beta.0

    • ๐Ÿ“„ docs

  • v0.32.11 Changes

    October 12, 2021

    ๐Ÿ› Bug Fixes

  • v0.32.10 Changes

    October 11, 2021

    ๐Ÿ› Bug Fixes

    • carry over excluded edges when concating objects (5334349), closes #1423
    • ๐Ÿ›  fix the typo for the array length validation (#1287) (4c17508)
    • missing transforms on concat (f3056f2), closes #1260
    • oneOf, notOneOf swallowing multiple errors (#1434) (7842afb)
    • โœ… prevent unhandled Promise rejection when returning rejected Promise inside test function (#1327) (5eda549)
    • SchemaOf<>'s treatment of Date objects. (#1305) (91ace1e), closes #1243 #1302
    • โšก๏ธ update lodash/lodash-es to fix CVEs flagged in 4.17.20 (#1334) (70d0b67)
    • utils: use named functions for default exports (#1329) (acbb8b4)

    ๐Ÿ”‹ Features

  • v0.32.9 Changes

    February 17, 2021

    ๐Ÿ› Bug Fixes

  • v0.32.6 Changes

    December 08, 2020

    ๐Ÿ› Bug Fixes