ciena-blueplanet / ciena-devops

A collection of scripts and configurations used by the Ciena organization in their DevOps
MIT License
2 stars 3 forks source link

Current approach to retrieving NPM package version information is not practical #11

Closed notmessenger closed 6 years ago

notmessenger commented 6 years ago

Run > npm view ember-frost-bunsen versions

You will get

[ '0.0.1',
  '0.0.2',
  '1.0.0',
  '1.0.1',
  '1.0.2',
  '1.1.0',
  '1.1.1',
  '1.2.0',
  '1.2.1',
  '2.0.0',
  '2.1.0',
  '2.1.3',
  '2.1.4',
  '2.1.5',
  '2.2.0',
  '2.2.1',
  '2.2.2',
  '2.3.0',
  '2.3.1',
  '2.3.2',
  '3.0.0',
  '3.1.0',
  '3.2.0',
  '3.2.1',
  '4.0.0',
  '4.1.0',
  '4.1.1',
  '4.1.2',
  '4.1.3',
  '4.1.4',
  '4.1.5',
  '4.1.6',
  '4.1.7',
  '4.1.8',
  '4.1.9',
  '4.1.10',
  '4.1.11',
  '4.1.12',
  '4.1.13',
  '4.1.14',
  '5.0.0',
  '5.0.1',
  '5.0.2',
  '5.0.3',
  '5.0.4',
  '5.0.5',
  '5.0.6',
  '5.0.7',
  '5.0.8',
  '5.1.0',
  '5.2.0',
  '5.2.1',
  '5.2.2',
  '5.3.0',
  '5.4.0',
  '5.4.1',
  '5.4.2',
  '5.4.3',
  '5.5.0',
  '5.5.1',
  '5.6.0',
  '5.7.0',
  '5.8.0',
  '5.9.0',
  '5.9.1',
  '5.9.2',
  '5.10.0',
  '5.11.0',
  '5.12.0',
  '5.12.1',
  '5.12.2',
  '5.12.3',
  '5.13.0',
  '5.13.1',
  '5.13.2',
  '5.14.0',
  '5.14.1',
  '6.0.0',
  '6.0.1',
  '6.0.2',
  '6.0.3',
  '6.1.0',
  '6.1.1',
  '6.2.0',
  '6.3.0',
  '6.3.1',
  '6.3.2',
  '6.4.0',
  '6.4.1',
  '6.5.0',
  '6.6.0',
  '6.6.1',
  '6.6.2',
  '6.6.3',
  '6.6.4',
  '6.6.5',
  '6.6.6',
  '6.6.7',
  '6.6.8',
  '6.6.9',
  ... 239 more items ]

The code was predicated on the belief that all versions were returned, not a truncated list such as this.

Running > npm view ember-frost-bunsen and there is a dist-tags property returned

'dist-tags': { latest: '17.1.0' }

but will still need a way to get the previous version. #4 may be the only viable path forward.

notmessenger commented 6 years ago

> npm show ember-frost-bunsen version returns 17.1.0

notmessenger commented 6 years ago

> npm show ember-frost-bunsen@* version returns

ember-frost-bunsen@5.7.0 '5.7.0'
ember-frost-bunsen@16.0.3 '16.0.3'
ember-frost-bunsen@14.20.1 '14.20.1'
ember-frost-bunsen@16.0.4 '16.0.4'
ember-frost-bunsen@11.3.0 '11.3.0'
ember-frost-bunsen@16.0.5 '16.0.5'
ember-frost-bunsen@16.0.6 '16.0.6'
ember-frost-bunsen@16.0.0 '16.0.0'
ember-frost-bunsen@14.20.0 '14.20.0'
ember-frost-bunsen@16.0.1 '16.0.1'
ember-frost-bunsen@16.0.2 '16.0.2'
ember-frost-bunsen@4.1.1 '4.1.1'
ember-frost-bunsen@4.1.2 '4.1.2'
ember-frost-bunsen@11.3.5 '11.3.5'
ember-frost-bunsen@4.1.0 '4.1.0'
ember-frost-bunsen@4.1.5 '4.1.5'
ember-frost-bunsen@11.3.2 '11.3.2'
ember-frost-bunsen@4.1.6 '4.1.6'
ember-frost-bunsen@11.3.1 '11.3.1'
ember-frost-bunsen@4.1.3 '4.1.3'
ember-frost-bunsen@11.3.4 '11.3.4'
ember-frost-bunsen@4.1.4 '4.1.4'
ember-frost-bunsen@11.3.3 '11.3.3'
ember-frost-bunsen@12.1.1 '12.1.1'
ember-frost-bunsen@12.1.0 '12.1.0'
ember-frost-bunsen@8.0.0 '8.0.0'
ember-frost-bunsen@14.28.2 '14.28.2'
ember-frost-bunsen@14.28.1 '14.28.1'
ember-frost-bunsen@14.28.3 '14.28.3'
ember-frost-bunsen@16.0.7 '16.0.7'
ember-frost-bunsen@16.0.8 '16.0.8'
ember-frost-bunsen@14.28.0 '14.28.0'
ember-frost-bunsen@16.0.9 '16.0.9'
ember-frost-bunsen@14.32.1 '14.32.1'
ember-frost-bunsen@7.2.0 '7.2.0'
ember-frost-bunsen@14.32.0 '14.32.0'
ember-frost-bunsen@7.2.1 '7.2.1'
ember-frost-bunsen@14.32.3 '14.32.3'
ember-frost-bunsen@7.2.2 '7.2.2'
ember-frost-bunsen@14.4.1 '14.4.1'
ember-frost-bunsen@14.32.2 '14.32.2'
ember-frost-bunsen@14.4.0 '14.4.0'
ember-frost-bunsen@5.14.0 '5.14.0'
ember-frost-bunsen@5.14.1 '5.14.1'
ember-frost-bunsen@6.4.0 '6.4.0'
ember-frost-bunsen@6.4.1 '6.4.1'
ember-frost-bunsen@14.32.9 '14.32.9'
ember-frost-bunsen@14.32.8 '14.32.8'
ember-frost-bunsen@14.32.5 '14.32.5'
ember-frost-bunsen@14.32.4 '14.32.4'
ember-frost-bunsen@14.32.7 '14.32.7'
ember-frost-bunsen@5.6.0 '5.6.0'
ember-frost-bunsen@14.17.0 '14.17.0'
ember-frost-bunsen@14.32.6 '14.32.6'
ember-frost-bunsen@14.21.1 '14.21.1'
ember-frost-bunsen@14.21.0 '14.21.0'
ember-frost-bunsen@11.4.0 '11.4.0'
ember-frost-bunsen@12.2.0 '12.2.0'
ember-frost-bunsen@12.2.4 '12.2.4'
ember-frost-bunsen@14.29.1 '14.29.1'
ember-frost-bunsen@12.2.3 '12.2.3'
ember-frost-bunsen@14.29.0 '14.29.0'
ember-frost-bunsen@12.2.2 '12.2.2'
ember-frost-bunsen@12.2.1 '12.2.1'
ember-frost-bunsen@14.29.2 '14.29.2'
ember-frost-bunsen@7.2.3 '7.2.3'
ember-frost-bunsen@12.2.8 '12.2.8'
ember-frost-bunsen@7.2.4 '7.2.4'
ember-frost-bunsen@12.2.7 '12.2.7'
ember-frost-bunsen@7.2.5 '7.2.5'
ember-frost-bunsen@12.2.6 '12.2.6'
ember-frost-bunsen@12.2.5 '12.2.5'
ember-frost-bunsen@7.1.0 '7.1.0'
ember-frost-bunsen@14.10.0 '14.10.0'
ember-frost-bunsen@14.33.0 '14.33.0'
ember-frost-bunsen@7.1.1 '7.1.1'
ember-frost-bunsen@14.3.4 '14.3.4'
ember-frost-bunsen@14.3.3 '14.3.3'
ember-frost-bunsen@14.3.2 '14.3.2'
ember-frost-bunsen@14.33.1 '14.33.1'
ember-frost-bunsen@14.3.1 '14.3.1'
ember-frost-bunsen@14.3.0 '14.3.0'
ember-frost-bunsen@5.13.0 '5.13.0'
ember-frost-bunsen@5.13.1 '5.13.1'
ember-frost-bunsen@5.13.2 '5.13.2'
ember-frost-bunsen@6.3.1 '6.3.1'
ember-frost-bunsen@6.3.2 '6.3.2'
ember-frost-bunsen@6.3.0 '6.3.0'
ember-frost-bunsen@14.18.0 '14.18.0'
ember-frost-bunsen@9.6.0 '9.6.0'
ember-frost-bunsen@1.0.0 '1.0.0'
ember-frost-bunsen@1.0.1 '1.0.1'
ember-frost-bunsen@5.5.0 '5.5.0'
ember-frost-bunsen@1.0.2 '1.0.2'
ember-frost-bunsen@5.5.1 '5.5.1'
ember-frost-bunsen@11.1.0 '11.1.0'
ember-frost-bunsen@11.1.2 '11.1.2'
ember-frost-bunsen@11.1.1 '11.1.1'
ember-frost-bunsen@11.1.3 '11.1.3'
ember-frost-bunsen@17.0.0 '17.0.0'
ember-frost-bunsen@14.26.0 '14.26.0'
ember-frost-bunsen@12.7.0 '12.7.0'
ember-frost-bunsen@14.26.1 '14.26.1'
ember-frost-bunsen@14.30.3 '14.30.3'
ember-frost-bunsen@14.30.2 '14.30.2'
ember-frost-bunsen@14.6.0 '14.6.0'
ember-frost-bunsen@14.30.5 '14.30.5'
ember-frost-bunsen@14.30.4 '14.30.4'
ember-frost-bunsen@14.30.1 '14.30.1'
ember-frost-bunsen@7.0.0 '7.0.0'
ember-frost-bunsen@13.0.0 '13.0.0'
ember-frost-bunsen@14.30.0 '14.30.0'
ember-frost-bunsen@5.12.0 '5.12.0'
ember-frost-bunsen@5.12.1 '5.12.1'
ember-frost-bunsen@5.12.2 '5.12.2'
ember-frost-bunsen@5.12.3 '5.12.3'
ember-frost-bunsen@6.2.0 '6.2.0'
ember-frost-bunsen@9.5.0 '9.5.0'
ember-frost-bunsen@9.5.1 '9.5.1'
ember-frost-bunsen@9.5.2 '9.5.2'
ember-frost-bunsen@5.4.0 '5.4.0'
ember-frost-bunsen@9.5.3 '9.5.3'
ember-frost-bunsen@14.15.0 '14.15.0'
ember-frost-bunsen@1.1.0 '1.1.0'
ember-frost-bunsen@5.4.1 '5.4.1'
ember-frost-bunsen@14.15.1 '14.15.1'
ember-frost-bunsen@1.1.1 '1.1.1'
ember-frost-bunsen@5.4.2 '5.4.2'
ember-frost-bunsen@5.4.3 '5.4.3'
ember-frost-bunsen@14.32.10 '14.32.10'
ember-frost-bunsen@11.2.0 '11.2.0'
ember-frost-bunsen@14.32.13 '14.32.13'
ember-frost-bunsen@14.32.14 '14.32.14'
ember-frost-bunsen@14.32.11 '14.32.11'
ember-frost-bunsen@14.32.12 '14.32.12'
ember-frost-bunsen@14.32.15 '14.32.15'
ember-frost-bunsen@14.32.16 '14.32.16'
ember-frost-bunsen@12.0.2 '12.0.2'
ember-frost-bunsen@12.0.1 '12.0.1'
ember-frost-bunsen@12.0.0 '12.0.0'
ember-frost-bunsen@14.27.2 '14.27.2'
ember-frost-bunsen@14.27.1 '14.27.1'
ember-frost-bunsen@14.27.0 '14.27.0'
ember-frost-bunsen@2.0.0 '2.0.0'
ember-frost-bunsen@14.31.2 '14.31.2'
ember-frost-bunsen@14.31.1 '14.31.1'
ember-frost-bunsen@14.5.1 '14.5.1'
ember-frost-bunsen@14.31.4 '14.31.4'
ember-frost-bunsen@14.5.0 '14.5.0'
ember-frost-bunsen@14.31.3 '14.31.3'
ember-frost-bunsen@14.31.0 '14.31.0'
ember-frost-bunsen@5.11.0 '5.11.0'
ember-frost-bunsen@1.2.1 '1.2.1'
ember-frost-bunsen@6.1.1 '6.1.1'
ember-frost-bunsen@6.1.0 '6.1.0'
ember-frost-bunsen@9.4.0 '9.4.0'
ember-frost-bunsen@14.16.3 '14.16.3'
ember-frost-bunsen@5.3.0 '5.3.0'
ember-frost-bunsen@14.31.5 '14.31.5'
ember-frost-bunsen@14.16.0 '14.16.0'
ember-frost-bunsen@1.2.0 '1.2.0'
ember-frost-bunsen@14.16.1 '14.16.1'
ember-frost-bunsen@14.24.0 '14.24.0'
ember-frost-bunsen@9.2.0 '9.2.0'
ember-frost-bunsen@15.0.10 '15.0.10'
ember-frost-bunsen@12.5.0 '12.5.0'
ember-frost-bunsen@14.8.0 '14.8.0'
ember-frost-bunsen@2.1.0 '2.1.0'
ember-frost-bunsen@4.1.14 '4.1.14'
ember-frost-bunsen@4.1.13 '4.1.13'
ember-frost-bunsen@4.1.12 '4.1.12'
ember-frost-bunsen@14.13.0 '14.13.0'
ember-frost-bunsen@14.0.1 '14.0.1'
ember-frost-bunsen@13.2.1 '13.2.1'
ember-frost-bunsen@14.0.0 '14.0.0'
ember-frost-bunsen@13.2.0 '13.2.0'
ember-frost-bunsen@2.1.5 '2.1.5'
ember-frost-bunsen@5.10.0 '5.10.0'
ember-frost-bunsen@13.2.3 '13.2.3'
ember-frost-bunsen@13.2.2 '13.2.2'
ember-frost-bunsen@2.1.3 '2.1.3'
ember-frost-bunsen@4.1.11 '4.1.11'
ember-frost-bunsen@2.1.4 '2.1.4'
ember-frost-bunsen@4.1.10 '4.1.10'
ember-frost-bunsen@10.1.3 '10.1.3'
ember-frost-bunsen@10.1.2 '10.1.2'
ember-frost-bunsen@6.0.2 '6.0.2'
ember-frost-bunsen@10.1.1 '10.1.1'
ember-frost-bunsen@6.0.3 '6.0.3'
ember-frost-bunsen@10.1.0 '10.1.0'
ember-frost-bunsen@6.0.0 '6.0.0'
ember-frost-bunsen@6.0.1 '6.0.1'
ember-frost-bunsen@9.3.0 '9.3.0'
ember-frost-bunsen@9.3.1 '9.3.1'
ember-frost-bunsen@9.3.2 '9.3.2'
ember-frost-bunsen@10.1.9 '10.1.9'
ember-frost-bunsen@5.2.0 '5.2.0'
ember-frost-bunsen@10.1.8 '10.1.8'
ember-frost-bunsen@5.2.1 '5.2.1'
ember-frost-bunsen@10.1.7 '10.1.7'
ember-frost-bunsen@5.2.2 '5.2.2'
ember-frost-bunsen@10.1.6 '10.1.6'
ember-frost-bunsen@14.8.3 '14.8.3'
ember-frost-bunsen@10.1.5 '10.1.5'
ember-frost-bunsen@14.8.2 '14.8.2'
ember-frost-bunsen@10.1.4 '10.1.4'
ember-frost-bunsen@14.8.1 '14.8.1'
ember-frost-bunsen@11.0.1 '11.0.1'
ember-frost-bunsen@12.6.8 '12.6.8'
ember-frost-bunsen@11.0.0 '11.0.0'
ember-frost-bunsen@12.6.7 '12.6.7'
ember-frost-bunsen@11.0.3 '11.0.3'
ember-frost-bunsen@12.6.6 '12.6.6'
ember-frost-bunsen@11.0.2 '11.0.2'
ember-frost-bunsen@12.6.5 '12.6.5'
ember-frost-bunsen@9.1.0 '9.1.0'
ember-frost-bunsen@12.6.9 '12.6.9'
ember-frost-bunsen@6.6.10 '6.6.10'
ember-frost-bunsen@17.1.0 '17.1.0'
ember-frost-bunsen@3.0.0 '3.0.0'
ember-frost-bunsen@6.6.13 '6.6.13'
ember-frost-bunsen@6.6.12 '6.6.12'
ember-frost-bunsen@6.6.11 '6.6.11'
ember-frost-bunsen@12.6.0 '12.6.0'
ember-frost-bunsen@12.6.4 '12.6.4'
ember-frost-bunsen@14.25.1 '14.25.1'
ember-frost-bunsen@12.6.3 '12.6.3'
ember-frost-bunsen@14.25.0 '14.25.0'
ember-frost-bunsen@12.6.2 '12.6.2'
ember-frost-bunsen@12.6.1 '12.6.1'
ember-frost-bunsen@14.7.1 '14.7.1'
ember-frost-bunsen@14.7.0 '14.7.0'
ember-frost-bunsen@13.1.0 '13.1.0'
ember-frost-bunsen@2.2.2 '2.2.2'
ember-frost-bunsen@2.2.0 '2.2.0'
ember-frost-bunsen@2.2.1 '2.2.1'
ember-frost-bunsen@9.2.1 '9.2.1'
ember-frost-bunsen@9.2.2 '9.2.2'
ember-frost-bunsen@5.1.0 '5.1.0'
ember-frost-bunsen@9.2.3 '9.2.3'
ember-frost-bunsen@9.2.4 '9.2.4'
ember-frost-bunsen@14.14.0 '14.14.0'
ember-frost-bunsen@14.14.1 '14.14.1'
ember-frost-bunsen@14.14.2 '14.14.2'
ember-frost-bunsen@14.22.0 '14.22.0'
ember-frost-bunsen@5.9.0 '5.9.0'
ember-frost-bunsen@5.9.1 '5.9.1'
ember-frost-bunsen@14.22.1 '14.22.1'
ember-frost-bunsen@5.9.2 '5.9.2'
ember-frost-bunsen@9.0.0 '9.0.0'
ember-frost-bunsen@11.5.4 '11.5.4'
ember-frost-bunsen@11.5.3 '11.5.3'
ember-frost-bunsen@0.0.2 '0.0.2'
ember-frost-bunsen@11.5.0 '11.5.0'
ember-frost-bunsen@11.5.2 '11.5.2'
ember-frost-bunsen@0.0.1 '0.0.1'
ember-frost-bunsen@11.5.1 '11.5.1'
ember-frost-bunsen@12.3.0 '12.3.0'
ember-frost-bunsen@3.1.0 '3.1.0'
ember-frost-bunsen@14.11.0 '14.11.0'
ember-frost-bunsen@14.34.1 '14.34.1'
ember-frost-bunsen@14.34.0 '14.34.0'
ember-frost-bunsen@14.2.2 '14.2.2'
ember-frost-bunsen@14.2.1 '14.2.1'
ember-frost-bunsen@14.2.0 '14.2.0'
ember-frost-bunsen@13.4.1 '13.4.1'
ember-frost-bunsen@13.4.0 '13.4.0'
ember-frost-bunsen@2.3.1 '2.3.1'
ember-frost-bunsen@13.4.3 '13.4.3'
ember-frost-bunsen@15.0.9 '15.0.9'
ember-frost-bunsen@2.3.2 '2.3.2'
ember-frost-bunsen@13.4.2 '13.4.2'
ember-frost-bunsen@15.0.8 '15.0.8'
ember-frost-bunsen@13.4.5 '13.4.5'
ember-frost-bunsen@2.3.0 '2.3.0'
ember-frost-bunsen@13.4.4 '13.4.4'
ember-frost-bunsen@15.0.5 '15.0.5'
ember-frost-bunsen@13.4.6 '13.4.6'
ember-frost-bunsen@15.0.4 '15.0.4'
ember-frost-bunsen@15.0.7 '15.0.7'
ember-frost-bunsen@15.0.6 '15.0.6'
ember-frost-bunsen@15.0.1 '15.0.1'
ember-frost-bunsen@15.0.0 '15.0.0'
ember-frost-bunsen@15.0.3 '15.0.3'
ember-frost-bunsen@15.0.2 '15.0.2'
ember-frost-bunsen@5.0.0 '5.0.0'
ember-frost-bunsen@14.19.0 '14.19.0'
ember-frost-bunsen@5.0.1 '5.0.1'
ember-frost-bunsen@14.19.1 '14.19.1'
ember-frost-bunsen@5.0.2 '5.0.2'
ember-frost-bunsen@5.0.3 '5.0.3'
ember-frost-bunsen@5.0.4 '5.0.4'
ember-frost-bunsen@14.34.2 '14.34.2'
ember-frost-bunsen@5.0.5 '5.0.5'
ember-frost-bunsen@5.0.6 '5.0.6'
ember-frost-bunsen@5.0.7 '5.0.7'
ember-frost-bunsen@5.0.8 '5.0.8'
ember-frost-bunsen@5.8.0 '5.8.0'
ember-frost-bunsen@14.23.1 '14.23.1'
ember-frost-bunsen@14.23.0 '14.23.0'
ember-frost-bunsen@6.6.8 '6.6.8'
ember-frost-bunsen@6.6.9 '6.6.9'
ember-frost-bunsen@6.6.6 '6.6.6'
ember-frost-bunsen@6.6.7 '6.6.7'
ember-frost-bunsen@4.0.0 '4.0.0'
ember-frost-bunsen@6.6.4 '6.6.4'
ember-frost-bunsen@6.6.5 '6.6.5'
ember-frost-bunsen@6.6.2 '6.6.2'
ember-frost-bunsen@6.6.3 '6.6.3'
ember-frost-bunsen@6.6.0 '6.6.0'
ember-frost-bunsen@6.6.1 '6.6.1'
ember-frost-bunsen@11.6.0 '11.6.0'
ember-frost-bunsen@14.23.7 '14.23.7'
ember-frost-bunsen@14.23.6 '14.23.6'
ember-frost-bunsen@12.4.0 '12.4.0'
ember-frost-bunsen@14.23.8 '14.23.8'
ember-frost-bunsen@3.2.0 '3.2.0'
ember-frost-bunsen@14.23.2 '14.23.2'
ember-frost-bunsen@3.2.1 '3.2.1'
ember-frost-bunsen@14.23.5 '14.23.5'
ember-frost-bunsen@14.23.4 '14.23.4'
ember-frost-bunsen@14.9.0 '14.9.0'
ember-frost-bunsen@7.3.0 '7.3.0'
ember-frost-bunsen@14.12.0 '14.12.0'
ember-frost-bunsen@7.3.1 '7.3.1'
ember-frost-bunsen@14.1.3 '14.1.3'
ember-frost-bunsen@14.1.2 '14.1.2'
ember-frost-bunsen@14.1.1 '14.1.1'
ember-frost-bunsen@14.1.0 '14.1.0'
ember-frost-bunsen@13.3.0 '13.3.0'
ember-frost-bunsen@13.3.1 '13.3.1'
ember-frost-bunsen@4.1.9 '4.1.9'
ember-frost-bunsen@6.5.0 '6.5.0'
ember-frost-bunsen@10.0.3 '10.0.3'
ember-frost-bunsen@4.1.7 '4.1.7'
ember-frost-bunsen@10.0.2 '10.0.2'
ember-frost-bunsen@4.1.8 '4.1.8'
ember-frost-bunsen@10.0.1 '10.0.1'
ember-frost-bunsen@10.0.0 '10.0.0'

though would have to sort it ourselves obviously

notmessenger commented 6 years ago

The --json flag with npm show ember-frost-bunsen versions --json might be the way to go unless "... 239 more items" is represented in JSON as well.