SAP / ui5-typescript

Tooling to enable TypeScript support in SAPUI5/OpenUI5 projects
https://sap.github.io/ui5-typescript
Apache License 2.0
200 stars 28 forks source link

"Latest" version of types npm package incorrect #384

Closed BenReim closed 1 year ago

BenReim commented 1 year ago

Describe the bug

$ npm outdated
Package                           Current   Wanted    Latest  Location                                       
@sapui5/ts-types-esm              1.109.3  1.109.3  1.102.13  node_modules/@sapui5/ts-types-esm              

Expected behavior The latest version should point to the latest package version.

akudev commented 1 year ago

Absolutely right. So far not addressed by the responsibles, but maybe this gives another push.

(note that it works for @openui5/ts-types-esm in case those types are sufficient)

nhebling commented 1 year ago

I experience the same and wondered if its "just a bug" or if there is an issue detected in the higher releases and the idea is to use this to "rollback" temporarily to a previous version.

$ npm outdated                                                                                                                                                                                    
Package               Current   Wanted   Latest  Location                           
@sapui5/ts-types-esm  1.111.0  1.111.0  1.108.9  node_modules/@sapui5/ts-types-esm 
codeworrior commented 1 year ago

This is rather a bug, not a conscious decision. All @sapui5 packages are currently published in a way that the last published artefact (in time) gets the latest label, independent from its version. This is npm's default behaviour.

To fix it, lower versions have to be assigned another label explicitly, but the internal release processes have not yet been adapted to do so.

This is internally tracked in our backlog as CPOUI5FOUNDATION-58.

akudev commented 1 year ago

This is fixed now, see https://www.npmjs.com/package/@sapui5/types?activeTab=versions (well, that's the new name with only one release, but the same is valid for the legacy name: https://www.npmjs.com/package/@sapui5/ts-types-esm?activeTab=versions) The "latest" tag should be right and there is also a "latest-1.x" tag for each minor release.