@appliedblockchain/assert-combinators
Advanced tools
Comparing version
# Changelog | ||
## [v5.4.1](../../compare/v5.4.0...v5.4.1) (2022-09-21) | ||
* Fix: preserve backward compatibility. | ||
* Updating changelog. | ||
## [v5.4.0](../../compare/v5.3.2...v5.4.0) (2022-09-21) | ||
@@ -4,0 +9,0 @@ |
@@ -51,2 +51,2 @@ import and from './and.js'; | ||
export * from './prelude.js'; | ||
export { and, array, boolean, dateString, defined, eq, errorOf, eventually, exact, false_ as false, finite, gt, gte, if_ as if, ignore, implies, in_ as in, instance, keyed, lt, lte, never_ as never, nonBlankString, nonNullish, null_ as null, nullish, nullishOr, nullOr, number, object, ok, oneOf, or, partial, positive, predicate, record, regexp, rethrow, safeInteger, sequence, strftime, string, true_ as true, tuple, undefined_ as undefined, undefinedOr, unique, unknown }; | ||
export { and, array, boolean, dateString, defined, eq, errorOf, eventually, exact, false_ as false, finite, gt, gte, if_ as if, ignore, implies, in_ as in, instance, keyed, lt, lte, never_ as never, nonBlankString, nonNullish, null_ as null, nullish, nullishOr, nullOr, number, object, ok, oneOf, or, partial, positive, predicate, record, regexp, rethrow, safeInteger, sequence, strftime, string, true_ as true, tuple, undefined_ as undefined, undefinedOr, unique, unknown, nullish as nil, nullishOr as nilOr }; |
@@ -20,3 +20,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.unknown = exports.unique = exports.undefinedOr = exports.undefined = exports.tuple = exports.true = exports.string = exports.strftime = exports.sequence = exports.safeInteger = exports.rethrow = exports.regexp = exports.record = exports.predicate = exports.positive = exports.partial = exports.or = exports.oneOf = exports.ok = exports.object = exports.number = exports.nullOr = exports.nullishOr = exports.nullish = exports.null = exports.nonNullish = exports.nonBlankString = exports.never = exports.lte = exports.lt = exports.keyed = exports.instance = exports.in = exports.implies = exports.ignore = exports.if = exports.gte = exports.gt = exports.finite = exports.false = exports.exact = exports.eventually = exports.errorOf = exports.eq = exports.defined = exports.dateString = exports.boolean = exports.array = exports.and = void 0; | ||
exports.nil = exports.unknown = exports.unique = exports.undefinedOr = exports.undefined = exports.tuple = exports.true = exports.string = exports.strftime = exports.sequence = exports.safeInteger = exports.rethrow = exports.regexp = exports.record = exports.predicate = exports.positive = exports.partial = exports.or = exports.oneOf = exports.ok = exports.object = exports.number = exports.nullOr = exports.nullishOr = exports.nullish = exports.null = exports.nonNullish = exports.nonBlankString = exports.never = exports.lte = exports.lt = exports.keyed = exports.instance = exports.in = exports.implies = exports.ignore = exports.if = exports.gte = exports.gt = exports.finite = exports.false = exports.exact = exports.eventually = exports.errorOf = exports.eq = exports.defined = exports.dateString = exports.boolean = exports.array = exports.and = void 0; | ||
exports.nilOr = void 0; | ||
const and_js_1 = __importDefault(require("./and.js")); | ||
@@ -74,4 +75,6 @@ exports.and = and_js_1.default; | ||
exports.nullish = nullish_js_1.default; | ||
exports.nil = nullish_js_1.default; | ||
const nullish_or_js_1 = __importDefault(require("./nullish-or.js")); | ||
exports.nullishOr = nullish_or_js_1.default; | ||
exports.nilOr = nullish_or_js_1.default; | ||
const null_or_js_1 = __importDefault(require("./null-or.js")); | ||
@@ -78,0 +81,0 @@ exports.nullOr = null_or_js_1.default; |
@@ -9,2 +9,4 @@ /** Helper no-op, parametric type to expand intellisense for alias types. */ | ||
export declare type Keyed<T = unknown> = Record<string, T | undefined>; | ||
/** @deprecated use {@link Nullish} */ | ||
export declare type NilOr<T> = undefined | null | T; | ||
export declare type Nullish<T> = undefined | null | T; | ||
@@ -11,0 +13,0 @@ export declare type UndefinedOr<T> = undefined | T; |
@@ -51,2 +51,2 @@ import and from './and.js'; | ||
export * from './prelude.js'; | ||
export { and, array, boolean, dateString, defined, eq, errorOf, eventually, exact, false_ as false, finite, gt, gte, if_ as if, ignore, implies, in_ as in, instance, keyed, lt, lte, never_ as never, nonBlankString, nonNullish, null_ as null, nullish, nullishOr, nullOr, number, object, ok, oneOf, or, partial, positive, predicate, record, regexp, rethrow, safeInteger, sequence, strftime, string, true_ as true, tuple, undefined_ as undefined, undefinedOr, unique, unknown }; | ||
export { and, array, boolean, dateString, defined, eq, errorOf, eventually, exact, false_ as false, finite, gt, gte, if_ as if, ignore, implies, in_ as in, instance, keyed, lt, lte, never_ as never, nonBlankString, nonNullish, null_ as null, nullish, nullishOr, nullOr, number, object, ok, oneOf, or, partial, positive, predicate, record, regexp, rethrow, safeInteger, sequence, strftime, string, true_ as true, tuple, undefined_ as undefined, undefinedOr, unique, unknown, nullish as nil, nullishOr as nilOr }; |
@@ -51,3 +51,5 @@ import and from './and.js'; | ||
export * from './prelude.js'; | ||
export { and, array, boolean, dateString, defined, eq, errorOf, eventually, exact, false_ as false, finite, gt, gte, if_ as if, ignore, implies, in_ as in, instance, keyed, lt, lte, never_ as never, nonBlankString, nonNullish, null_ as null, nullish, nullishOr, nullOr, number, object, ok, oneOf, or, partial, positive, predicate, record, regexp, rethrow, safeInteger, sequence, strftime, string, true_ as true, tuple, undefined_ as undefined, undefinedOr, unique, unknown }; | ||
export { and, array, boolean, dateString, defined, eq, errorOf, eventually, exact, false_ as false, finite, gt, gte, if_ as if, ignore, implies, in_ as in, instance, keyed, lt, lte, never_ as never, nonBlankString, nonNullish, null_ as null, nullish, nullishOr, nullOr, number, object, ok, oneOf, or, partial, positive, predicate, record, regexp, rethrow, safeInteger, sequence, strftime, string, true_ as true, tuple, undefined_ as undefined, undefinedOr, unique, unknown, | ||
// Backward compatibility: | ||
nullish as nil, nullishOr as nilOr }; | ||
//# sourceMappingURL=index.js.map |
@@ -9,2 +9,4 @@ /** Helper no-op, parametric type to expand intellisense for alias types. */ | ||
export declare type Keyed<T = unknown> = Record<string, T | undefined>; | ||
/** @deprecated use {@link Nullish} */ | ||
export declare type NilOr<T> = undefined | null | T; | ||
export declare type Nullish<T> = undefined | null | T; | ||
@@ -11,0 +13,0 @@ export declare type UndefinedOr<T> = undefined | T; |
{ | ||
"name": "@appliedblockchain/assert-combinators", | ||
"version": "5.4.0", | ||
"version": "5.4.1", | ||
"description": "Assertion combinators.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -102,3 +102,7 @@ import and from './and.js' | ||
unique, | ||
unknown | ||
unknown, | ||
// Backward compatibility: | ||
nullish as nil, | ||
nullishOr as nilOr | ||
} |
@@ -23,2 +23,8 @@ /** Helper no-op, parametric type to expand intellisense for alias types. */ | ||
/** @deprecated use {@link Nullish} */ | ||
export type NilOr<T> = | ||
| undefined | ||
| null | ||
| T | ||
export type Nullish<T> = | ||
@@ -25,0 +31,0 @@ | undefined |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
181967
0.45%3044
0.56%