Skip to content

[docs-infra] Inform users about minimal required version #38013

Open
@alexfauquette

Description

@alexfauquette

Context

When adding new props, we end up with user on an existing project that try them and get errors, because they are in a version that does not yet support this prop

For example we got a feedbacks about

I have an typescript error
"TS2322: Type '{ timezone: string; slots: { openPickerIcon: any; }; className: string; label: string; value: null; onChange: (e: null) => void; }' is not assignable to type 'IntrinsicAttributes & DateTimePickerProps<null> & RefAttributes<HTMLDivElement>'. Property 'timezone' does not exist on type 'IntrinsicAttributes & DateTimePickerProps<null> & RefAttributes<HTMLDivElement>'
when trying to utilize "timezone" prop.

Some problems

The main issues I see is the timeline. We have no idea about which version will contain the feature we are developing.

A solution could be that PR add some token such as DATA_GRID_VERSION and during the release phase those get replaced by the release version

Potential solution

1 Automated API update

When running docs:api the script could search for the oldest tag associated to the commit that introduced the tag.

2 Manual update

We could have a tag in JSdocs to set the version

3 Manual update in the demo page

The first entry point of docs is the demo, not the API, so we might whant to be able to add a small information about the version in which the feature got introduced. Could be some token in the title to set it

Benchmark

SCR-20241115-pcam SCR-20241115-pbww

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRequest For CommentsdxRelated to developers' experiencescope: docs-infraSpecific to the docs-infra product

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions