npm deprecated support #415

Closed
fengmk2 opened this Issue Aug 7, 2014 · 4 comments

Projects

None yet

1 participant

@fengmk2
Member
fengmk2 commented Aug 7, 2014
$ cnpm deprecate @cnpm/cnpmtestmodule@'<=0.7.0' 'bug in this versions'
"dist": {
"shasum": "5922141560acf69b97996347d17acef2c887db38",
"tarball": "http://registry.npmjs.org/cnpmtestmodule/-/cnpmtestmodule-0.0.0.tgz"
},
"deprecated": "bug in ...",
"directories": {}
@fengmk2 fengmk2 added the enhancement label Aug 7, 2014
@fengmk2
Member
fengmk2 commented Aug 7, 2014
$ tcnpm deprecate cnpmtestmodule@0.7.0 'bug in this version' --verbose
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli   '/Users/mk2/git/cnpm/node_modules/.bin/npm',
npm verb cli   '--userconfig=/Users/mk2/.tcnpmrc',
npm verb cli   '--disturl=http://dist.u.qiniudn.com',
npm verb cli   '--cache=/Users/mk2/.npm/.cache/tcnpm',
npm verb cli   '--registry=http://127.0.0.1:7001',
npm verb cli   '--registry=http://127.0.0.1:7001',
npm verb cli   '--cache=/Users/mk2/.npm/.cache/tcnpm',
npm verb cli   '--disturl=http://dist.u.qiniudn.com',
npm verb cli   '--userconfig=/Users/mk2/.tcnpmrc',
npm verb cli   'deprecate',
npm verb cli   'cnpmtestmodule@0.7.0',
npm verb cli   'bug in this version',
npm verb cli   '--verbose' ]
npm info using npm@1.5.0-alpha-4
npm info using node@v0.11.12
npm verb mapToRegistry name cnpmtestmodule
npm verb mapToRegistry uri http://127.0.0.1:7001/cnpmtestmodule
npm verb request where is /cnpmtestmodule?write=true
npm verb request registry http://127.0.0.1:7001/
npm verb request id 4b4f39ae276aa896
npm verb request url raw /cnpmtestmodule?write=true
npm verb request url resolving [ 'http://127.0.0.1:7001/', './cnpmtestmodule?write=true' ]
npm verb request url resolved http://127.0.0.1:7001/cnpmtestmodule?write=true
npm verb request where is http://127.0.0.1:7001/cnpmtestmodule?write=true
npm verb request no basic auth needed
npm info trying registry request attempt 1 at 14:41:33
npm http GET http://127.0.0.1:7001/cnpmtestmodule?write=true
npm http 200 http://127.0.0.1:7001/cnpmtestmodule?write=true
npm verb request where is /cnpmtestmodule
npm verb request registry http://127.0.0.1:7001/
npm verb request url raw /cnpmtestmodule
npm verb request url resolving [ 'http://127.0.0.1:7001/', './cnpmtestmodule' ]
npm verb request url resolved http://127.0.0.1:7001/cnpmtestmodule
npm verb request where is http://127.0.0.1:7001/cnpmtestmodule
npm verb request setting basic auth
npm info trying registry request attempt 1 at 14:41:33
npm http PUT http://127.0.0.1:7001/cnpmtestmodule
{ _id: 'cnpmtestmodule',
  _rev: '73',
  name: 'cnpmtestmodule',
  description: 'cnpmtestmodule',
  'dist-tags': { latest: '0.7.0' },
  maintainers: [ { name: 'admin', email: 'fengmk2@gmail.com' } ],
  time: 
   { modified: '2014-08-07T06:39:36.000Z',
     created: '2014-08-07T06:39:36.528Z',
     '0.7.0': '2014-08-07T06:39:36.528Z' },
  users: {},
  author: 
   { name: 'fengmk2',
     email: 'fengmk2@gmail.com',
     url: 'http://fengmk2.github.com' },
  repository: 
   { type: 'git',
     url: 'git://github.com/node-modules/cnpmtestmodule.git',
     web: 'https://github.com/node-modules/cnpmtestmodule' },
  versions: 
   { '0.7.0': 
      { name: 'cnpmtestmodule',
        version: '0.7.0',
        description: 'cnpmtestmodule',
        main: 'index.js',
        scripts: [Object],
        config: [Object],
        dependencies: {},
        devDependencies: [Object],
        homepage: 'https://github.com/node-modules/cnpmtestmodule',
        repository: [Object],
        bugs: [Object],
        keywords: [Object],
        engines: [Object],
        author: [Object],
        license: 'MIT',
        contributors: [],
        readmeFilename: 'README.md',
        _id: 'cnpmtestmodule@0.7.0',
        _shasum: 'd460069f90bf2636350375675a0da819d402df38',
        _from: '.',
        _npmVersion: '1.5.0-alpha-4',
        _npmUser: [Object],
        maintainers: [Object],
        dist: [Object],
        _publish_on_cnpm: true,
        _cnpm_publish_time: 1407393576528,
        deprecated: 'bug in this version' } },
  readme: 'cnpmtestmodule\n=======\n\n[![Build Status](https://secure.travis-ci.org/node-modules/cnpmtestmodule.png)](http://travis-ci.org/node-modules/cnpmtestmodule)\n\n[![Dependency Status](https://gemnasium.com/node-modules/cnpmtestmodule.png)](https://gemnasium.com/node-modules/cnpmtestmodule)\n\n[![NPM](https://nodei.co/npm/cnpmtestmodule.png?downloads=true&stars=true)](https://nodei.co/npm/cnpmtestmodule/)\n\n![logo](https://raw.github.com/node-modules/cnpmtestmodule/master/logo.png)\n\ncnpmtestmodule desc\n\n## Install\n\n```bash\n$ npm install cnpmtestmodule\n```\n\n## Usage\n\n```js\nvar cnpmtestmodule = require(\'cnpmtestmodule\');\n\ncnpmtestmodule.foo(function (err) {\n\n});\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2014 fengmk2 &lt;fengmk2@gmail.com&gt; and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\'Software\'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \'AS IS\', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n',
  _attachments: {},
  readmeFilename: 'README.md',
  homepage: 'https://github.com/node-modules/cnpmtestmodule',
  bugs: 
   { url: 'https://github.com/node-modules/cnpmtestmodule/issues',
     email: 'fengmk2@gmail.com' },
  license: 'MIT' }
@fengmk2 fengmk2 added this to the 1.0 milestone Aug 7, 2014
@fengmk2
Member
fengmk2 commented Aug 7, 2014

image

@fengmk2
Member
fengmk2 commented Aug 7, 2014

some header:

{ 'npm-session': '72dd11468754790c',
  version: '1.5.0-alpha-4',
  referer: 'deprecate cnpmtestmodule@0.7.0 bug in this version',
  accept: 'application/json',
  'accept-encoding': 'gzip',
  'user-agent': 'npm/1.5.0-alpha-4 node/v0.11.12 darwin x64',
  host: '127.0.0.1:7001',
  authorization: 'Basic xxxx',
  'content-type': 'application/json',
  'content-length': '3952',
  connection: 'close' }

{ 'npm-session': 'ffd4347d7aad6356',
  version: '1.5.0-alpha-4',
  referer: 'deprecate cnpmtestmodule@0.7.0 [REDACTED]',
  accept: 'application/json',
  'accept-encoding': 'gzip',
  'user-agent': 'npm/1.5.0-alpha-4 node/v0.11.12 darwin x64',
  host: '127.0.0.1:7001',
  authorization: 'Basic xxx',
  'content-type': 'application/json',
  'content-length': '4130',
  connection: 'close' }
@fengmk2
Member
fengmk2 commented Aug 7, 2014

deprecated multi versions:

{ _id: '@cnpm/cnpmtestmodule',
  _rev: '75',
  name: '@cnpm/cnpmtestmodule',
  description: 'cnpmtestmodule',
  'dist-tags': { latest: '0.6.0' },
  maintainers: [ { name: 'admin', email: 'fengmk2@gmail.com' } ],
  time: 
   { modified: '2014-08-07T07:04:12.000Z',
     created: '2014-08-07T06:53:09.060Z',
     '0.6.0': '2014-08-07T07:04:12.131Z',
     '0.7.0': '2014-08-07T06:53:09.060Z' },
  users: {},
  author: 
   { name: 'fengmk2',
     email: 'fengmk2@gmail.com',
     url: 'http://fengmk2.github.com' },
  repository: 
   { type: 'git',
     url: 'git://github.com/node-modules/cnpmtestmodule.git',
     web: 'https://github.com/node-modules/cnpmtestmodule' },
  versions: 
   { '0.6.0': 
      { name: '@cnpm/cnpmtestmodule',
        version: '0.6.0',
        description: 'cnpmtestmodule',
        main: 'index.js',
        scripts: [Object],
        config: [Object],
        dependencies: {},
        devDependencies: [Object],
        homepage: 'https://github.com/node-modules/cnpmtestmodule',
        repository: [Object],
        bugs: [Object],
        keywords: [Object],
        engines: [Object],
        author: [Object],
        license: 'MIT',
        contributors: [],
        readmeFilename: 'README.md',
        _id: '@cnpm/cnpmtestmodule@0.6.0',
        _shasum: 'b132f2a1a5493ab827f7349fe7926205669de28d',
        _from: '.',
        _npmVersion: '1.5.0-alpha-4',
        _npmUser: [Object],
        maintainers: [Object],
        dist: [Object],
        _publish_on_cnpm: true,
        _cnpm_publish_time: 1407395052131,
        deprecated: 'bug in this version\\n longlong text longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong' },
     '0.7.0': 
      { name: '@cnpm/cnpmtestmodule',
        version: '0.7.0',
        description: 'cnpmtestmodule',
        main: 'index.js',
        scripts: [Object],
        config: [Object],
        dependencies: {},
        devDependencies: [Object],
        homepage: 'https://github.com/node-modules/cnpmtestmodule',
        repository: [Object],
        bugs: [Object],
        keywords: [Object],
        engines: [Object],
        author: [Object],
        license: 'MIT',
        contributors: [],
        readmeFilename: 'README.md',
        _id: '@cnpm/cnpmtestmodule@0.7.0',
        _shasum: 'a0b245974a2c31d7fc330149c457e7164b9982d9',
        _from: '.',
        _npmVersion: '1.5.0-alpha-4',
        _npmUser: [Object],
        maintainers: [Object],
        dist: [Object],
        _publish_on_cnpm: true,
        _cnpm_publish_time: 1407394389060,
        deprecated: 'bug in this version\\n longlong text longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong' } },
  readme: 'cnpmtestmodule\n=======\n\n[![Build Status](https://secure.travis-ci.org/node-modules/cnpmtestmodule.png)](http://travis-ci.org/node-modules/cnpmtestmodule)\n\n[![Dependency Status](https://gemnasium.com/node-modules/cnpmtestmodule.png)](https://gemnasium.com/node-modules/cnpmtestmodule)\n\n[![NPM](https://nodei.co/npm/cnpmtestmodule.png?downloads=true&stars=true)](https://nodei.co/npm/cnpmtestmodule/)\n\n![logo](https://raw.github.com/node-modules/cnpmtestmodule/master/logo.png)\n\ncnpmtestmodule desc\n\n## Install\n\n```bash\n$ npm install cnpmtestmodule\n```\n\n## Usage\n\n```js\nvar cnpmtestmodule = require(\'cnpmtestmodule\');\n\ncnpmtestmodule.foo(function (err) {\n\n});\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2014 fengmk2 &lt;fengmk2@gmail.com&gt; and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\'Software\'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \'AS IS\', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n',
  _attachments: {},
  readmeFilename: 'README.md',
  homepage: 'https://github.com/node-modules/cnpmtestmodule',
  bugs: 
   { url: 'https://github.com/node-modules/cnpmtestmodule/issues',
     email: 'fengmk2@gmail.com' },
  license: 'MIT' }
@fengmk2 fengmk2 self-assigned this Aug 7, 2014
@fengmk2 fengmk2 referenced this issue Aug 7, 2014
Merged

Deprecate API #417

@dead-horse dead-horse closed this in #417 Aug 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment