New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with tedious #604
Comments
I'm seeing this as well. Brand new install of node-mssql. |
+1 - Version 4.1.0 Edit: Rolling tedious back to Version 2.2.4 gets rid of these messages. May be an issue with that package. |
Yup, and I'm getting
coming in from https://github.com/patriksimek/node-mssql/blob/master/lib/tedious.js#L63 |
Can you suggest how to roll back tedious to suggested version to solve the issue. |
Either install that specific version with "dependencies": {
"mssql": "^4.1.0",
"tedious": "2.2.4"
} I did this as a troubleshooting step though. I don't know if mssql requires the latest version of tedious to operate properly or not, so this may break other features |
@WebGaze nice workaroung, though I'd prefer moving forward instead of backward ;) |
Thanks for quick reply :) |
Why keep inaccurate dependencies in the first place? ("tedious": "^2.0.0"). I know it's supposed to be backwards compatible, but that's often just in theory. |
Hi, is there a plan to include aca00f0 into a stable release? I have plenty of messages in my log due to this while using TypeORM. |
Switched all the deprecated type to the recommended ones
Just realized @davepreston also created a fix, but not sure how that PR fixes the problem it only changes the switch from tds to sql. I think both have to be pulled to fully fix the problem. |
What's the solution? |
@saostad for now you can do the following: |
@mottykohn that is missing a couple of things. I added the rest of the deprecations in a new pr: #643 |
If anyone lands here just wanting to silence the deprecation warnings, you can add an environment variable For example, in "scripts": {
"test": "NO_DEPRECATION=tedious ava"
} |
Referencing @jonstuebe commit in package.json as described here works for me temporarily.
UPDATE: I actually began receiving error |
So as a dev is it safe for me to suppress these errors for now until an update comes from Knex or Tedious (both)? I feel dirty just sweeping them under the rug. |
+1 for v4.1.0 - @WebGaze workaround throwing it back to v2.2.4 still works, looks like this PR submitted April 14th addresses it, but still hasn't been merged????? 🤔🤔 |
Fixed in #643. Sorry for the delay. |
Still not fixed for me... |
@ves-krd What version of node-mssql do you use? |
I am seeing something very similar today -
with the following dependencies...
|
@MyPublicGitHubAcct You need version 4.2.0 via npm i mssql@next for this fix. |
I just installed mssql in to my new environment and I see these errors:
It works without errors in my old environment.
Any ideas?
Thanks!
### tedious deprecated The
IntN
data type is internal and will be removed. node_modules\mssql\lib\tedious.js:63:20tedious deprecated The
BitN
data type is internal and will be removed. node_modules\mssql\lib\tedious.js:71:40tedious deprecated The
FloatN
data type is internal and will be removed. node_modules\mssql\lib\tedious.js:73:20tedious deprecated The
MoneyN
data type is internal and will be removed. node_modules\mssql\lib\tedious.js:78:20tedious deprecated The
NumericN
data type is internal and will be removed. node_modules\mssql\lib\tedious.js:82:44tedious deprecated The
DecimalN
data type is internal and will be removed. node_modules\mssql\lib\tedious.js:83:44tedious deprecated The
DateTimeN
data type is internal and will be removed. node_modules\mssql\lib\tedious.js:85:20tedious deprecated The
TimeN
data type alias is deprecated, please useTime
instead. node_modules\mssql\lib\tedious.js:88:20tedious deprecated The
DateN
data type alias is deprecated, please useDate
instead. node_modules\mssql\lib\tedious.js:89:20tedious deprecated The
DateTime2N
data type alias is deprecated, please useDateTime2
instead. node_modules\mssql\lib\tedious.js:90:20tedious deprecated The
DateTimeOffsetN
data type alias is deprecated, please useDateTimeOffset
instead. node_modules\mssql\lib\tedious.js:91:20The text was updated successfully, but these errors were encountered: