Skip to content

Commit

Permalink
Release 7.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Masquerade-Circus committed Dec 18, 2022
1 parent 19a51e0 commit f51f912
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 18 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@


## [7.1.0](https://github.com/Masquerade-Circus/valyrian.js/compare/7.0.4...7.1.0) (2022-12-17)
### [7.1.1](https://github.com/Masquerade-Circus/valyrian.js/compare/7.1.0...7.1.1) (2022-12-18)


### Code Refactoring

* **router:** refactor router ([19a51e0](https://github.com/Masquerade-Circus/valyrian.js/commit/19a51e058ff017bb13c024be5f6a1f69d9d9b8df))

## [7.1.0](https://github.com/Masquerade-Circus/valyrian.js/compare/7.0.4...7.1.0) (2022-12-17)

### Features

* **router:** add a way to initialize the router with a prefix ([84770ef](https://github.com/Masquerade-Circus/valyrian.js/commit/84770efac1ce0b2a3a43526b43ae9d0a6d5de78f))
* **router:** add a way to initialize the router with a prefix ([84770ef](https://github.com/Masquerade-Circus/valyrian.js/commit/84770efac1ce0b2a3a43526b43ae9d0a6d5de78f))

### [7.0.4](https://github.com/Masquerade-Circus/valyrian.js/compare/7.0.3...7.0.4) (2022-12-17)

Expand Down
24 changes: 12 additions & 12 deletions dist/router/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import { Component, POJOComponent, VnodeComponentInterface } from "valyrian.js";
interface Path {
method: string;
path: string;
middlewares: Middlewares;
params: string[];
regexp: RegExp;
}
interface Request {
params: Record<string, any>;
query: Record<string, any>;
Expand All @@ -19,6 +12,13 @@ interface Middleware {
}
interface Middlewares extends Array<Middleware> {
}
interface Path {
method: string;
path: string;
middlewares: Middlewares;
params: string[];
regexp: RegExp;
}
interface RouterInterface {
paths: Path[];
container: Element | string | null;
Expand All @@ -44,13 +44,13 @@ export declare class Router implements RouterInterface {
matches: string[];
pathPrefix: string;
constructor(pathPrefix?: string);
add(path: string, ...args: Middlewares): Router;
use(...args: Middlewares | Router[] | string[]): Router;
add(path: string, ...middlewares: Middlewares): Router;
use(...middlewares: Middlewares | Router[] | string[]): Router;
routes(): string[];
go(path: string, parentComponent?: Component): Promise<string | void>;
go(path: string, parentComponent?: Component, preventPushState?: boolean): Promise<string | void>;
getOnClickHandler(url: string): (e: MouseEvent) => void;
}
export declare function redirect(url: string): any;
export declare function mountRouter(elementContainer: any, router: any): void;
export declare function redirect(url: string, parentComponent?: Component, preventPushState?: boolean): string | void;
export declare function mountRouter(elementContainer: string | any, router: Router): void;
export {};
//# sourceMappingURL=index.d.ts.map
2 changes: 1 addition & 1 deletion dist/router/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "valyrian.js",
"version": "7.1.0",
"version": "7.1.1",
"description": "Lightweight steel to forge PWAs. (Minimal Frontend Framework with server side rendering and other capabilities)",
"repository": "git@github.com:Masquerade-Circus/valyrian.js.git",
"author": "Masquerade <christian@masquerade-circus.net>",
Expand Down

0 comments on commit f51f912

Please sign in to comment.