@optique/zod 0.9.0-dev.204 → 0.9.0-dev.211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright 2025 Hong Minhee
3
+ Copyright 2025–2026 Hong Minhee
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
package/dist/index.cjs CHANGED
@@ -154,7 +154,6 @@ function inferMetavar(schema) {
154
154
  */
155
155
  function zod(schema, options = {}) {
156
156
  return {
157
- $mode: "sync",
158
157
  metavar: options.metavar ?? inferMetavar(schema),
159
158
  parse(input) {
160
159
  const result = schema.safeParse(input);
package/dist/index.d.cts CHANGED
@@ -99,6 +99,6 @@ interface ZodParserOptions {
99
99
  *
100
100
  * @since 0.7.0
101
101
  */
102
- declare function zod<T>(schema: z.Schema<T>, options?: ZodParserOptions): ValueParser<"sync", T>;
102
+ declare function zod<T>(schema: z.Schema<T>, options?: ZodParserOptions): ValueParser<T>;
103
103
  //#endregion
104
104
  export { ZodParserOptions, zod };
package/dist/index.d.ts CHANGED
@@ -99,6 +99,6 @@ interface ZodParserOptions {
99
99
  *
100
100
  * @since 0.7.0
101
101
  */
102
- declare function zod<T>(schema: z.Schema<T>, options?: ZodParserOptions): ValueParser<"sync", T>;
102
+ declare function zod<T>(schema: z.Schema<T>, options?: ZodParserOptions): ValueParser<T>;
103
103
  //#endregion
104
104
  export { ZodParserOptions, zod };
package/dist/index.js CHANGED
@@ -131,7 +131,6 @@ function inferMetavar(schema) {
131
131
  */
132
132
  function zod(schema, options = {}) {
133
133
  return {
134
- $mode: "sync",
135
134
  metavar: options.metavar ?? inferMetavar(schema),
136
135
  parse(input) {
137
136
  const result = schema.safeParse(input);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/zod",
3
- "version": "0.9.0-dev.204+0747d0e6",
3
+ "version": "0.9.0-dev.211+322b48ee",
4
4
  "description": "Zod value parsers for Optique",
5
5
  "keywords": [
6
6
  "CLI",