Skip to content

Feature request: add { allowNewer: true } option #13

Open

Description

@ronkorving

This option would allow users to break the semver range, but only by providing a package that is newer than the registered range (not older).

Users could then be greeted by a warning, which would depend on #12.

Activity

  1. stelcheck commented on Aug 16, 2017

    @stelcheck
    Member

    Maybe "warn: boolean" would be better, or "error: boolean". I could see someone wanting to go to a lower version than recommended, for instance.

  2. ronkorving commented on Aug 16, 2017

    @ronkorving
    CollaboratorAuthor

    See #12 for warnings. I think I would like the options to be disconnected from warnings. If we also want to allow users to go older, that can be an option in and of itself. I don't mind being very verbose with our options.

  3. stelcheck commented on Aug 16, 2017

    @stelcheck
    Member

    I see. It might be better to find a unified API for that then...

    requirePeer('module', {
      error: [true|false|'newer'|'older']
    })
    

    Or something like that maybe?

  4. ronkorving commented on Aug 16, 2017

    @ronkorving
    CollaboratorAuthor

    Then I wouldn't know if it would throw or warn. In any case, if we add this feature, I would want it to be absolutely backwards compatible. Too many people use this library now for such a small addition to have such a big impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions