File tree Expand file tree Collapse file tree 5 files changed +6
-24
lines changed Expand file tree Collapse file tree 5 files changed +6
-24
lines changed Original file line number Diff line number Diff line change 4
4
- " 8"
5
5
- " 7"
6
6
- " 6"
7
- - " 5"
8
- - " 4"
9
- - " 0.12"
10
7
after_success :
11
8
- bash <(curl -s https://codecov.io/bash)
12
9
cache :
Original file line number Diff line number Diff line change 9
9
10
10
* Add support for Node.js v9
11
11
12
+ Removed:
13
+
14
+ * Drop support for Node.js v0.12, v4, v5
12
15
13
16
14
17
* * *
Original file line number Diff line number Diff line change 1
- /**
2
- * If running on Nodejs 5.x and below, we load the transpiled code.
3
- * Otherwise, we use the ES6 code.
4
- * We are deprecating support for Node.js v5.x and below.
5
- */
6
- const majorVersion = parseInt ( process . versions . node . split ( '.' ) [ 0 ] , 10 ) ;
7
- if ( majorVersion <= 5 ) {
8
- const deprecate = require ( 'depd' ) ( 'node-telegram-bot-api' ) ;
9
- deprecate ( 'Node.js v5.x and below will no longer be supported in the future' ) ;
10
- module . exports = require ( './lib/telegram' ) ;
11
- } else {
12
- module . exports = require ( './src/telegram' ) ;
13
- }
1
+ module . exports = require ( './src/telegram' ) ;
Original file line number Diff line number Diff line change 25
25
"author" : " Yago Pérez <yagoperezs@gmail.com>" ,
26
26
"license" : " MIT" ,
27
27
"engines" : {
28
- "node" : " >=0.12 "
28
+ "node" : " >=6 "
29
29
},
30
30
"dependencies" : {
31
31
"array.prototype.findindex" : " ^2.0.0" ,
Original file line number Diff line number Diff line change @@ -55,15 +55,9 @@ before(function beforeAll() {
55
55
56
56
57
57
describe ( 'module.exports' , function moduleExportsSuite ( ) {
58
- const nodeVersion = parseInt ( process . versions . node . split ( '.' ) [ 0 ] , 10 ) ;
59
- it ( 'is loaded from src/ on Node.js v6+ and above' , function test ( ) {
60
- if ( nodeVersion <= 5 ) this . skip ( ) ; // skip on Node.js v5 and below
58
+ it ( 'is loaded from src' , function test ( ) {
61
59
assert . equal ( TelegramBot , require ( '../src/telegram' ) ) ;
62
60
} ) ;
63
- it ( 'is loaded from lib/ on Node.js v5 and below' , function test ( ) {
64
- if ( nodeVersion > 5 ) this . skip ( ) ; // skip on newer versions
65
- assert . equal ( TelegramBot , require ( '../lib/telegram' ) ) ;
66
- } ) ;
67
61
} ) ;
68
62
69
63
You can’t perform that action at this time.
0 commit comments