question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Major refinements regressions in 3.9.x

See original GitHub issue

Refinements 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
colinhackscommented, Oct 5, 2021

This should be patched in 3.9.7

0reactions
FlorianWendelborncommented, Oct 6, 2021

@Djaler I guess it’s better to open a separate issue or PR for this to ease tracking

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found