8000 Define an explicit export surface for the admin client · Issue #44260 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Define an explicit export surface for the admin client #44260

Open

Description

@jonkoops

Description

Currently, the JavaScript admin client exposes all its internals publically, meaning that is leaking private APIs that we now have to commit to as a public API in terms of stability. For example, when importing type definitions, a path that deeply accesses the package contents is used:

import type UserRepresentation from "@keycloak/keycloak-admin-client/lib/defs/userRepresentation.js";

The package should add all explicitly exported parts of the API surface to a single index file, and use the exports field of the package to define it, so no other parts of the API are leaked:

{
    "name": "@keycloak/keycloak-admin-client",
    "type": "module",
    "exports": {
        ".": {
           "types": "./lib/index.d.ts",
            "default": "./lib/index.js"
        }
    }
}

This will allow us to make breaking changes on internal APIs, without violating the API public stability contract with the consumers of the library.

Activity

  1. added theissue type on Nov 17, 2025
  2. jonkoops commented on Nov 17, 2025

    @jonkoops
    ContributorAuthor

    @keycloak/ui please add this to the milestone for 27.0.0 and triage this as a breaking change.

  3. added this to the 27.0.0 milestone on Nov 19, 2025
  4. changed the issue type fromtoon Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    Value

    None yet

    Effort

    None yet

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0