Skip to content

Discussion: changelogs button #501

@WilcoSp

Description

@WilcoSp

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:

  1. For repository services that have a {repository}/releasesor equivalent page and is being used have the link go to it.
  2. 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

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backServer, DatafrontFrontend, DesignideaSuggestion or idea, not yet vetted/decided

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions