Major refinements regressions in 3.9.x
See original GitHub issueRefinements have regressed in 3.9.x
import { z } from 'zod';
z
.string()
.refine(() => false)
.transform(() => {
throw new Error("this shouldn't happen") // in 3.9.x this throws, in 3.8.x it doesn't reach this branch
})
.safeParse("")
3.9.x - throws: https://codesandbox.io/s/angry-hawking-qqx2q?file=/src/index.ts
3.8.x - doesn’t throw: https://codesandbox.io/s/elastic-hooks-eglbu?file=/src/index.ts
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Applied linear statistical models.djvu - University of Florida
Linear statistical models for regression, analysis of variance, ... The fifth edition differs from the fourth in a number of important respects.
Read more >Multi-Step Polynomial Regression Method to Model ... - NCBI
Multi step induction of variables in the non-linear regression analysis (Model refinement). Once the pair wise relationships are identified ...
Read more >Comment on the Iterative Refinement of Least-Squares ... - jstor
Three different iterative algorithms for refining a computed least- squares estimate , = (XTX)-XTy are compared. The first two algorithms are based on...
Read more >Documentation - TypeScript 3.9
TypeScript 3.9 Release Notes. ... Unfortunately, that introduced a few regressions, especially when mixing in values with null or undefined .
Read more >Refinement of a regression-based method for prediction of ...
In this report, several refinements to a particular implementation of the regional regression method for estimating FDCs are evaluated by ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be patched in 3.9.7
@Djaler I guess it’s better to open a separate issue or PR for this to ease tracking