File tree 4 files changed +14
-3
lines changed
plugins/node/instrumentation-tedious 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,10 @@ tedious:
24
24
# TypeScript v5 to use. This peerDependencies can be removed when this
25
25
# package updates to TypeScript v5.
26
26
peerDependencies : typescript@5
27
+ - versions :
28
+ include : " >=19 <20"
29
+ mode : latest-majors
30
+ node : ' >=18.17'
31
+ commands : npm run test
32
+ # See typescript@5 note above.
33
+ peerDependencies : typescript@5
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ npm install --save @opentelemetry/instrumentation-tedious
17
17
18
18
## Supported Versions
19
19
20
- - [ tedious] ( https://www.npmjs.com/package/tedious ) ` >=1.11.0 <19 `
20
+ - [ tedious] ( https://www.npmjs.com/package/tedious ) ` >=1.11.0 <20 `
21
21
22
22
## Usage
23
23
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export class TediousInstrumentation extends InstrumentationBase<TediousInstrumen
78
78
return [
79
79
new InstrumentationNodeModuleDefinition (
80
80
TediousInstrumentation . COMPONENT ,
81
- [ '>=1.11.0 <19 ' ] ,
81
+ [ '>=1.11.0 <20 ' ] ,
82
82
( moduleExports : typeof tedious ) => {
83
83
const ConnectionPrototype : any = moduleExports . Connection . prototype ;
84
84
for ( const method of PATCHED_METHODS ) {
Original file line number Diff line number Diff line change @@ -79,7 +79,11 @@ const incompatVersions =
79
79
( semver . lt ( processVersion , '15.0.0' ) &&
80
80
semver . gte ( tediousVersion , '16.0.0' ) ) ||
81
81
// tedious@17 removed support for node v16 and v19 https://github.com/tediousjs/tedious/releases/tag/v17.0.0
82
- ( semver . lt ( processVersion , '17.0.0' ) && semver . gte ( tediousVersion , '17.0.0' ) ) ;
82
+ ( semver . lt ( processVersion , '17.0.0' ) &&
83
+ semver . gte ( tediousVersion , '17.0.0' ) ) ||
84
+ // tedious@19 removed support for node <18.17.0 https://github.com/tediousjs/tedious/releases/tag/v19.0.0
85
+ ( semver . lt ( processVersion , '18.17.0' ) &&
86
+ semver . gte ( tediousVersion , '19.0.0' ) ) ;
83
87
84
88
describe ( 'tedious' , ( ) => {
85
89
let tedious : any ;
You can’t perform that action at this time.
0 commit comments