1 | # Changelog
|
2 | All notable changes to this project will be documented in this file.
|
3 |
|
4 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6 |
|
7 | ## [Unreleased]
|
8 |
|
9 | ## [4.1.0] - 2021-02-22
|
10 |
|
11 | ### **BREAKING CHANGES**
|
12 |
|
13 | - Support Node.Js 10.x, 12.x and 14.x and drop older support.
|
14 | - Review method to connect to MongoDB and keep only `mongoUrl` and `clientPromise` options.
|
15 | - Remove the "Remove expired sessions compatibility mode". Now library user can choose to create auto remove index on startup or not.
|
16 | - Remove `fallbackMemory` options.
|
17 | - Rewrite the library and test case using typescript.
|
18 |
|
19 | > Checkout the complete [migration guide](MIGRATION_V4.md) for more details.
|
20 |
|
21 | ## [3.2.0] - 2019-11-29
|
22 |
|
23 | ### Added
|
24 |
|
25 | - Add dbName option (#343)
|
26 |
|
27 | ### Fixed
|
28 |
|
29 | - Add missing `secret` option to TS definition (#342)
|
30 |
|
31 | ## [3.1.2] - 2019-11-01
|
32 |
|
33 | ### Fixed
|
34 |
|
35 | - Add @types/ dev dependencies for tsc. fixes #340 (#341)
|
36 |
|
37 | ## [3.1.1] - 2019-10-30
|
38 |
|
39 | ### Added
|
40 |
|
41 | - Add TS type definition
|
42 |
|
43 | ## [3.1.0] - 2019-10-23
|
44 |
|
45 | ### Added
|
46 |
|
47 | - Added `useUnifiedTopology=true` to mongo options
|
48 |
|
49 | ### Changed
|
50 |
|
51 | - Refactor merge config logic
|
52 | - chore: update depns (#326)
|
53 |
|
54 | ## [3.0.0] - 2019-06-17
|
55 |
|
56 | ### **BREAKING CHANGES**
|
57 |
|
58 | - Drop Node.js 4 & 6 support
|
59 | - Upgrade `mongoose` to v5 and `mongodb` to v3 and drop old version support
|
60 | - Replace deprecated mongo operation
|
61 | - MongoStore need to supply client/clientPromise instead of db/dbPromise due to depns upgrade
|
62 |
|
63 | ## Added
|
64 |
|
65 | - Add Node.js 10 & 12 support
|
66 | - Implement store.all function (#291)
|
67 | - Add option `writeOperationOptions` (#295)
|
68 | - Add Transparent crypto support (#314)
|
69 |
|
70 | ## Changed
|
71 |
|
72 | * Change test framework from Mocha to Jest
|
73 | * Change linter from `xo` to `eslint`
|
74 |
|
75 | ## [2.0.3] - 2018-12-03
|
76 |
|
77 | ## Fixed
|
78 |
|
79 | - Fixed interval autoremove mode to use current date with every interval (#304, #305) (jlampise)
|
80 |
|
81 | ## [2.0.2] - 2018-11-20
|
82 |
|
83 | ## Fixed
|
84 |
|
85 | - Fxi #300 DeprecationWarning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead
|
86 | - Fxi #297 DeprecationWarning: collection.update is deprecated. Use updateOne, updateMany, or bulkWrite instead
|
87 |
|
88 | ## [2.0.1] - 2018-01-04
|
89 |
|
90 | ## Fixed
|
91 |
|
92 | - Fixed #271 TypeError: cb is not a function (brainthinks)
|
93 |
|
94 | ## [2.0.0] - 2017-10-09
|
95 |
|
96 | ### **BREAKING CHANGES**
|
97 |
|
98 | * __Drop__ Node.js 0.12 and io.js support
|
99 | * __Drop__ MongoDB 2.x support
|
100 | * __Drop__ mongodb driver < 2.0.36 support
|
101 | * __Drop__ mongoose < 4.1.2 support
|
102 |
|
103 | ## Changed
|
104 |
|
105 | * __Fix__ `ensureIndex` deprecation warning ([#268](https://github.com/jdesboeufs/connect-mongo/issues/268), [#269](https://github.com/jdesboeufs/connect-mongo/pulls/269), [#270](https://github.com/jdesboeufs/connect-mongo/pulls/270))
|
106 | * Improve `get()` ([#246](https://github.com/jdesboeufs/connect-mongo/pulls/246))
|
107 | * Pass session in `touch` event
|
108 | * Remove `bluebird` from dependencies
|
109 |
|
110 |
|
111 |
|
112 | 1.3.2 / 2016-07-27
|
113 | =================
|
114 |
|
115 | * __Fix__ #228 Broken with mongodb@1.x
|
116 |
|
117 | 1.3.1 / 2016-07-23
|
118 | =================
|
119 |
|
120 | * Restrict `bluebird` accepted versions to 3.x
|
121 |
|
122 | 1.3.0 / 2016-07-23
|
123 | =================
|
124 |
|
125 | * __Add__ `create` and `update` events ([#215](https://github.com/jdesboeufs/connect-mongo/issues/215))
|
126 | * Extend `mongodb` compatibility to `2.x`
|
127 |
|
128 | 1.2.1 / 2016-06-20
|
129 | =================
|
130 |
|
131 | * __Fix__ bluebird warning (Awk34)
|
132 |
|
133 | 1.2.0 / 2016-05-13
|
134 | =================
|
135 |
|
136 | * Accept `dbPromise` as connection param
|
137 | * __Add__ `close()` method to close current connection
|
138 |
|
139 | 1.1.0 / 2015-12-24
|
140 | =================
|
141 |
|
142 | * Support mongodb `2.1.x`
|
143 |
|
144 | 1.0.2 / 2015-12-18
|
145 | =================
|
146 |
|
147 | * Enforce entry-points
|
148 |
|
149 | 1.0.1 / 2015-12-17
|
150 | =================
|
151 |
|
152 | * __Fix__ entry-point
|
153 |
|
154 | 1.0.0 (deprecated) / 2015-12-17
|
155 | ==================
|
156 |
|
157 | __Breaking changes:__
|
158 | * __For older Node.js version (`< 4.0`), the module must be loaded using `require('connect-mongo/es5')`__
|
159 | * __Drop__ `hash` option (advanced)
|
160 |
|
161 | __Others changes:__
|
162 | * __Add__ `transformId` option to allow custom transformation on session id (advanced)
|
163 | * __Rewrite in ES6__ (w/ fallback)
|
164 | * Update dependencies
|
165 | * Improve compatibility
|
166 |
|
167 | 0.8.2 / 2015-07-14
|
168 | ==================
|
169 |
|
170 | * Bug fixes and improvements (whitef0x0, TimothyGu, behcet-li)
|
171 |
|
172 |
|
173 | 0.8.1 / 2015-04-21
|
174 | ==================
|
175 |
|
176 | * __Fix__ initialization when a connecting `mongodb` `2.0.x` instance is given (1999)
|
177 |
|
178 |
|
179 | 0.8.0 / 2015-03-24
|
180 | ==================
|
181 |
|
182 | * __Add__ `touchAfter` option to enable lazy update behavior on `touch()` method (rafaelcardoso)
|
183 | * __Add__ `fallbackMemory` option to switch to `MemoryStore` in some case.
|
184 |
|
185 |
|
186 | 0.7.0 / 2015-01-24
|
187 | ==================
|
188 |
|
189 | * __Add__ `touch()` method to be fully compliant with `express-session` `>= 1.10` (rafaelcardoso)
|
190 |
|
191 |
|
192 | 0.6.0 / 2015-01-12
|
193 | ==================
|
194 |
|
195 | * __Add__ `ttl` option
|
196 | * __Add__ `autoRemove` option
|
197 | * __Deprecate__ `defaultExpirationTime` option. Use `ttl` instead (in seconds)
|
198 |
|
199 |
|
200 | 0.5.3 / 2014-12-30
|
201 | ==================
|
202 |
|
203 | * Make callbacks optional
|
204 |
|
205 |
|
206 | 0.5.2 / 2014-12-29
|
207 | ==================
|
208 |
|
209 | * Extend compatibility to `mongodb` `2.0.x`
|
210 |
|
211 |
|
212 | 0.5.1 / 2014-12-28
|
213 | ==================
|
214 |
|
215 | * [bugfix] #143 Missing Sessions from DB should still make callback (brekkehj)
|
216 |
|
217 |
|
218 | 0.5.0 (deprecated) / 2014-12-25
|
219 | ==================
|
220 |
|
221 | * Accept full-featured [MongoDB connection strings](http://docs.mongodb.org/manual/reference/connection-string/) as `url` + [advanced options](http://mongodb.github.io/node-mongodb-native/1.4/driver-articles/mongoclient.html)
|
222 | * Re-use existing or upcoming mongoose connection
|
223 | * [DEPRECATED] `mongoose_connection` is renamed `mongooseConnection`
|
224 | * [DEPRECATED] `auto_reconnect` is renamed `autoReconnect`
|
225 | * [BREAKING] `autoReconnect` option is now `true` by default
|
226 | * [BREAKING] Insert `collection` option in `url` in not possible any more
|
227 | * [BREAKING] Replace for-testing-purpose `callback` by `connected` event
|
228 | * Add debug (use with `DEBUG=connect-mongo`)
|
229 | * Improve error management
|
230 | * Compatibility with `mongodb` `>= 1.2.0` and `< 2.0.0`
|
231 | * Fix many bugs
|
232 |
|
233 |
|
234 | 0.4.2 / 2014-12-18
|
235 | ==================
|
236 |
|
237 | * Bumped mongodb version from 1.3.x to 1.4.x (B0k0)
|
238 | * Add `sid` hash capability (ZheFeng)
|
239 | * Add `serialize` and `unserialize` options (ksheedlo)
|
240 |
|
241 |
|
242 | 0.3.3 / 2013-07-04
|
243 | ==================
|
244 |
|
245 | * Merged a change which reduces data duplication
|
246 |
|
247 |
|
248 | 0.3.0 / 2013-01-20
|
249 | ==================
|
250 |
|
251 | * Merged several changes by Ken Pratt, including Write Concern support
|
252 | * Updated to `mongodb` version 1.2
|
253 |
|
254 | 0.2.0 / 2012-09-09
|
255 | ==================
|
256 |
|
257 | * Integrated pull request for `mongoose_connection` option
|
258 | * Move to mongodb 1.0.x
|
259 |
|
260 | 0.1.5 / 2010-07-07
|
261 | ==================
|
262 |
|
263 | * Made collection setup more robust to avoid race condition
|
264 |
|
265 |
|
266 | 0.1.4 / 2010-06-28
|
267 | ==================
|
268 |
|
269 | * Added session expiry
|
270 |
|
271 |
|
272 | 0.1.3 / 2010-06-27
|
273 | ==================
|
274 |
|
275 | * Added url support
|
276 |
|
277 |
|
278 | 0.1.2 / 2010-05-18
|
279 | ==================
|
280 |
|
281 | * Added auto_reconnect option
|
282 |
|
283 |
|
284 | 0.1.1 / 2010-03-18
|
285 | ==================
|
286 |
|
287 | * Fixed authentication
|
288 |
|
289 |
|
290 | 0.1.0 / 2010-03-08
|
291 | ==================
|
292 |
|
293 | * Initial release
|