knockout / tko

🥊 Technical Knockout – The Monorepo for Knockout.js (4.0+)
http://www.tko.io
Other
273 stars 34 forks source link

Deprecate unused npm packages #135

Closed brianmhunt closed 2 years ago

brianmhunt commented 3 years ago

Background

A number of the @tko and tko.* packages have been created and deployed to npm along the way, mostly dating to the early experiments with packaging. These no longer needed, and may confuse potential consumers of the packages.

The @tko/* packages will continue; this is just for any older and unused packages (notably, likely tko.*).

Objective

Technical design

O1: Compile a list

This should be possible with a simple search of npmjs.org (or otherwise).

O2: Mark the packages as deprecated

npm provides a handy deprecate command that should serve properly advise users that the package is not used.

$ npm deprecate <pkg>[@<version range>] <message>
brianmhunt commented 2 years ago

To Deprecate

To Decide

^^ This has ~100 weekly downloads and is a top-level match so we may want to repurpose as e.g. @tko/build.reference

brianmhunt commented 2 years ago

x.sh

npm deprecate --otp $OTP tko.utils "Replaced by packages from the @tko organization"
npm deprecate --otp $OTP tko.binding.core "Replaced by packages from the @tko organization"
npm deprecate --otp $OTP tko.computed "Replaced by packages from the @tko organization"
npm deprecate --otp $OTP tko.utils.jsx "Replaced by packages from the @tko organization"
npm deprecate --otp $OTP tko.observable "Replaced by packages from the @tko organization"
npm deprecate --otp $OTP tko.bind "Replaced by packages from the @tko organization"
npm deprecate --otp $OTP tko-policy "Replaced by packages from the @tko organization"
npm deprecate --otp $OTP tko.binding.template "Replaced by packages from the @tko organization"
npm deprecate --otp $OTP tko.filter.punches "Replaced by packages from the @tko organization"
npm deprecate --otp $OTP tko.binding.if "Replaced by packages from the @tko organization"
npm deprecate --otp $OTP tko.provider "Replaced by packages from the @tko organization"
npm deprecate --otp $OTP tko.provider.mustache "Replaced by packages from the @tko organization"
$ OTP=xxxxxx bash x.sh