UNPKG

7.83 kBMarkdownView Raw
1# Changelog
2All notable changes to this project will be documented in this file.
3
4The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7## [Unreleased]
8
9### **BREAKING CHANGES**
10
11- Use `export =` for better cjs require without `.default`
12
13### Added
14
15- Add typescript example
16
17## [4.3.1] - 2021-03-09
18
19### Fixed
20
21- Fix incorrect assertion checking after adding `client` options
22
23## [4.3.0] - 2021-03-08
24
25### Added
26
27- Add `client` option for non-promise client
28
29## [4.2.2] - 2021-03-02
30
31### Fixed
32
33- Fix crypto parsing error by upgrading `kruptein` to `v3.0.0` and change encodeas to `base64`
34
35## [4.2.0] - 2021-02-24
36
37### Added
38
39- Added mongoose example
40- Revert `createAutoRemoveIdx` and add back `autoRemove` and `autoRemoveInterval`
41
42### Fixed
43
44- Use `matchedCount` instead of `modifiedCount` to avoid throwing exceptions when nothing to modify (#390)
45- Fixed `Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency` by downgrade to `mongodb@3.6.3`
46- Revert update session when touch (#351)
47- Fix cannot read property `lastModified` of null
48- Fix TS typing error
49
50## [4.1.0] - 2021-02-22
51
52### **BREAKING CHANGES**
53
54- Support Node.Js 10.x, 12.x and 14.x and drop older support.
55- Review method to connect to MongoDB and keep only `mongoUrl` and `clientPromise` options.
56- Remove the "Remove expired sessions compatibility mode". Now library user can choose to create auto remove index on startup or not.
57- Remove `fallbackMemory` options.
58- Rewrite the library and test case using typescript.
59
60> Checkout the complete [migration guide](MIGRATION_V4.md) for more details.
61
62## [3.2.0] - 2019-11-29
63
64### Added
65
66- Add dbName option (#343)
67
68### Fixed
69
70- Add missing `secret` option to TS definition (#342)
71
72## [3.1.2] - 2019-11-01
73
74### Fixed
75
76- Add @types/ dev dependencies for tsc. fixes #340 (#341)
77
78## [3.1.1] - 2019-10-30
79
80### Added
81
82- Add TS type definition
83
84## [3.1.0] - 2019-10-23
85
86### Added
87
88- Added `useUnifiedTopology=true` to mongo options
89
90### Changed
91
92- Refactor merge config logic
93- chore: update depns (#326)
94
95## [3.0.0] - 2019-06-17
96
97### **BREAKING CHANGES**
98
99- Drop Node.js 4 & 6 support
100- Upgrade `mongoose` to v5 and `mongodb` to v3 and drop old version support
101- Replace deprecated mongo operation
102- MongoStore need to supply client/clientPromise instead of db/dbPromise due to depns upgrade
103
104## Added
105
106- Add Node.js 10 & 12 support
107- Implement store.all function (#291)
108- Add option `writeOperationOptions` (#295)
109- Add Transparent crypto support (#314)
110
111## Changed
112
113* Change test framework from Mocha to Jest
114* Change linter from `xo` to `eslint`
115
116## [2.0.3] - 2018-12-03
117
118## Fixed
119
120- Fixed interval autoremove mode to use current date with every interval (#304, #305) (jlampise)
121
122## [2.0.2] - 2018-11-20
123
124## Fixed
125
126- Fxi #300 DeprecationWarning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead
127- Fxi #297 DeprecationWarning: collection.update is deprecated. Use updateOne, updateMany, or bulkWrite instead
128
129## [2.0.1] - 2018-01-04
130
131## Fixed
132
133- Fixed #271 TypeError: cb is not a function (brainthinks)
134
135## [2.0.0] - 2017-10-09
136
137### **BREAKING CHANGES**
138
139* __Drop__ Node.js 0.12 and io.js support
140* __Drop__ MongoDB 2.x support
141* __Drop__ mongodb driver < 2.0.36 support
142* __Drop__ mongoose < 4.1.2 support
143
144## Changed
145
146* __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))
147* Improve `get()` ([#246](https://github.com/jdesboeufs/connect-mongo/pulls/246))
148* Pass session in `touch` event
149* Remove `bluebird` from dependencies
150
151<!-- Legacy changelog format -->
152
1531.3.2 / 2016-07-27
154=================
155
156* __Fix__ #228 Broken with mongodb@1.x
157
1581.3.1 / 2016-07-23
159=================
160
161* Restrict `bluebird` accepted versions to 3.x
162
1631.3.0 / 2016-07-23
164=================
165
166* __Add__ `create` and `update` events ([#215](https://github.com/jdesboeufs/connect-mongo/issues/215))
167* Extend `mongodb` compatibility to `2.x`
168
1691.2.1 / 2016-06-20
170=================
171
172* __Fix__ bluebird warning (Awk34)
173
1741.2.0 / 2016-05-13
175=================
176
177* Accept `dbPromise` as connection param
178* __Add__ `close()` method to close current connection
179
1801.1.0 / 2015-12-24
181=================
182
183* Support mongodb `2.1.x`
184
1851.0.2 / 2015-12-18
186=================
187
188* Enforce entry-points
189
1901.0.1 / 2015-12-17
191=================
192
193* __Fix__ entry-point
194
1951.0.0 (deprecated) / 2015-12-17
196==================
197
198__Breaking changes:__
199* __For older Node.js version (`< 4.0`), the module must be loaded using `require('connect-mongo/es5')`__
200* __Drop__ `hash` option (advanced)
201
202__Others changes:__
203* __Add__ `transformId` option to allow custom transformation on session id (advanced)
204* __Rewrite in ES6__ (w/ fallback)
205* Update dependencies
206* Improve compatibility
207
2080.8.2 / 2015-07-14
209==================
210
211* Bug fixes and improvements (whitef0x0, TimothyGu, behcet-li)
212
213
2140.8.1 / 2015-04-21
215==================
216
217* __Fix__ initialization when a connecting `mongodb` `2.0.x` instance is given (1999)
218
219
2200.8.0 / 2015-03-24
221==================
222
223* __Add__ `touchAfter` option to enable lazy update behavior on `touch()` method (rafaelcardoso)
224* __Add__ `fallbackMemory` option to switch to `MemoryStore` in some case.
225
226
2270.7.0 / 2015-01-24
228==================
229
230* __Add__ `touch()` method to be fully compliant with `express-session` `>= 1.10` (rafaelcardoso)
231
232
2330.6.0 / 2015-01-12
234==================
235
236* __Add__ `ttl` option
237* __Add__ `autoRemove` option
238* __Deprecate__ `defaultExpirationTime` option. Use `ttl` instead (in seconds)
239
240
2410.5.3 / 2014-12-30
242==================
243
244* Make callbacks optional
245
246
2470.5.2 / 2014-12-29
248==================
249
250* Extend compatibility to `mongodb` `2.0.x`
251
252
2530.5.1 / 2014-12-28
254==================
255
256* [bugfix] #143 Missing Sessions from DB should still make callback (brekkehj)
257
258
2590.5.0 (deprecated) / 2014-12-25
260==================
261
262* 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)
263* Re-use existing or upcoming mongoose connection
264* [DEPRECATED] `mongoose_connection` is renamed `mongooseConnection`
265* [DEPRECATED] `auto_reconnect` is renamed `autoReconnect`
266* [BREAKING] `autoReconnect` option is now `true` by default
267* [BREAKING] Insert `collection` option in `url` in not possible any more
268* [BREAKING] Replace for-testing-purpose `callback` by `connected` event
269* Add debug (use with `DEBUG=connect-mongo`)
270* Improve error management
271* Compatibility with `mongodb` `>= 1.2.0` and `< 2.0.0`
272* Fix many bugs
273
274
2750.4.2 / 2014-12-18
276==================
277
278 * Bumped mongodb version from 1.3.x to 1.4.x (B0k0)
279 * Add `sid` hash capability (ZheFeng)
280 * Add `serialize` and `unserialize` options (ksheedlo)
281
282
2830.3.3 / 2013-07-04
284==================
285
286 * Merged a change which reduces data duplication
287
288
2890.3.0 / 2013-01-20
290==================
291
292 * Merged several changes by Ken Pratt, including Write Concern support
293 * Updated to `mongodb` version 1.2
294
2950.2.0 / 2012-09-09
296==================
297
298 * Integrated pull request for `mongoose_connection` option
299 * Move to mongodb 1.0.x
300
3010.1.5 / 2010-07-07
302==================
303
304 * Made collection setup more robust to avoid race condition
305
306
3070.1.4 / 2010-06-28
308==================
309
310 * Added session expiry
311
312
3130.1.3 / 2010-06-27
314==================
315
316 * Added url support
317
318
3190.1.2 / 2010-05-18
320==================
321
322 * Added auto_reconnect option
323
324
3250.1.1 / 2010-03-18
326==================
327
328 * Fixed authentication
329
330
3310.1.0 / 2010-03-08
332==================
333
334 * Initial release