Releases: flash-oss/allserver
v2.4.1
v2.4.0
v2.3.0
- The server middlewares and the procedure is being called within same stack trace now. This allows setting the
async_hooks
context in abefore
middleware and it would propagate through the procedure and theafter
middlewares. - The call context is not a transport responsibility any more. The new default argument
_
will keep it from now on. The only predefined value there isprocedureName
. I.e."_": { "procedureName": "myProc" }
. - The Lambda transport is now sending both old
callContext
+callArg
and the new_
keys. But in the next breaking version of Allserver thecallContext
+callArg
will go away.
v2.2.1
v2.2.0
v2.2.0-0
v2.1.0
In memory
Sometimes you need to unit test your procedures via the AllserverClient
. For that we have MemoryTransport
.
const { Allserver, MemoryTransport } = require("allserver");
const memoryServer = Allserver({
procedures,
transport: MemoryTransport(),
});
const client = memoryServer.start();
const { success, code, message, user } = await client.updateUser({
id: "123412341234123412341234",
firstName: "Fred",
lastName: "Flinstone",
});
assert(success === true);
v2.0.1
v2.0.0
peerDependencies
When allserver
reached v1.0.0 stability the "optional peerDependencies" feature was not yet generally available. But 2 years later the npm v7 is more widespread. So this release introduces "optional peerDependencies" with this commit: 58e86db
From now on every runtime (production) dependency version can be found in the peerDependencies
of our package.json
.
In addition, we're taking chance of updating these peer deps whilst increasing SemVer MAJOR from v1 to v2. Hence, micro@10
is required instead of v9. BullMQ better be latest version bullmq@3.10
(has fewer bugs). Also, the HttpClientTransport.js
will try using built-in fetch
instead of node-fetch
.
Commit log
- Upgrade peerDep modules for GRPC, BullMQ, HTTP protocols 3d10cf7
- Try fixing tests in over Node versions 67f4a0c
- Try fixing tests in over OSes ce094f2
- Speedup unit tests. Ensure it works with the Node built-in fetch 1c72970
- Use npm v7 feature "optional peerDependencies" for all production dependencies 58e86db
- Upgrade
micro
dependency to v10 27777cb