From 0ebf32c71bea54da6fffe5d39626eccf646d7341 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Sun, 2 May 2021 14:35:37 -0400 Subject: [PATCH] use @yanick/updeep --- package.json | 4 ++-- src/buildInitial/index.ts | 2 +- src/buildMutations/index.ts | 2 +- src/mappedUpdux.test.ts | 2 +- src/middleware.test.ts | 2 +- src/mutations.test.ts | 2 +- src/splat.test.ts | 2 +- src/subscriptions.test.ts | 2 +- src/test.ts | 2 +- src/types.ts | 2 +- src/updux.ts | 4 ++-- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index aba1aa8..5706dc0 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "redux": "^4.0.5", "ts-action": "^11.0.0", "ts-node": "^8.6.2", - "updeep": "^1.2.0" + "@yanick/updeep": "^2.2.0" }, "devDependencies": { "@babel/cli": "^7.8.4", @@ -34,7 +34,7 @@ "tsd": "^0.11.0", "typedoc": "0.17.7", "typedoc-plugin-markdown": "^2.2.17", - "typescript": "^3.8.3" + "typescript": "^4.2.0" }, "license": "MIT", "main": "dist/index.js", diff --git a/src/buildInitial/index.ts b/src/buildInitial/index.ts index 1c38393..3ecf225 100644 --- a/src/buildInitial/index.ts +++ b/src/buildInitial/index.ts @@ -1,5 +1,5 @@ import fp from 'lodash/fp'; -import u from 'updeep'; +import u from '@yanick/updeep'; function buildInitial(initial: any, coduxes: any = [], subduxes: any = {}) { if (!fp.isPlainObject(initial)) return initial; diff --git a/src/buildMutations/index.ts b/src/buildMutations/index.ts index bdea378..86ec3fe 100644 --- a/src/buildMutations/index.ts +++ b/src/buildMutations/index.ts @@ -1,5 +1,5 @@ import fp from 'lodash/fp'; -import u from 'updeep'; +import u from '@yanick/updeep'; import { Mutation, Action, diff --git a/src/mappedUpdux.test.ts b/src/mappedUpdux.test.ts index 274a313..81cff5a 100644 --- a/src/mappedUpdux.test.ts +++ b/src/mappedUpdux.test.ts @@ -1,5 +1,5 @@ import Updux from './updux'; -import u from 'updeep'; +import u from '@yanick/updeep'; import tap from 'tap'; const todo: any = new Updux({ diff --git a/src/middleware.test.ts b/src/middleware.test.ts index 5dc73ab..de30a7e 100644 --- a/src/middleware.test.ts +++ b/src/middleware.test.ts @@ -1,4 +1,4 @@ -import u from 'updeep'; +import u from '@yanick/updeep'; import { action } from 'ts-action'; import tap from 'tap'; import sinon from 'sinon'; diff --git a/src/mutations.test.ts b/src/mutations.test.ts index 2c57e9c..76085c2 100644 --- a/src/mutations.test.ts +++ b/src/mutations.test.ts @@ -2,7 +2,7 @@ import { action, empty } from 'ts-action'; import Updux, { dux } from '.'; import tap from 'tap'; -import u from 'updeep'; +import u from '@yanick/updeep'; tap.test('as array of arrays', async t => { const doIt = action('doIt'); diff --git a/src/splat.test.ts b/src/splat.test.ts index 3c2ac7c..0c90cf3 100644 --- a/src/splat.test.ts +++ b/src/splat.test.ts @@ -1,6 +1,6 @@ import tap from 'tap'; import Updux, {dux} from '.'; -import u from 'updeep'; +import u from '@yanick/updeep'; import { expectType } from 'tsd'; const tracer = (chr: string) => u({ tracer: (s = '') => s + chr }); diff --git a/src/subscriptions.test.ts b/src/subscriptions.test.ts index 56da93b..682d0bc 100644 --- a/src/subscriptions.test.ts +++ b/src/subscriptions.test.ts @@ -1,7 +1,7 @@ import tap from 'tap'; import Updux from '.'; import { action, payload } from 'ts-action'; -import u from 'updeep'; +import u from '@yanick/updeep'; const inc = action('inc'); const set_double = action('set_double', payload()); diff --git a/src/test.ts b/src/test.ts index b351d6d..84b1251 100644 --- a/src/test.ts +++ b/src/test.ts @@ -1,5 +1,5 @@ import Updux, {dux} from '.'; -import u from 'updeep'; +import u from '@yanick/updeep'; import { action, payload } from 'ts-action'; import tap from 'tap'; diff --git a/src/types.ts b/src/types.ts index b522cf0..4b79384 100644 --- a/src/types.ts +++ b/src/types.ts @@ -318,7 +318,7 @@ export type Dux = { * ``` * import Updux from 'updux'; * import { actions, payload } from 'ts-action'; - * import u from 'updeep'; + * import u from '@yanick/updeep'; * * const todoUpdux = new Updux({ * initial: { diff --git a/src/updux.ts b/src/updux.ts index 2cec98b..863d342 100644 --- a/src/updux.ts +++ b/src/updux.ts @@ -275,7 +275,7 @@ export class Updux< * ``` * import todo from './todo'; // updux for a single todo * import Updux from 'updux'; - * import u from 'updeep'; + * import u from '@yanick/updeep'; * * const todos = new Updux({ initial: [], subduxes: { '*': todo } }); * todos.addMutation( @@ -370,7 +370,7 @@ export class Updux< */ get asDux() { return { - createStore: this.createStore, + createStore: this.createStore.bind(this), upreducer: this.upreducer, subduxes: this.subduxes, coduxes: this.coduxes,