mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

@mediapipe/tasks-text: highest version is old

Open AmitMY opened this issue 8 months ago • 6 comments
trafficstars

OS Platform and Distribution

macOS 15

Programming Language and version

JS

Describe the problem

Using npm-check-updates, the latest version is 20230920.0.0

You have released 0.10.22 etc, but also 20230920.0.0, and ncu thinks 20230920.0.0 is the newest version. I propose removing this version from npm...

AmitMY avatar Mar 20 '25 09:03 AmitMY

Hi @AmitMY,

Apologies for the miscommunication. The 0.10.22 release is specifically for the Generative AI APIs (you can view it here), and not for other APIs such as Task, Vision, Text, or Audio. This should have been mentioned in the release notes, but it seems to be missing. However, there is a major release coming soon for all APIs, and we will provide you with updates as soon as it's available.

Thank you!!

kuaashish avatar Mar 20 '25 10:03 kuaashish

Thanks @kuaashish . point still stands - i was using 0.10.21 for the tasks-text package (works from npm) and now it is trying to upgrade to an older version 20230920.0.0 because it has a higher major number

AmitMY avatar Mar 20 '25 12:03 AmitMY

Hi @AmitMY,

Apologies again for the issue. We are already aware of it and are tracking it here https://github.com/google-ai-edge/mediapipe/issues/5798. You should see a fix soon. In the meantime, if you would like to use the latest version, please follow the instructions in this comment, and we hope you will be able to use the latest version available now.

Thank you!!

kuaashish avatar Mar 20 '25 15:03 kuaashish

Hi @AmitMY,

It seems the information provided earlier pertains more to the Maven packages rather than the NPM packages. To better understand and address the issue, could you please share the exact steps to reproduce the issue? This will help us investigate it further and provide a more targeted fix.

Thank you!!

kuaashish avatar Mar 21 '25 06:03 kuaashish

npm install @mediapipe/tasks-text

results in

    "@mediapipe/tasks-text": "^0.10.22-rc.20250304",

Then, to not use an RC, I change to 0.10.21 manually.

now, if i run npx npm-check-updates it says there is an update available:

 @mediapipe/tasks-text  0.10.21  →  20230920.0.0

AmitMY avatar Mar 22 '25 12:03 AmitMY

Hi @tyrmullen,

We were able to reproduce the issue on our end. It appears that the issue is related to version 20230920.0.0, which is being considered as the latest version when checked through "npx npm-check-updates". However, the latest stable version for tasks-text is 0.10.21. We have attached a screenshot of the issue when it was reproduced.

Image

Could you please investigate this further if you have the bandwidth?

Thank you!!

kuaashish avatar Apr 03 '25 09:04 kuaashish

The problematic version has been marked deprecated, and no longer appears by default on the npm version list here. Hopefully that is sufficient for the check updates tool to skip over it and use the newest non-deprecated package version (0.10.25 as of now). But let us know if that's not the case.

tyrmullen avatar Oct 21 '25 20:10 tyrmullen