[6a3a178] | 1 | ## [4.1.1](https://github.com/socketio/engine.io/compare/4.1.0...4.1.1) (2021-02-02)
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | ### Bug Fixes
|
---|
| 5 |
|
---|
| 6 | * do not reset the ping timer after upgrade ([ff2b8ab](https://github.com/socketio/engine.io/commit/ff2b8aba48ebcb0de5626d3b76fddc94c398395f)), closes [/github.com/socketio/socket.io-client-swift/pull/1309#issuecomment-768475704](https://github.com//github.com/socketio/socket.io-client-swift/pull/1309/issues/issuecomment-768475704)
|
---|
| 7 |
|
---|
| 8 |
|
---|
| 9 | # [4.1.0](https://github.com/socketio/engine.io/compare/4.0.6...4.1.0) (2021-01-14)
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | ### Features
|
---|
| 13 |
|
---|
| 14 | * add support for v3.x clients ([663d326](https://github.com/socketio/engine.io/commit/663d326d18de598318bd2120b2b70cd51adf8955))
|
---|
| 15 |
|
---|
| 16 |
|
---|
| 17 | ## [4.0.6](https://github.com/socketio/engine.io/compare/4.0.5...4.0.6) (2021-01-04)
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | ### Bug Fixes
|
---|
| 21 |
|
---|
| 22 | * correctly pass the options when using the Server constructor ([#610](https://github.com/socketio/engine.io/issues/610)) ([cec2750](https://github.com/socketio/engine.io/commit/cec27502f5b55c8a2ff289db34019629bf6a97ca))
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | # [3.5.0](https://github.com/socketio/engine.io/compare/3.4.2...3.5.0) (2020-12-30)
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 | ### Features
|
---|
| 30 |
|
---|
| 31 | * add support for all cookie options ([19cc582](https://github.com/socketio/engine.io/commit/19cc58264a06dca47ed401fbaca32dcdb80a903b)), closes [/github.com/jshttp/cookie#options-1](https://github.com//github.com/jshttp/cookie/issues/options-1)
|
---|
| 32 | * disable perMessageDeflate by default ([5ad2736](https://github.com/socketio/engine.io/commit/5ad273601eb66c7b318542f87026837bf9dddd21))
|
---|
| 33 |
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | ## [4.0.5](https://github.com/socketio/engine.io/compare/4.0.4...4.0.5) (2020-12-07)
|
---|
| 37 |
|
---|
| 38 | No change on the server-side, this matches the client release.
|
---|
| 39 |
|
---|
| 40 | ## [4.0.4](https://github.com/socketio/engine.io/compare/4.0.3...4.0.4) (2020-11-17)
|
---|
| 41 |
|
---|
| 42 | No change on the server-side, this matches the client release.
|
---|
| 43 |
|
---|
| 44 | ## [4.0.3](https://github.com/socketio/engine.io/compare/4.0.2...4.0.3) (2020-11-17)
|
---|
| 45 |
|
---|
| 46 | No change on the server-side, this matches the client release.
|
---|
| 47 |
|
---|
| 48 | ## [4.0.2](https://github.com/socketio/engine.io/compare/4.0.1...4.0.2) (2020-11-09)
|
---|
| 49 |
|
---|
| 50 |
|
---|
| 51 | ### Bug Fixes
|
---|
| 52 |
|
---|
| 53 | * add extension in the package.json main entry ([#608](https://github.com/socketio/engine.io/issues/608)) ([17b8c2f](https://github.com/socketio/engine.io/commit/17b8c2f199e7a307b6d6294b8599abacb3ec56e7))
|
---|
| 54 |
|
---|
| 55 |
|
---|
| 56 | ## [4.0.1](https://github.com/socketio/engine.io/compare/4.0.0...4.0.1) (2020-10-21)
|
---|
| 57 |
|
---|
| 58 |
|
---|
| 59 | ### Bug Fixes
|
---|
| 60 |
|
---|
| 61 | * do not overwrite CORS headers upon error ([fe093ba](https://github.com/socketio/engine.io/commit/fe093bae1adce99e01dfdd3ce7542957785098b5))
|
---|
| 62 |
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | # [4.0.0](https://github.com/socketio/engine.io/compare/v4.0.0-alpha.1...4.0.0) (2020-09-10)
|
---|
| 66 |
|
---|
| 67 | More details about this release in the blog post: https://socket.io/blog/engine-io-4-release/
|
---|
| 68 |
|
---|
| 69 | ### Bug Fixes
|
---|
| 70 |
|
---|
| 71 | * ignore errors when forcefully closing the socket ([#601](https://github.com/socketio/engine.io/issues/601)) ([dcdbccb](https://github.com/socketio/engine.io/commit/dcdbccb3dd8a7b7db057d23925356034fcd35d48))
|
---|
| 72 | * remove implicit require of uws ([82cdca2](https://github.com/socketio/engine.io/commit/82cdca23bab0ed69b61b60961900d456a3065e6a))
|
---|
| 73 |
|
---|
| 74 |
|
---|
| 75 | ### Features
|
---|
| 76 |
|
---|
| 77 | * disable perMessageDeflate by default ([078527a](https://github.com/socketio/engine.io/commit/078527a384b70dc46d99083fa218be5d45213e51))
|
---|
| 78 |
|
---|
| 79 | #### Links
|
---|
| 80 |
|
---|
| 81 | - Diff: [v4.0.0-alpha.1...4.0.0](https://github.com/socketio/engine.io/compare/v4.0.0-alpha.1...4.0.0)
|
---|
| 82 | - Full diff: [3.4.0...4.0.0](https://github.com/socketio/engine.io/compare/3.4.0...4.0.0)
|
---|
| 83 | - Client release: [4.0.0](https://github.com/socketio/engine.io-client/releases/tag/4.0.0)
|
---|
| 84 | - ws version: [^7.1.2](https://github.com/websockets/ws/releases/tag/7.1.2)
|
---|
| 85 |
|
---|
| 86 |
|
---|
| 87 | ## [3.4.2](https://github.com/socketio/engine.io/compare/3.4.1...3.4.2) (2020-06-04)
|
---|
| 88 |
|
---|
| 89 |
|
---|
| 90 | ### Bug Fixes
|
---|
| 91 |
|
---|
| 92 | * remove explicit require of uws ([85e544a](https://github.com/socketio/engine.io/commit/85e544afd95a5890761a613263a5eba0c9a18a93))
|
---|
| 93 |
|
---|
| 94 | #### Links
|
---|
| 95 |
|
---|
| 96 | - Diff: [3.4.1...3.4.2](https://github.com/socketio/engine.io/compare/3.4.1...3.4.2)
|
---|
| 97 | - Client release: -
|
---|
| 98 | - ws version: [^7.1.2](https://github.com/websockets/ws/releases/tag/7.1.2)
|
---|
| 99 |
|
---|
| 100 |
|
---|
| 101 |
|
---|
| 102 | ## [3.4.1](https://github.com/socketio/engine.io/compare/3.4.0...3.4.1) (2020-04-17)
|
---|
| 103 |
|
---|
| 104 |
|
---|
| 105 | ### Bug Fixes
|
---|
| 106 |
|
---|
| 107 | * ignore errors when forcefully closing the socket ([da851ec](https://github.com/socketio/engine.io/commit/da851ec4ec89d96df2ee5c711f328b5d795423e9))
|
---|
| 108 | * use SameSite=Strict by default ([001ca62](https://github.com/socketio/engine.io/commit/001ca62cc4a8f511f3b2fbd9e4493ad274a6a0e5))
|
---|
| 109 |
|
---|
| 110 | #### Links
|
---|
| 111 |
|
---|
| 112 | - Diff: [3.4.0...3.4.1](https://github.com/socketio/engine.io/compare/3.4.0...3.4.1)
|
---|
| 113 | - Client release: [3.4.1](https://github.com/socketio/engine.io-client/releases/tag/3.4.1)
|
---|
| 114 | - ws version: [^7.1.2](https://github.com/websockets/ws/releases/tag/7.1.2)
|
---|
| 115 |
|
---|
| 116 |
|
---|
| 117 |
|
---|
| 118 | # [4.0.0-alpha.1](https://github.com/socketio/engine.io/compare/v4.0.0-alpha.0...v4.0.0-alpha.1) (2020-02-12)
|
---|
| 119 |
|
---|
| 120 | #### Links
|
---|
| 121 |
|
---|
| 122 | - Diff: [v4.0.0-alpha.0...v4.0.0-alpha.1](https://github.com/socketio/engine.io-client/compare/v4.0.0-alpha.0...v4.0.0-alpha.1)
|
---|
| 123 | - Client release: [v4.0.0-alpha.1](https://github.com/socketio/engine.io-client/releases/tag/v4.0.0-alpha.1)
|
---|
| 124 | - ws version: [^7.1.2](https://github.com/websockets/ws/releases/tag/7.1.2)
|
---|
| 125 |
|
---|
| 126 |
|
---|
| 127 |
|
---|
| 128 | # [4.0.0-alpha.0](https://github.com/socketio/engine.io/compare/3.4.0...v4.0.0-alpha.0) (2020-02-12)
|
---|
| 129 |
|
---|
| 130 |
|
---|
| 131 | ### Features
|
---|
| 132 |
|
---|
| 133 | * decrease the default value of maxHttpBufferSize ([734f9d1](https://github.com/socketio/engine.io/commit/734f9d1268840722c41219e69eb58318e0b2ac6b))
|
---|
| 134 | * disable cookie by default and add sameSite attribute ([a374471](https://github.com/socketio/engine.io/commit/a374471d06e3681a769766a1d068898182f9305f)), closes [/github.com/jshttp/cookie#options-1](https://github.com//github.com/jshttp/cookie/issues/options-1)
|
---|
| 135 | * generateId method can now return a Promise ([f3c291f](https://github.com/socketio/engine.io/commit/f3c291fa613a9d50c924d74293035737fdace4f2))
|
---|
| 136 | * reverse the ping-pong mechanism ([31ff875](https://github.com/socketio/engine.io/commit/31ff87593f231b86dc47ec5761936439ebd53c20))
|
---|
| 137 | * use the cors module to handle cross-origin requests ([61b9492](https://github.com/socketio/engine.io/commit/61b949259ed966ef6fc8bfd61f14d1a2ef06d319))
|
---|
| 138 |
|
---|
| 139 |
|
---|
| 140 | ### BREAKING CHANGES
|
---|
| 141 |
|
---|
| 142 | * the handlePreflightRequest option is removed by the change.
|
---|
| 143 |
|
---|
| 144 | Before:
|
---|
| 145 |
|
---|
| 146 | ```
|
---|
| 147 | new Server({
|
---|
| 148 | handlePreflightRequest: (req, res) => {
|
---|
| 149 | res.writeHead(200, {
|
---|
| 150 | "Access-Control-Allow-Origin": 'https://example.com',
|
---|
| 151 | "Access-Control-Allow-Methods": 'GET',
|
---|
| 152 | "Access-Control-Allow-Headers": 'Authorization',
|
---|
| 153 | "Access-Control-Allow-Credentials": true
|
---|
| 154 | });
|
---|
| 155 | res.end();
|
---|
| 156 | }
|
---|
| 157 | })
|
---|
| 158 | ```
|
---|
| 159 |
|
---|
| 160 | After:
|
---|
| 161 |
|
---|
| 162 | ```
|
---|
| 163 | new Server({
|
---|
| 164 | cors: {
|
---|
| 165 | origin: "https://example.com",
|
---|
| 166 | methods: ["GET"],
|
---|
| 167 | allowedHeaders: ["Authorization"],
|
---|
| 168 | credentials: true
|
---|
| 169 | }
|
---|
| 170 | })
|
---|
| 171 | ```
|
---|
| 172 | * the syntax has changed from
|
---|
| 173 |
|
---|
| 174 | ```
|
---|
| 175 | new Server({
|
---|
| 176 | cookieName: "test",
|
---|
| 177 | cookieHttpOnly: false,
|
---|
| 178 | cookiePath: "/custom"
|
---|
| 179 | })
|
---|
| 180 | ```
|
---|
| 181 |
|
---|
| 182 | to
|
---|
| 183 |
|
---|
| 184 | ```
|
---|
| 185 | new Server({
|
---|
| 186 | cookie: {
|
---|
| 187 | name: "test",
|
---|
| 188 | httpOnly: false,
|
---|
| 189 | path: "/custom"
|
---|
| 190 | }
|
---|
| 191 | })
|
---|
| 192 | ```
|
---|
| 193 |
|
---|
| 194 | All other options (domain, maxAge, sameSite, ...) are now supported.
|
---|
| 195 |
|
---|
| 196 | * v3.x clients will not be able to connect anymore (they will send a ping packet and timeout while waiting for a pong packet).
|
---|
| 197 |
|
---|
| 198 | #### Links
|
---|
| 199 |
|
---|
| 200 | - Diff: [3.4.0...v4.0.0-alpha.0](https://github.com/socketio/engine.io-client/compare/3.4.0...v4.0.0-alpha.0)
|
---|
| 201 | - Client release: [v4.0.0-alpha.0](https://github.com/socketio/engine.io-client/releases/tag/v4.0.0-alpha.0)
|
---|
| 202 | - ws version: [^7.1.2](https://github.com/websockets/ws/releases/tag/7.1.2)
|
---|
| 203 |
|
---|