-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2be4f5b
commit 1aa6064
Showing
9 changed files
with
96 additions
and
84 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,83 @@ | ||
# @arktype/attest | ||
|
||
## 0.8.0 | ||
|
||
### Minor Changes | ||
|
||
- [#1011](https://github.com/arktypeio/arktype/pull/1011) [`2be4f5b`](https://github.com/arktypeio/arktype/commit/2be4f5b391d57ad47dc6f4c0e4c9d31ae6b550c5) Thanks [@ssalbdivad](https://github.com/ssalbdivad)! - ### Throw by default when attest.instantiations() exceeds the specified benchPercentThreshold | ||
|
||
Tests like this will now correctly throw inline instead of return a non-zero exit code: | ||
|
||
```ts | ||
it("can snap instantiations", () => { | ||
type Z = makeComplexType<"asbsdfsaodisfhsda"> | ||
// will throw here as the actual number of instantiations is more | ||
// than 20% higher than the snapshotted value | ||
attest.instantiations([1, "instantiations"]) | ||
}) | ||
``` | ||
|
||
### Snapshotted completions will now be alphabetized | ||
|
||
This will help improve stability, especially for large completion lists like this one which we updated more times than we'd care to admit 😅 | ||
|
||
```ts | ||
attest(() => type([""])).completions({ | ||
"": [ | ||
"...", | ||
"===", | ||
"Array", | ||
"Date", | ||
"Error", | ||
"Function", | ||
"Map", | ||
"Promise", | ||
"Record", | ||
"RegExp", | ||
"Set", | ||
"WeakMap", | ||
"WeakSet", | ||
"alpha", | ||
"alphanumeric", | ||
"any", | ||
"bigint", | ||
"boolean", | ||
"creditCard", | ||
"digits", | ||
"email", | ||
"false", | ||
"format", | ||
"instanceof", | ||
"integer", | ||
"ip", | ||
"keyof", | ||
"lowercase", | ||
"never", | ||
"null", | ||
"number", | ||
"object", | ||
"parse", | ||
"semver", | ||
"string", | ||
"symbol", | ||
"this", | ||
"true", | ||
"undefined", | ||
"unknown", | ||
"uppercase", | ||
"url", | ||
"uuid", | ||
"void" | ||
] | ||
}) | ||
``` | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [[`2be4f5b`](https://github.com/arktypeio/arktype/commit/2be4f5b391d57ad47dc6f4c0e4c9d31ae6b550c5)]: | ||
- @arktype/util@0.0.49 | ||
- [email protected] | ||
|
||
## 0.7.10 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@arktype/attest", | ||
"version": "0.7.10", | ||
"version": "0.8.0", | ||
"author": { | ||
"name": "David Blass", | ||
"email": "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@arktype/util", | ||
"version": "0.0.48", | ||
"version": "0.0.49", | ||
"author": { | ||
"name": "David Blass", | ||
"email": "[email protected]", | ||
|