Skip to content

Commit

Permalink
chore(all): prepare release v0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Oct 13, 2015
1 parent 01cd524 commit b0704f3
Show file tree
Hide file tree
Showing 15 changed files with 1,820 additions and 932 deletions.
5 changes: 3 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-history-browser",
"version": "0.8.0",
"version": "0.9.0",
"description": "An implementation of the Aurelia history interface based on standard browser hash change and push state mechanisms.",
"keywords": [
"aurelia",
Expand All @@ -17,7 +17,8 @@
"url": "http://github.com/aurelia/history-browser"
},
"dependencies": {
"aurelia-history": "^0.7.0",
"aurelia-history": "^0.8.0",
"aurelia-pal": "^0.2.0",
"core-js": "zloirock/core-js"
}
}
33 changes: 26 additions & 7 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,37 @@ System.config({
},

map: {
"aurelia-history": "github:aurelia/history@0.7.0",
"aurelia-pal": "github:aurelia/pal@0.1.4",
"aurelia-history": "github:aurelia/history@0.8.0",
"aurelia-pal": "github:aurelia/pal@0.2.0",
"babel": "npm:[email protected]",
"babel-runtime": "npm:[email protected]",
"core-js": "npm:core-js@1.1.3",
"github:jspm/nodelibs-process@0.1.1": {
"process": "npm:[email protected]"
"core-js": "npm:core-js@1.2.1",
"github:jspm/nodelibs-assert@0.1.0": {
"assert": "npm:[email protected]"
},
"npm:[email protected]": {
"github:jspm/[email protected]": {
"process": "npm:[email protected]"
},
"github:jspm/[email protected]": {
"util": "npm:[email protected]"
},
"npm:[email protected]": {
"util": "npm:[email protected]"
},
"npm:[email protected]": {
"fs": "github:jspm/[email protected]",
"process": "github:jspm/[email protected].1",
"process": "github:jspm/[email protected].2",
"systemjs-json": "github:systemjs/[email protected]"
},
"npm:[email protected]": {
"util": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"assert": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"inherits": "npm:[email protected]",
"process": "github:jspm/[email protected]"
}
}
});
71 changes: 57 additions & 14 deletions dist/amd/aurelia-history-browser.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,68 @@
declare module 'aurelia-history-browser' {
import * as core from 'core-js';
import 'core-js';
import { DOM, PLATFORM } from 'aurelia-pal';
import { History } from 'aurelia-history';

/**
* An implementation of the basic history api.
* Class responsible for handling interactions that should trigger browser history navigations.
*/
export class BrowserHistory extends History {
export class LinkHandler {

/**
* Activate the instance.
*
* @param history The BrowserHistory instance that navigations should be dispatched to.
*/
activate(history: BrowserHistory): any;

/**
* Creates an instance of BrowserHistory.
* Deactivate the instance. Event handlers and other resources should be cleaned up here.
*/
deactivate(): any;
}

/**
* The default LinkHandler implementation. Navigations are triggered by click events on
* anchor elements with relative hrefs when the history instance is using pushstate.
*/
export class DefaultLinkHandler extends LinkHandler {
constructor();
getHash(window?: Window): string;
getFragment(fragment: string, forcePushState?: boolean): string;
activate(history: BrowserHistory): any;
deactivate(): any;

/**
* Gets the href and a "should handle" recommendation, given an Event.
*
* @param event The Event to inspect for target anchor and href.
*/
static getEventInfo(event: Event): Object;

/**
* Finds the closest ancestor that's an anchor element.
*
* @param el The element to search upward from.
*/
static findClosestAnchor(el: Element): Element;

/**
* Gets a value indicating whether or not an anchor targets the current window.
*
* @param target The anchor element whose target should be inspected.
*/
static targetIsThisWindow(target: Element): boolean;
}

/**
* Configures the plugin by registering BrowserHistory as the implementation of History in the DI container.
*/
export function configure(config: Object): void;

/**
* An implementation of the basic history API.
*/
export class BrowserHistory extends History {
static inject: any;
constructor(linkHandler: any);

/**
* Activates the history object.
Expand All @@ -24,24 +74,17 @@ declare module 'aurelia-history-browser' {
* Deactivates the history object.
*/
deactivate(): void;
checkUrl(): boolean;
loadUrl(fragmentOverride: string): boolean;

/**
* Causes a history navigation to occur.
* @param fragment The history fragment to navigate to.
* @param options The set of options that specify how the navigation should occur.
*/
navigate(fragment?: string, options?: Object): boolean;
navigate(fragment?: string, undefined?: any): boolean;

/**
* Causes the history state to navigate back.
*/
navigateBack(): void;
}

/**
* Configures the plugin by registering BrowserHistory as the implementor of History in the DI container.
*/
export function configure(config: Object): void;
}
Loading

0 comments on commit b0704f3

Please sign in to comment.