vasille-web 4.1.6 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/fake-types/index.d.ts +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -35,6 +35,7 @@ $ npm create vasille
|
|
|
35
35
|
### Full documentation:
|
|
36
36
|
* [Learn `Vasille` in 5 minutes](https://github.com/vasille-js/vasille-js/blob/v4/doc/V4-API.md)
|
|
37
37
|
* [Vasille Router Documentation](https://github.com/vasille-js/vasille-js/blob/v4/doc/Router-API.md)
|
|
38
|
+
* [Vasille Compostion function](https://github.com/vasille-js/vasille-js/blob/v4/doc/Compositions.md)
|
|
38
39
|
|
|
39
40
|
### Examples
|
|
40
41
|
* [TypeScript Example](https://github.com/vasille-js/example-typescript)
|
|
@@ -103,6 +104,10 @@ All of these are supported:
|
|
|
103
104
|
|
|
104
105
|
## Change log
|
|
105
106
|
|
|
107
|
+
### 4.2.0
|
|
108
|
+
|
|
109
|
+
Add support for inlined conditions in JSX, binary `&&` and ternary `?:` operator.
|
|
110
|
+
|
|
106
111
|
### 4.1.0
|
|
107
112
|
|
|
108
113
|
Added SSG (static site generation) as build option `vasille-web build static`.
|
package/fake-types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { App } from "vasille";
|
|
1
|
+
import { App, Destroyable } from "vasille";
|
|
2
2
|
import type { TagOptions } from "vasille/web-runner";
|
|
3
3
|
import type { StyleProps } from "../spec/css.d.ts";
|
|
4
4
|
import type { ScreenProps } from "vasille-router";
|
|
@@ -115,10 +115,10 @@ export declare function Delay(props: { time?: number; slot?: unknown }): void;
|
|
|
115
115
|
export declare function store<Return extends object>(fn: () => Return): Return;
|
|
116
116
|
|
|
117
117
|
/** Creates a model (state) constructor */
|
|
118
|
-
export declare function model<Return extends object>(fn: () => Return): () => Return;
|
|
118
|
+
export declare function model<Return extends object>(fn: () => Return): () => Return & Destroyable;
|
|
119
119
|
export declare function model<Input extends object, Return extends object>(
|
|
120
|
-
fn: (input: Input) => Return,
|
|
121
|
-
): (input: Input) => Return;
|
|
120
|
+
fn: (input: Input) => Return & Destroyable,
|
|
121
|
+
): (input: Input) => Return & Destroyable;
|
|
122
122
|
|
|
123
123
|
export { QueryParams, ScreenProps, RouteParameters } from "vasille-router";
|
|
124
124
|
export { Router, NavigationMode } from "vasille-router/web-router";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vasille-web",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "The same framework which is designed to build bulletproof frontends.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"csstype": "^3.1.3",
|
|
50
50
|
"vasille": "^4.1.0",
|
|
51
51
|
"vasille-css": "^4.1.0",
|
|
52
|
-
"vasille-jsx": "^4.
|
|
52
|
+
"vasille-jsx": "^4.2.0",
|
|
53
53
|
"vasille-router": "^4.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|