Skip to content

chore: bump @ata-project/unplugin from 0.13.1 to 0.17.0 - #17

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/ata-project/unplugin-0.17.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/ata-project/unplugin-0.17.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 18, 2026

Copy link
Copy Markdown

Bumps @ata-project/unplugin from 0.13.1 to 0.17.0.

Release notes

Sourced from @​ata-project/unplugin's releases.

v0.17.0

A form that validates with react-hook-form and zod can ship without zod, with nothing in the form changed; ataResolver forms ship without the ata runtime again; and a Next.js build applies the plugin's size choices to what the browser gets.

react-hook-form

  • zodResolver(schema) from @hookform/resolvers/zod is compiled away where the build can read the schema: a constant of the file, at the top or inside the component, a schema written in the call, or one imported by name from another module of the project. The build runs the schema with the application's own zod, writes a check with the same verdict, and records the issue zod reports for each rule, a custom message included, by asking zod. Before a call is replaced, the build holds the written resolver to zod on documents made for that form; a form that differs keeps its call. On a Next.js 16.4.6 page with a five-field form, the scripts the page loads beyond the home page went from 43,450 to 15,411 bytes gzipped under Turbopack and from 37,288 to 15,928 under webpack. In a Vite 7 + React 19 app with the same form, all of the page's JavaScript went from 108,338 to 85,683 bytes gzipped (82,425 with react-hook-form and no validation at all). Carried: strings with their checks and formats, z.email() and the like, url(), trim/toLowerCase/toUpperCase, numbers with int, bounds and z.coerce.number(), booleans, enums, literals, optional fields, nested objects, arrays, and refine whose function reads only its argument. Everything else keeps its call and zod. On by default; zodResolver: false turns it off. An application that sets zod's locale or a global error map gets nothing replaced.
  • ataResolver(schema) is compiled away again. The rewrite waited on ataCompiledResolver in @​hookform/resolvers, which was declined upstream, so it never ran; the build now writes the resolver itself. Same page: 81,689 to 14,269 bytes under Turbopack.
  • npx @ata-project/unplugin scan says which zodResolver, ataResolver and new Validator calls a build would compile, and for each of the others why not, naming the field and the cause. Nothing is written. A build prints the same lines.

Fixes

  • compile() holds each validators file it writes from zod, valibot or TypeBox modules against that library before writing it: documents made from each export (valid ones, ones with one rule broken, both sides of every bound; 50 an export, or verify: <number>) go to the library's own check and to the written validator, and a difference throws with the document. Three things the JSON Schema does not say are now refused by export and path: a check written after trim(), toLowerCase(), toUpperCase() or normalize(), z.coerce.number(), and .catch(value). Up to 0.15.0 these were converted without a word, and the page answered differently from zod on those values. compile({ ..., check: true }) writes nothing and returns the files a compile would change, for a CI step. On 17 schemas of 41 fields the check added about 30 ms to a 140 ms compile; verify: false skips it. (This was released on main as 0.16.0 but never published to npm, so it ships here.)
  • Under webpack and Rspack (so next build --webpack), a file could be transformed before the build's table and sharedErrors choices were made, and was then written as if neither existed; in Next.js that was every client file. A six-form page: 8,719 to 5,554 bytes.
  • sharedErrors: 'auto' with ir: false wrote compact modules that made a bundle 4 to 8 KB larger for schemas of middling size: the bar was set when ata's error runtime was smaller. It is set from real bundles again, and a test holds it there.
  • verify checked nothing on the IR path, the default since ata-validator 1.63.1. It now holds the IR's modules to the runtime. With ata-validator 1.63.x it reports real differences on some schemas (references to the official meta-schemas, among others) that 1.64.0 fixes; use it with 1.64.0.
  • The imports a rewrite adds go after a file's directives, so 'use client' stays first (Next.js failed the build of a client component holding its own new Validator).
  • table and sharedErrors in their 'auto' form decide for what a page loads together, not for the whole project.

Smaller pages

  • smallFormats: 'auto': a module written for a browser checks email, uri and uri-reference with ata-validator's smaller regular expressions (needs ata-validator 1.64.0; an older one keeps the scanners).
  • errorFields: 'auto': a validator whose errors are read only through keyword, instancePath, schemaPath, params and message is written with plain errors. A six-field signup form: 4,529 to 2,128 bytes.

Recommended with ata-validator 1.64.0. Tested: 356 tests, 354 pass, 2 skipped, against ata-validator 1.64.0 as packed from its release branch.

Not covered: Rspack and Rollup were not measured in an application for the zod rewrite; zod 3; schemas re-exported through an index file.

v0.15.0

One change, for projects that call compile() from a script with the zod or from option.

Changed

  • Where there are many validators, compile() writes them as plans for one small interpreter instead of as checks written out one by one, when that makes the smaller bundle. It weighs all the files it writes together, as the plugin does for an application inside a bundler, and chooses plans when they save more than the interpreter costs. Seven flat event schemas in one entry, bundled with esbuild and no plugin: 2.8 KB gzipped as plans (12 KB before compression) against 10.5 KB as written checks (139 KB). The exports, their answers and their errors are the same.
  • A page that imports one validator from a set written as plans carries the interpreter too. On the same schemas, one file each: a 10-field schema 1,254 bytes gzipped as a plan against 884 as written checks, a 43-field one 1,438 against 3,240, a 60-field one 1,512 against 3,771.
  • A plan is slower to run than written checks. On an event of 44 optional fields (Node 25, Apple M4 Pro) a valid document takes about 1.0 µs against 0.6, and a rejected one with its errors read 1.4 µs against 0.1.
  • table: false keeps written checks, table: true takes plans whatever the sizes. The result of compile() carries table, the choice made.

Not covered

  • A schema the table backend does not take stays written checks.
  • The sizes are from esbuild; other bundlers were not measured for this change.

v0.14.0

One change, for projects that call compile() from a script with the zod or from option.

Changed

  • compile() writes each <module>.validators.mjs already compiled: every export is its schema written out as checks, and the file imports only the helpers those checks use, never the validator runtime. Written as new Validator(schema), the file was small only in a build that ran the plugin; imported by a build that did not, each validator brought the runtime compiler into the bundle, and nothing in the build output said so. On a page that uses one validator, bundled with esbuild and no plugin: 3.9 KB gzipped compiled against 142.8 KB as new Validator (ata-validator 1.63.1). The exports, their answers and their errors are the same; a server can import the same file.
  • compiled: false keeps the new Validator(schema) form, for a project whose bundler runs the plugin and should make the choices it makes for a whole application (shared errors, table plans). Inside a bundler the plugin writes that form as before and compiles it in the same build.

... (truncated)

Commits
  • df6b5a8 release: 0.17.0
  • 706dbda Merge branch 'fix/shared-errors-cost' into integration/next
  • 5c27841 docs: the cost bar's comment gives the measured brackets, not a point between...
  • 80141ce Merge branch 'feat/zod-url' into integration/next
  • d65b27a Merge branch 'feat/zod-local-const' into feat/zod-url
  • 3e660ad Merge branch 'feat/zod-refine' into feat/zod-local-const
  • 607ba7d Merge branch 'feat/zod-arrays' into feat/zod-refine
  • eb84016 Merge branch 'feat/zod-report' into feat/zod-arrays
  • b5458f7 Merge branch 'feat/zod-resolver-more' into feat/zod-report
  • a47046c Merge branch 'feat/zod-resolver-imports' into feat/zod-resolver-more
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@ata-project/unplugin](https://github.com/ata-core/unplugin-ata) from 0.13.1 to 0.17.0.
- [Release notes](https://github.com/ata-core/unplugin-ata/releases)
- [Commits](ata-core/unplugin-ata@v0.13.1...v0.17.0)

---
updated-dependencies:
- dependency-name: "@ata-project/unplugin"
  dependency-version: 0.17.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants