Andy Hanson
45c9246c09
Remove esModuleInterop from tsconfigs (no longer mandatory)
2018-02-14 14:55:13 -08:00
Ryan Cannon and GitHub
3c3b65a2f0
Merge branch 'master' into patch-2
2018-02-06 21:39:21 -08:00
Andy and GitHub
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs ( #23354 )
2018-02-05 11:01:56 -08:00
Naoto Yokoyama and Sheetal Nandi
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 and GitHub
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 and GitHub
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 and GitHub
5761cfc6f2
express-serve-static-core: Restore compatibility with ts2.1 ( #21044 )
2017-10-26 12:25:08 -07:00
Alexandre and Andy
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 and GitHub
947a8fb761
Enable strictFunctionTypes ( #20373 )
2017-10-06 14:03:03 -07:00
Andy and GitHub
924fafffc0
Fix remaining lint errors ( #19166 )
2017-08-20 15:37:53 -07:00
Andy and GitHub
5d6c651a1a
Apply stricter lint rules ( #19063 )
2017-08-17 14:53:41 -07:00
Oliver Joseph Ash and GitHub
93aa6fbb87
Revert "express-session: req.session is not optional"
2017-07-29 17:27:17 +01:00
Oliver Joseph Ash and GitHub
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