@siteimprove/alfa-refinement
Advanced tools
Comparing version 0.93.8 to 0.94.0
# @siteimprove/alfa-refinement | ||
## 0.94.0 | ||
### Minor Changes | ||
- **Added:** `Refinement.tee` is now available. ([#1709](https://github.com/Siteimprove/alfa/pull/1709)) | ||
## 0.93.8 | ||
@@ -4,0 +10,0 @@ |
@@ -0,1 +1,2 @@ | ||
import type { Callback } from "@siteimprove/alfa-callback"; | ||
import type { Mapper } from "@siteimprove/alfa-mapper"; | ||
@@ -66,2 +67,7 @@ import { Predicate } from "@siteimprove/alfa-predicate"; | ||
export const equals: Equals; | ||
interface Tee { | ||
<T, U extends T, A extends Array<unknown> = []>(refinement: Refinement<T, U, A>, callback: Callback<T, void, [result: boolean, ...args: A]>): Refinement<T, U, A>; | ||
<T, A extends Array<unknown> = []>(predicate: Predicate<T, A>, callback: Callback<T, void, [result: boolean, ...args: A]>): Predicate<T, A>; | ||
} | ||
export const tee: Tee; | ||
export function isString(value: unknown): value is string; | ||
@@ -68,0 +74,0 @@ export function isNumber(value: unknown): value is number; |
@@ -16,2 +16,3 @@ import { Predicate } from "@siteimprove/alfa-predicate"; | ||
Refinement.equals = Predicate.equals; | ||
Refinement.tee = Predicate.tee; | ||
function isString(value) { | ||
@@ -18,0 +19,0 @@ return typeof value === "string"; |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://alfa.siteimprove.com", | ||
"version": "0.93.8", | ||
"version": "0.94.0", | ||
"license": "MIT", | ||
@@ -26,7 +26,8 @@ "description": "Functionality for working with first-order type predicates", | ||
"dependencies": { | ||
"@siteimprove/alfa-mapper": "^0.93.8", | ||
"@siteimprove/alfa-predicate": "^0.93.8" | ||
"@siteimprove/alfa-callback": "^0.94.0", | ||
"@siteimprove/alfa-mapper": "^0.94.0", | ||
"@siteimprove/alfa-predicate": "^0.94.0" | ||
}, | ||
"devDependencies": { | ||
"@siteimprove/alfa-test": "^0.93.8" | ||
"@siteimprove/alfa-test": "^0.94.0" | ||
}, | ||
@@ -33,0 +34,0 @@ "publishConfig": { |
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
11865
141
3
+ Added@siteimprove/alfa-callback@0.94.1(transitive)
+ Added@siteimprove/alfa-equatable@0.94.1(transitive)
+ Added@siteimprove/alfa-mapper@0.94.1(transitive)
+ Added@siteimprove/alfa-predicate@0.94.1(transitive)
- Removed@siteimprove/alfa-callback@0.93.8(transitive)
- Removed@siteimprove/alfa-equatable@0.93.8(transitive)
- Removed@siteimprove/alfa-mapper@0.93.8(transitive)
- Removed@siteimprove/alfa-predicate@0.93.8(transitive)