sinon icon indicating copy to clipboard operation
sinon copied to clipboard

Proposal: publish to npm using scopes

Open mroderick opened this issue 7 years ago • 7 comments

I think it would make sense to start using scopes when we publish things to npm.

  • sinon => @sinonjs/sinon
  • nise => @sinonjs/nise
  • lolex => @sinonjs/lolex
  • sinon-test => @sinonjs/sinon-test, @sinonjs/test, @sinonjs/testcase or some other name

mroderick avatar Jan 13 '18 12:01 mroderick

Yes that would be nice and consistent with GitHub. It also gives us more freedom with naming future modules 👍

mantoni avatar Jan 13 '18 12:01 mantoni

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 14 '18 12:03 stale[bot]

How do we notify people of the naming change? Most people are probably used to adding sinon to a project using npm install sinon. That will make them stay at an older release. Maybe the last major version change should just be that each require call now outputs sinon has moved to the @sinonjs/sinon namespace. Please change your package.json dependency accordingly.?

fatso83 avatar Oct 14 '18 10:10 fatso83

How do we notify people of the naming change?

I think we should communicate as soon as possible with a note on the website/documentation and the README.md in all the projects that there will be a scoped package name structure from version x.0.0.

That will make them stay at an older release

Furthermore we should publish a deprecation notice on npm, e.g. CoffeScript is doing this: https://www.npmjs.com/package/coffee-script (1.x) https://www.npmjs.com/package/coffeescript (2.x)

When you run npm install coffee-script, there will be a notice saying: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)

I have no experience with npm but, npm-depricate seems worth a look.

Maybe the last major version change should just be that each require call now outputs sinon has moved to the @sinonjs/sinon namespace. Please change your package.json dependency accordingly.?

:smile: I like this. When we log a message everytime sinon is required then I think users quickly update their dependecies

mgred avatar Oct 15 '18 20:10 mgred

Deprecating packages is not that difficult, I've already done it when we adopted referee, samsam and formatio.

mroderick avatar Oct 17 '18 14:10 mroderick

Issue for nise: https://github.com/sinonjs/nise/issues/77

mantoni avatar Dec 09 '18 17:12 mantoni

This is only missing for sinon.

fatso83 avatar May 25 '21 09:05 fatso83