Skip to content

Latest commit

 

History

History
72 lines (59 loc) · 1.88 KB

CHANGELOG.md

File metadata and controls

72 lines (59 loc) · 1.88 KB

v4.0.4

  • Updated NPM Readme

v4.0.3

  • Default version is now 4.x.x
  • Fixed type error

Next v4.0.2

  • Fixed the issue that created multiple pubsub services (#7).

Next v4.0.0

  • Only version changed for anyone using Angular 4.0.0

v2.0.6

  • Fixed type error.

v2.0.5

  • Fixed the issue that created multiple pubsub services (#7).

v2.0.1

  • $pub command return undefined when no event subscribe.
  • $sub method bug solved. RxJS Subscriber no longer call subscribe method on start.

v2.0.0

  • PubSubService moved into PubSubModule.
  • Added unit tests for the service and project restructure updated to use the benefits of webpack and bundling.

v1.1.1

Recovery fix and added interfaces.

Class Overview

declare class PubSubService{
	private events: Object;
	$pub(event: string, eventObject?: any): void;
	$sub: {
		(): undefined;
		(event: string): Observable<any>;
		(event: string, callback: (value: any) => void): Subscription;
		(event: string, callback: (value: any) => void, error: (error: any) => void): Subscription;
		(event: string, callback: (value: any) => void, error: (error: any) => void, complete: () => void): Subscription;
	}
}

v1.1.0

Added overload to $sub method for to be useful.

Class Overview

declare class PubSubService{
	private events: Object;
	$pub(event: string, eventObject?: any): void;
	$sub(event: string): <Observable<any>>;
	$sub(event: string, callback: (value: any) => void, error?: (error: any) => void, complete?: () => void): Subscription;
}

v1.0.0

A simple publisher/subscriber service.

Class Overview

declare class PubSubService{
	private events: Object;
	$pub(event: string, eventObject?: any): void;
	$sub(event: string): <Observable<any>>;
	$sub(event: string, callback: (value: any) => void, error?: (error: any) => void, complete?: () => void): Subscription;
}