Syahmi Azhar
888c78a29a
Fixed Express.Session type is used instead of Express.SessionData on Store class
2018-09-02 07:03:45 +08:00
Daniel Hritzkiv
51eb68205a
Fix test for sameSite option
2018-06-05 21:18:59 -04:00
Daniel Hritzkiv
2b125bc305
Fix sameSite parent interface
2018-06-05 21:18:31 -04:00
Daniel Hritzkiv
3c1900606e
Add sameSite property to tests
2018-05-29 12:07:48 -04:00
Daniel Hritzkiv
3de4dc5848
Add sameSite property to SessionOptions
2018-05-29 12:06:18 -04:00
Stéphane Veyret
b0ac435e1c
express-session: add touch method definition
2018-05-21 10:40:10 +02:00
Stéphane Veyret
215d7f0324
express-session: add strictNullCheck
2018-05-21 10:35:26 +02:00
Andy Hanson
45c9246c09
Remove esModuleInterop from tsconfigs (no longer mandatory)
2018-02-14 14:55:13 -08:00
Ryan Cannon
3c3b65a2f0
Merge branch 'master' into patch-2
2018-02-06 21:39:21 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs ( #23354 )
2018-02-05 11:01:56 -08:00
Naoto Yokoyama
2ab14041f4
express-session: fix Store#get callback parameter type ( #23240 )
...
The type of the second parameter of Store#get should be SessionData,
not Session. It's bit confusing because parameter name "session" is
used for both Session and SessionData on their documentation.
2018-02-02 13:56:24 -08:00
Ryan Cannon
861aeb58a5
[express-session]: Allow secret to be an array
...
From [the readme](https://github.com/expressjs/session#secret ):
> This is the secret used to sign the session ID cookie. This can be either a string for a single secret, or an array of multiple secrets. If an array of secrets is provided, only the first element will be used to sign the session ID cookie, while all the elements will be considered when verifying the signature in requests.
2018-01-29 15:58:17 +00:00
Andy
954ee278de
Update TypeScript Versions to be at least as high as dependencies' versions ( #21288 )
...
* Update `TypeScript Version`s to be at least as high as dependencies' versions
* Run through again
2017-11-08 09:12:14 -08:00
Andy
5761cfc6f2
express-serve-static-core: Restore compatibility with ts2.1 ( #21044 )
2017-10-26 12:25:08 -07:00
Alexandre
f8d0b72ff4
Allow typing Express body, params, query and cookies through generics ( #20820 )
...
* Allow typing express body, params, query and cookies through generics
* Increase minor version
* Add ts version comment
* Fix ts requirement comment typo
* Bump all ts version packages
* Bump Morgan package
2017-10-23 17:23:31 -07:00
Andy
947a8fb761
Enable strictFunctionTypes ( #20373 )
2017-10-06 14:03:03 -07:00
Andy
924fafffc0
Fix remaining lint errors ( #19166 )
2017-08-20 15:37:53 -07:00
Andy
5d6c651a1a
Apply stricter lint rules ( #19063 )
2017-08-17 14:53:41 -07:00
Oliver Joseph Ash
93aa6fbb87
Revert "express-session: req.session is not optional"
2017-07-29 17:27:17 +01:00
Oliver Joseph Ash
b68bc7e429
req.session is not optional
2017-07-13 21:58:58 +01:00
jacobbogers
95b57305ee
rule prefer-method-signature=false, to accept legacy ts
2017-05-19 12:47:34 +02:00
jacobbogers
2b902bfe59
changed recommended by tslint break other projects (mongo-store) depending on this declaration, so reverted
2017-05-19 12:25:25 +02:00
jacobbogers
1a4cd67206
strictNullChecks set to true
2017-05-19 12:10:09 +02:00
jacobbogers
475646bd8a
tslint is happy now
2017-05-19 11:35:35 +02:00
jacobbogers
afdadfe885
added recommeded changes from tslint
2017-05-19 06:11:06 +02:00
jacobbogers
ac0e8900bf
(de) Serialized Sessions and Cookies dont have methods, only data-propeties, express-session middleware will add methods through "instantiation" before use.
...
Introduced SessionData and SessionCookieData interfaces to reflect proper usage of Store.
2017-05-18 18:23:17 +02:00
Andy Hanson
354cec620d
Move all packages to a types directory
2017-03-24 14:27:52 -07:00