Comparing version 0.32.5 to 0.32.6
@@ -0,1 +1,12 @@ | ||
## [0.32.6](https://github.com/jquense/yup/compare/v0.32.5...v0.32.6) (2020-12-08) | ||
### Bug Fixes | ||
* mixed() is the the base class ([7f8591d](https://github.com/jquense/yup/commit/7f8591d)), closes [#1156](https://github.com/jquense/yup/issues/1156) | ||
## [0.32.5](https://github.com/jquense/yup/compare/v0.32.4...v0.32.5) (2020-12-07) | ||
@@ -2,0 +13,0 @@ |
@@ -5,9 +5,3 @@ import type { MixedLocale } from './locale'; | ||
import BaseSchema from './schema'; | ||
export declare function create<TType = any>(): MixedSchema<TType | undefined, Record<string, any>, TType | undefined>; | ||
export declare namespace create { | ||
var prototype: MixedSchema<any, any, any>; | ||
} | ||
export default class MixedSchema<TType = any, TContext = AnyObject, TOut = TType> extends BaseSchema<TType, TContext, TOut> { | ||
} | ||
export default interface MixedSchema<TType = any, TContext = AnyObject, TOut = TType> { | ||
declare class MixedSchema<TType = any, TContext = AnyObject, TOut = TType> extends BaseSchema<TType, TContext, TOut> { | ||
default<TNextDefault extends Maybe<TType>>(def: TNextDefault | (() => TNextDefault)): TNextDefault extends undefined ? MixedSchema<TType | undefined, TContext> : MixedSchema<Defined<TType>, TContext>; | ||
@@ -22,1 +16,7 @@ concat(schema: this): this; | ||
} | ||
declare const Mixed: typeof MixedSchema; | ||
export default Mixed; | ||
export declare function create<TType = any>(): MixedSchema<TType | undefined, Record<string, any>, TType | undefined>; | ||
export declare namespace create { | ||
var prototype: MixedSchema<any, any, any>; | ||
} |
import BaseSchema from './schema'; | ||
const Mixed = BaseSchema; | ||
export default Mixed; | ||
export function create() { | ||
return new MixedSchema(); | ||
} | ||
export default class MixedSchema extends BaseSchema {} | ||
create.prototype = MixedSchema.prototype; | ||
return new Mixed(); | ||
} // XXX: this is using the Base schema so that `addMethod(mixed)` works as a base class | ||
create.prototype = Mixed.prototype; |
@@ -5,9 +5,3 @@ import type { MixedLocale } from './locale'; | ||
import BaseSchema from './schema'; | ||
export declare function create<TType = any>(): MixedSchema<TType | undefined, Record<string, any>, TType | undefined>; | ||
export declare namespace create { | ||
var prototype: MixedSchema<any, any, any>; | ||
} | ||
export default class MixedSchema<TType = any, TContext = AnyObject, TOut = TType> extends BaseSchema<TType, TContext, TOut> { | ||
} | ||
export default interface MixedSchema<TType = any, TContext = AnyObject, TOut = TType> { | ||
declare class MixedSchema<TType = any, TContext = AnyObject, TOut = TType> extends BaseSchema<TType, TContext, TOut> { | ||
default<TNextDefault extends Maybe<TType>>(def: TNextDefault | (() => TNextDefault)): TNextDefault extends undefined ? MixedSchema<TType | undefined, TContext> : MixedSchema<Defined<TType>, TContext>; | ||
@@ -22,1 +16,7 @@ concat(schema: this): this; | ||
} | ||
declare const Mixed: typeof MixedSchema; | ||
export default Mixed; | ||
export declare function create<TType = any>(): MixedSchema<TType | undefined, Record<string, any>, TType | undefined>; | ||
export declare namespace create { | ||
var prototype: MixedSchema<any, any, any>; | ||
} |
@@ -13,9 +13,11 @@ "use strict"; | ||
const Mixed = _schema.default; | ||
var _default = Mixed; | ||
exports.default = _default; | ||
function create() { | ||
return new MixedSchema(); | ||
} | ||
return new Mixed(); | ||
} // XXX: this is using the Base schema so that `addMethod(mixed)` works as a base class | ||
class MixedSchema extends _schema.default {} | ||
exports.default = MixedSchema; | ||
create.prototype = MixedSchema.prototype; | ||
create.prototype = Mixed.prototype; |
{ | ||
"name": "yup", | ||
"version": "0.32.5", | ||
"version": "0.32.6", | ||
"description": "Dead simple Object schema validation", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
309980
5975