Skip to content

chore: bump @ata-project/unplugin from 0.7.0 to 0.10.0 - #13

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

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

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 27, 2026

Copy link
Copy Markdown

Bumps @ata-project/unplugin from 0.7.0 to 0.10.0.

Release notes

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

v0.10.0

Added

  • rjsf forms: <Form schema={schema} validator={validator} /> with the default validator of @rjsf/validator-ata and a schema the build can read gets a precompiled validator, written by rjsf's own compileSchemaValidatorsCode, in the runtime's error order, filling defaults on a copy of the form's data as rjsf's runtime validator does. No build script. For a six-field signup form with React 19 and rjsf 6.11.0, the first load of a minified esbuild build went from 207.8 KB to 159.5 KB gzipped. On two schemas with $ref, oneOf, anyOf, dependencies, formats and defaults, 6000 generated documents gave the same errors from both validators, in the same order, left the form's data the same, and 400 server renders gave the same markup. Needs ata-validator 1.59.0; with an older one the form stays on the runtime validator.
  • @ata-project/unplugin/bun: the same plugin for Bun.build, including Bun.build({ compile }), which writes an executable with the compiled validators in place of the runtime. For an app with new Validator(schema) and its schema in schemas.ts, the Bun bundle went from 549 KB to 50 KB, with no new Function left in it, on Bun 1.4.0.
  • Schemas imported from relative JavaScript or TypeScript modules (import { Signup } from './schemas', .js standing for .ts) are read and compiled away; the import stays, so the bundler rebuilds when the schema file changes.

Fixed

  • A schema changed after it was written (schema.required = [...], a second name for it, a call that could change it) was compiled as written and could accept what the runtime rejects. Such a schema now stays on the runtime. This was present since compileAway was added.

Not covered: a third module that imports a schema and changes it is not seen by the build. The rjsf rewrite needs ata-validator 1.59.0 and leaves a form with spread attributes alone.

v0.9.0

Fixed

  • A schema changed after it was written was compiled as written. With const schema = {...} followed by schema.required = ['n'], the compiled validator accepted {} where new Validator(schema) rejects it. A constant is now compiled only when every use of it leaves its value as written: an argument of new Validator(...) or ataResolver(...) (possibly through defineSchema, the t builder or an object or array literal that is itself such a constant), or an export. A write, a second name or a call that could change it keeps the call on the runtime. This was present since compileAway was added.

Added

  • A schema imported from a relative JavaScript or TypeScript module is compiled away too: import { Signup } from './schemas' (with .js standing for .ts, as TypeScript writes it), a default export, or one passed on with export { ... } from, read from that module by the same rules. The defining module is checked for changes to the schema as well. The import stays, so the bundler rebuilds when the schema file changes. For an app with its schema in schemas.ts, a minified esbuild build went from 136.6 KB to 15.3 KB gzipped, with the same errors.

Not covered: a third module that imports the schema and changes it is not seen by the build.

v0.8.0

Added

  • ataResolver(schema) from @hookform/resolvers/ata-validator is compiled away: the plugin writes ataCompiledResolver(module) in its place and the ata runtime leaves the bundle. For an eight-field signup form that is 4.1 KB gzipped on top of react-hook-form, against 135.4 KB without the plugin (minified esbuild build, ata-validator 1.57.0). The module fills defaults and returns errors in the runtime's order, so the resolver gives the same answer, values and field errors.

The call is replaced only when the schema can be read at build time, no validator options are passed, ata-validator writes modules in the runtime's error order (1.57.0 or later), and the installed @hookform/resolvers exports ataCompiledResolver from every file its export map gives for ./ata-validator.

ataCompiledResolver is not in a released @hookform/resolversreact-hook-form/resolvers#881

Tested in esbuild, Rollup and Vite, and end to end against @hookform/resolvers 6.0.0 (call kept, same answer) and the #881 build (call replaced, same answer, 137.3 to 2.7 KB gzipped for a one-field form).

Commits
  • afd3114 release: 0.10.0
  • 2fe8c8e feat: a Bun.build entry, @​ata-project/unplugin/bun
  • b07077d chore: ata-validator ^1.59.0, which the rjsf rewrite needs
  • d855383 feat: rjsf forms with defaults compile away too, validated on a copy as the r...
  • 18a0e23 feat: compile rjsf forms' validator away when the schema is static
  • f3ae6b5 feat: compile schemas imported from relative modules away; keep a schema chan...
  • 1364c22 fix: compile ataResolver away only when every export of the resolvers entry h...
  • 2846fab feat: compile ataResolver(schema) from @​hookform/resolvers away
  • 832f303 chore: test against ata-validator 1.54.0
  • See full diff 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.7.0 to 0.10.0.
- [Release notes](https://github.com/ata-core/unplugin-ata/releases)
- [Commits](ata-core/unplugin-ata@v0.7.0...v0.10.0)

---
updated-dependencies:
- dependency-name: "@ata-project/unplugin"
  dependency-version: 0.10.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 Oct 27, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 29, 2026

Copy link
Copy Markdown
Author

Superseded by #14.

@dependabot dependabot Bot closed this Oct 29, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/ata-project/unplugin-0.10.0 branch October 29, 2026 18:25
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