Skip to content

feat: add v1 subpath export - #280

Open
ivanauth wants to merge 1 commit into
authzed:mainfrom
ivanauth:fix/issue-52-add-version-client-subpaths-to-package-e
Open

feat: add v1 subpath export#280
ivanauth wants to merge 1 commit into
authzed:mainfrom
ivanauth:fix/issue-52-add-version-client-subpaths-to-package-e

Conversation

@ivanauth

Copy link
Copy Markdown
Contributor

Fixes #52

Adds a ./v1 subpath export so the v1 client can be imported directly as import { NewClient } from "@authzed/authzed-node/v1", alongside the existing root import { v1 }. typesVersions covers node10-style resolution; postbuild now also emits the CJS bundle and its declarations.

Allows importing the v1 client module directly via
'@authzed/authzed-node/v1' in addition to the existing v1 namespace
re-export from the package root. typesVersions covers resolution for
consumers on node10-style module resolution.

Signed-off-by: ivanauth <ivan@authzed.com>
@ivanauth
ivanauth requested a review from a team as a code owner July 27, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add version client subpaths to package exports

1 participant