Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: colinhacks/zod
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.21.4
Choose a base ref
...
head repository: colinhacks/zod
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.22.0
Choose a head ref

Commits on Mar 7, 2023

  1. Comments

    colinhacks committed Mar 7, 2023
    Copy the full SHA
    6dad907 View commit details
  2. Fix deno test

    colinhacks committed Mar 7, 2023
    Copy the full SHA
    56ace68 View commit details

Commits on Mar 9, 2023

  1. Add superforms

    colinhacks committed Mar 9, 2023
    Copy the full SHA
    3809d54 View commit details

Commits on Mar 10, 2023

  1. Add transloadit

    colinhacks committed Mar 10, 2023
    Copy the full SHA
    d1ad522 View commit details

Commits on Mar 21, 2023

  1. Copy the full SHA
    a3bb701 View commit details
  2. docs: update deprecated link (#2219)

    Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
    Juneezee authored Mar 21, 2023
    Copy the full SHA
    51e14be View commit details

Commits on Apr 5, 2023

  1. Copy the full SHA
    a263814 View commit details

Commits on Apr 10, 2023

  1. Copy the full SHA
    502384e View commit details

Commits on May 9, 2023

  1. Copy the full SHA
    a8be450 View commit details

Commits on May 17, 2023

  1. Copy the full SHA
    15de22a View commit details
  2. Copy the full SHA
    00f5783 View commit details
  3. Copy the full SHA
    0a17340 View commit details

Commits on May 19, 2023

  1. Add masterborn

    colinhacks committed May 19, 2023
    Copy the full SHA
    60a2134 View commit details

Commits on May 21, 2023

  1. chore: move exports.types field to first spot @ package.json. (#2443)

    * chore: move exports.types field to first spot @ package.json.
    
    * remove comma.
    igalklebanov authored May 21, 2023
    Copy the full SHA
    0a90ed1 View commit details
  2. Copy the full SHA
    67f35b1 View commit details
  3. Copy the full SHA
    6795c57 View commit details
  4. Generalize uuidRegex

    colinhacks committed May 21, 2023
    Copy the full SHA
    37e9c55 View commit details
  5. adds ctx to preprocess (#2426)

    * adds ctx to preprocess
    
    * Tweaks
    
    ---------
    
    Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
    Pingviinituutti and colinhacks authored May 21, 2023
    Copy the full SHA
    0969950 View commit details
  6. fix: super refinement function types (#2420)

    * fix: super refinement function types
    
    * Add test
    
    ---------
    
    Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
    carl0s-sa and colinhacks authored May 21, 2023
    Copy the full SHA
    af08390 View commit details
  7. Make email regex reasonable (#2157)

    * Remove logging
    
    * Clean up email testsg
    
    * Add back 1char tld test
    
    * Final tweaks to email regex
    
    * Fix test
    
    * Update test
    colinhacks authored May 21, 2023
    Copy the full SHA
    36fef58 View commit details
  8. Document canary

    colinhacks committed May 21, 2023
    Copy the full SHA
    f627d14 View commit details
  9. Copy the full SHA
    e06321c View commit details
  10. docs: add ts as const example in zod enums (#2412)

    * docs: sync zh docs translation
    
    * fix: remove extra change
    recallwei authored May 21, 2023
    Copy the full SHA
    11e507c View commit details
  11. docs: add zod-fixture to mocking ecosystem (#2409)

    Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
    timdeschryver and colinhacks authored May 21, 2023
    Copy the full SHA
    5427565 View commit details
  12. docs: add zodock to mocking ecosystem (#2394)

    * Update README.md
    
    * Update README_ZH.md
    ItMaga authored May 21, 2023
    Copy the full SHA
    d3bf7e6 View commit details
  13. Copy the full SHA
    2270ae5 View commit details

Commits on May 22, 2023

  1. Copy the full SHA
    00bdd0a View commit details
  2. Copy the full SHA
    a3c5256 View commit details
  3. Copy the full SHA
    4f75cbc View commit details
  4. FMC (#2346)

    Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
    JakeFenley and colinhacks authored May 22, 2023
    Copy the full SHA
    ca7b032 View commit details
  5. docs: fix typo in link fragment (#2329)

    This commit corrects the wrong #partialt fragment identifier to #partialtype.
    
    Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
    Juneezee authored May 22, 2023
    Copy the full SHA
    6fec8bd View commit details

Commits on May 29, 2023

  1. Copy the full SHA
    16f90bd View commit details

Commits on May 30, 2023

  1. Update readme

    colinhacks committed May 30, 2023
    Copy the full SHA
    2c80250 View commit details
  2. Update sponsors

    colinhacks committed May 30, 2023
    Copy the full SHA
    eaf64e0 View commit details
  3. Update readme

    colinhacks committed May 30, 2023
    Copy the full SHA
    c576311 View commit details

Commits on Jun 4, 2023

  1. Copy the full SHA
    5e23b4f View commit details

Commits on Jun 23, 2023

  1. Revamp tests

    colinhacks committed Jun 23, 2023
    Copy the full SHA
    898dced View commit details
  2. Update test runners

    colinhacks committed Jun 23, 2023
    Copy the full SHA
    6309322 View commit details
  3. Add vitest config

    colinhacks committed Jun 23, 2023
    Copy the full SHA
    c0aece1 View commit details
  4. Update script

    colinhacks committed Jun 23, 2023
    Copy the full SHA
    73a5610 View commit details
  5. Fix deno test bug

    colinhacks committed Jun 23, 2023
    Copy the full SHA
    8d8e1a2 View commit details
  6. Clean up configs

    colinhacks committed Jun 23, 2023
    Copy the full SHA
    9eb2508 View commit details

Commits on Jun 24, 2023

  1. Fix root jest config

    colinhacks committed Jun 24, 2023
    Copy the full SHA
    cfbc7b3 View commit details

Commits on Jul 30, 2023

  1. docs(comparison-yup): Yup added partial() and deepPartial() in v1 (#2603

    )
    
    So update Yup's section of the Zod comparison accordingly.
    
    See: jquense/yup#1906
    0livare authored Jul 30, 2023
    Copy the full SHA
    8677f68 View commit details
  2. Copy the full SHA
    fb00edd View commit details

Commits on Jul 31, 2023

  1. Copy the full SHA
    ab8e717 View commit details
  2. Copy the full SHA
    d870407 View commit details
  3. docs: add conform form integration (#2577)

    This adds conform. It didn't look like there was much of an order so I put it at the top since that's where it'd go in alphabetical order anyway 🤷‍♂️
    kentcdodds authored Jul 31, 2023
    Copy the full SHA
    5adae24 View commit details
  4. Update README.md (#2562)

    samchungy authored Jul 31, 2023
    Copy the full SHA
    8b8ab3e View commit details
  5. fix typo test name (#2542)

    * fix(typo): methd -> method
    
    * fix(typo): methd -> method
    hiro0218 authored Jul 31, 2023
    Copy the full SHA
    6aab901 View commit details
Showing with 1,851 additions and 610 deletions.
  1. +1 −2 .github/workflows/test.yml
  2. +1 −0 .gitignore
  3. +1 −1 ERROR_HANDLING.md
  4. +189 −83 README.md
  5. +22 −8 README_ZH.md
  6. +10 −0 configs/babel-jest.config.json
  7. +6 −0 configs/babel.config.js
  8. +10 −0 configs/jest.config.json
  9. +1 −1 { → configs}/rollup.config.js
  10. +10 −0 configs/swc-jest.config.json
  11. +10 −0 configs/ts-jest.config.json
  12. +3 −13 { → configs}/tsconfig.base.json
  13. +3 −6 { → configs}/tsconfig.cjs.json
  14. +1 −4 { → configs}/tsconfig.esm.json
  15. +2 −1 { → configs}/tsconfig.test.json
  16. +2 −5 { → configs}/tsconfig.types.json
  17. +12 −0 configs/vitest.config.ts
  18. +2 −2 deno/build.mjs → deno-build.mjs
  19. +189 −83 deno/lib/README.md
  20. +29 −28 deno/lib/__tests__/coerce.test.ts
  21. +1 −1 deno/lib/__tests__/custom.test.ts
  22. 0 deno/lib/__tests__/{discriminatedUnions.test.ts → discriminated-unions.test.ts}
  23. +1 −1 deno/lib/__tests__/primitive.test.ts
  24. +205 −0 deno/lib/__tests__/readonly.test.ts
  25. +37 −0 deno/lib/__tests__/record.test.ts
  26. +29 −0 deno/lib/__tests__/refine.test.ts
  27. +65 −28 deno/lib/__tests__/string.test.ts
  28. +67 −0 deno/lib/__tests__/transformer.test.ts
  29. +4 −1 deno/lib/helpers/parseUtil.ts
  30. +128 −30 deno/lib/types.ts
  31. +2 −0 index.html
  32. +1 −0 jest.config.json
  33. +29 −15 package.json
  34. +1 −0 playground.ts
  35. +29 −28 src/__tests__/coerce.test.ts
  36. +1 −1 src/__tests__/custom.test.ts
  37. 0 src/__tests__/{discriminatedUnions.test.ts → discriminated-unions.test.ts}
  38. 0 src/__tests__/{languageServerFeatures.source.ts → language-server.source.ts}
  39. +208 −0 src/__tests__/language-server.test.ts
  40. +0 −207 src/__tests__/languageServerFeatures.test.ts
  41. +1 −1 src/__tests__/primitive.test.ts
  42. +204 −0 src/__tests__/readonly.test.ts
  43. +37 −0 src/__tests__/record.test.ts
  44. +29 −0 src/__tests__/refine.test.ts
  45. +65 −28 src/__tests__/string.test.ts
  46. +67 −0 src/__tests__/transformer.test.ts
  47. +4 −1 src/helpers/parseUtil.ts
  48. +128 −30 src/types.ts
  49. +4 −1 tsconfig.json
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
node: ["18"]
typescript: ["4.5", "4.6", "4.7", "4.8", "4.9"]
typescript: ["4.5", "4.6", "4.7", "4.8", "4.9", "5.0"]
name: Test with TypeScript ${{ matrix.typescript }} on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
@@ -26,7 +26,6 @@ jobs:
- run: yarn build
- run: yarn test


test-deno:
runs-on: ubuntu-latest
strategy:
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -11,3 +11,4 @@ deno/lib/playground.ts
.eslintcache
workspace.code-workspace
.netlify
bun.lockb
2 changes: 1 addition & 1 deletion ERROR_HANDLING.md
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ const person = z.object({
address: z.object({
line1: z.string(),
zipCode: z.number().min(10000), // American 5-digit code
}),
}).strict(); // do not allow unrecognized keys
});
```

Loading