-
-
Notifications
You must be signed in to change notification settings - Fork 179
Open
Labels
backServer, DataServer, DatafrontFrontend, DesignFrontend, DesignideaSuggestion or idea, not yet vetted/decidedSuggestion or idea, not yet vetted/decided
Description
I'll would like to make a "changelogs" button for at the package page to allow for quicker checking newer versions of earlier installed packages.
But I do think it's best to discus first how we should get the link for the changelogs.
Atm I'm thinking of the following default behaviour:
- For repository services that have a
{repository}/releasesor equivalent page and is being used have the link go to it. - If ^ isn't used/supported then and there is a /changelogs.md file then link to it instead
But some may host their changelogs somewhere else, for this it may be handy to have a way in the package.json to specify where the changelogs are located.
For example Ag grid host their changelog somewhere else and vuetify has their changelogs both at github & their own website.
I was thinking of 2 ways to have this in package.json
- Have a "changelogs" field in the root of the package.json (example:
{"changelogs": "https://example.pkg/changes"})- pro: can easier be used by other websites
- pro: has a (slight) chance of being adopted by npm
- con: if adopted by npm they could bring breaking changes like with what css nesting did in sass/scss.
- Have an "npmx" object field and then in there have "changelogs" field (example:
{"npmx": {"changelogs": "https://example.pkg/changes"}})
- pro: allows for better control of the definition of the changelogs field even if npm adopts it.
- pro: with the npmx object field other features could also be added in the future.
- con: other website may not use this as they may see it outside of their control
Hopefully discussion brings a lot of ideas & feadback.
Also why not link to specific release changelog:
- in case their are versions between the installed version & latest version it will make the in between versions easier to read/reach.
lishaduck
Metadata
Metadata
Assignees
Labels
backServer, DataServer, DatafrontFrontend, DesignFrontend, DesignideaSuggestion or idea, not yet vetted/decidedSuggestion or idea, not yet vetted/decided