deb4639: BREAKING CHANGE: Refactor ValidationError to accept ErrorOptions as second parameter.
What changed?
Previously, ValidationError accepted Array<ZodIssue> as 2nd parameter. Now, it accepts ErrorOptions which contains a cause property. If cause is a ZodError then it will extract the attached issues and expose them over error.details.
Why?
This change allows us to use ValidationError like a native JavaScript Error. For example, we can now do:
import { ValidationError } from 'zod-validation-error';
try {
// attempt to do something that might throw an error
} catch (err) {
throw new ValidationError('Something went deeply wrong', { cause: err });
}
How can you update your code?
If you are using ValidationError directly, then you need to update your code to pass ErrorOptions as a 2nd parameter.
import { ValidationError } from 'zod-validation-error';
// before
const err = new ValidationError('Something went wrong', zodError.issues);
// after
const err = new ValidationError('Something went wrong', { cause: zodError });
If you were never using ValidationError directly, then you don't need to do anything.
deb4639: BREAKING CHANGE: Refactor ValidationError to accept ErrorOptions as second parameter.
What changed?
Previously, ValidationError accepted Array<ZodIssue> as 2nd parameter. Now, it accepts ErrorOptions which contains a cause property. If cause is a ZodError then it will extract the attached issues and expose them over error.details.
Why?
This change allows us to use ValidationError like a native JavaScript Error. For example, we can now do:
import { ValidationError } from 'zod-validation-error';
try {
// attempt to do something that might throw an error
} catch (err) {
throw new ValidationError('Something went deeply wrong', { cause: err });
}
How can you update your code?
If you are using ValidationError directly, then you need to update your code to pass ErrorOptions as a 2nd parameter.
import { ValidationError } from 'zod-validation-error';
// before
const err = new ValidationError('Something went wrong', zodError.issues);
// after
const err = new ValidationError('Something went wrong', { cause: zodError });
If you were never using ValidationError directly, then you don't need to do anything.
Bumps the all group with 22 updates:
14.0.4
14.1.0
20.10.6
20.11.14
18.2.46
18.2.49
0.6.1
0.6.2
3.3.0
4.0.1
14.0.4
14.1.0
0.303.0
0.320.0
14.0.4
14.1.0
17.4.2
17.5.0
11.0.0
11.1.0
0.33.1
0.33.2
2.1.0
3.0.0
6.1.6
6.4.1
14.1.2
14.2.0
6.16.0
6.20.0
6.16.0
6.20.0
10.4.16
10.4.17
5.1.2
5.1.3
8.4.32
8.4.33
3.1.1
3.2.4
0.5.10
0.5.11
3.4.0
3.4.1
Updates
@next/font
from 14.0.4 to 14.1.0Release notes
Sourced from
@next/font
's releases.... (truncated)
Commits
16e7a5b
v14.1.01b255a6
v14.0.5-canary.682096dfa
v14.0.5-canary.678179e70
v14.0.5-canary.6670fc402
v14.0.5-canary.658d4e5be
v14.0.5-canary.64a211566
v14.0.5-canary.63c583528
v14.0.5-canary.627f3d909
v14.0.5-canary.617341149
v14.0.5-canary.60Updates
@types/node
from 20.10.6 to 20.11.14Commits
Updates
@types/react
from 18.2.46 to 18.2.49Commits
Updates
@vercel/og
from 0.6.1 to 0.6.2Updates
culori
from 3.3.0 to 4.0.1Release notes
Sourced from culori's releases.
Commits
db06e94
4.0.1abff3b3
Fix reference to index.js in itp definition, fixes #2239a6ab49
Add ITP to docs/api.md (#222)6e3189e
Switch from tap-spec (unmaintained, npm audit-failing) to tap-arc5954826
Remove unused functiona814413
Upgrade development dependencies.58810f3
4.0.0da5d072
Handle missing components in gamut mapping functions01ae144
add ΔE_ITP color difference as differenceItp()53b4479
Adjustments to itp color space:Updates
eslint-config-next
from 14.0.4 to 14.1.0Release notes
Sourced from eslint-config-next's releases.
... (truncated)
Commits
16e7a5b
v14.1.01b255a6
v14.0.5-canary.682096dfa
v14.0.5-canary.678179e70
v14.0.5-canary.6670fc402
v14.0.5-canary.658d4e5be
v14.0.5-canary.64a211566
v14.0.5-canary.63c583528
v14.0.5-canary.627f3d909
v14.0.5-canary.617341149
v14.0.5-canary.60Updates
lucide-react
from 0.303.0 to 0.320.0Release notes
Sourced from lucide-react's releases.
... (truncated)
Commits
55f264b
Bump vite from 5.0.10 to 5.0.12 (#1817)d4cbe89
Remove aliasesSupport flag from rollup.config.mjs (#1794)ef89510
Implement deprecated block comment (#1765)faff6a8
Update dependencies and general improvements in packages (#1773)Updates
next
from 14.0.4 to 14.1.0Release notes
Sourced from next's releases.
... (truncated)
Commits
16e7a5b
v14.1.08a3881f
Update labeler.json (#60843)1b255a6
v14.0.5-canary.6802c2f11
Enable missing suspense bailout by default (#60840)2096dfa
v14.0.5-canary.67b8d8e6e
dx: warn the deprecated cache configs are used (#60836)c192f4e
turbopack: rename custom cache handler configs (#60828)2227ae5
Revert "Fix: Throw an error for empty array return ingenerateStaticParams
...b7f5107
Fix: respect init.cache if fetch input is request instance (#60821)752c15e
Add metrics names for unstable_cache (#60802)Updates
react-use
from 17.4.2 to 17.5.0Release notes
Sourced from react-use's releases.
Changelog
Sourced from react-use's changelog.
Commits
ade8d39
chore(release): 17.5.0 [skip ci]ac64414
feat: addisFirst
andisLast
methods touseStateList
hook6a9dde5
feat(pencil): fix with yarn lint:fix75218e4
feat(pencil): add isFirst and isLast return value to 'useStateList'82146f6
chore(release): 17.4.4 [skip ci]0534648
fix: typo in example06afdf7
Merge pull request #2535 from suisous/pr/suisousea688b0
chore(release): 17.4.3 [skip ci]3264d96
Merge pull request #2536 from willnguyen1312/pr/update-use-mediae7379f0
fix: update useMedia hook to use recommended approach of MDNUpdates
remark-rehype
from 11.0.0 to 11.1.0Release notes
Sourced from remark-rehype's releases.
Commits
6407b61
11.1.00174dfc
Addfile
to options passed tomdast-util-to-hast
cf87ade
Update dev-dependenciesUpdates
sharp
from 0.33.1 to 0.33.2Changelog
Sourced from sharp's changelog.
Commits
bcb22af
Release v0.33.2d04dc62
Prerelease v0.33.2-rc.1c30d355
CI: Fix npm smoke test expectation49cb148
Prerelease v0.33.2-rc.03bc31a8
CI: Verify emscripten versions matchc28523e
CI: Update Emscripten Docker image to 3.1.51 (#3907)278f393
Upgrade to libvips v8.15.1cbf68c1
Improve error for unsupported multi-page rotation #394045e8071
Add runtime check for outdated Node.js versionb96389d
Docs: refresh indexUpdates
zod-validation-error
from 2.1.0 to 3.0.0Release notes
Sourced from zod-validation-error's releases.
Changelog
Sourced from zod-validation-error's changelog.
Commits
bfc7eaa
chore: version packagesd42a422
docs: ensure the difference between error.toString and error is clear7facf89
refactor: move prefixMessage to its own file0a402e3
fix: drop accidental ternary operationd86448b
docs: add example for using zod-validation-error with react-hook-formee7015f
test: cover thecause
property in ValidationError tests4ad2589
docs: setoptions.cause
asany
deb4639
feat: add changesets316e796
refactor: expose issues viadetails
to ease the migration path9b6d169
docs: update docsUpdates
@testing-library/jest-dom
from 6.1.6 to 6.4.1Release notes
Sourced from
@testing-library/jest-dom
's releases.Commits
dd1c4dd
fix: Export typeTestingLibraryMatchers
from "./matchers" (#576)f7dc673
feat: Add toHaveRole matcher (#572)9787ed5
feat: Support for regular expressions in toHaveClass (#563)5675b86
fix: Standalone types for "./matchers" export and add Bun support (#566)1fb156c
feat: toHaveAccessibleDescription supports aria-description (#565)Updates
@testing-library/react
from 14.1.2 to 14.2.0Release notes
Sourced from
@testing-library/react
's releases.Commits
4509fb6
docs: add yinm as a contributor for code (#1269)0880eba
feat: addreactStrictMode
option to enable strict mode render (#1241)03a301f
chore: update stackblitz url in issue template (#1258)Updates
@typescript-eslint/eslint-plugin
from 6.16.0 to 6.20.0Release notes
Sourced from
@typescript-eslint/eslint-plugin
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/eslint-plugin
's changelog.The latest updates on your projects. Learn more about Vercel for Git ↗︎