Comparing version 9.0.0 to 9.1.0
<a name="8.5.1"></a> | ||
## [9.1.0](https://github.com/restify/node-restify/compare/v9.0.0...v9.1.0) (2023-06-13) | ||
### Features | ||
* emit warning for req.closed only once ([86cab8c](https://github.com/restify/node-restify/commit/86cab8c61a75db323babf6bdcb4195ee1f9941b6)) | ||
## [9.0.0](https://www.github.com/restify/node-restify/compare/v8.6.1...v9.0.0) (2022-11-15) | ||
@@ -3,0 +10,0 @@ |
@@ -5,3 +5,3 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved. | ||
const { emitWarning } = require('node:process'); | ||
const { emitWarning } = require('process'); | ||
var url = require('url'); | ||
@@ -850,8 +850,12 @@ var sprintf = require('util').format; | ||
*/ | ||
let closedDeprecatedWarned = false; | ||
Request.prototype.closed = function closed() { | ||
emitWarning( | ||
'restify req.closed is deprecated, will be removed on Restify 10', | ||
'RestifyDeprecationWarning', | ||
'RestifyDEPReqClosed' | ||
); | ||
if (!closedDeprecatedWarned) { | ||
emitWarning( | ||
'restify req.closed is deprecated, will be removed on v10', | ||
'RestifyDeprecationWarning', | ||
'RestifyDEPReqClosed' | ||
); | ||
closedDeprecatedWarned = true; | ||
} | ||
var self = this; | ||
@@ -858,0 +862,0 @@ return self.connectionState() === 'close'; |
@@ -77,3 +77,3 @@ { | ||
], | ||
"version": "9.0.0", | ||
"version": "9.1.0", | ||
"repository": { | ||
@@ -80,0 +80,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
349889
8104