Skip to content

npm cli breaking changes #488

Closed
Closed

Description

@darcyclarke

This is the issue where we file our future breaking changes for the npm cli.

Breaking Changes:

  1. Remove legacy lifecycle scripts support (ie. pre/post scripts)

Activity

  1. wraithgar commented on Sep 6, 2023

    @wraithgar
    Contributor

    Copied from v10 initiative

    v11 and beyond

    These are still future looking breaking changes that we want to keep in consideration going forward

    ### Breaking Changes:
    - [ ] stop reading process.env.NODE in config for nodeBin
    - [ ] remove man pages
    - [ ] Remove install scripts support
    - [ ] Support for reading `stdin` across **all** commands (ie. https://github.com/npm/rfcs/blob/3d5b2130504139bdc8a3b599923aa07d2ff79c96/accepted/0000-dependency-selector-syntax.md#commands-could-read-from-stdin)
    - [ ] Support Package Distributions by default
    - [ ] Consider changing strict-ssl default based on environment variables https://github.com/npm/make-fetch-happen/pull/257
    - [ ] https://github.com/npm/npm-packlist/pull/168
    - [ ] Revert all of the hacks around "globstar" in packlist.  Just use node-glob's patterns.
    

    Features (v10 or v11 or beyond):

    - [ ] New `npm link` experience
    - [ ] Add new "lifecycle events" API - differentiate between scripts & events - user/project & dependency defined usecases)
    - [ ] First-class `import-maps` Support
    - [ ] Warn/error on unecessary config items in publishConfig
    
  2. ljharb commented on Sep 6, 2023

    @ljharb

    Let's figure out the "store the range i asked for" change for v11 too?

  3. wraithgar commented on Mar 22, 2024

    @wraithgar
  4. wraithgar commented on May 13, 2024

    @wraithgar
  5. lukekarrys commented on May 14, 2024

    @lukekarrys
  6. wraithgar commented on May 24, 2024

    @wraithgar
  7. wraithgar commented on Jun 11, 2024

    @wraithgar
  8. wraithgar commented on Jul 31, 2024

    @wraithgar
  9. karenjli commented on Aug 6, 2024

    @karenjli
  10. changed the title [-]Initiative: `v11.0`[/-] [+]npm cli breaking changes[/+] on Sep 25, 2024
  11. wraithgar commented on Sep 25, 2024

    @wraithgar
    Contributor

    Repurposed this issue as the bucket for all breaking changes. Actual v11 roadmap is at #898

  12. reggi commented on Nov 26, 2024

    @reggi
  13. reggi commented on Nov 26, 2024

    @reggi
  14. ljharb commented on Nov 26, 2024

    @ljharb

    @reggi does that last one mean that pre-existing gists might stop being npm-installable?

  15. wraithgar commented on Nov 26, 2024

    @wraithgar
    Contributor

    @ljharb it's a chesterton's fence issue. We want to explain why it's in the road and decide if we want to remove it. If you have a small gist example that could help us add an explanatory comment in our package-json parser.

    ETA: it may also help us add better regression tests for this use case.

  16. ljharb commented on Nov 26, 2024

    @ljharb

    Chesterton's fence says to not remove it until you can explain why it's in the road :-p

    https://gist.github.com/isaacs/1837112 is the original canonical example. I'll see if I can find some modern usages.

  17. reggi commented on Dec 10, 2024

    @reggi
    Contributor

    🌶 take --workspace={path.basename} should work if there's only one workspace with that basename (throw if multiple)
    or perhaps a different algo to do --workspace=workspace/example (tldr; I dont want to need to use the scoped package name)
    this already works

    also --ws=xxx doesnt throw and really threw me for a loop a couple days back so either awk strings or throw if not boolean

  18. wraithgar commented on Jan 2, 2025

    @wraithgar
    Contributor

    bun.lock is now a thing npm/npm-packlist#257

  19. wraithgar commented on Jan 21, 2025

    @wraithgar
    Contributor
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