Skip to content

Commit 69a4cf2

Browse files
rhodgkinswesleytodd
authored andcommitted
1 parent 4ee853e commit 69a4cf2

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

History.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
unreleased
2+
==========
3+
4+
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
14+
15+
- Add `partitioned` option
916

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

package.json

+1-1
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

+16
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)