Skip to content

Commit 69a4cf2

Browse files
rhodgkinswesleytodd
authored andcommitted
deps: cookie@0.6.0
closes #5404
1 parent 4ee853e commit 69a4cf2

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

History.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
unreleased
2+
==========
3+
4+
* deps: cookie@0.6.0
5+
16
4.18.3 / 2024-02-29
27
==========
38

@@ -6,6 +11,8 @@
611
- Fix strict json error message on Node.js 19+
712
- deps: content-type@~1.0.5
813
- deps: raw-body@2.5.2
14+
* deps: cookie@0.6.0
15+
- Add `partitioned` option
916

1017
4.18.2 / 2022-10-08
1118
===================

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"body-parser": "1.20.2",
3434
"content-disposition": "0.5.4",
3535
"content-type": "~1.0.4",
36-
"cookie": "0.5.0",
36+
"cookie": "0.6.0",
3737
"cookie-signature": "1.0.6",
3838
"debug": "2.6.9",
3939
"depd": "2.0.0",

test/res.cookie.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,22 @@ describe('res', function(){
8282
})
8383
})
8484

85+
describe('partitioned', function () {
86+
it('should set partitioned', function (done) {
87+
var app = express();
88+
89+
app.use(function (req, res) {
90+
res.cookie('name', 'tobi', { partitioned: true });
91+
res.end();
92+
});
93+
94+
request(app)
95+
.get('/')
96+
.expect('Set-Cookie', 'name=tobi; Path=/; Partitioned')
97+
.expect(200, done)
98+
})
99+
})
100+
85101
describe('maxAge', function(){
86102
it('should set relative expires', function(done){
87103
var app = express();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy