Skip to content

Commit 7427109

Browse files
refactor(eio): bump cookie to version 1.0.2
Release notes: https://github.com/jshttp/cookie/releases/tag/v1.0.0 The types are now included in the npm package. The `CookieSerializeOptions` type, which is used in our `ServerOptions` type, has been renamed to `SerializeOptions`, but there are no breaking change. Related: #5231
1 parent 91e1c8b commit 7427109

File tree

3 files changed

+11
-18
lines changed

3 files changed

+11
-18
lines changed

Diff for: package-lock.json

+8-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: packages/engine.io/lib/server.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { EventEmitter } from "events";
66
import { Socket } from "./socket";
77
import debugModule from "debug";
88
import { serialize } from "cookie";
9+
import type { SerializeOptions } from "cookie";
910
import { Server as DEFAULT_WS_ENGINE } from "ws";
1011
import type {
1112
IncomingMessage,
1213
Server as HttpServer,
1314
ServerResponse,
1415
} from "http";
15-
import type { CookieSerializeOptions } from "cookie";
1616
import type { CorsOptions, CorsOptionsDelegate } from "cors";
1717
import type { Duplex } from "stream";
1818
import { WebTransport } from "./transports/webtransport";
@@ -123,7 +123,7 @@ export interface ServerOptions {
123123
* might be used for sticky-session. Defaults to not sending any cookie.
124124
* @default false
125125
*/
126-
cookie?: (CookieSerializeOptions & { name: string }) | boolean;
126+
cookie?: (SerializeOptions & { name: string }) | boolean;
127127
/**
128128
* the options that will be forwarded to the cors module
129129
*/

Diff for: packages/engine.io/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@
3131
],
3232
"license": "MIT",
3333
"dependencies": {
34-
"@types/cookie": "^0.4.1",
3534
"@types/cors": "^2.8.12",
3635
"@types/node": ">=10.0.0",
3736
"accepts": "~1.3.4",
3837
"base64id": "2.0.0",
39-
"cookie": "~0.7.2",
38+
"cookie": "~1.0.2",
4039
"cors": "~2.8.5",
4140
"debug": "~4.3.1",
4241
"engine.io-parser": "~5.2.1",

0 commit comments

Comments
 (0)