15 Commits

Author SHA1 Message Date
4d7224cd8f Update package.json(s)
Bug for server: supertest is included
2019-10-01 22:29:51 +07:00
0c49e52f21 Add version tag to all package.json files 2019-10-01 09:37:57 +07:00
a8d603dd59 Refactor store to accept state as part of params
The old code was returning a fn because TypeScript could not figure out
generic type parameters when params was an object like:

    interface Params<State> {
      a: Reducer<State>
      b: Partial<State>
    }

    function test<State>(params: Params<State>) {
      // ...
    }
2019-09-26 23:52:46 +07:00
c10d5cf115 Fix a bug with Promise.catch() in PromiseMiddleware
The pending action will be modified and a newly created promise handler
will be returned.

This has (suddenly?) caused errors in tests because the catch() handlers defined in tests would be called before the one defined in PromiseMiddleware:

    const p = new Promise(...)

    const {payload} = store.dispatch({
      payload: new Promise(...),
      type: '...',
    })

    try {
      await payload
    } catch (err) {
      // this handler would be invoked before the catch handler in
      // PromiseMiddleware
    }

since the PromiseMiddleware adds a then-callback, followed by a
catch-callback.
2019-09-17 00:08:49 +07:00
12aa397350 Remove tslint.json 2019-09-16 21:04:55 +07:00
400d1cd213 Run eslint --fix 2019-09-16 21:04:10 +07:00
73c27aec6a Fix packages/comments-common 2019-09-16 11:39:36 +07:00
92912af839 Fix packages/client 2019-09-16 00:44:21 +07:00
50d36f268f Fix linting errors in packages/jsonrpc 2019-09-15 17:14:31 +07:00
003032c3ef Fix linting error in packages/redux 2019-09-15 16:20:52 +07:00
ac8f1d9ff3 Run rondo syncEsmConfig 2019-09-14 12:01:29 +07:00
177c52b438 Upgrade to typescript@3.6.3 2019-09-14 11:58:00 +07:00
67e81d6b80 Add ability to record custom actions by WaitMiddleware 2019-09-11 12:05:36 +07:00
055d9588bf Use JSONRPC in TeamService (needs more testing) 2019-09-11 00:40:10 +07:00
eebe26f706 Extract redux, http-types, http-client and test-utils 2019-09-10 17:56:25 +07:00