Skip to content

(v1) Remove legacy schema/define API surface #1461

Description

@yamcodes

This was generated by AI during triage.

Summary

On the v1 branch, remove the legacy schema/define API surface that Option 3 (#1333) drops from the product: arkenv(schema)-style entry, native accessor / define wiring, and ambient helper types (.d.ts augmentation helpers such as ImportMetaEnvAugmented / ProcessEnvAugmented).

This is the package-level cleanup. CLI scaffold + migration UX lives in #1332. Docs/ADR/examples/skill live in #1333.

Context

Scope

  • Remove or stop exporting schema/define public APIs from arkenv, @arkenv/vite-plugin, and @arkenv/bun-plugin on v1.
  • Drop ambient augment type helpers and any docs/comments that teach them as a supported v1 path (package READMEs / JSDoc only — user-facing site docs are (v1) Decide lasting stance on schema/define path; docs for canonical env object #1333).
  • Internal cleanup: dead define/rewrite paths that exist solely for the legacy surface, unused helpers, and tests that assert schema/define as a supported product path.
  • Ensure the canonical env-object + transform surface remains the only supported Vite/Bun consumption path on v1.

Out of scope

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    @arkenv/bun-pluginIssues or Pull Requests involving the Bun plugin for ArkEnv@arkenv/vite-pluginIssues or Pull Requests involving the Vite plugin for ArkEnvarkenvChanges to the `arkenv` npm package.ready for agentFully specified, ready for immediate implementationrefactorA change to the codebase that's neither a bug fix nor added functionality

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions