4.0.2 • Published 2 years ago
deprecations v4.0.2
deprecations 
Given npm module names, get a JSON map of npm version numbers to deprecation messages.
Example
var deprecations = require('deprecations');
var messages = deprecations('forms', 'object.assign');
var assert = require('assert');
assert.deepEqual(messages, {
forms: {
'0.1.0': 'Please update to the latest version',
'0.1.1': 'Please update to the latest version',
'0.1.2': 'Please update to the latest version',
'0.1.3': 'Please update to the latest version',
'0.1.4': 'Please update to the latest version',
'0.2.0': 'Please update to the latest version',
'0.2.1': 'Please update to the latest version',
'0.2.2': 'Please update to the latest version',
'0.2.3': 'Please update to the latest version',
'0.3.0': 'Please update to the latest version',
'0.4.0': 'Please update to the latest version',
'0.4.1': undefined
},
'object.assign': {
'0.1.0': 'Please upgrade to the latest spec-compliant version',
'0.1.1': 'Please upgrade to the latest spec-compliant version',
'0.2.0': 'Please upgrade to the latest spec-compliant version',
'0.2.1': 'Please upgrade to the latest spec-compliant version',
'0.3.1': undefined
}
});Alternatively, install it as a global module, and then run:
deprecations forms object.assignwhich will print out the same output, as valid JSON.
Tests
Simply clone the repo, npm install, and run npm test
4.0.2
2 years ago
4.0.1
2 years ago
4.0.0
2 years ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.1
5 years ago
3.0.0
6 years ago
2.0.3
6 years ago
2.0.2
8 years ago
1.0.8
9 years ago
2.0.1
9 years ago
2.0.0
10 years ago
1.0.7
10 years ago
1.0.5
10 years ago
1.0.6
10 years ago
1.0.4
11 years ago
1.0.3
12 years ago
1.0.2
12 years ago
1.0.1
12 years ago
1.0.0
12 years ago
0.1.0
12 years ago
