vasille 5.0.1 → 5.1.1
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 +11 -5
- package/lib/node/node.js +2 -1
- package/lib/runner/web/runner.js +2 -0
- package/package.json +1 -1
- package/types/node/node.d.ts +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
`SteelFrameKit` is a front-end development kit, which is developed to provide fault tolerant web applications.
|
|
6
6
|
|
|
7
|
-
[](https://www.npmjs.com/package/steel-frame)
|
|
8
8
|
[](https://deepwiki.com/vasille-js/steel-frame)
|
|
9
9
|
[](https://coveralls.io/github/vasille-js/steel-frame?branch=v5)
|
|
10
10
|
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
- [How POWERFUL is SteelFrameKit](#how-powerful-is-steelframekit)
|
|
22
22
|
- [Road map](#road-map)
|
|
23
23
|
- [Change log](#change-log)
|
|
24
|
+
- [5.1](#51)
|
|
24
25
|
- [5.0](#50)
|
|
25
26
|
- [4.0 - 4.3](#40---43)
|
|
26
27
|
- [3.0 - 3.2](#30---32)
|
|
@@ -119,10 +120,15 @@ All of these are supported:
|
|
|
119
120
|
## Change log
|
|
120
121
|
|
|
121
122
|
We respect semantic versioning:
|
|
122
|
-
-
|
|
123
|
-
-
|
|
123
|
+
- A major version is increased when we make incompatible API changes.
|
|
124
|
+
- A minor version is increased when we add functionality.
|
|
124
125
|
- Patch version is increased when we fix bugs.
|
|
125
126
|
|
|
127
|
+
### 5.1
|
|
128
|
+
|
|
129
|
+
Add support for web components compile target `web build components`.
|
|
130
|
+
_Web components as custom tags are supported in any version._
|
|
131
|
+
|
|
126
132
|
### 5.0
|
|
127
133
|
|
|
128
134
|
- Add support for context and dependencies injection.
|
|
@@ -142,7 +148,7 @@ We respect semantic versioning:
|
|
|
142
148
|
### 3.0 - 3.2
|
|
143
149
|
|
|
144
150
|
- Switch to a babel plugin to compile components code. **[API change]**
|
|
145
|
-
- 100% of code has been covered with unit tests.
|
|
151
|
+
- 100% of the code has been covered with unit tests.
|
|
146
152
|
- New developement direction: `keep it simple`.
|
|
147
153
|
|
|
148
154
|
### 2.0 - 2.3
|
|
@@ -152,7 +158,7 @@ We respect semantic versioning:
|
|
|
152
158
|
|
|
153
159
|
### 1.0 - 1.2
|
|
154
160
|
|
|
155
|
-
- Initial version of core library.
|
|
161
|
+
- Initial version of a core library.
|
|
156
162
|
- Developemnt direction: `performance-first`.
|
|
157
163
|
|
|
158
164
|
## Questions
|
package/lib/node/node.js
CHANGED
|
@@ -263,11 +263,12 @@ export class SwitchedNode extends Fragment {
|
|
|
263
263
|
}
|
|
264
264
|
if (i !== -1) {
|
|
265
265
|
const node = this.newChild(i);
|
|
266
|
+
const value = this.cases[i].$case;
|
|
266
267
|
node.parent = this;
|
|
267
268
|
this.lastChild = node;
|
|
268
269
|
this.children.add(node);
|
|
269
270
|
this.index = i;
|
|
270
|
-
safe(this.cases[i].slot)(node);
|
|
271
|
+
safe(this.cases[i].slot)(node, value instanceof IValue ? value.V : value);
|
|
271
272
|
}
|
|
272
273
|
else {
|
|
273
274
|
this.index = -1;
|
package/lib/runner/web/runner.js
CHANGED
package/package.json
CHANGED
package/types/node/node.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ export declare abstract class Tag<Node, Element, TagOptions extends object, Runn
|
|
|
131
131
|
}
|
|
132
132
|
export interface SwitchedNodeCase<Node, Element, TagOptions extends object, Runner extends IRunner<Node, Element, TagOptions>> {
|
|
133
133
|
$case: unknown;
|
|
134
|
-
slot: (node: Fragment<Node, Element, TagOptions, Runner
|
|
134
|
+
slot: (node: Fragment<Node, Element, TagOptions, Runner>, value?: unknown) => void;
|
|
135
135
|
}
|
|
136
136
|
/**
|
|
137
137
|
* Defines a node which can switch its children conditionally
|