tedious 20.3.2 → 20.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +11 -21
  3. package/lib/connection.js +8 -1
  4. package/lib/connection.js.map +1 -1
  5. package/lib/data-types/plp-stream.d.ts +1 -1
  6. package/lib/data-types/plp-stream.js +12 -9
  7. package/lib/data-types/plp-stream.js.map +1 -1
  8. package/lib/data-types/varchar.js +9 -14
  9. package/lib/data-types/varchar.js.map +1 -1
  10. package/lib/metadata-parser.d.ts +1 -3
  11. package/lib/metadata-parser.js +1 -22
  12. package/lib/metadata-parser.js.map +1 -1
  13. package/lib/request.d.ts +4 -5
  14. package/lib/request.js +5 -6
  15. package/lib/request.js.map +1 -1
  16. package/lib/token/colmetadata-token-parser.d.ts +11 -3
  17. package/lib/token/colmetadata-token-parser.js +29 -42
  18. package/lib/token/colmetadata-token-parser.js.map +1 -1
  19. package/lib/token/nbcrow-token-parser.d.ts +11 -3
  20. package/lib/token/nbcrow-token-parser.js +22 -89
  21. package/lib/token/nbcrow-token-parser.js.map +1 -1
  22. package/lib/token/returnvalue-token-parser.d.ts +19 -3
  23. package/lib/token/returnvalue-token-parser.js +67 -73
  24. package/lib/token/returnvalue-token-parser.js.map +1 -1
  25. package/lib/token/row-token-parser.d.ts +33 -3
  26. package/lib/token/row-token-parser.js +62 -60
  27. package/lib/token/row-token-parser.js.map +1 -1
  28. package/lib/token/stream-parser.d.ts +59 -27
  29. package/lib/token/stream-parser.js +157 -325
  30. package/lib/token/stream-parser.js.map +1 -1
  31. package/lib/token/token-stream-parser.d.ts +12 -5
  32. package/lib/token/token-stream-parser.js +46 -17
  33. package/lib/token/token-stream-parser.js.map +1 -1
  34. package/lib/value-parser.d.ts +19 -2
  35. package/lib/value-parser.js +73 -30
  36. package/lib/value-parser.js.map +1 -1
  37. package/package.json +1 -1
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2010-2018 Mike D Pilsbury
3
+ Copyright (c) 2010-2026 Mike D Pilsbury
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -2,26 +2,21 @@
2
2
  [![NPM version](https://badge.fury.io/js/tedious.svg)](http://badge.fury.io/js/tedious) [![Build Status](https://ci.appveyor.com/api/projects/status/ike3p58hljpyffrl?svg=true)](https://ci.appveyor.com/project/tediousjs/tedious) [![Code Coverage](https://codecov.io/gh/tediousjs/tedious/badge.svg)](https://codecov.io/gh/tediousjs/tedious)
3
3
 
4
4
 
5
- Tedious is a pure-Javascript implementation of the [TDS protocol](http://msdn.microsoft.com/en-us/library/dd304523.aspx),
5
+ Tedious is a pure-Javascript implementation of the [TDS protocol](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/b46a581a-39de-4745-b076-ec4dbb7d13ec),
6
6
  which is used to interact with instances of Microsoft's SQL Server. It is intended to be a fairly slim implementation of the protocol, with not too much additional functionality.
7
7
 
8
- **NOTE: New columns are nullable by default as of version 1.11.0**
9
-
10
- Previous behavior can be restored using `config.options.enableAnsiNullDefault = false`. See [pull request 230](https://github.com/tediousjs/tedious/pull/230).
11
-
12
- **NOTE: Default login behavior has changed slightly as of version 1.2**
13
-
14
8
  See the [changelog](https://github.com/tediousjs/tedious/releases) for version history.
15
9
 
16
-
17
10
  ### Supported TDS versions
18
11
 
19
- - TDS 7.4 (SQL Server 2012/2014/2016/2017/2019/2022)
12
+ - TDS 7.4 (SQL Server 2012/2014/2016/2017/2019/2022/2025)
20
13
  - TDS 7.3.B (SQL Server 2008 R2)
21
14
  - TDS 7.3.A (SQL Server 2008)
22
15
  - TDS 7.2 (SQL Server 2005)
23
16
  - TDS 7.1 (SQL Server 2000) - *deprecated, support will be removed in a future version*
24
17
 
18
+ TDS 8.0 (SQL Server 2022 and later) is supported by setting `options.encrypt` to `'strict'`.
19
+
25
20
  ## Installation
26
21
 
27
22
  Node.js is a prerequisite for installing tedious. Once you have installed [Node.js](https://nodejs.org/), installing tedious is simple:
@@ -29,11 +24,12 @@ Node.js is a prerequisite for installing tedious. Once you have installed [Node.
29
24
  npm install tedious
30
25
 
31
26
  ## Getting Started
32
- - [Node.js + macOS](https://www.microsoft.com/en-us/sql-server/developer-get-started/node/mac/)
33
- - [Node.js + Red Hat Enterprise Linux](https://www.microsoft.com/en-us/sql-server/developer-get-started/node/rhel/)
34
- - [Node.js + SUSE Linux Enterprise Server](https://www.microsoft.com/en-us/sql-server/developer-get-started/node/sles/)
35
- - [Node.js + Ubuntu](https://www.microsoft.com/en-us/sql-server/developer-get-started/node/ubuntu/)
36
- - [Node.js + Windows](https://www.microsoft.com/en-us/sql-server/developer-get-started/node/windows/)
27
+ - [Node.js SQL Server Guide](https://learn.microsoft.com/en-us/sql/connect/node-js/node-js-driver-for-sql-server)
28
+ - [Node.js + macOS](https://learn.microsoft.com/en-us/sql/connect/node-js/step-1-configure-development-environment-for-node-js-development#macos)
29
+ - [Node.js + Red Hat Enterprise Linux](https://learn.microsoft.com/en-us/sql/linux/install-upgrade/quickstart-install-red-hat)
30
+ - [Node.js + SUSE Linux Enterprise Server](https://learn.microsoft.com/en-us/sql/linux/install-upgrade/quickstart-install-suse)
31
+ - [Node.js + Ubuntu](https://learn.microsoft.com/en-us/sql/connect/node-js/step-1-configure-development-environment-for-node-js-development#ubuntu-linux)
32
+ - [Node.js + Windows](https://learn.microsoft.com/en-us/sql/connect/node-js/step-1-configure-development-environment-for-node-js-development#windows)
37
33
 
38
34
  <a name="documentation"></a>
39
35
  ## Documentation
@@ -43,12 +39,6 @@ More documentation and code samples are available at [tediousjs.github.io/tediou
43
39
  ## Name
44
40
  _Tedious_ is simply derived from a fast, slightly garbled, pronunciation of the letters T, D and S.
45
41
 
46
- ## Developer Survey
47
-
48
- We'd like to learn more about how you use tedious:
49
-
50
- <a href="https://aka.ms/mssqltedioussurvey"><img style="float: right;" height="67" width="156" src="https://sqlchoice.blob.core.windows.net/sqlchoice/static/images/survey.png"></a>
51
-
52
42
  <a name="contributing"></a>
53
43
  ## Contributing
54
44
  We welcome contributions from the community. Feel free to checkout the code and submit pull requests.
@@ -59,7 +49,7 @@ Please report security vulnerabilities privately. See our [security policy](SECU
59
49
  <a name="license"></a>
60
50
  ## License
61
51
 
62
- Copyright (c) 2010-2021 Mike D Pilsbury
52
+ Copyright (c) 2010-2026 Mike D Pilsbury
63
53
 
64
54
  The MIT License
65
55