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

@equinor/fusion-observable

Package Overview
Dependencies
Maintainers
4
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion-observable - npm Package Compare versions

Comparing version 8.1.5 to 8.2.0

2

dist/esm/version.js

@@ -1,2 +0,2 @@

export const version = '8.1.5';
export const version = '8.2.0';
//# sourceMappingURL=version.js.map

@@ -11,3 +11,3 @@ import { actionMapper } from './action-mapper';

};
export declare function createState<TState, TActions extends ActionDefinitions>(actions: TActions, reducer_or_builder: ReducerWithInitialState<TState> | {
export declare function createState<TState, TActions extends ActionDefinitions>(actions: TActions, reducer_or_builder: ReducerWithInitialState<TState, ActionTypes<TActions>> | {
builder: (builder: ActionReducerMapBuilder<TState>, actions: TActions) => void;

@@ -14,0 +14,0 @@ initial: TState | (() => TState);

import { FlowSubject } from '../FlowSubject';
import type { Action, Reducer, ReducerWithInitialState } from '../types';
export declare const useObservable: <S, A extends Action = Action>(reducer: Reducer<S, A> | ReducerWithInitialState<S, A>, initial?: S | undefined) => FlowSubject<S, A>;
export declare const useObservable: <S, A extends Action = Action>(reducer: Reducer<S, A> | ReducerWithInitialState<S, A>, initial?: S) => FlowSubject<S, A>;

@@ -9,3 +9,3 @@ import { FlowSubject } from '../FlowSubject';

}
export declare const useObservableEffect: <S, A extends Action = Action, TType extends ActionType<A> = ActionType<A>>(subject: FlowSubject<S, A>, effectOrType: TType | Effect<A, S>, effect?: Effect<ExtractAction<A, TType>, S> | undefined) => void;
export declare const useObservableEffect: <S, A extends Action = Action, TType extends ActionType<A> = ActionType<A>>(subject: FlowSubject<S, A>, effectOrType: Effect<A, S> | TType, effect?: Effect<ExtractAction<A, TType>, S>) => void;
export default useObservableEffect;

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

/// <reference types="react" />
import { Observable } from '../types';
export declare const useObservableRef: <S>(subject: Observable<S>, initial?: S | undefined) => import("react").RefObject<S | undefined>;
export declare const useObservableRef: <S>(subject: Observable<S>, initial?: S) => React.RefObject<S | undefined>;
export default useObservableRef;

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

export declare const version = "8.1.5";
export declare const version = "8.2.0";
{
"name": "@equinor/fusion-observable",
"version": "8.1.5",
"version": "8.2.0",
"description": "WIP",

@@ -62,10 +62,10 @@ "keywords": [

"devDependencies": {
"@testing-library/react": "^14.0.0",
"@types/react": "^18.2.20",
"@types/node": "^20.4.9",
"@types/uuid": "^9.0.4",
"@testing-library/react": "^14.2.0",
"@types/node": "^20.11.14",
"@types/react": "^18.2.50",
"@types/uuid": "^9.0.8",
"happy-dom": "^13.3.8",
"react": "^18.2.0",
"typescript": "^5.1.3",
"vitest": "^1.0.1"
"typescript": "^5.4.2",
"vitest": "^1.2.2"
},

@@ -72,0 +72,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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