You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ark/attest/CHANGELOG.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,20 @@
1
1
# @ark/attest
2
2
3
+
NOTE: This changelog is incomplete, but will include notable attest-specific changes (many updates consist almost entirely of bumped `arktype` versions for assertions).
4
+
5
+
## 0.42.0
6
+
7
+
### Bail early for obviously incorrect `equals` comparisons
8
+
9
+
This is the short-term solution to #1287, where some comparisons with Node's `deepStrictEqual` and object with recursive properties like Type resulted in OOM crashes.
10
+
11
+
We will eventually add new string-diffing logic, but for now we just make some shallow comparisons between constructors and types to avoid common problematic comparisons, e.g. between Type instances:
12
+
13
+
```ts
14
+
// previously resulted in OOM exception, now shallowly fails with simple error
15
+
attest(type.string).equals(type.boolean)
16
+
```
17
+
3
18
## 0.11.0
4
19
5
20
- Fix a bug causing certain serialized types with backticks and template literals to be incorrectly formatted on inline snapshot
0 commit comments