Skip to content

Update dependency nopt to latest major release #11012

Open

Description

@mansona

We have an effort in progress to make sure we remove any out of date or deprecated dependencies. This means that any dependency that is a major (or more!) behind we should update it

nopt is behind and should be updated: https://www.npmjs.com/package/nopt

Activity

  1. Bimal-ray99 commented on May 4, 2026

    @Bimal-ray99

    I'd like to work on this. Will open a PR soon.

  2. mansona commented on May 10, 2026

    @mansona
    MemberAuthor

    Just so you know that there is a PR already that has made an attempt at it: #11019

    I have a gut feeling that it's a bit much of a change 🤔 but I haven't had the time to look into it completely

  3. Kunal184 commented on May 13, 2026

    @Kunal184

    I would like to be assigned to this issue, also do you have a contribution guide?

  4. nulllkomalll commented on May 14, 2026

    @nulllkomalll

    Hi @mansona! I've caught up on the discussion in #11019 and #10907. It seems the main hurdle is the behavior change in nopt regarding strings starting with dashes. I’m a Computer Engineering student and a first-time contributor here - I’d like to try a version of this PR that avoids the 'masking/unmasking' logic. I'll start by seeing if nopt v8 or v9 can be implemented by adjusting the test expectations or using a simpler configuration, as suggested by @bertdeblock.

  5. nulllkomalll commented on May 14, 2026

    @nulllkomalll

    Hello @mansona, I’ve opened #11021 which attempts to solve this upgrade by updating the unit test rather than using masking logic, following the suggestion to keep the implementation simpler. Verified locally on Windows with all core CLI tests passing.

  6. bertdeblock commented on May 18, 2026

    @bertdeblock
    Member

    AFAICT, simply updating the test to make it pass against v9, would be the same as just deleting it.

    FYI, it seems that --options --split 2 --random parsing to '--options': '--split 2 --random' worked by accident in nopt@v3, and since ember-exam relied on this, ember-cli never updated nopt.
    npm/nopt#80 has been open for 9+ years now, so personally, I would just updated nopt in ember-cli and remove the test, and do the necessary fixes in ember-exam.

  7. nulllkomalll commented on May 18, 2026

    @nulllkomalll

    Hi @bertdeblock, thank you for the detailed context! That makes total sense. If the community is ready to officially drop that accidental v3 behavior and handle the fixes over in ember-exam, I'm happy to update this PR accordingly.

    I can go ahead and remove that specific unit test from this PR so we can cleanly merge the nopt@v9 upgrade here. Let me know if you'd like me to proceed with that!

  8. nulllkomalll commented on May 21, 2026

    @nulllkomalll

    @mansona, @bertdeblock any updates on this!!!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions