Skip to content
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
node: [ '14' ]
typescript: [ '4.1', '4.2' ]
typescript: [ '4.1', '4.2', '4.3', '4.4' ]
name: Test with TypeScript ${{ matrix.typescript }} on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: Ubuntu-20.04
strategy:
matrix:
deno: [ "v1.8.1", "v1.x" ]
deno: [ "v1.x" ]
name: Test with Deno ${{ matrix.deno }}
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions deno/lib/__tests__/param.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test("parameter with number", () => {
try {
n.parse(400);
} catch (err) {
const zerr: z.ZodError = err;
const zerr = err as z.ZodError;
expect(zerr.issues[0].code).toEqual(z.ZodIssueCode.too_big);
expect(zerr.issues[0].message).toEqual(
`Value should be less than or equal to 100`
Expand All @@ -34,7 +34,7 @@ test("parameter with string", () => {
try {
s.parse("12345678");
} catch (err) {
const zerr: z.ZodError = err;
const zerr = err as z.ZodError;
expect(zerr.issues[0].code).toEqual(z.ZodIssueCode.too_big);
expect(zerr.issues[0].message).toEqual(
`Should be at most 7 characters long`
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"homepage": "https://github.com/flock-community/zod-endpoints",
"dependencies": {
"zod": "3.5.1"
"zod": "3.11.5"
},
"keywords": [
"openapi",
Expand Down Expand Up @@ -79,7 +79,7 @@
"ts-jest": "^26.4.4",
"ts-node": "^9.1.0",
"tslib": "^2.1.0",
"typescript": "^4.3.2"
"typescript": "^4.4"
},
"husky": {
"hooks": {
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/param.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test("parameter with number", () => {
try {
n.parse(400);
} catch (err) {
const zerr: z.ZodError = err;
const zerr = err as z.ZodError;
expect(zerr.issues[0].code).toEqual(z.ZodIssueCode.too_big);
expect(zerr.issues[0].message).toEqual(
`Value should be less than or equal to 100`
Expand All @@ -33,7 +33,7 @@ test("parameter with string", () => {
try {
s.parse("12345678");
} catch (err) {
const zerr: z.ZodError = err;
const zerr = err as z.ZodError;
expect(zerr.issues[0].code).toEqual(z.ZodIssueCode.too_big);
expect(zerr.issues[0].message).toEqual(
`Should be at most 7 characters long`
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5244,10 +5244,10 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"

typescript@4.3.5:
version "4.3.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"
integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==
typescript@^4.4:
version "4.4.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c"
integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==

uglify-js@^3.1.4, uglify-js@^3.4.9:
version "3.13.10"
Expand Down