Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
closes #5404
  • Loading branch information
rhodgkins authored and wesleytodd committed Mar 15, 2024
1 parent 4ee853e commit 69a4cf2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
7 changes: 7 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
unreleased
==========

* deps: [email protected]

4.18.3 / 2024-02-29
==========

Expand All @@ -6,6 +11,8 @@
- Fix strict json error message on Node.js 19+
- deps: content-type@~1.0.5
- deps: [email protected]
* deps: [email protected]
- Add `partitioned` option

4.18.2 / 2022-10-08
===================
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"body-parser": "1.20.2",
"content-disposition": "0.5.4",
"content-type": "~1.0.4",
"cookie": "0.5.0",
"cookie": "0.6.0",
"cookie-signature": "1.0.6",
"debug": "2.6.9",
"depd": "2.0.0",
Expand Down
16 changes: 16 additions & 0 deletions test/res.cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,22 @@ describe('res', function(){
})
})

describe('partitioned', function () {
it('should set partitioned', function (done) {
var app = express();

app.use(function (req, res) {
res.cookie('name', 'tobi', { partitioned: true });
res.end();
});

request(app)
.get('/')
.expect('Set-Cookie', 'name=tobi; Path=/; Partitioned')
.expect(200, done)
})
})

describe('maxAge', function(){
it('should set relative expires', function(done){
var app = express();
Expand Down

0 comments on commit 69a4cf2

Please sign in to comment.