From 9fa8d07060c4631131a9db83a73b05ef199cc12f Mon Sep 17 00:00:00 2001 From: Amy <50583248+amydevs@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:31:12 +1000 Subject: [PATCH 1/3] fix: middleware is now re-exported from index.ts --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index c3a5052..df22440 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,3 +6,4 @@ export * as errors from './errors'; export * as events from './events'; export * as handlers from './handlers'; export * as callers from './callers'; +export * as middleware from './middleware'; From 3b520e13af0b4927916d78d831d4b36984c2ad92 Mon Sep 17 00:00:00 2001 From: Amy <50583248+amydevs@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:33:12 +1000 Subject: [PATCH 2/3] fix: moved utils and middleware tests into root tests directory --- tests/{utils => }/middleware.test.ts | 2 +- tests/{utils => }/utils.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename tests/{utils => }/middleware.test.ts (98%) rename tests/{utils => }/utils.test.ts (93%) diff --git a/tests/utils/middleware.test.ts b/tests/middleware.test.ts similarity index 98% rename from tests/utils/middleware.test.ts rename to tests/middleware.test.ts index ab43bae..fccdcd6 100644 --- a/tests/utils/middleware.test.ts +++ b/tests/middleware.test.ts @@ -7,7 +7,7 @@ import * as rpcUtils from '@/utils'; import 'ix/add/asynciterable-operators/toarray'; import * as rpcErrors from '@/errors'; import * as rpcUtilsMiddleware from '@/middleware'; -import * as rpcTestUtils from '../utils'; +import * as rpcTestUtils from './utils'; describe('Middleware tests', () => { const noiseArb = fc diff --git a/tests/utils/utils.test.ts b/tests/utils.test.ts similarity index 93% rename from tests/utils/utils.test.ts rename to tests/utils.test.ts index 8594ce7..51ce2c6 100644 --- a/tests/utils/utils.test.ts +++ b/tests/utils.test.ts @@ -2,7 +2,7 @@ import { testProp, fc } from '@fast-check/jest'; import { JSONParser } from '@streamparser/json'; import * as rpcUtils from '@/utils'; import 'ix/add/asynciterable-operators/toarray'; -import * as rpcTestUtils from '../utils'; +import * as rpcTestUtils from './utils'; describe('utils tests', () => { testProp( From dc368e2f8250c16e70d67b5ee0f991c153e09522 Mon Sep 17 00:00:00 2001 From: Amy <50583248+amydevs@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:34:05 +1000 Subject: [PATCH 3/3] bump: 0.1.2 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index bb7c692..8218031 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@matrixai/rpc", - "version": "0.0.1", + "version": "0.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@matrixai/rpc", - "version": "0.0.1", + "version": "0.1.2", "license": "Apache-2.0", "dependencies": { "@matrixai/async-init": "^1.9.4", diff --git a/package.json b/package.json index 1bd8c5c..e34b1b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@matrixai/rpc", - "version": "0.1.1", + "version": "0.1.2", "author": "Matrix AI", "contributors": [ {