Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-zero

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-zero - npm Package Compare versions

Comparing version 4.13.4 to 4.13.6

9

CHANGELOG.md
# Changelog
### 4.13.6
- Better typing support
### 4.13.5
- Fix deps with npm audit
- Add typescript 3 support
### 4.13.4

@@ -4,0 +13,0 @@

4

interfaces/Store.d.ts
export default interface Store {
middleware(...args: any[]): void;
setState(f: any): void;
subscribe(f: () => any): any;
setState(f: Function | object): void;
subscribe(f: Function): () => void;
getState(): object;
reset(): void;
}
{
"name": "redux-zero",
"version": "4.13.4",
"version": "4.13.6",
"description": "",

@@ -62,4 +62,4 @@ "main": "dist/redux-zero.js",

"cross-env": "5.0.5",
"enzyme": "3.1.0",
"enzyme-adapter-react-16": "1.0.1",
"enzyme": "3.5.0",
"enzyme-adapter-react-16": "1.2.0",
"husky": "0.14.3",

@@ -81,3 +81,3 @@ "jest": "21.2.1",

"tslint": "5.7.0",
"typescript": "2.5.3",
"typescript": "3.0.1",
"vue": "2.5.9"

@@ -84,0 +84,0 @@ },

@@ -11,5 +11,5 @@ import { Component } from "preact";

update: () => void;
render({children}: {
render({ children }: {
children: any;
}, state: any, {store}: {
}, state: any, { store }: {
store: any;

@@ -16,0 +16,0 @@ }): any;

@@ -1,7 +0,7 @@

/// <reference types="react" />
import * as React from "react";
import { mapToProps } from "../../interfaces/Helpers";
import propValidation from "../../utils/propsValidation";
declare type mapToProps = (state: object, ownProps?: object) => object;
export declare class Connect extends React.Component<any> {
static contextTypes: {
store: (props: object, propName: string, componentName: string) => Error;
store: typeof propValidation;
};

@@ -24,3 +24,5 @@ unsubscribe: any;

forceUpdate(callBack?: () => any): void;
props: any;
props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;

@@ -33,6 +35,6 @@ context: any;

componentDidMount?(): void;
componentWillReceiveProps?(nextProps: any, nextContext: any): void;
shouldComponentUpdate?(nextProps: any, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUpdate?(nextProps: any, nextState: Readonly<{}>, nextContext: any): void;
componentDidUpdate?(prevProps: any, prevState: Readonly<{}>, prevContext: any): void;
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): void;
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<{}>, prevContext: any): void;
componentWillUnmount?(): void;

@@ -42,1 +44,2 @@ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;

};
export {};

@@ -1,8 +0,8 @@

/// <reference types="react" />
import * as React from "react";
import Props from "../../interfaces/Props";
import propValidation from "../../utils/propsValidation";
import Store from "../../interfaces/Store";
export default class Provider extends React.Component<Props> {
static childContextTypes: {
store: (props: object, propName: string, componentName: string) => Error;
store: typeof propValidation;
};

@@ -9,0 +9,0 @@ getChildContext(): {

import Store from "../interfaces/Store";
export default function createStore(state?: {}, middleware?: any): Store;
export default function createStore(state?: object, middleware?: any): Store;
import Store from "../../interfaces/Store";
import { mapToProps } from "../../interfaces/Helpers";
export declare function getActions(store: Store, actions: any): any;
declare type mapToProps = (state: object, ownProps?: object) => object;
export declare function getActions(store: Store, actions: Function): any;
export declare function connect(component: any, store: Store, mapToProps: mapToProps): void;
export {};
import Store from "../interfaces/Store";
export default function bindActions(actions: any, store: Store): any;
export default function bindActions(actions: Function, store: Store): any;

@@ -1,4 +0,4 @@

export default function getDiff(newData: any, oldData: any): {
export default function getDiff(newData: object, oldData: object): {
diff: {};
changed: boolean;
};

@@ -61,3 +61,3 @@ 'use strict';

var combineActions = function () {
var combineActions = (function () {
var actions = [];

@@ -74,5 +74,5 @@ for (var _i = 0; _i < arguments.length; _i++) {

};
};
});
exports.bindActions = bindActions;
exports.combineActions = combineActions;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc