Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev-packages/node-integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"globby": "11",
"react": "^18.3.1",
"winston-transport": "^4.9.0",
"zod": "^3.24.1"
"zod": "^4.6.7"
Comment thread
cursor[bot] marked this conversation as resolved.
},
"config": {
"mongodbMemoryServer": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"sideEffects": false,
"devDependencies": {
"@sentry-internal/rollup-utils": "11.9.0",
"zod": "^3.24.1"
"zod": "^4.6.7"
Comment thread
cursor[bot] marked this conversation as resolved.
},
"dependencies": {
"@sentry/conventions": "^0.29.0"
Expand Down
61 changes: 28 additions & 33 deletions packages/core/test/lib/integrations/zoderrrors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,24 +216,24 @@ describe('flattenIssue()', () => {
[
{
"code": "too_small",
"exact": false,
"inclusive": true,
"message": "String must contain at least 1 character(s)",
"message": "Too small: expected string to have >=1 characters",
"minimum": 1,
"origin": "string",
"path": [
"foo",
],
"type": "string",
},
{
"code": "invalid_literal",
"expected": "baz",
"message": "Invalid literal value, expected "baz"",
"code": "invalid_value",
"message": "Invalid input: expected "baz"",
"path": [
"nested",
"bar",
],
"received": "not-baz",
"values": [
"baz",
],
},
]
`);
Expand All @@ -246,23 +246,23 @@ describe('flattenIssue()', () => {
[
{
"code": "too_small",
"exact": false,
"inclusive": true,
"keys": undefined,
"message": "String must contain at least 1 character(s)",
"message": "Too small: expected string to have >=1 characters",
"minimum": 1,
"origin": "string",
"path": "foo",
"type": "string",
"unionErrors": undefined,
},
{
"code": "invalid_literal",
"expected": "baz",
"code": "invalid_value",
"keys": undefined,
"message": "Invalid literal value, expected "baz"",
"message": "Invalid input: expected "baz"",
"path": "nested.bar",
"received": "not-baz",
"unionErrors": undefined,
"values": [
"baz",
],
},
]
`);
Expand All @@ -273,25 +273,25 @@ describe('flattenIssue()', () => {
"foo": [
{
"code": "too_small",
"exact": false,
"inclusive": true,
"keys": undefined,
"message": "String must contain at least 1 character(s)",
"message": "Too small: expected string to have >=1 characters",
"minimum": 1,
"origin": "string",
"path": "foo",
"type": "string",
"unionErrors": undefined,
},
],
"nested": [
{
"code": "invalid_literal",
"expected": "baz",
"code": "invalid_value",
"keys": undefined,
"message": "Invalid literal value, expected "baz"",
"message": "Invalid input: expected "baz"",
"path": "nested.bar",
"received": "not-baz",
"unionErrors": undefined,
"values": [
"baz",
],
},
],
},
Expand Down Expand Up @@ -324,7 +324,7 @@ describe('flattenIssue()', () => {
"extra_key_abc",
"extra_key_def",
],
"message": "Unrecognized key(s) in object: 'extra_key_abc', 'extra_key_def'",
"message": "Unrecognized keys: "extra_key_abc", "extra_key_def"",
"path": [],
},
]
Expand All @@ -347,7 +347,7 @@ describe('flattenIssue()', () => {
{
"code": "unrecognized_keys",
"keys": "["extra_key_abc","extra_key_def"]",
"message": "Unrecognized key(s) in object: 'extra_key_abc', 'extra_key_def'",
"message": "Unrecognized keys: "extra_key_abc", "extra_key_def"",
"path": "",
"unionErrors": undefined,
}
Expand Down Expand Up @@ -410,9 +410,8 @@ describe('formatIssueMessage()', () => {
{
"code": "invalid_type",
"expected": "object",
"message": "Expected object, received number",
"message": "Invalid input: expected object, received number",
"path": [],
"received": "number",
},
]
`);
Expand All @@ -433,9 +432,8 @@ describe('formatIssueMessage()', () => {
{
"code": "invalid_type",
"expected": "number",
"message": "Expected number, received string",
"message": "Invalid input: expected number, received string",
"path": [],
"received": "string",
},
]
`);
Expand All @@ -456,9 +454,8 @@ describe('formatIssueMessage()', () => {
{
"code": "invalid_type",
"expected": "string",
"message": "Expected string, received number",
"message": "Invalid input: expected string, received number",
"path": [],
"received": "number",
},
]
`);
Expand All @@ -479,9 +476,8 @@ describe('formatIssueMessage()', () => {
{
"code": "invalid_type",
"expected": "array",
"message": "Expected array, received string",
"message": "Invalid input: expected array, received string",
"path": [],
"received": "string",
},
]
`);
Expand All @@ -502,11 +498,10 @@ describe('formatIssueMessage()', () => {
{
"code": "invalid_type",
"expected": "string",
"message": "Expected string, received number",
"message": "Invalid input: expected string, received number",
"path": [
0,
],
"received": "number",
},
]
`);
Expand Down
Loading
Loading