Client Side Javascript Package Versioning #316
Description
I was opening up a PR to update the documentation around adonisjs/adonis-websocket-client#53 when I had a thought about the client-side API documentation. Let's say I'm using Adonis 4.1 and follow the documentation and run npm i @adonisjs/websocket-client
. Adonis 4.2 is then released and @adonisjs/websocket-client
continues to be updated. I'll still be referring to the 4.1 documentation which will be out of date with the version of the library I'm using.
I'm not quite sure how to solve this, but I think tying a release of these types of packages to an adonis version isn't feasible since they can be used in frontend packages. I also don't think it makes sense to update every branch with the plugin (so when 4.2
comes out, 4.1
and 4.2
because this is cumbersome (and will become more cumbersome overtime) and in the case of adonis-websocket-client
the Client API and Server Api will quickly be incompatible.
One way to better tackle this might be to release 2.x of @adonisjs/websocket-client
when 4.2
comes out and specify in the 4.1
documentation on install to make the packages max version 1.x
but definitely think there might be a better way to tackle this.