Skip to content

Commit

Permalink
Prep 5.10.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mesmo committed Sep 29, 2016
1 parent c0a8be7 commit 7ae62cf
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 10 deletions.
11 changes: 8 additions & 3 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ Moved to TypeScript 2.0:
* compile with strictNullChecks set to true;
* exploit dotted type guards;
* add a setProperty as where ther were previourly read/write properties:
* console augmented with setConsole;
* random augmented with setRandom;
* internalTransitionsTriggerCompletion augmented with setInternalTransitionsTriggerCompletion;
* ```console``` augmented with ```setConsole```method;
* ```random``` augmented with ```setRandom```method;
* ```internalTransitionsTriggerCompletion``` augmented with ```setInternalTransitionsTriggerCompletion``` method;
* explicitly define types that may be undefined.

Fixed a few issues based on TypeScript Do's and Don'ts:
* Return boolean rather than Boolean;
* Return void from ```visit...``` and accept methods rather than ```any```.
* Remove optional parameters from callbacks.

Moved isHistory and isInitial methods back to PseudoState class as the extension methods to the enum feels like a bit of a hack.

Remove the untyped arg2 and arg3 from the Visitor pattern; if more information is required use a class as arg1.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "state",
"version": "5.9.0",
"version": "5.10.0",
"homepage": "https://github.com/steelbreeze/state.js",
"authors": [
"David Mesquita-Morris <[email protected]>"
Expand Down
8 changes: 7 additions & 1 deletion lib/node/state.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
// Definitions by: David Mesquita-Morris <http://state.software>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/**
* Finite state machine library
* Copyright (c) 2014-6 David Mesquita-Morris
* Licensed under the MIT and GPL v3 licences
* http://state.software
*/
/**
* An enumeration used to dictate the behavior of instances of the [[PseudoState]] class.
*
Expand Down Expand Up @@ -379,7 +385,7 @@ export declare abstract class Visitor<TArg1> {
* @param deepHistory True if [[PseudoStateKind.DeepHistory]] semantics are in play.
*/
export interface Action {
(message: any, instance: IInstance, deepHistory?: boolean): void;
(message: any, instance: IInstance, deepHistory: boolean): void;
}
/** Interface used for logging, warnings and errors; create implementations of this interface and set the [[console]] variable to an instance of it. */
export interface IConsole {
Expand Down
2 changes: 1 addition & 1 deletion lib/node/state.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/**
* Finite state machine library
* Copyright (c) 2014-6 David Mesquita-Morris
* Licensed under the MIT and GPL v3 licences
Expand Down
2 changes: 1 addition & 1 deletion lib/web/state.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/*
/**
* Finite state machine library
* Copyright (c) 2014-6 David Mesquita-Morris
* Licensed under the MIT and GPL v3 licences
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "state.js",
"version": "5.9.0",
"version": "5.10.0",
"author": "David Mesquita-Morris <[email protected]>",
"contributors": [
"David Mesquita-Morris <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions src/state.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/**
* Finite state machine library
* Copyright (c) 2014-6 David Mesquita-Morris
* Licensed under the MIT and GPL v3 licences
Expand Down Expand Up @@ -655,7 +655,7 @@ export abstract class Visitor<TArg1> {
* @param deepHistory True if [[PseudoStateKind.DeepHistory]] semantics are in play.
*/
export interface Action {
(message: any, instance: IInstance, deepHistory?: boolean): void;
(message: any, instance: IInstance, deepHistory: boolean): void;
}

/** Interface used for logging, warnings and errors; create implementations of this interface and set the [[console]] variable to an instance of it. */
Expand Down

0 comments on commit 7ae62cf

Please sign in to comment.