Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 69a4cf2

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

File tree

Expand file treeCollapse file tree

3 files changed

+24
-1
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+24
-1
lines changed

‎History.md

Copy file name to clipboardExpand all lines: History.md
+7Lines 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

Copy file name to clipboardExpand all lines: package.json
+1-1Lines 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

Copy file name to clipboardExpand all lines: test/res.cookie.js
+16Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.