Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

chore(lodash): require specific lodash/assign module #196

Merged
merged 4 commits into from
Jul 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

### vNEXT
- Require specific lodash/assign module instead of entire package, so memory impact is reduced [PR #196](https://github.com/apollographql/subscriptions-transport-ws/pull/196)

### 0.7.3
- Fix for first subscription is never unsubscribed [PR #179](https://github.com/apollographql/subscriptions-transport-ws/pull/179)
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SubscriptionClient } from './client';
import { assign } from 'lodash';
import assign = require('lodash.assign');

/**
* @deprecated This method will become deprecated in the new package graphql-transport-ws.
Expand Down
5 changes: 5 additions & 0 deletions typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ interface Array<T> {
indexOfField : (propertyName: string, value: any) => number;
}

declare module 'lodash.assign' {
import {assign} from 'lodash';
export = assign;
}

declare module 'lodash.isobject' {
import {isObject} from 'lodash';
export = isObject;
Expand Down